Difference between revisions of "RPI and Sakis3g"
From Hobbywiki
(→Connect automatically at startup) |
|||
Line 1: | Line 1: | ||
+ | [[Category:Computerguides]] | ||
=Install Sakis3g and umtskeeper on Raspberry= | =Install Sakis3g and umtskeeper on Raspberry= | ||
*Install Sakis3g, ppp and umtskeeper | *Install Sakis3g, ppp and umtskeeper |
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'