Difference between revisions of "RPI and Sakis3g"
From Hobbywiki
(Created page with "*Install Sakis3g and ppp =Connect automatically at startup= *Create file /etc/sakis3g.conf Telenor: APN="CUSTOM_APN" CUSTOM_APN="internet.public" APN_USER="user" APN_PASS=...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category:Computerguides]] | |
+ | =Install Sakis3g and umtskeeper on Raspberry= | ||
+ | *Install Sakis3g, ppp and umtskeeper | ||
+ | *Install Sakis3g in folder /umtskeeper | ||
+ | |||
=Connect automatically at startup= | =Connect automatically at startup= | ||
+ | [[http://www.instructables.com/id/Raspberry-Pi-as-a-3g-Huawei-E303-wireless-Edima/step2/Download-and-setup-ppp-UMTSKeeper-and-Sakis3g/]] | ||
*Create file /etc/sakis3g.conf | *Create file /etc/sakis3g.conf | ||
Telenor: | Telenor: | ||
Line 43: | Line 48: | ||
*Add the following to /etc/rc.local | *Add the following to /etc/rc.local | ||
/etc/init.d/sakis3g start | /etc/init.d/sakis3g start | ||
+ | |||
+ | =Reconnect on connection failure= | ||
+ | ./umtskeeper --sakisoperators "USBINTERFACE='0' OTHER='USBMODEM' USBMODEM='12d1:1446' APN='CUSTOM_APN' CUSTOM_APN='internet.public' APN_USER='user' APN_PASS='pass'" --sakisswitches "--sudo --console" --devicename 'Huawei' --log --monthstart 8 --nat 'no' |
Latest revision as of 21:25, 1 December 2013
Install Sakis3g and umtskeeper on Raspberry
- Install Sakis3g, ppp and umtskeeper
- Install Sakis3g in folder /umtskeeper
Connect automatically at startup
[[1]]
- Create file /etc/sakis3g.conf
Telenor:
APN="CUSTOM_APN" CUSTOM_APN="internet.public" APN_USER="user" APN_PASS="pass"
Netcom:
APN="CUSTOM_APN" CUSTOM_APN="vpn.netcom.com" APN_USER="user" APN_PASS="pass"
- Create file /etc/init.d/sakis3g
#! /bin/sh # /etc/init.d/foobar # The following part always gets executed. echo "This part always gets executed" # The following part carries out specific functions depending on arguments. case "$1" in start) sudo /umtskeeper/sakis3g connect motion ;; stop) sudo /umtskeeper/sakis3g disconnect echo "camera is dead" ;; *) echo "Usage: /etc/init.d/sakis3g {start|stop}" exit 1 ;; esac exit 0
- Add the following to /etc/rc.local
/etc/init.d/sakis3g start
Reconnect on connection failure
./umtskeeper --sakisoperators "USBINTERFACE='0' OTHER='USBMODEM' USBMODEM='12d1:1446' APN='CUSTOM_APN' CUSTOM_APN='internet.public' APN_USER='user' APN_PASS='pass'" --sakisswitches "--sudo --console" --devicename 'Huawei' --log --monthstart 8 --nat 'no'