您的位置:威尼斯城vnsc登入平台 > 网络信息 > Ubuntu 威尼斯城vnsc登入平台8.04下通过PPC手机上网

Ubuntu 威尼斯城vnsc登入平台8.04下通过PPC手机上网

2019-10-21 04:25

一般来说,在安装操作系统之后,系统会推荐一定的驱动更新,如果有些不合适,那么你可以选择手动更新。例如有的wireless无线驱动工作不正常,sudo ifconfig也不存在wlan0,那么你就必须采取手动安装方法。

在Windows下通过微软件的同步软件,非常容易实现通过PPC 的EDGE上网。但是Linux下稍微麻烦一点。笔者经过一番努力终于成功。以下和大家分享成功的乐趣

首先,先判断什么驱动工作不正常。是声卡,还是显卡,还是无线模块。

威尼斯城vnsc登入平台 1

然后,在去官方网站下载驱动包,注意选择操作系统和应用平台(i386,X86,X86_64),

再根据安装包的不同采取操作。是需要编译的源代码,还是bin程序。

1.Ubuntu 8.04 其实已经带有rndis_host的驱动,能将PPC手机当成网卡处理。只是不知道为什么内置的驱动无法与手机联机。使用以下驱动替换内置驱动即可

如果是源代码,一定要先阅读readme,执行

2.下载新的驱动。点击下载

sudo make

3.解压后。设置文件权限。sudo chmod 777 -R usb

sudo make install

4.make 编译

sudo reboot

make -C /lib/modules/2.6.24-18-generic/build SUBDIRS=/home/wolf/software/usb modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-18-generic'
CC [M] /home/wolf/software/usb/usbnet.o
CC [M] /home/wolf/software/usb/cdc_ether.o
CC [M] /home/wolf/software/usb/rndis_host.o
Building modules, stage 2.
MODPOST 3 modules
CC /home/wolf/software/usb/cdc_ether.mod.o
LD [M] /home/wolf/software/usb/cdc_ether.ko
CC /home/wolf/software/usb/rndis_host.mod.o
LD [M] /home/wolf/software/usb/rndis_host.ko
CC /home/wolf/software/usb/usbnet.mod.o
LD [M] /home/wolf/software/usb/usbnet.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-18-generic'

例如安装realtek的无线驱动

5.sudo ./clean.sh 运行目录下的该程序,它会自动删除内置驱动。(如果出现sudo: ./clean.sh: command not found )是因为权限问题。一定要先将该文件设置可执行

baidu@ww.baidu.org.tw:~/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011$ sudo make

已删除 “/lib/modules/2.6.24-18-generic/kernel/drivers/net/usb/usbnet.ko”
已删除 “/lib/modules/2.6.24-18-generic/kernel/drivers/net/usb/cdc_ether.ko”
已删除 “/lib/modules/2.6.24-18-generic/kernel/drivers/net/usb/rndis_host.ko”
Done! :)

[sudo] password for pp:

6.sudo make install

make -C /lib/modules/2.6.35-28-generic/build M=/home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011 modules

make -C /lib/modules/2.6.24-18-generic/build SUBDIRS=/home/wolf/software/usb modules_install
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-18-generic'
INSTALL /home/wolf/software/usb/cdc_ether.ko
INSTALL /home/wolf/software/usb/rndis_host.ko
INSTALL /home/wolf/software/usb/usbnet.ko
DEPMOD 2.6.24-18-generic
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-18-generic'
depmod -ae

make[1]: Entering directory `/usr/src/linux-headers-2.6.35-28-generic'

7.修改/etc/network/interfaces文件,在
auto lo
iface lo inet loopback
下面加入

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/base.o

auto rndis0
iface rndis0 inet dhcp

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rc.o

8.然后连接PPC USB线,启动 internet共享程序

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/debug.o

9.激活rndis0

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/regd.o

sudo ifconfig rndis0 up

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/efuse.o

10.从DHCP获取IP地址

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/cam.o

sudo dhclient rndis0 

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/ps.o

DHCPDISCOVER on rndis0 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 192.168.0.103 from 192.168.0.1
DHCPREQUEST of 192.168.0.103 on rndis0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.103 from 192.168.0.1
bound to 192.168.0.103 -- renewal in 109104 seconds.

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/core.o

到如,已成功取得IP,如用是CMNET方式的可以直接上网。如果是CMWAP请设置代理!

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/pci.o

威尼斯城vnsc登入平台 2

LD [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtlwifi.o

Building modules, stage 2.

MODPOST 1 modules

CC      /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtlwifi.mod.o

LD [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtlwifi.ko

make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-28-generic'

make[1]: Entering directory `/home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce'

make -C /lib/modules/2.6.35-28-generic/build M=/home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce modules

make[2]: Entering directory `/usr/src/linux-headers-2.6.35-28-generic'

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/hw.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/table.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/sw.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/trx.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/led.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/fw.o

/home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/fw.c: In function ‘rtl92c_download_fw’:

/home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/fw.c:240: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long unsigned int’

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/phy.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/rf.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/dm.o

LD [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/rtl8192ce.o

Building modules, stage 2.

MODPOST 1 modules

CC      /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/rtl8192ce.mod.o

LD [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce/rtl8192ce.ko

make[2]: Leaving directory `/usr/src/linux-headers-2.6.35-28-generic'

make[1]: Leaving directory `/home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192ce'

make[1]: Entering directory `/home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se'

make -C /lib/modules/2.6.35-28-generic/build M=/home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se modules

make[2]: Entering directory `/usr/src/linux-headers-2.6.35-28-generic'

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/hw.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/table.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/sw.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/trx.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/led.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/fw.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/phy.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/rf.o

CC [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/dm.o

LD [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/rtl8192se.o

Building modules, stage 2.

MODPOST 1 modules

CC      /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/rtl8192se.mod.o

LD [M]  /home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se/rtl8192se.ko

make[2]: Leaving directory `/usr/src/linux-headers-2.6.35-28-generic'

make[1]: Leaving directory `/home/pp/Desktop/rtl_92ce_92se_92de_linux_mac80211_0003.0401.2011/rtl8192se'

本文由威尼斯城vnsc登入平台发布于网络信息,转载请注明出处:Ubuntu 威尼斯城vnsc登入平台8.04下通过PPC手机上网

关键词: