Gentoo Linux で AirH" する。
AirH on Linux を参考しつつ Gentoo Linux のやり方?っぽくしてみる。
# emerge sys-apps/pcmciautils
# emerge net-dialup/ppp
# ln -s /etc/init.d/net.lo /etc/init.d/net.ppp0
# emerge net-dialup/ppp
# ln -s /etc/init.d/net.lo /etc/init.d/net.ppp0
/etc/conf.d/net を編集。
config_ppp0=( "ppp" )
link_ppp0="/dev/ttyS0" #
username_ppp0='prin'
password_ppp0='prin'
pppd_ppp0=(
"defaultroute" # Make this PPP interface the default route
"usepeerdns" # Use the DNS settings provided by PPP
"lock" # Lock serial port
"115200" # Set the serial port baud rate
"modem crtscts" # Enable hardware flow control
)
chat_ppp0=(
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'ERROR'
'ABORT' 'NO ANSWER'
'ABORT' 'BUSY'
'ABORT' 'Username/Password Incorrect'
'TIMEOUT' '5'
'' 'ATZ'
'OK' 'ATDT電話番号(例: 0570570711##64)'
'TIMEOUT' '60'
'CONNECT' ''
)
link_ppp0="/dev/ttyS0" #
username_ppp0='prin'
password_ppp0='prin'
pppd_ppp0=(
"defaultroute" # Make this PPP interface the default route
"usepeerdns" # Use the DNS settings provided by PPP
"lock" # Lock serial port
"115200" # Set the serial port baud rate
"modem crtscts" # Enable hardware flow control
)
chat_ppp0=(
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'ERROR'
'ABORT' 'NO ANSWER'
'ABORT' 'BUSY'
'ABORT' 'Username/Password Incorrect'
'TIMEOUT' '5'
'' 'ATZ'
'OK' 'ATDT電話番号(例: 0570570711##64)'
'TIMEOUT' '60'
'CONNECT' ''
)
で、
# /etc/init.d/net.ppp0 start
いらないオプションがありそうな気もするがとりあえずつながったのでOK。
コメントする