Nie jestem zbyt zaawansowanym użytkownikiem linuksa i nie moge sobie poradzić z konfiguracją neta pod linuksem. Zastosowałem się do tego http://wwwu.uni-klu.ac.at/agebhard/GlobeSurfer/[/url]. Kolega mi to mozna powiedzieć spolszczył:
Kod: Zaznacz cały
Zaczynamy od „sudo su”, żeby było łatwiej :P
Skopiuj sobie te dwa pliki co ściągnąłeś do katalogu głównego /home/ubuntu;/home/adix;/home/dos – zależnie od nazwy użytkownika :D
dpkg -i libusb-dev_0.1.12-2_i386.deb
gcc -lusb -o icon_switch icon_switch.c
cp icon_switch /usr/sbin/icon_switch
chmod 777 /usr/sbin/icon_switch
/usr/sbin/icon_switch
modprobe usbserial vendor=0x0af0 product=0x6600
nano /etc/udev/rules.d/50-globesurfer-icon.rules
(zamiast nano może być Twój ulubiony edytor tekstowy :D)
I teraz w okienku co się otworzy wpisujesz:
UBSYSTEM=="usb", SYSFS{idProduct}=="1000", SYSFS{idVendor}=="05c6", RUN+="/usr/sbin/globesurfer-icon-switch.sh"
UBSYSTEM=="usb", SYSFS{idProduct}=="6600", SYSFS{idVendor}=="0af0", RUN+="/sbin/modprobe usbserial vendor=0x0af0 product=0x6600"
Zapisujesz i wychodzisz
Potem znowu w ulubionym edytorze tekstowym (np. nano):
nano /usr/sbin/globesurfer-icon-switch.sh
wpisujesz:
#!/bin/sh
# make sure the box is active in storage mode,
# therefore trigger a scsi bus scan
modprobe sd_mod
echo "scsi add-single-device 0 1 2 3" > /proc/scsi/scsi
# run real switch in background
# (waits some seconds for the storage device to settle)
/usr/sbin/globesurfer-icon-switch-child.sh &
exit 0
oraz potem:
nano /usr/sbin/globesurfer-icon-switch-child.sh
i wpisujesz:
#!/bin/sh
# wait for the usb disk to settle
sleep 10
# for debugging:
# env >> /tmp/globe.log
# now run the real switch command, keep some logs
/usr/sbin/icon_switch >>/tmp/globe.log 2>&1 &
sleep 1
exit 0
nano /etc/ppp/peers/umts
# usbserial device, some options:
/dev/ttyUSB0
460800
idle 7200
lock
crtscts
modem
noauth
# dns, routing
usepeerdns
replacedefaultroute
defaultroute
noipdefault
# avoid compression:
noccp
nobsdcomp
novj
# usually doesnt matter for GPRS/UMTS connections:
user "web"
password ""
# connect script
connect "/usr/sbin/umts-chat.sh"
# t-mobile specific?
ipcp-restart 8
ipcp-max-configure 50
ipcp-accept-local
ipcp-accept-remote
nano /usr/sbin/umts-chat.sh
#!/bin/sh
# call the preparation chat script (with pin and if this fails without pin)
/usr/sbin/chat -V -f /etc/chatscripts/umts-prep || /usr/sbin/chat -V -f /etc/chatscripts/umts-prep-nopin
# wait to switch between GPRS/UMTS
sleep 20
# the final chat script:
/usr/sbin/chat -V -f /etc/chatscripts/umts
nano /etc/chatscripts/umts-prep
ABORT BUSY
ABORT ERROR
ABORT 'NO CARRIER'
REPORT CONNECT
TIMEOUT 10
"" "ATZ"
OK "ATE1V1&D2&C1S0=0+IFC=2,2"
OK "AT+IPR=115200"
# replace XXXX with your PIN:
OK "AT+CPIN=3615"
OK "ATE1"
# different operating modes, comment/uncomment:
# GPRS
#OK "AT_OPSYS=0,2"
# UMTS
#OK "AT_OPSYS=1,2"
# GPRS, UMTS
#OK "AT_OPSYS=2,2"
# UMTS,GPRS
OK "AT_OPSYS=3,2"
OK "AT+CGDCONT=1,\042IP\042,\042gprsinternet\042,\042\042,0,0"
SAY "\nWaiting 20 Seconds to switch between UMTS/GPRS ...\n"
nano /etc/chatscripts/umts-prep-nopin
ABORT BUSY
ABORT ERROR
ABORT 'NO CARRIER'
REPORT CONNECT
TIMEOUT 10
"" "ATZ"
OK "ATE1V1&D2&C1S0=0+IFC=2,2"
OK "AT+IPR=115200"
OK "ATE1"
# different operating modes, comment/uncomment:
# GPRS
#OK "AT_OPSYS=0,2"
# UMTS
#OK "AT_OPSYS=1,2"
# GPRS, UMTS
#OK "AT_OPSYS=2,2"
# UMTS,GPRS
OK "AT_OPSYS=3,2"
OK "AT+CGDCONT=1,\042IP\042,\042www.plusgsm.pl\042,\042\042,0,0"
SAY "\nWaiting 20 Seconds to switch between UMTS/GPRS ...\n"
nano /etc/chatscripts/umts
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 10
SAY "Calling T-Mobile GPRS\n"
TIMEOUT 60
"" "ATD*99***1#"
CONNECT \c
chmod 777 /etc/udev/rules.d/50-globesurfer-icon.rules
chmod 777 /usr/sbin/globesurfer-icon-switch.sh
chmod 777 /usr/sbin/globesurfer-icon-switch-child.sh
chmod 777 /usr/sbin/umts-chat.sh
i teraz odpalasz:
pppd call umts
jeśli nie działa:
pppd call umts nodetach
i spisujesz, co pokazuje
To w sumie wszystko :D
Nie wiem juz co robić!!!