Ubuntu - Linux Backup, Debugging & Config File
Overview:
Ubuntu - Setting Up An Original Image
I always go to the Ubuntu site found at https://ubuntu.com/download/alternative-downloads#bittorrents and then select the torrent
This is what I do:
Down load the latest recommended Ubuntu software image
Used Balena Etcher to create an image on a USB Stuck This takes like 10 min
Plug USB into Computer
System Boot to boot from USB (F12) or (ESC)
Follow the bootup prompts and and install updates and 3rd party tools by default
Then it will do a software update that will take about 15 min...
Backing Up your Files
You will , as you use your Raspberry Pi, create files that you will want to backup. You may have a myPython directory, where you have all your <program>.py files. It would be sad if you lost these because your Raspberry Pi SD card got corrupted and you had to re-image your OS. Just like you would backup your PC, Laptop or Phone, you should backup your Raspberry Pi
Backing up your config.txt file:
For an overview of the config.txt see the Raspberry Pi config.txt documentation. Also check out https://elinux.org/R-Pi_configuration_file
On your Raspberry Pi, open your browser and open/log in to your Google Drive
On your Raspberry Pi, open your File Manager and go to the /boot directory, and find the config.txt
Copy the config.txt file to your Google Drive
Backing up your config.txt file:
On your Raspberry Pi, open your browser and open/log in to your Google Drive
On your Raspberry Pi, open your File Manager and go to the directory you want to backup files from
Copy the config.txt file to your Google Drive. You should be able to drag and drop them
Make Sure Your Ubuntu new clean Image is Updated to a full class image
You want to make sure your Ubuntu install is up to date and has the latest OS packages, tools and software. Before installing a software package, you need to first update the Ubuntu image to the current list of packages that are available to apt-get with apt-get update
Open a console dialog window
Run the command sudo apt-get update This will go out and request the latest package list and known dependencies. After updating, you are now ready to install a package.
Then run the command sudo apt-get upgrade This ensures that any potential dependencies for newly installed software are up to date and can potentially fix any bugs. The upgrade command will take several minutes to finish, and may require your verification/interaction during the process, depending on which packages are being upgraded.
Using update and upgrade regularly will keep your Raspberry Pi's OS image up to date. It is essentially the same as downloading the most recent image of Raspbian available.
UbuntuClassImageUpdate.sh File
Using jim.The.STEAM.Clown's UbuntuClassImageUpdate.sh file found on Github. I will be updating this as I find stuff I want on all my Ubuntu images
In a Linux Command dialog, run the following commands. This will copy the latest version of my "restore a Class Image after an Ubuntu re-inaging
sudo wget https://raw.githubusercontent.com/jimTheSTEAMClown/Linux/master/UbuntuClassImageUpdate.sh
sudo chmod 755 UbuntuClassImageUpdate.sh
sudo cat UbuntuClassImageUpdate.sh
sudo bash UbuntuClassImageUpdate.sh
Other Shell Scripts
Recovering from a crash? May not be possible, but here are some Ideas
Check out the following links -
Chromium settings
These are settings I like to have for Chromium:
Open Chromium settings, and scroll down to Startup. Set to <Continue where you left off> This will remember the current tabs you have open and re-open them next time you start.