Mounting An External Drive On A Raspberry Pi

For this post, we have an external hard drive connected to our Raspberry Pi which is at /dev/sda. We can verify this by looking at the output of the command lsblk: $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 5.5T 0 disk └─sda1 8:1 0 5.5T 0 part mmcblk0 179:0 0 29.8G 0 disk ├─mmcblk0p1 179:1 0 2.2G 0 part ├─mmcblk0p2 179:2 0 1K 0 part ├─mmcblk0p5 179:5 0 32M 0 part ├─mmcblk0p6 179:6 0 256M 0 part /boot └─mmcblk0p7 179:7 0 27....

May 11, 2021 · 2 min · Greg Hilston

Raspberry Pi Music Over USB

Note Note: The following did not work but I took the notes to review if we ever revisit this My father wanted to have a Raspberry Pi setup on his television for friends to come over and watch Youtube videos as well as displaying the lyrics to music being played on his music system. Since he uses his own DAC, we want to pipe the audio out of the Raspberry Pi to said device....

January 2, 2021 · 2 min · Greg Hilston

Setting Up SSH Keys

An SSH key is an alternative way to authenticate. Instead of manually typing in a password you have memorized, you may provide a file known as your “private key”. This private key can be thought of like the key to a lock, much like the password to a regular login. In general it is advised to have one key per machine, which makes them easier to roll. Additionally, I’d suggest using ssh config to make things easier, this is a great link....

July 16, 2019 · 2 min · Greg Hilston

Setting Up Wake On LAN

A “wake on LAN packet” is a special way for a device on your network to wake up when another device sends this magical packet. I use this so a small, low powered always on, Raspberry Pi can wake up my much larger electrical hog on a machine. Coupled with a VPN, I can boot up my machine from anywhere in the world! Perform the following on the machine you want to enable a wake on LAN on, these instructions are for a Windows machine....

July 16, 2019 · 2 min · Greg Hilston

Provisioning Raspberry Pi Sd Card

Its very simple to setup a SD card for a Raspberry Pi: Reformat the entire SD card to FAT32 Download the latest version of Raspbian Lite from here Use a program, like Etcher to write the zip/iso to your newly formatted SD card At this point you can bootup your newly formatted Raspberry Pi, but I always complete these additional two steps to get SSH access working on my Raspberry Pi and enabling WiFi connecting for the Raspberry Pis that support Wireless Internet (Raspberry Pi 3 and Raspberry Pi Zero W):...

May 4, 2019 · 1 min · Greg Hilston

SD Card Wrong Capacity

Often times when I reimage a SD card, I find that the capacity is wrong and generally way smaller. I have found a helpful tool Bootice This is an easy way to get the original capacity back: Download and run the software On the “Physical Disk” section, select the SD card in the drop down menu and click the “Parts Mange” button Click “Re-Partitioning” Select Disk Mod = “USB-HDD mode (Single Partition)” File system = FAT32 Vol Label = whatever you want Start LBA = 1 Reserved Secs = 32 Click okay Click through confirmation SD card should be reporting correct size

April 29, 2019 · 1 min · Greg Hilston

Setting Up A Raspberry Pi Headless, The Easy Way!

Everyone knows that setting up a Raspberry Pi to be headless is the worst right? Wrong! You can write just two files on the root of the SD card, to have it connect to your WiFi on boot. To do this: Mount the SD card In the root directory create an empty file called ssh. In the root directory create a file called wpa_supplicant.conf and have the content be: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev network={ ssid="yourSSIDhere" psk="yourpasswordhere" key_mgmt=WPA-PSK } No more finding a spare monitor or television with an HDMI input....

March 19, 2019 · 1 min · Greg Hilston