redhat下搞定红外线/GPRS/WAP代理上网

http://tech.ddvip.com   2006年08月11日    社区交流

本文详细介绍redhat下搞定红外线/GPRS/WAP代理上网

  一、硬件设定。

  开机,按F1进BIOS,enable serial port,enable infrared。

  二、安装irda-utils0.9.14

  解压--- -./configure ------ make all -----make install

  三、编辑红外脚本myirda

  vi myirda

  内容如下:

  #!/bin/sh
#Start up the IrDA process and load necessary modules
#
case "$1" in
  start)
   #Start IRDA
   echo -n "Starting up the IR modules"
modprobe irda
   modprobe ircomm
   modprobe ircomm-tty
   irattach /dev/ttyS1 -s
echo "Done."
   echo ""
   ;;
stop)
   #KILL IRDA
   echo -n "Stopping IRDA and removing used modules"
#Kill the irattach process and remove the modules
   killall -9 irattach
   rmmod ircomm-tty ircomm irda
echo "Done."
   echo ""
   ;;
*)
   echo "Usage:irdastart.sh{start|stop}"
   echo ""
   exit 1
esac
   exit 0

  保存

  chmod 755 myirda

  chmod 755 /dev/ircomm0

  开启:

  ./myirda start

  关闭:

  ./myirda stop

  四、测试:

  打开手机红外线,对准接收窗口,./myirda start,运行irdadump命令,应该有数据显示,否则红外设置不成功。

  五、建立拨号连接:

  我用gnome,

  系统工具----互联网配制向导-----调制解调器连接

  建立MODEM如下图:

  图1

  配制连接如下图:

  图2

  图3

  拨号:

  ifup ppp0

  在opera中设置代理服务器: http 10.0.0.172:80

  可以上网浏览了^_^

责编:豆豆技术应用

正在加载评论...