ubuntu12.04下怎么登录移动随E行(注:是有线的)
-
- 帖子: 5
- 注册时间: 2012-08-24 19:15
ubuntu12.04下怎么登录移动随E行(注:是有线的)
学校新办移动随e行,生活区没有无线,通过寝室端口连接,需要随e行客户端。打开网页出现一个界面,连接成功之后打开随e行客户端,输入帐号密码点连接就可以了,这是在windows7下的连接方式,在ubuntu下还没有客户端,网上基本没有方法,不知有没有人用过,毕竟是新开通的网络
-
- 帖子: 5
- 注册时间: 2012-08-24 19:15
Re: ubuntu12.04下怎么登录移动随E行(注:是有线的)
/etc/chatscripts/3g
/etc/ppp/peers/3g
/home/user/g3
插入设备后执行脚本sudo ./g3 即可。 ps:理论上支持所有debian 系的linux 系统!
这是网上找里好久找到的一个教程,不能用,感觉有问题。下面是三段程序,第三个明显有问题,有大神会的话教一下
第一个:
# This chatfile was generated by pppconfig 2.3.18.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth PAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
'' ATE0V1
'' ATS0=0
'' AT+CGDCONT=1,"IP","cmnet"
'' AT+CFUN=1
# ispnumber
OK-AT-OK "ATDT*99***1#"
# ispconnect
CONNECT \d\c
# prelogin
# ispname
# isppassword
# postlogin
# end of pppconfig stuff
第二个:
# This optionfile was generated by pppconfig 2.3.18.
#
#
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/3g"
debug
/dev/ttyUSB1
460800
defaultroute
noipdefault
user "hzxia67162211"
password "67162211"
remotename 3g
ipparam 3g
usepeerdns
第三个:
#!/bin/sh
echo ""
echo "write by [email protected]"
echo ""
echo "正在加载新驱动,请等待10秒钟..."
echo ""
eject /dev/sr1
sleep 5
echo "modprobe usbserial vendor=0x19d2 product=0x0079..."
echo ""
modprobe usbserial vendor=0x19d2 product=0x0079
echo "正在拨号中..."
echo ""
sleep 15
echo "pon 3g..."
echo ""
pon 3g
echo "等待10秒钟,完成拨号..."
echo ""
sleep 10
echo "拨号完成,开始你愉快的网络旅行吧."
/etc/ppp/peers/3g
/home/user/g3
插入设备后执行脚本sudo ./g3 即可。 ps:理论上支持所有debian 系的linux 系统!
这是网上找里好久找到的一个教程,不能用,感觉有问题。下面是三段程序,第三个明显有问题,有大神会的话教一下
第一个:
# This chatfile was generated by pppconfig 2.3.18.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth PAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
'' ATE0V1
'' ATS0=0
'' AT+CGDCONT=1,"IP","cmnet"
'' AT+CFUN=1
# ispnumber
OK-AT-OK "ATDT*99***1#"
# ispconnect
CONNECT \d\c
# prelogin
# ispname
# isppassword
# postlogin
# end of pppconfig stuff
第二个:
# This optionfile was generated by pppconfig 2.3.18.
#
#
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/3g"
debug
/dev/ttyUSB1
460800
defaultroute
noipdefault
user "hzxia67162211"
password "67162211"
remotename 3g
ipparam 3g
usepeerdns
第三个:
#!/bin/sh
echo ""
echo "write by [email protected]"
echo ""
echo "正在加载新驱动,请等待10秒钟..."
echo ""
eject /dev/sr1
sleep 5
echo "modprobe usbserial vendor=0x19d2 product=0x0079..."
echo ""
modprobe usbserial vendor=0x19d2 product=0x0079
echo "正在拨号中..."
echo ""
sleep 15
echo "pon 3g..."
echo ""
pon 3g
echo "等待10秒钟,完成拨号..."
echo ""
sleep 10
echo "拨号完成,开始你愉快的网络旅行吧."
-
- 帖子: 5
- 注册时间: 2012-08-24 19:15
Re: ubuntu12.04下怎么登录移动随E行(注:是有线的)
ying@ying-Satellite-M600:/home$ sudo g3
write by [email protected]
正在加载新驱动,请等待10秒钟...
eject: 不能够找到或者打开设备原因为: `/dev/sr1'
modprobe usbserial vendor=0x19d2 product=0x0079...
正在拨号中...
pon 3g...
/usr/sbin/pppd: In file /etc/ppp/peers/3g: unrecognized option '/dev/ttyUSB1'
等待10秒钟,完成拨号...
拨号完成,开始你愉快的网络旅行吧.
write by [email protected]
正在加载新驱动,请等待10秒钟...
eject: 不能够找到或者打开设备原因为: `/dev/sr1'
modprobe usbserial vendor=0x19d2 product=0x0079...
正在拨号中...
pon 3g...
/usr/sbin/pppd: In file /etc/ppp/peers/3g: unrecognized option '/dev/ttyUSB1'
等待10秒钟,完成拨号...
拨号完成,开始你愉快的网络旅行吧.
-
- 帖子: 5
- 注册时间: 2012-08-24 19:15
Re: ubuntu12.04下怎么登录移动随E行(注:是有线的)
上面那个是执行的内容,肯定是有问题的,但就是怎么修改原代码呢