四川的学生进来一下..

需要面对面帮助?请寻求当地校园社团支持!
回复
PhantomL
帖子: 8
注册时间: 2010-12-08 18:55

四川的学生进来一下..

#1

帖子 PhantomL »

各位来自四川的同学是不是都要用协同拨号器上网..我在U系统里安装了协同拨号器但是还是不能上网..谁能给我一个详细的教程啊..谢谢啦..
网上那个sudo Dial就免了..
头像
micross
帖子: 148
注册时间: 2009-05-01 13:09
联系:

Re: 四川的学生进来一下..

#2

帖子 micross »

试试用这个吧,协同拨号器2.05 版的,以前广西的高校在用,现在用不着了,因为现在电信取消了限制啦

代码: 全选

#!/bin/sh

read -p "帐号:" USER_NAME
read -p "密码:" PASSWORD

PPP_ON_BOOT=/etc/ppp/ppp_on_boot

case "$1" in
  -*) echo "
Usage: pon [provider] [arguments]

If pon is invoked without arguments, $PPP_ON_BOOT file will be
run, presuming it exists and is executable. Otherwise, a PPP connection
will be started using settings from /etc/ppp/peers/provider.
If you specify one argument, a PPP connection will be started using
settings from the appropriate file in the /etc/ppp/peers/ directory, and
any additional arguments supplied will be passed as extra arguments to
pppd.
"
      exit 0
      ;;
esac

if [ -z "$1" -a -x "$PPP_ON_BOOT" ]; then
  exec "$PPP_ON_BOOT"
fi

if [ -z "$1" -a ! -f /etc/ppp/peers/provider ]; then
  echo "
Please configure /etc/ppp/peers/provider or use a command line argument to
use another file in /etc/ppp/peers/ directory.
"
  exit 1
fi

if [ "$1" -a ! -f "/etc/ppp/peers/$1" ]; then
  echo "
The file /etc/ppp/peers/$1 does not exist.
"
  exit 1
fi

time=`date +%s`
str=`echo "obase=16;$time" | bc | tr A-Z a-z`

md5str=`echo -n ${str}"TaijDa"${USER_NAME}${PASSWORD} | md5sum | cut -c 1-20`
USER="~ghca"${str}"2005"${md5str}${USER_NAME}

exec /usr/sbin/pppd call ${@:-dsl-provider} user ${USER} password ${PASSWORD}
如果人家问你怎么胖了?你就说我忘了......不要解释,越解释越悲伤......
回复