存档

‘科技’ 分类的存档

Blowing in the wind

2005年7月18日 没有评论

How many roads must a man walk down
Before they call him a man
How many seas must a white dove sail
Before she sleeps in the sand
How many times must the cannon balls fly
Before they’re forever banned
The answer, my friend, is blowing in the wind
The answer is blowing in the wind

How many years must a mountain exist
Before it is washed to the sea
How many years can some people exist
Before they’re allowed to be free
How many times can a man turn his head
And pretend that he just doesn’t see
The answer, my friend, is blowing in the wind
The answer is blowing in the wind

How many times must a man look up
Before he can see the sky
How many ears must one man have
Before he can hear people cry
How many deaths will it take
‘Till he knows that too many people have died
The answer, my friend, is blowing in the wind
The answer is blowing in the wind

分类: 科技 标签:

POP3 commands

2005年7月18日 没有评论

POP3(Post Office Protocol 3),the 3rd version of post office protocol.It specifies the protocol which contain connection between mail server and person computer,and then downloading the mail from servers.POP3 is the first offline protocol of mail receiving.POP3 server is the mail server following the POP3 protocol.

POP3 commands:

USER username
PASS password
APOP name,digest
STAT status of mail
UIDL n
LIST n list all mails and indicate number and size
RETR n retrieve the content of mail
DELE n delete the mail
RSET comment all delete issues
TOP n,m return the first m lines of the No. n mail
NOOP
QUIT exit
I used telnet to test POP3 commands,for example,issue the following comands in the ternimal:(Note,the port of POP3 is 110)

# telnet mail.tom.com 110
Trying 219.133.55.213...
Connected to mail.powerleader.com.cn (219.133.55.213).
Escape character is '^]'.
+OK POP3 ready

And then,input username and password to list and read all mails.

Identify the language supported by the operating system:

# locale -a 

This command will list all languages supported.

Checking the new hardware:

# /etc/init.d/kudzu {start | stop}
分类: 科技 标签:

Hot and friend indeed

2005年7月17日 没有评论

It’s very hot, and I was sick. Feel terrible and have no spirit.
Computer is a friend indeed who does never lie.
It always tell me the turth,whenever and wherever.

分类: 科技 标签:

Saturday morning

2005年7月16日 没有评论

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.

分类: 科技 标签:

Fedora/mplayer

2005年7月15日 没有评论

In Fedora Core 3, I installed mplayer with rpm package. Issuing the following command to play DVD programs:

# cat /etc/fstab  

Identify the dvd mounting point.For example, the location is /dev/hdc.

# mplayer /dev/hdc

Then a playing windown jumpes out, and it will play the DVD .However , I still could not play the file as wmv format. I found the reason may be mplayer should get better performance through compliering installation which will get play in higher quarlity and I/O rate.Realplay10 for linux also be installed in my computer,but I can only hear the voice,no picture displayes.I have not found the key to resolve this problem.

Fedora 1 in SE7520JR2
After installing Fedora1 in SE7520JR2(PR2700) platform, I try to add two ethernet device which are Marvell and Intel Pro1000 to the operating system.First,Intel Pro1000 device was choose to install, at final step,I issue the following command:insmod e1000, in order to add device to the running kernel.Second,complied the Marvell source code.But some thing wrong happened.Only one ethernet device was found in the module list through executing the command:

#dmesg | grep eth

So I changed the queue .Install Marvell at first and then install Intel Pro1000 device.Hmmm,

#lsmod sk98lin          
- dedicate the Marvell ethernet deviee was active.
#lsmod e1000            
- in this way,I found e1000 module was unused.

Then, I used the command:

#ifconfig eth1 up

One ethernet device(Marvell) was found in the network device list,but two hardware recognized by the Linux were listed.

#cd /etc/sysconfig/network-script
#cp ifcfg-eth0 ifcfg-eth1

and edit parameters in ifcfg-eht1.

# service network restart

OK,two network devices were installed successfully.

分类: 科技 标签:

Linux tips

2005年7月13日 没有评论

What is patch? Apply a diff file to an original.
What is hwclock? Query and set the hardware clock.

In RedHat Linux,issue the following command to modify the time or date:
#timeconfig
select Asica/Shanghai
#ntpdate
sync the time with the specified time server
#date

Instead of strings in vi tools:
:%s/string/new_string/8

Check the running leve:
#runlever
I issue this command in GUI of Linux 9.0, the result was 3.

Identify the logining user:
#who am i
#whoami print effective user id
#id print read and effective UIDs and GIDs

We can create and edit this file “/etc/motd” to display own messages when login in.

What is “NONUS”? It means non-US.
Execute the following command to reset the language of system:
# export LANG=”en-US”
Sometimes,this method resolves some Code displaying matters.

分类: 科技 标签:

Lynx Browser

2005年7月12日 没有评论

Lynx is a type of browser in text mode running in terminal.Download the install package named as “.tar,gz” from internet, and then issue the following commands:

# tar zxvf  lynx-2.8.4dev.19.tar.gz
# cd /lynx-2.8.4
# ./configure
# make  

After executed the final command, the Lynx was installed in the system successfully.Opening a new terminal or hit “ctrl + alt + F2”, issues the “lynx”,and then ,we will get in a text mode browser.Its default homepage is “www.lynxbrowser.org”,we can just modify the startpage in the file which is located on “/usr/local/lib/lynx.cfg” or “$home/lynx-2.8.4/lynx.cfg”.Both of above two files are linked to one file in fact.
I tried to change the language setting to display simplify Chinese and traditional Chinese,but failed.As result,it seems only English would have been supported.In the Lynx browser,it does not show the pictures and flash movies,so it speeds up the opening rate greatly.I think it would be more useful in those machines which run very slowly,for example,486 or higher computers.

This afternoon,Cao Sheng and I went to UP Co. in order to resolve the fiber ether devices installing problem.The customer said he did what I’ve told him to do by email of yesterday.He selected the packages and installed the operating system as Red Hat Linux 9.0, but had found no ethernet device afer rebooting when completed installing processing. In the UP lab, I installed the operating system again by myself,and issued the following command:

# insmod e1000

which I thought the customer did not do this job after issuing “make install”.Before I executed the insmod command, I found no ethernet device by issuing “ifconfig” which is used to checking the net device.After issuing this command,and then check the ethernet devices again :

# ifconfig
# service network restart   

or

# /etc/rc.d/init.d/network reload

the ethernet devices were listed in the terminal or Network interface in GNOME.
Using ping command to identify these device,they runs OK.

分类: 科技 标签:

SuSE’s SaX2

2005年7月11日 没有评论

SaX2 of SuSE Linux is used to configure the hardware’s parameter,for example,graphics card,ethernet device.SaX2 acts as like Devices Administrator in Windows.
Yast administrates the files throught GUI which like Source Explorer in Windows.

“The device has been validated to run at 80MB/s and should support,(**) 320MB/s when the operating system is loaded” . Configure the RAID0 included two harddisk and left one disk.

What’s LVD?Low Voltage Differential.

#hostname 
#vi /etc/sysconfig/hostname

Using the above commands to show or set the system’s host name.

#vi /etc/inittab

find the strings like “id:x initdefault”. x=3 means startup in text mode,and x=5 means GUI mode.We could configure the x parameter to decide the mode which we want Linux to start in.

mount ISO files

#mount -o loop /abc.iso /mnt/cdrom

mount DVD.

#mount -t iso9660 /dev/dvd /mnt/cdrom
#mount -t udf /dev/dvd /mnt/cdrom

Check hardware info:

#cat /proc/cpuinfo
#cat /proc/meminfo
#cat /proc/interrupt
#cat /proc/ioports
#cat /proc/partitions         
#cat /proc/pci
#cat /proc/swaps

To configure the language of system.

#vi /etc/sysconfig/i18n

Convert cdrom files to ISO files.

#cp /dev/cdrom *.iso
#dd if=/dev/cdrom of=/tmp/*.iso

SMP: symmetric multiple processor
UP : unique process
bigmem: support memory which is more than 1G.

View the color setting by default.

#dircolor -p

If want to install other language package after completing install system,we would insert the RH 9.0 CD3, and then find the specific language package.

To select or un-select the service running.

#chkconfig --list
#ntsysc
#setup

RedHat 9.0 common packages installed:
Desktop:
-X window system
-GNOME Desktop Environment
Application:
-None
Servers:
-None
Development:
-Development Tools
-Kernel Development
-X software Development
System
-Administration Tools
-System Tools

We can remember these packages by the numeric strings “2-3-2”.

分类: 科技 标签:

PR2510’s problem

2005年7月9日 没有评论

PR2510 is based on Intel 7520BD2 server broad.There are total four SCSI harddisks.The customer need three disks to form RAID0 and install Windows server 2003.After configuring the parameter of LSI SCSI,the following messages displayed in the screen:the partition of RAID0 by three disks has 320MB/s rate,however the left one harddisk’s rate is only 80M/S! Below the rate list,these texts displayed: The harddisk is 80M/S,and will support 320M/s when operation system is loaded.

Tang said the state is not error.I will read the LSI documents to probe his words.

分类: 科技 标签:

Install Ethernet card in SE7520JR2

2005年7月9日 没有评论

Server Platform: Intel 7520JR2
Operating system: Red Hat Linux 9.0(2.4.20)

Using the following commands to install Intel 82545 ethernet card who driver is same as Intel 82546(The board has two 82546 ethernet card,and we added four 82545 card through external card inserted in two slots).

# make install

Configure eth0’s IP and name

# vi /etc/sysconfig/networking-scripts/ifeth0

Copy the driver file for eth1,because they use same drivers.

# cp ifeth0 ifeth1

Configure eth1’s parameter,change the IP and name

# vi /etc/sysconfig/networking-scripts/ifeth1

Copy the driver file for eth2,because they use same drivers.

# cp ifeth0 ifeth2

Configure eth2’s parameter,change the IP and name

# vi /etc/sysconfig/networking-scripts/ifeth2 

……
Copy the driver file for eth5,because they use same drivers.

# cp ifeth0 ifeth5

Configure eth5’s parameter,change the IP and name

# vi /etc/sysconfig/networking-scripts/ifeth5 

Identify whether these devices are installed correctly

 # service network restart

or

# /etc/rc.d/init.d/network reload 
分类: 科技 标签: