查看Debian的版本信息
摘要:$ lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription: Debian GNU/Linux testing (squeeze)Release: testingCodename: squeeze$ cat /etc/debian_version squeeze/sid/usr/share/doc/base-files/FAQ:Q. Ok, but how do I know which distribution I'm running?A. If you are running testing
阅读全文
posted @
2010-12-29 18:17
lbsx
阅读(17827)
推荐(0)
RenameUSBDrive
摘要:来源:https://help.ubuntu.com/community/RenameUSBDriveRenameUSBDriveContents1.Using the Partition Editor2.Using the Command line (1) Identify your Partition (2) Install the Labeling Program (3) Unmount the Partition (4) Changing the Label3.Filesystems (1) FAT16 and FAT32 (2) NTFS (3) ext2, ext3,
阅读全文
posted @
2010-12-26 16:36
lbsx
阅读(435)
推荐(0)
查看文件系统类型
摘要:转自:查看文件系统类型的Linux命令1. 不需要挂载:(1) file -s(2) parted #p命令(3) fdisk -l(4) cfdiskI prefer parted. 2. 需要挂载:(1) mount(2) df -T(3) stat
阅读全文
posted @
2010-12-26 11:48
lbsx
阅读(311)
推荐(0)
Debian live persistent
摘要:对home目录采用snapshot方式实现persistence$ dd if=/dev/null of=home-sn bs=1G seek=1$ ls home-sn | cpio -o | gzip home-sn.cpio.gz$ cp home-sn.cpio.gz $(USB)在每次启动的时候,加上persistent参数,live系统即会自动将home-sn.cpio.gz挂载为主目录在关机的时候,才会进行同步
阅读全文
posted @
2010-12-26 10:59
lbsx
阅读(363)
推荐(0)
Copy a directory with cpio
摘要:转载自:http://bradthemad.org/tech/notes/cpio_directory.phpCopy a directory with cpioMost people live their whole lives without ever using the cpio utility.However, it is a useful thing, and is sometimes better suited to copyinglots of files around than tar or cp. Here's a quick primer.Some important fl
阅读全文
posted @
2010-12-26 01:06
lbsx
阅读(349)
推荐(0)
cpio How-To & Quick Start
摘要:转载自:http://cybertiggyr.com/gene/cpio-howto/Gene Michael Stover'scpio How-To & Quick Startcreated Tuesday, 19 March 2002 updated Monday, 14 October 2002Introductioncpio is an archive program, sort of liketar. It is commonly availableon Unix & Unix-like systems,including Gnu/Linux.This article is a q
阅读全文
posted @
2010-12-26 00:42
lbsx
阅读(462)
推荐(0)
制作debian live
摘要:$ mkdir -p working/auto$ cp /usr/share/live/build/examples/auto/* working/auto/$ cd workingEdit auto/config:代码# lb build$ dd if=binary.img of=${USBSTICK}-b usb-hdd制作usb的live,其他有iso等。。。若不指定volatile的镜像的话,可能会出现Err http://mirror.dlut.edu.cn squeeze/updates/main i386 Packages 404 Not Found其他选项参见Debian
阅读全文
posted @
2010-12-24 20:20
lbsx
阅读(1251)
推荐(0)
Debian U盘安装盘
摘要:来源:Installing Debian Sarge from a USB memory stick (USB key)updated:http://www.debian.org/releases/stable/i386/ch04s03.html.enCopying the files - the easy wayThere is an all-in-one file which contains all the installer files (including the kernel) as well as SYSLINUX and its configuration file. It r
阅读全文
posted @
2010-12-23 21:42
lbsx
阅读(3829)
推荐(0)
Apache2 VirtualHost Examples
摘要:http://httpd.apache.org/docs/2.0/vhosts/examples.html
阅读全文
posted @
2010-12-22 12:36
lbsx
阅读(137)
推荐(0)
WM_KEYDOWN和WM_KEYUP的使用
摘要:通过这两个消息可以模拟键盘事件。相关函数:MapVirtualKey: The MapVirtualKey function translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code. VkKeyScan: The VkKeyScan function translates a character to the corresponding virtual-key code and shift state f
阅读全文
posted @
2010-12-17 22:00
lbsx
阅读(40192)
推荐(0)
装完Adobe CS3后win7 下 default gateway 为0.0.0.0
摘要:今天装完Flash CS3,网络出问题了,默认网关显示为0.0.0.0,route print可以看到是写在第一条的。[代码]219.1.2.254为我的正常网关地址219.1.2.33为我的IP地址1. 临时解决办法:route change 0.0.0.0 mask 0.0.0.0 219.1.2.3恢复正常:[代码]2. 最终解决:问题是由Adobe的Bonjour service引起的,将...
阅读全文
posted @
2010-12-02 08:51
lbsx
阅读(1006)
推荐(0)