PI IN THE SKY
- ps -A : show all process
- sudo killall tracker : delete all tracker processes
- sudo ./tracker : start a tracker process, so you can see the messages
- sudo nano /boot/pisky.txt : edit the PITS config file
- sudo raspi-config : setting up raspberryPI
Trouble shooting
- cat ~/pits/tracker/gps.txt
General
- ls -la : see the files in the directory with all details
- sudo halt : stop the PI computer
- sudo reboot : restart PI computer
- pwd : see current directory
- top – to see the CPU utilization
Networking
- ifconfig : see the interfaces configuration
- sudo ifconfig wlan0 : see the wireless lan configuration
- sudo nano /etc/network/interfaces : set networking configuration
- allow-hotplug wlan0
- iface wlan0 inet dhcp
- iface default inet dhcp
- wpa-ssid "ISLAND_2.4"
- wpa-psk "097680234"
- sudo iwlist wlan0 scan | grep SSID : see the wlan in the area
- sudo nano /etc/wpa_supplicant/wpa_supplicant.conf : advance network configuration (didnt work for me)
- ifdown wlan0 ו ifup
- Defining the SSIDs
- Special program for wifi interfaces
- sudo apt-get install wicd-curses : to setup
- Run with: sudo wicd-curses
- using it – http://raspberrypi.stackexchange.com/questions/11631/how-to-setup-multiple-wifi-networks
- Removing it :sudo apt-get remove –purge wicd python-widc-cli wicd-curses wicd-deamon wicd-gtk
- Must remove dhcpcd before
- sudo systemctl disable dhcpcd
- sudo /etc/init.d/dhcpcd stop
- Sharing WIFI from LAPTOP
- Troubleshooting WIFI –
- http://www.raspyfi.com/wi-fi-on-raspberry-pi-a-simple-guide/
- http://captainbodgit.blogspot.co.il/2013/03/configure-wifi-on-raspberry-pi.html
- stopping dhcpcd – https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=150124
- sending the IP address automatically via Email
- http://cagewebdev.com/raspberry-pi-sending-emails-on-boot/
- need to enable gmail for "less secure passwords"
- when you copy the text to PuTTy, you need to change the " sign and ' sign
Keyboard
- sudo nano /etc/default/keyboard : Replace UK with US
Startup commands
/etc/rc.local
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
python /home/pi/Code/startup_mailer.py
fi
sudo /usr/bin/screen -d -m -S LoraGateway /home/pi/lora-gateway/gateway.sh
exit 0