没有深究的学命令,哈哈,反正先图个感性认识. 让自己的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. 让自己可以上网 :
   安装 rp-pppoe :
   tar xvfz rp-pppoe-3.8.8.tar.gz
   cd rp-pppoe-3.8.8
   ./go
   帐号:
   DNS: 209.128.252.238    202.96.128.86  (winxp:  ipconfig /all 命令可以查看)
    pppoe-start
    route add default gw ip ( ip 通过ifconfig -a查看到 pppoe附近那个ip就是)
    pppoe-stop
6. tar解压命令: tar -xvfz *tar.gz   /   tar jxvf *.bz2

.//单机时代和网络时代是这样划分的: //下面是抄袭的(非原创)
FC5 装 RP-PPPOE上网:
步骤:
1、在WINDOWS里用IPCONFIG/ALL,查看DNS,并记录在纸上(有些人讲这一步不用做,我为了求稳,还是做了)
2、在WINDOWS里上网,进入http://www.roaringpenguin.com/pppoe/,下载名为rp-pppoe的软件rp-pppoe-3.2.tar.gz
3、重启,进入linux fc5,将rp-pppoe复制到LINUX分区下(关于如果从WINDOWS分区下将文件复制到LINUX分区下,请参见mount命令)
4、解压缩 
    #tar xvfz rp-pppoe-3.2.tar.gz 
    #cd rp-pppoe-3.2 
5、进行编译和安装 
    运行脚本 
    #./go
      此时会进入配置
6、配置
  >>> Enter your PPPoE user name : 
  输入ADSL帐号的用户名(不是你给他取名) ,我的是888888@glcrc
当出现 
  >>> 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相连的网卡的名字。 
当出现 
  >>> Enter the demand value (default no): 
  输入 no 
当出现 
  >>> Enter the DNS information here: 
        输入之前抄在纸上的那两个DNS。
  或输入 server ,这表示使用ADSL拨号自动获得的DNS服务器IP地址  (我还没试过)

  >>> Please enter your PPPoE password: 
  输入ADSL帐号的密码 
当出现 
  >>> Choose a type of firewall (0-2): 
  输入 0 ,不使用防火墙 
当出现 
  >>> Accept these settings and adjust configuration files (y/n)? 
  如果输入的信息正确,输入 y ,完成配置,否则,输入 n 重新输入。 

7、# pppoe-start

原来到这一步,出现CONNECTED!的提示,我就以为可以上网了,切换到GNOME,就打开FIREFOX,之后发现还不能上网,后来发现,这是少了下面这几步。

8、先运行pppoe-stop,停掉连接。
9、当连接成功后,使用命令: 
    #ifconfig -a 
  在输出中应该含有关于 ppp0 的一堆信息,其中还绑定了 IP 地址,说明已经从拨号中获得了IP地址。 
  使用命令 
    #netstat -nr 
  查看路由表信息,这时的默认路由应该是上面获得的IP地址。如果没有默认路由,我们可以手动增加: 
    #route add default gw xxx.xxx.xxx.xxx(xxx.xxx.xxx.xxx是上面ifconfig -a命令获得的IP地址)
  使用命令 
    #nslookup www.sina.com.cn 
 
  如果解析出新浪的IP,说明已经从拨号中正确获得了DNS服务器。 
  最后,使用命令ping某个域名或IP,如果有响应,表示你已经大功告成了。

以后每次运行完pppoe-start命令之后,都还要进行第9步的操作。

posted on 2006-10-16 15:49 pear 阅读(539) 评论(2)  编辑  收藏
Comments
  • # re: 今天开始真正的用 Linux呵呵 ,虚拟机的 时代 已经成为 历史,哈哈
    sislcb
    Posted @ 2006-10-26 16:28
    牛X的说!!!  回复  更多评论   
  • # re: 今天开始真正的用 Linux呵呵 ,虚拟机的 时代 已经成为 历史,哈哈
    pear
    Posted @ 2006-10-26 17:12
    对了,小PK,忘了你Blog的地址。  回复  更多评论   

只有注册用户登录后才能发表评论。


网站导航: