首页 > 科技 > Saturday morning

Saturday morning

2005年7月16日 7点06分 发表评论 阅读评论

Play a directory contains music files (mp3,wmv) by issuing the following command:
# mplayer /mnt/c/0701
mplayer will play all the music in order automaticlly.It’s funny and convienence.
In this morning ,listening soft music makes my heart clear, in other words, reset myself operating system.I always consider that peope is such system with high advanced spirits.

How to display Chinese language in lynx browser? In my home machine whose operating system is Fedora Core 3,I could not display Chinese of both GB2312 and Big5. When I installed lynx in the office, by updating packages supplied by Red Hat 9.0 CD2,it will be fine where system environment is supporting Chinese.
However,this only can be tested successfullly in the terminal when X service has beening runing.In the console mode,lynx could only work well with English language.It’s annoy.

If no response when issue the rpm command,we can resolve in this way:
# rm -rf /var/lib/rpm/-db.*

Checking which program was running in the port22,
# lsof -i :22
lsof means list open files.Using the following commands to identify which programs are running in the defined process’s name and ID:
# lsof -c processe’s name
# lsof -p PID (process’s ID)

For high security,I created user count name “Phillip”.when I log with this user,
and open a new terminal, issue the commands:
#su root
Password:
#fdisk -l (and df, ifconfig so on)
bash:fdisk:command not find.
Attention! There is nothing between string “su” and “root”.I modified this command : # su – root (there are a blankspace between the “-” and “root”,it is very important). and then execute those commands like fdisk,df,ifconfig, everything is ok now.

If the system cannot connect to the Internet through the ethernet device is installed rightly and has been activate,we can try to find the error reason in the following way:
# ping itself(192.168.1.x,or 127.0.0.1)
# ping default gateway
# tracerouter DNS server’s IP address
and if all the above testing was passed,issue the following commands:
# nslookup www.163.com
# ping www.163.com
# tracerouter www.163.com
Using 163.com to test error happens in which step.

Gateway:192.168.1.0 equals 255.255.255.0

#host
#host -t MX powerleader.com.cn
powerleader.com.cn mail is handled by 10 mail.powerleader.com.cn
powerleader.com.cn mail is handled by 5 mailgate powerleader.com.cn

Watching the router’s infomation:
# netstat -n
# router -n
netstat: print network connections,routing tables,interface,statistics,masquerade connections and multiacst memberships.

Identify which mode the Fiber device is working in:
# getconf WORD_BIT
the result is 32 in my PC which is 32bit system in the office,and will be 64 (bit) in those 64bit platform.

分类: 科技 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.
您必须在 登录 后才能发布评论.