פקודות לינוקס חשובות

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

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

כתיבת תגובה