Linux use notes
-----------------------------
Based on Fedora 8 version:
-----------------------------
1. No common command like ifconfig in os?
Root cause is the standard search path not include /sbin and /usr/sbin. Try to include them in /etc/profile. As belows:
#Kenny add /sbin and /usr/sbin here.
export PATH=.:/sbin:/usr/sbin:$PATH
2. install package in Fedora?
yum install "package name"
yum upgrade "package name"
rpm -qa | grep “samba”
3. install samba ui config program?
a. yum install system-config-samba.
b. set samba service is trusted services in firewall.
c. set samba_enable_home_dirs and samba_export_all_ro in SELinux configure option.
4. VMware host connect with target, without network line.
a. set vmvare network connect mode to NAT in right-bottom network icon, default is bridged mode;
b. in host machine, try (cmd -> ipconfig /all). Check VMNET8's IP address, suppose it is 192.168.111.2;
c. in target machine, set IP address the same network range in step b, like 192.168.111.3, and set Gateway and DNS
to vmware NAT gateway ip in menu(if not sure, try DHCP first, and check info from network manager);
d. restart target machine, host can ping the target ip now.
Note: 1. No need to set host physical address, since it is not related to it.
2. If host machine is connect by external network, then target can ping host machine IP, like 172.16.200.22.
And target can also connect to Internet.
3. For target connect Internet network, I use bridge connect mode and DHCP is ok too.
ref: http://hi.baidu.com/msingle/blog/item/d8a730ed4f6ab6dfb31cb15c.html
5. Enable telnet server?
1. query system whether has telnet and telnet-server, if not have, in
Ïà¹ØÎĵµ£º
Linux·¢Ðа汾֮¼äµÄ²î±ðÆäʵºÜÉÙ£¬²î±ðÖ÷Òª±íÏÖÔÚϵͳ¹ÜÀíµÄÌØÉ«¹¤¾ßÒÔ¼°Èí¼þ°ü¹ÜÀí·½Ê½µÄ²»Í¬£¬³ý´ËÖ®Í⣬ûÓÐʲô´óµÄ²î±ð£» ±ÈÈçFedoraÈí¼þ°ü¹ÜÀí¹¤¾ßÊÇrpm£¬¶øSlackwareÊÇpkgtool »òinstallpkgµÈ£»
ÑÔ¹éÕý´«£¬ÎÒÃǽÓ×Å˵Îļþϵͳ×éÖ¯½á¹¹¡£
/ LinuxÎļþϵͳµÄÈë¿Ú£¬Ò²ÊÇ´¦ÓÚ×î¸ßÒ»¼¶µÄĿ¼£»
/bin »ù´¡ÏµÍ³ËùÐèÒªµ ......
½«¿ÉÒÆ¶¯É豸Á¬Èëϵͳʱ£¬ÏµÍ³µÄºǫ́ÖлáÒÀ´Î·¢ÉúÈçÏÂʼþ£º
l Äں˼ì²âµ½ÐÂÓ²¼þ²åÈ룬Ȼºó·Ö±ð֪ͨhotplugºÍudev¡£Ç°ÕßÓÃÀ´×°ÈëÏàÓ¦µÄÄÚºËÄ£¿é(Èçusb-storage)£¬¶øºóÕßÓÃÀ´ÔÚ/devÖд´½¨ÏàÓ¦µÄÉ豸½Úµã(Èç/dev/sda1)¡£
l udev´´½¨ÁËÏàÓ¦µÄÉ豸½ÚµãÖ®ºó£¬»á½«ÕâÒ»ÏûϢ֪ͨhalµÄÊØ»¤³ÌÐò(hald)¡£µ±È»udev»¹µÃ±£Ö¤Ð ......
ls -l|grep ^d ----Áгöµ±Ç°Ä¿Â¼ÏµÄÎļþ¼Ð
ls -l|grep ^d|grep "tmp" ----Áгöµ±Ç°Ä¿Â¼ÏÂÃ÷×Óº¬ÓÐ"tmp"µÄÎļþ¼Ð
for dir in `ls -l ~/dxy/|grep ^d | awk '{print $9}'` ---- awk '{print $9}' ,Ö»print Îļþ¼ÐµÄÃû×Ö
do
echo "==== $dir"
cd ~/dxy;cd $dir/
t=`ls -l|grep ^d|grep " ......
The Linux USB input subsystem is a single, harmonized way to manage all input devices. This is a relatively new approach for Linux, with the system being partly incorporated in kernel version 2.4 and fully integrated in the 2.5 development series.
This article covers four basic areas: a descripti ......
ѧУ·þÎñÆ÷µÄÒ»¸öwindowsÐéÄâ»ú¿ªÆôÁËDesktop¹²Ïí£¬ÕâÑù¿ÉÒÔÔÚÅäÖò»¸ßµÄÖÕ¶ËʹÓøßÐÔÄܵĻúÆ÷£¬³ýÁËwindows¿Í»§¶Ë·ÃÎÊÍ⣬ÔÚUbuntuÀï¿ÉÒÔͨ¹ý×Ô´øµÄ rdesktop·ÃÎÊ£¬¸Ã³ÌÐòΪÃüÁîÐÐÐÎʽ¡£²ÎÊý½Ï¶à£¬±È½ÏÓÐÓõÄÊÇÌṩԶ³ÌÓë±¾µØ½»»¥µÄ-r²ÎÊý¡£
È磺
rdesktop -r disk:floppy=/home/xiajing/t 192.168.111.111 ......