Scripts that I use on my Raspberry Pi #4

(adsbygoogle = window.adsbygoogle || []).push({});

Sometimes you want that your Raspberry Pi connects many different wireless networks. To do this you just have to add file wpa_supplicant.conf to your memory card (You can do that example with notepad) and add this to it:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid=”petrilopia_home” psk=”password” id_str=”home” priority=1 } network={ ssid=”petrilopianet_mobile” […]

Scripts that I use on my Raspberry Pi #3

I normally use sendemail on my Rasberry Pi because it’s easiest way to send email from your Raspberry Pi Linux machine using command line.

Let’s first install sendemail:

apt-get install sendemail

Using sendemail is easy:

sendemail -xu LOGIN -xp PASSWORD -f FROM -t TO -s SERVER:PORT -o tls=yes -u “SUBJECT” -m “MESSAGE” -a ATTACHEMENT FILE […]

Scripts that I use on my Raspberry Pi #2

This simple script just checks if your Raspberry Pi is connected to the Internet or not. So using this script is really easy, it will make Raspberry Pi reboot itself if it’s not connected to the Internet or do something else to get it connected again. This has saved me so many times when I […]

Scripts that I use on my Raspberry Pi #1

This script checks what your current external IP address and will let you know if it has changed since the last time you checked. You can easily modify this script to make your Raspberry Pi send you an email of it’s external IP address and send email when it’s email address has changed so this […]

Raspberry Pi and GPS problems

Raspberry Pi and gpsd problems

I have used same GPS dongle and same settings with my Raspberry Pi projects for years but now suddently I started to have problems with it. It worked perfectly just after installing gpsd and things but after reboot I couldn’t get it work.

apt-get remove gpsd

and then

apt-get install […]