Skip to content
Home » Raspberry Pi » Page 5

Raspberry Pi

Raspberry Pi Technology, Related Information, How-To’s, Tips, Tools, and Guides

Raspberry Pi Backup using MAC

RASPBERRY PI – Backup Your Raspberry Pi SD Card Using a MAC

 

This is a quick how to on backing up your Raspberry Pi SD Card

Shutdown the Raspberry Pi and remove the SD Card

Plug the SD Card into your MAC

Go to Spotlight (the little magnifying glass on the top right of your MAC), type Terminal, and press Enter

Now the rest of the commands are done in the Terminal

Type:
sudo bash and press enter

Type in your password to get the # prompt

Type:
mkdir /raspberry-pi and press enter
mkdir /raspberry-pi/backups and press enter
cd /raspberry-pi/backups and press enter

Type
df -h and look for your SD Card. My card is listed as /dev/disk1s1. Once you know which card is your SD Card type

diskutil unmount /dev/disk1s1 (or whatever your SD Card is listed as)

dd if=/dev/rdisk1 of=/raspberry-pi/backups/wheezy-todaysdate-backup.img bs=1m and press enter

your SD Card will now be backed up

Once the backup is complete type:
diskutil eject /dev/rdisk1

And that is it.



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Restoring a Raspberry Pi Backup

This is a quick how to on restoring a backed up image to your SD Card Plug the SD Card into your MAC Go to Spotlight (the little magnifying glass on the top right of your MAC), type Terminal, and press Enter Now the rest of the commands are done in the Terminal Type: sudo bash and press enter Type in your password to get the # prompt Type: cd /raspberry-pi/backups and press enter Type df -h and look for your SD Card. My card is listed as /dev/disk1s1. Once you know which card is your SD Card type diskutil unmount /dev/disk1s1 (or whatever your SD Card is listed as) dd bs=1m if=/raspberry-pi/backups/wheezy-todaysdate-backup.img of=/dev/rdisk1 and press enter your SD Card will now be restore the backup Once the backup is complete type: diskutil eject /dev/rdisk1 And that is it. Thanks for reading Hardware that I use: Raspberry Pi 4 (4gb) https://amzn.to/3q551IO SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter https://amzn.to/2Vfvo0y CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C) https://amzn.to/3fNTYPu CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet https://amzn.to/33u5hr9 Western Digital 500GB WD_Black SN750 NVMe https://amzn.to/3nZ5pH4 Plugable USB C to M.2 NVMe Tool-free Enclosure https://amzn.to/3lflV3L

BlockErupter Setup On A Raspberry Pi

Setup a USB Block Erupter on the Raspberry Pi with MinePeon

Insert your MinePeon SD Card

Connect the Rashberry Pi to a Powered USB Hub

Connect the Block Erupters into the Powered USB Hub

Boot the Raspberry Pi

Log into the Pi as user: minepeon with the password: peon

Type ifconfig and note the ip address for the device

On a separate computer open up your internet browser and point it to the ip of the raspberry pi. (ex: http://192.168.1.101)

Log into the Pi as user: minepeon with the password: peon

Click on the Pools tab at the top of the page

Delete all the info inside the boxes and replace it with your own info

Ex: stratum.d7.lt:3333 username: InstantSupp.777 password: 12345

Click Submit

The Block Erupter will now start mining

After a few minutes check the Graph page to make sure it is producing the info and your erupter is mining properly



Thanks for reading

Hardware that I use:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Automatically Mount USB Drive on Raspberry Pi

RASPBERRY PI – Automatically Mount USB Drive

 

This guide explains how to get your External USB Drive to be recognized and automatically mounted using Raspberry Pi

Open a command prompt

Type
sudo bash and press enter

apt-get install usbmount and press enter

The software will now install

After it installs type
df -h and press enter

Make a note of the listed drives

Plug in your USB drive

Type
df -h and press enter

You will now see your USB Drive



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Raspberry Pi GPS Installation

RASPBERRY PI – GlobalSat BU-353S4 GPS Installation

 
This is how we were able to install and run the GlobalSat BU-353 GPS module on our Raspberry Pi
From the command prompt, type:

sudo bash

apt-get install gpsd gpsd-clients python-gps

nano /lib/udev/gpsd.hotplug

Scroll down the document and add
chmod a+rw $DEVNAME
above the line that says
gpsdctl $ACTION $DEVNAME

Press CTRL and O together to save

Press CTRL and X together to exit the file

/etc/init.d/gpsd restart

gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock

cgps -s

You will now see the GPS output



Thanks for reading

Hardware that I use:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Clean Out Files on Raspberry Pi

Fix Those DISK FULL Errors in Kali on Your Raspberry Pi

The Kali Linux image for the Raspberry Pi only has 7.2GB of space by default, and it fills quickly.  If you haven’t expanded, or are unable to expand for any reason, this will allow you to regain some space.

Simply run the following command from the Terminal:

apt-get autoclean

Thats it!  Make sure you run this command periodically for housekeeping purposes.



Thanks for reading

Hardware that I use:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Setting up a Bitcoin Wallet on a Raspberry Pi

Setting up a Bitcoin wallet on a Raspberry Pi

Here is the quick and dirty guide to getting your wallet up and running.

Boot to the Desktop

If you are at the command line and cannot get to the desktop type in:
sudo bash
Enter in your password if prompted

Type:
apt-get update and press enter

Type:
startx, press enter, and the desktop will start

Open up an LXTerminal on your Pi.

Type:
sudo apt-get install python-qt4 python-pip and press enter

Press Y when prompted

sudo pip install http://download.electrum.org/3.2.3/Electrum-3.2.3.tar.gz and press enter

The wallet will now install. Once it is installed type:
electrum and press enter

dialog box will appear telling you that a wallet is not found.

Click Create

Copy your wallet generation seed into a safe place and click ok

Type in your wallet generation seed in the verification box and click ok

Accept the default server and press ok

Set the password when prompted

Verify the password

Click Ok

The Password was Updated dialog box will appear. Click Ok

Your Electrum Bitcoin wallet will now show on your desktop

Once you have your wallet open click on the Receive Tab

In the Main Account section, you will see 5 addresses that look similar to this:
1246L8DYTSJ12ti35gXtRvG9Qu4oVCfXrz

That is your bitcoin wallet address. You will use that address to receive your bitcoins.



Thanks for reading

Hardware that I use:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Wireshark Lua Error in Kali Linux on a Raspberry Pi

How to Fix the LUA Wireshark Error on Kali Linux

Loading up Wireshark for the first time, you will see the following error:

Lua: Error during loading:
“/usr/share/wireshark/init.lua.32: dofile has been disabled due to running Wireshark as superuser”…….

Fixing it is easy and quick.  First:

nano /usr/share/wireshark/init.lua.32

Look for the following line
disable_lua = false

Change the values to
disable_lua = true

Save and exit the file

Then restart wireshark from the terminal, and the error is gone



Thanks for reading

Hardware that I use:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Running GParted on a Raspberry Pi with Kali Linux

Expanding Your Root Partition with GPARTED

Installing Kali linux onto a MicroSD card can be quick and easy.  The one main drawback is the default image size of Kali for the Raspberry Pi is only 7GB, which fills up quickly.  This guide will walk you through taking your default install, and expanding it to the maximum size available with your hardware.

To expand it:

apt-get update && apt-get upgrade -y

apt-get install gparted -y

gparted

Select the line with the “/” Mount Point

Click Partition at the top

Click Resize

In the Bar graph at the top of the dialog box you will see Yellow/White/Grey which represents used space, free space, and unallocated space.

Between the yellow and grey you can Select the area and Drag the line over to the right to the maximum size

Select Resize

Click the Edit tab at the top

To commit the changes, click Apply All Operations

Your Drive will grow to the maximum size and you are done!



Thanks for reading

Hardware that I use:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L