沒有深究的學(xué)命令,哈哈,反正先圖個(gè)感性認(rèn)識(shí). 讓自己的Linux滿足日常生活所需。。
1. 安裝iso文件 :mount -t iso9660 /home/xxxx.iso /mnt/cdrom -o loop
2. 文件(目錄)改名:? mv 舊名 新名
3. rpm安裝命令:?? rpm -ivh *.rpm
4.? 讓下載的jdk可以安裝:?? chmod u+x *.bin?
5. 讓自己可以上網(wǎng) :
?? 安裝 rp-pppoe :
?? tar xvfz rp-pppoe-3.8.8.tar.gz
?? cd rp-pppoe-3.8.8
?? ./go
?? 帳號(hào):
?? DNS: 209.128.252.238??? 202.96.128.86? (winxp:? ipconfig /all 命令可以查看)
??? pppoe-start
??? route add default gw ip ( ip 通過ifconfig -a查看到 pppoe附近那個(gè)ip就是)
??? pppoe-stop
6. tar解壓命令: tar -xvfz *tar.gz ? / ? tar jxvf *.bz2
.//單機(jī)時(shí)代和網(wǎng)絡(luò)時(shí)代是這樣劃分的: //下面是抄襲的(非原創(chuàng))
FC5 裝 RP-PPPOE上網(wǎng):
步驟:
1、在WINDOWS里用IPCONFIG/ALL,查看DNS,并記錄在紙上(有些人講這一步不用做,我為了求穩(wěn),還是做了)
2、在WINDOWS里上網(wǎng),進(jìn)入http://www.roaringpenguin.com/pppoe/,下載名為rp-pppoe的軟件rp-pppoe-3.2.tar.gz
3、重啟,進(jìn)入linux fc5,將rp-pppoe復(fù)制到LINUX分區(qū)下(關(guān)于如果從WINDOWS分區(qū)下將文件復(fù)制到LINUX分區(qū)下,請(qǐng)參見mount命令)
4、解壓縮?
#tar xvfz rp-pppoe-3.2.tar.gz?
#cd rp-pppoe-3.2?
5、進(jìn)行編譯和安裝?
運(yùn)行腳本?
#./go
????? 此時(shí)會(huì)進(jìn)入配置
6、配置
>>> Enter your PPPoE user name :?
輸入ADSL帳號(hào)的用戶名(不是你給他取名) ,我的是888888@glcrc
當(dāng)出現(xiàn)?
>>> Enter the Ethernet interface connected to the ADSL modem?
For Solaris, this is likely to be something like /dev/hme0.?
For Linux, it will be ethn, where 'n' is a number.?
(default eth0):?
輸入 eth0 ,這是ADSL相連的網(wǎng)卡的名字。?
當(dāng)出現(xiàn)?
>>> Enter the demand value (default no):?
輸入 no?
當(dāng)出現(xiàn)?
>>> Enter the DNS information here:?
??????? 輸入之前抄在紙上的那兩個(gè)DNS。
或輸入 server ,這表示使用ADSL撥號(hào)自動(dòng)獲得的DNS服務(wù)器IP地址? (我還沒試過)
>>> Please enter your PPPoE password:?
輸入ADSL帳號(hào)的密碼?
當(dāng)出現(xiàn)?
>>> Choose a type of firewall (0-2):?
輸入 0 ,不使用防火墻?
當(dāng)出現(xiàn)?
>>> Accept these settings and adjust configuration files (y/n)??
如果輸入的信息正確,輸入 y ,完成配置,否則,輸入 n 重新輸入。?
7、# pppoe-start
原來到這一步,出現(xiàn)CONNECTED!的提示,我就以為可以上網(wǎng)了,切換到GNOME,就打開FIREFOX,之后發(fā)現(xiàn)還不能上網(wǎng),后來發(fā)現(xiàn),這是少了下面這幾步。
8、先運(yùn)行pppoe-stop,停掉連接。
9、當(dāng)連接成功后,使用命令:?
#ifconfig -a?
在輸出中應(yīng)該含有關(guān)于 ppp0 的一堆信息,其中還綁定了 IP 地址,說明已經(jīng)從撥號(hào)中獲得了IP地址。?
使用命令?
#netstat -nr?
查看路由表信息,這時(shí)的默認(rèn)路由應(yīng)該是上面獲得的IP地址。如果沒有默認(rèn)路由,我們可以手動(dòng)增加:?
#route add default gw xxx.xxx.xxx.xxx(xxx.xxx.xxx.xxx是上面ifconfig -a命令獲得的IP地址)
使用命令?
#nslookup www.sina.com.cn?
?
如果解析出新浪的IP,說明已經(jīng)從撥號(hào)中正確獲得了DNS服務(wù)器。?
最后,使用命令ping某個(gè)域名或IP,如果有響應(yīng),表示你已經(jīng)大功告成了。
以后每次運(yùn)行完pppoe-start命令之后,都還要進(jìn)行第9步的操作。