作者: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可以上網浏覽了^_^