Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Auto Join WiFi
- Edit /etc/wpa_supplicant/wpa_supplicant.conf adding
- ```
- network={
- ssid="YourNetworkSSID"
- psk="Your Network's Passphrase"
- key_mgmt=WPA-PSK
- }
- ```
- #ReEnable SSH By Default
- Drop 'ssh' file into /boot/ the file is not required to have content
- ###
- #Setup 4G Dongle
- #lsusb
- Bus 001 Device 004: ID 12d1:1505 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
- tar -xzvf /usr/share/usb_modeswitch/configPack.tar.gz 12d1\:1505
- vi 12d1\:1505
- # Huawei EC156, Huawei E372u-8
- TargetVendor=0x12d1
- TargetProductList="140b,140c,1506,150f,150a"
- HuaweiNewMode=1
- sudo vi /etc/usb_modeswitch.d/12d1\:1505
- DefaultVendor= 0x12d1
- DefaultProduct=0x1505
- TargetVendor= 0x12d1
- TargetProductList="140b,1506,150f"
- MessageContent="55534243123456780000000000000011062000000100000000000000000000"
- sudo usb_modeswitch -c /etc/usb_modeswitch.d/12d1\:1505
- sudo reboot
- sudo qmi-network /dev/cdc-wdm0 start
- #At each reboot use
- sudo qmi-network /dev/cdc-wdm0 start
- #Wait up to 1 minute for the IP to resolve.
- #########
- ###IGNORE BELOW THIS
- #########
- cat /etc/wvdial.conf
- [Dialer Defaults]
- Init1 = ATZ
- Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
- Init3 = AT+CGDCONT=1,"IP","h2g2"
- Modem Type = Analog Modem
- Baud = 460800
- New PPPD = yes
- Modem = /dev/ttyUSB0
- ISDN = 0
- Phone = *99#
- Password = { }
- Username = { }
- Stupid Mode = 1
- #https://guyrobottv.wordpress.com/2015/05/01/using-raspberry-pi-as-a-carputer-and-wifi-4g-hotspot/
- #Add to -> /etc/usb_modeswitch.conf
- ##LTE 4G
- DefaultVendor=0x12d1
- DefaultProduct=0x1505
- MessageEndpoint="0x01"
- MessageContent="55534243123456780000000000000011062000000101000100000000000000"
- #then
- sudo usb_modeswitch -c /etc/usb_modeswitch.conf
- #ifconfig and wwan0
- #apt-get install libqmi-utils
- #echo "APN=h2g2" >/etc/qmi-network.conf
- qmicli -d /dev/cdc-wdm0 --wds-start-network=h2g2 --client-no-release-cid --wds-follow-network
- http://garethhowell.com/wp/connect-raspberry-pi-3g-network/
- ##
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement