原创 gdb faq: how to set/cancel a break

gdb faq: how to set/cancel a break in the command line,gdbthen it will enter gdb command linefile foobarrun foobarbrea

原创 how to mount remote disk as local disk

sudo mount -t smbfs //xxx_host/d$ /mount -o user=foo_user,domain=bar_domain,iocharset=utf8 you'd better replace //xxx

原创 how to mount remote disk as local disk at startup

1 sudo vi /etc/fstab in this file, add the line as, //host_machine_name/d$ /mount smbfs user=foo,domain=bar,password

原创 How to let ubuntu auto login

in the command line, execute: sudo visudo add in the end of the file: xxx ALL=NOPASSWD: ALL notice to replace xxx

原创 How to let ubuntu mount at startup?

1 sudo fdisk -l 2 sudo vi /etc/fstab add the following: /dev/sda4 /media/diskA ext4 defaults 0 0 /dev/sda5 /medi

原创 how to edit grub2 menu in ubuntu

I means about grub2, not grub. sudo vi /etc/default/grub in that file /etc/default/grub, you can found GRUB_TIMEOUT

原创 Linux Remote Desktop For Controlling Windows XP / Vista / Server 2003 ( rdesktop )

Install rdesktop# apt-get install rdesktop Connect to MS Windows 2000/2003 server from Linux, type the following comm

原创 不需要密碼就登陸SSH Server

Your aim You want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A /

原创 Linux下的兒童教學軟件

gcompris tuxmath flashcard4cn

原创 自定義的delay()函數(C語言)

#include <time.h> void my_delay(long int delay_t) { clock_t start_time; //the start time start_time=clock(); whil

原创 vsftpd as ftp server

You can edit the vsftpd configuration file,/etc/vsftpd.conf, to change the default settings. 0)sudo apt-get install vs

原创 vim:怎樣查找?

1 search a word "word", use:/word, when found, use "n" or "N" or "3N" to go to next/previous one 2 search a word "wor

原创 03/2010 Filezilla: Best ftp gui client for ubuntu

Filezilla is moved to ubuntu in about 2007 year. It's a gorgeous ftp gui client.

原创 vim faq: how to view the hex text?

in vim, there's a xxd as an external program. vim foo :%!xxd

原创 Use g++ to replace gcc when link the .cpp file

Use g++ to replace gcc when link the .cpp file Q: I have a small program, test.c. It runs OK. This is on Linux (kern