Headless Raspberry Pi Setup SSH

Download Raspbian Image the Lite version will do or you can get Raspbian with desktop if you like even the desktop and recommended software Raspbian is ok what ever you want. Depending on what operating system you are running to put Raspbian image on your microSD card follow this link to do so because I’m not going to explain how to do it three different times especially when I only run Linux. After you have successfully written the image to your microSD card.  Add a file called SSH in the boot partition of the MicroSD card it will look like so you may have to unplug and plug in your microSD card from your computer after writing the image to the MicroSD card. One more file to create add a file called wpa_supplicant.conf in the boot partition of the MicroSD card paste the following into it adjusting for the name of your country code, network name (SSID) and network password (Wifi Password)

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="NETWORK-NAME"
    psk="NETWORK-PASSWORD"
} 

Jump to you login to your router look for connected devices to find the IP address of your Raspberry Pi by default the device name of your Raspberry Pi is believe It or not it is raspberrypi. 🙂

Once you found your IP address let’s say it is 192. 168. 1. 10 You can either use PuTTY or your terminal if you’re in Linux and CMD in Windows by Typing $ ssh pi@your-IP-address Example $ssh pi@192.168.1.10

Tips for SSH

The default username is (pi) and login is (raspberry) You probably want to change the default password for your Raspberry Pi That command is $passwd You can find all the Information to do this in great detail on the Raspberry Pi website.

Once you’re in SSH you’re in Linux world to exit SSH type $exit

I recommend configuring your Raspberry Pi with the command $sudo raspi-config

Last but not least that I think is very important is keeping your pi up-to-date with the commands $sudo apt-get update$sudo apt-get upgrade

Optional I do this after rebooting to make sure everything’s working I clean up unnecessary files that are not used no more with the command $sudo apt-get clean

Thank you for checking out my tutorial I hope you enjoyed it.

Bruce

The new beta PIA app is very impressive (Linux)

If you have Private Internet Access VPN I recommend trying the beta app. Not only is it beautiful but it is completely open-source now. Prior to using the beta application I would have to do a couple extra steps on the stable application to work proper in KDE Neon. It wasn’t a big deal it was more cosmetic than anything but still drove me nuts this was the Issue and fix. I hope they continue to use the same look on the new beta app and don’t change it that much it looks perfect the way it is. The little logo of the man to show that you were connected or not connected has changed for the better in my opinion.

 

Here’s something interesting VPN Killswitch has a new feature called Auto from what I’m understanding if you lose connection with your VPN on Auto you will not leak out. If you have the kill switch set to off if you lose your VPN connection it will route back to your normal IP address. Always on setting network will only work if the VPN is on. If the vpn is no on or running you will not get outside traffic at all. A cool new feature if you have lan (local area network) set up in the app you can browse your local network with always on kill switch but then again that is not going out to wan (wide area network) so your good to go.

If you are running the stable version of the VPN app v82 and would like to try the beta here’s the instructions to remove the stable version and install the beta. Thank you PIAThomas on Reddit for the instructions.

Uninstall v82 before installing the beta. Open up a terminal and you’re going to remove some files with the some commands. First off turn off the private internet application by right-clicking the icon and hitting the quit button. It is best to just copy and paste the commands below

  1. rm -rf ~/.config/PrivateInternetAccess
  2. rm ~/.local/share/applications/pia_manager.desktop
  3. sudo rm -rf /opt/pia
  4. rm -rf ~/.pia_manager/

If all works its time to install the new beta https://www.privateinternetaccess.com/installer/download_installer_linux_beta The instructions are fairly straightforward.

 

 

How to fix icons in icon tray for private internet access application.

When you download the application, the images are already in there, but they’re not sized properly and won’t work well with some GUIs.

For me, I would get a green box like so.

  • First off, you will need a program called imagemagick. In an Ubuntu-based Linux, open up your terminal and type in the following command to install imagemagick:

$ sudo apt-get update

$ sudo apt-get install imagemagick

  • Once that is done, keep your terminal open and type in the following command. The proper directory that contains the images:

$ cd /opt/pia/frontend/img

  • You can use this command to make sure you’re in the right spot:

$ ls

  • You need to make a new folder of that directory with the following command (to save the original images this just to be on the safe side if you want to restore the images):

$ sudo mkdir img_bak

  • This command will create a backup of all your images and will put it into the folder we just created (img_bak):

$ sudo cp *png img_bak

  • With the next command, you are going to edit the images (resizing them to properly display in the tray):

$ sudo mogrify -resize 24×24 tray_disconnected.png

$ sudo mogrify -resize 24×24 tray_connecting.png

$ sudo mogrify -resize 24×24 tray_connected.png

  • Now it should display correctly. Here is an image of my terminal (so you can see step-by-step instructions):

In order to display their logo, you need to follow the same steps for KDE neon and Kubuntu. The current Private Internet Access application I did this on was pia-v81.

Raspberry Pi 3 Model B+

The new Raspberry Pi 3 B + I couldn’t help myself even though I have two other Raspberry Pi 3 B. By the way just so you know if you buy a case make sure it says it’s compatible with Raspberry Pi B + if not you have to do some altering I ordered a case with a fan that said it was compatible with the B+ but wasn’t so be sure to read reviews beforehand there’s a new set of pins and one of the chips is slightly in a different place but I managed to get it to work. The reason I got a new Pi was the faster transfer rates and yes a little bit faster CPU it is for my OSMC The really cool thing is you can just swap out micro SD cards for OSMC and it just works which is also stated in OSMC’s blog post. I did it change the wireless network to the 5G no problems but I did a fresh image install. I had some other stuff on the old sd card that I didn’t want like Webmin. Was hoping to see an Improvement in processor speed there may be but I don’t notice one but I do notice the transfer rate speed increase which makes me very happy all in all I’m glad I got it. In return, it gave me another Raspberry Pi to play with which you can see here.

 

 

motionEyeos

If you’re looking for a project for your Raspberry Pi 3 motionEyeos is a fun project. The interface is very user-friendly had it up and running in no time. I have a 500 gig external hard drive connected to the Raspberry Pi 3 where it stores the videos and images and bought a cheap webcam Amazon.

 

One of the cool features motionEye has is time-lapse for pictures.