- Can I get rich by routing Lightning payments?
- Can I attach the Ext4 formatted hard disk to my Windows computer?
- Can I update my RaspiBolt 2 to the new version?
- What do all the Linux commands do?
- Where can I get more information?
- Setting a fixed address on the Raspberry Pi
Nobody knows. Probably not. You will get minimal fees. I don’t care. Enjoy the ride!
The Ext4 file system is not compatible with standard Windows, but with additional software like Linux File Systems by Paragon Software (they offer a 10 days free trial) it is possible.
Unfortunately, a seamless update is not possible because RaspiBolt 3 uses an entirely different 64-bit operating system. The general structure of the setup stays the same, however. We recommend setting up the RaspiBolt from scratch, but you can then copy over essential data.
Your LND node data is the most important. Copy it to a USB thumbdrive, so that you can restore it later.
Find the thumbdrive (check for the correct size and that its TYPE is listed as “part”) and mount it
$ sudo mkdir /mnt/thumbdrive $ lsblk -pli $ sudo mount /dev/sdb1 /mnt/thumbdrive/
Check that it’s mounted correctly
$ df -h > Filesystem Size Used Avail Use% Mounted on > ... > /dev/sdb1 15G 24K 15G 1% /mnt/thumbdrive
Copy the whole LND data directory to the thumbdrive
$ sudo rsync -rhvPog --append-verify /mnt/ext/lnd /mnt/thumbdrive/
Also make sure to create a Static Channel Backup file and copy it to the thumbdrive
🚨 WARNING: Your old LND node must not ever start again. That could result in you losing all your funds.
Move your LND directory to prevent the node starting again by accident.
$ sudo mv /mnt/ext/lnd /mnt/ext/lnd-do-never-start-again
Once you set up your new RaspiBolt 3, restore your old LND node setup.
Quickly start the new LND instance without creating a wallet. Stop LND again.
Mount the thumbdrive and restore your backup
$ sudo mkdir /mnt/thumbdrive $ lsblk -pli $ sudo mount /dev/sdb1 /mnt/thumbdrive/ $ sudo rsync -rhvPog --append-verify /mnt/thumbdrive/lnd /data $ sudo chown -R lnd:lnd /data/lnd
Bitcoin Core is easy to set up again, no backup is needed. If you’re ok with downloading the blockchain again, which may take a few days, there’s nothing you need to do.
Otherwise, you can of course copy the whole bitcoin data directory directly to your new node.
When Reusing the old drive for your new node, you must first copy the data to a different drive or computer, either by connecting the drive, or over the network. When you use a new drive, you can set the RaspiBolt up first and then copy the data directly from drive to drive.
Example for network copy
$ rsync -rhvPog --append-verify email@example.com:/mnt/ext/bitcoin /your-local-directory
Example for local drive-to-drive copy with both drives mounted
$ rsync -rhvPog --append-verify /mnt/old-raspibolt-drive/bitcoin /mnt/raspibolt-v3-drive/data
This is a (very) short list of common Linux commands for your reference. For a specific command, you can enter
man [command] to display the manual page (type
q to exit).
| ||change to directory|| |
| ||list directory content|| |
| ||copy|| |
| ||move|| |
| ||remove|| |
| ||make directory|| |
| ||make link|| |
| ||run command as superuser|| |
| ||switch to different user account|| |
| ||change file owner|| |
| ||change file permissions|| |
| ||text file editor|| |
| ||archive tool|| |
| ||exit current user session|| |
| ||control systemd service|| |
| ||query systemd journal|| |
| ||monitor processes & resource usage|| |
| ||shutdown or restart Pi|| |
If you want to learn more about Bitcoin and are curious about the inner workings of the Lightning Network, the following articles in Bitcoin Magazine offer a very good introduction:
- What is Bitcoin?
- Understanding the Lightning Network
- Bitcoin resources and Lightning Network resources by Jameson Lopp
If your router does not support setting a static ip address for a single device, you can also do this directly on the Raspberry Pi.
This can be done by configuring the DHCP-Client (on the Pi) to advertise a static IP address to the DHCP-Server (often the router) before it automatically assigns a different one to the Raspberry Pi.
Get ip address of default gateway (router). Run
netstat -r -nand choose the IP address from the gateway column which is not
0.0.0.0. In my occasion it’s
Configure the static IP address for the Pi, the gateway path and a DNS server. The configuration for the DHCP client (Pi) is located in the
sudo nano /etc/dhcpcd.conf
The following snippet is an example of a sample configuration. Change the value of
static domain_name_serversto the IP of your router (default gateway) from step 1. Be aware of giving the Raspberry Pi an address which is OUTSIDE the range of addresses which are assigned by the DHCP server. You can get this range by looking under the router configurations page and checking for the range of the DHCP addresses. This means, that if the DHCP range goes from
192.168.2.99you’re good to go with the IP
192.168.178.100for your Raspberry Pi.
Add the following to the
# Configuration static IP address (CHANGE THE VALUES TO FIT FOR YOUR NETWORK) interface eth0 static ip_address=192.168.178.100/24 static routers=192.168.178.1 static domain_name_servers=192.168.178.1
Restart networking system
sudo /etc/init.d/networking restart
« Back: Troubleshooting