rdesktop的使用

摘要: rdesktop能轻易实现linux 连接windows系统-f全屏模式,ctrl+alt+Enter实现全屏和非全屏的切换-r disk:G=/home/zhb,在windows中建立网络磁盘G,映射到linux系统的/home/zhb,要在windows中操作G中的文件,需要使用rdesktop的用户具有操作/home/zhb目录的权限。rdesktop -f 192.168.166.18 -r disk:G=/home/zhb 阅读全文
posted @ 2011-05-11 10:41 明日之星 阅读(247) 评论(0) 推荐(0)

makefile规则

摘要: makefile 的规则:1、显式规则: 目标文件:依赖文件 1014 1015:1014.c 1014.h 1015.c 1015.h @echo $< #等同于 1014 :1014.c 1014.h 1015.c 1015.h @echo $< 1015 :1014.c 1014.h 1015.c 1015.h @echo $< #和下面的不同 1014 :1014.c 1014.h @echo $< 1015 :1015.c 1015.h @echo $<##因此,要能区分多目标规则和模式规则,静态规则的区别。2、隐式规则:make数据库中默认的规则列表, 阅读全文
posted @ 2011-05-06 18:00 明日之星 阅读(373) 评论(0) 推荐(0)

fdisk 和 mount配合使用

摘要: sudo fdisk -l /dev/sdasudo mount -t ntfs /dev/sda3 /mnt/g这两个命令都需要较高权限,通过fdisk查看分区信息。mount需要这些信息。 阅读全文
posted @ 2011-05-06 16:16 明日之星 阅读(306) 评论(0) 推荐(0)

linux 补丁

摘要: 一个补丁就是一个文本文档,这个文档包含了在两个不同版本的源代码树之间的变化。diff命令找出 from-docu文件夹与to-docu文件的差异,并生成差异文件to-docu.patch文件patch命令利用to-docu.patch文件可实现from-docu与to-docu相互转化单个文件diff –uN from-file to-file >to-file.patchpatch –p0 < to-file.patchpatch –RE –p0 < to-file.patch多个文件diff –uNr from-docu to-docu >to-docu.patch 阅读全文
posted @ 2011-04-29 13:31 明日之星 阅读(212) 评论(0) 推荐(0)

linux 内核重新编译

摘要: 以linux-2.6.38.4.tar.bz2源码包为例上官网http://www.kernel.org/下载stable版的linux-2.6.38.4.tar.bz2源码包,用sudo或root账户执行下面指令mv /home/zhb/Downloads/ linux-2.6.38.4.tar.bz2 /usr/src tar -xvf linux-2.6.38.4.tar.bz2## 使用make install#一步到位或者继续使用下面的指令make mrproper #确保目录下没有不正确的.o文件和文件依赖make menuconfig #需要Ncures库支持,xconfig需要 阅读全文
posted @ 2011-04-28 11:22 明日之星 阅读(934) 评论(0) 推荐(1)