Skip to content

Instantly share code, notes, and snippets.

@mapcentia
Last active May 4, 2016 20:25
Show Gist options
  • Save mapcentia/b88935f0b6e66f178caac312f3ad6c85 to your computer and use it in GitHub Desktop.
Save mapcentia/b88935f0b6e66f178caac312f3ad6c85 to your computer and use it in GitHub Desktop.
sudo su
apt-get update
apt-get install ppp usb-modeswitch wvdial
# Sæt modemet i usb porten
lsusb
# Du skal se:
# 12d1:14fe Huawei Technologies Co., Ltd.
# 14fe betyder at den er i storing mode, dvs. at den fungerer som en usb memory-stick
reboot
lsusb
# Du skal nu se:
# 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
# 1506 betyder modem mode
# Lav en config til usb-modeswitch
tar -xzvf /usr/share/usb_modeswitch/configPack.tar.gz 12d1\:14fe
cat 12d1\:14fe >> /etc/usb_modeswitch.conf
# Nu kan du switch mode således. Det skulle dog gerne gøres automatisk ved boot.
usb_modeswitch -c /etc/usb_modeswitch.conf
# Lav en config til wvdial
wvdialconf
printf "Phone = *99#\nPassword = \" \"\nUsername = \" \"" >> /etc/wvdial.conf
# Stop evt. wlan0 eller fjern netkabel
ifdown wlan0
# Dial up. SKAL være som su
sudo wvdial
# Nu er du på nettet via modemet.
# wvdial skal startes vha. af et start-up script.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment