作者:chinaboy笔记本:IBM THINKPAD 570E手机: 三菱M320
一、硬件设定。开机,按F1进BIOS,enable serial port,enable infrared。
二、安装irda-utils0.9.14下载地址:http://sourceforge.net/project/showf...?group_id=5616解压--- -./configure ------ make all -----make install
三、编辑红外脚本myirdavi 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{startstop}" echo "" exit 1
esac exit 0 保存chmod 755 myirdachmod 755 /dev/ircomm0开启:./myirda start关闭:./myirda stop
四、测试:打开手机红外线,对准接收窗口,./myirda start,运行irdadump命令,应该有数据显示,否则红外设置不成功。
五、建立拨号连接:我用gnome,系统工具----互联网配制向导-----调制解调器连接建立MODEM如下图:图1配制连接如下图:图2图3拨号:ifup ppp0在opera中设置代理服务器: http 10.0.0.172:80可以上网浏览了^_^
(出处:http://www.sheup.com)