
Linux程序员
guonix
这个作者很懒,什么都没留下…
展开
-
rdate更新设置时间
$ cat /etc/redhat-releaseCentOS release 5.2 (Final) Step 1: su -Step 2: rdate -s time-a.nist.govStep 3: hwclock --systohc 时钟服务器可选time.windows.comtime.nist.govtime-nw.nist.govtime原创 2009-02-27 14:35:00 · 1268 阅读 · 0 评论 -
成员函数指针,静态成员函数指针,友元函数指针
#include class A{public: A(int a) : m_a(a) { } static void foo(void* param) { printf("static %s/n", __func__); } void foo() { printf("%s/n", __fun原创 2009-03-20 15:48:00 · 2062 阅读 · 0 评论 -
Linux的栈大小
#include int count = 0;void foo(){ char buffer[0x7FFFFFFF - 255]; buffer[sizeof(buffer) - 1] = 1; count += buffer[sizeof(buffer) - 1];}int main(){ for (int i = 0; i < 1原创 2009-03-30 16:46:00 · 666 阅读 · 0 评论 -
gnu make学习笔记一
gnu make, gcc "-M"参数, 正则表达式, 自动生成依赖, sed反斜杆, shell元字符原创 2010-11-29 18:19:00 · 765 阅读 · 0 评论 -
正则表达式,awk实例
正则表达式、awk、egrep原创 2010-11-04 16:08:00 · 680 阅读 · 0 评论 -
[Gentoo]安装运行后,/boot文件夹为什么是空的?
Gentoo安装完成后,发现/boot文件夹下面没有任何内容此问题由二个原因引起的,一是内核不支持ext2,另一是fstab配置错误 Step 1: 重新编译内核File systems ---> Second extended fs support [*] Ext2 extended attributes [*]原创 2011-12-28 17:17:30 · 1401 阅读 · 6 评论 -
VMWare安装Gentoo错误"cannot open root device sda3..."
本文仅仅记录解决问题的过程...供大家参考 问题的原因是由于缺少SCSI驱动引起的 解决方法如下:Step 1: 修改SCSI驱动类型VM->Edit Settings->SCSI controller 0->change type,设为BusLogic此项设置据说是因为2.6+的内核不再支持LSI Logic Step 2: 用LiveCD启动,并进入编译原创 2011-12-28 12:45:19 · 1077 阅读 · 0 评论 -
Gentoo Linux设置文本模式下的分辨率
本文仅仅记录作者本人解决问题的过程,更多详情请翻墙GoogleGentoo在VMWare上编译安装Step 1: 编译内核,安装图形驱动Device Drivers -> Connector - unified userspace kernelspace linker ---> Graphics support -> [*] Support for frame buf原创 2011-12-28 17:36:42 · 1274 阅读 · 0 评论