Saturday, November 12, 2016

Tux Boot Loader Theme for Ubuntu (rEFInd, new GRUB2/BURG)

Tux4Ubuntu rEFInd bootloader screnshot.

Before even loading an OS, the boot loader usually shows up. GRUB2 bootloader is rock solid but not that graphical. That's why there is a new kid on the block called rEFInd bootloader which does the job brilliantly. Here we show you how to theme it with Tux's own themes.

The easy way (Use the installer)

1) Copy (Ctrl + C):
bash <(curl -s https://raw.githubusercontent.com/tuxedojoe/tux4ubuntu/master/download-tux4ubuntu-installer.sh)
2) Open a terminal (Ctrl + Alt + T)

3) Paste (Ctrl + Shift + V) and run (ENTER) and choose where you want Tux
If something goes wrong, read our troubleshooting, if that doesn't help leave a comment below

Or, do it yourself

It's a fun adventure! If something fails, remember to look at our troubleshooting below. Before we get started, check if your OS was loaded with EFI or regular BIOS:
[ -d /sys/firmware/efi ] && echo "EFI detected"
If that echoes 'EFI detected' then you can carry on with Installing rEFInd bootloader and Tux4Ubuntu rEFInd theme, if not jump to Installing Tux4Ubuntu GRUB2 theme.

Installing rEFInd bootloader and Tux4Ubuntu rEFInd theme

Be aware that changes to your bootloader can make your OS not load. Backup all your data before you continue and have an extra Ubuntu install USB stick or DVD ready.
1) To install rEFInd we first need to add the ppa, update apt-get and then install it by running the following commands and follow the instructions:
sudo apt-add-repository ppa:rodsmith/refind
sudo apt-get update

sudo apt-get install refind
2) Download and unpack the theme by running:
wget -O ~/Downloads/tux4ubuntu.tar.gz https://github.com/tuxedojoe/tux4ubuntu/archive/master.tar.gz

tar -xzf ~/Downloads/
3) Copy the theme to the rEFInd folder /boot/efi/EFI/refind/
If you're not running Ubuntu 16.04 these files may be somewhere else
sudo mkdir -p /boot/efi/EFI/refind/themes
sudo cp -r ~/Downloads/tux4ubuntu-master/tux-refind-theme /boot/efi/EFI/refind/themes/tux-refind-theme
4) Add the theme to /boot/efi/EFI/refind/refind.conf
sudo grep -q -F 'include themes/tux-refind-theme/theme.conf' /boot/efi/EFI/refind/refind.conf || echo 'include themes/tux-refind-theme/theme.conf' | sudo tee -a /boot/efi/EFI/refind/refind.conf
5) Restart and look out for Tux!

Installing Tux4Ubuntu GRUB2 Theme

Be aware that changes to your bootloader can make your OS not load. Backup all your data before you continue and have an extra Ubuntu install USB stick or DVD ready.
1) Download and unpack theme
wget -O ~/Downloads/tux4ubuntu.tar.gz https://github.com/tuxedojoe/tux4ubuntu/archive/master.tar.gz

tar -xzf ~/Downloads/
tux4ubuntu.tar.gz -C ~/Downloads
2) Copy it to /boot/grub/themes/"
sudo cp -r ~/Downloads/tux4ubuntu-master/tux-grub2-theme /boot/grub/themes/
3) Adding 'GRUB_THEME=/boot/grub/themes/tux-grub2-theme/theme.txt' to '/etc/default/grub'
sudo grep -q -F 'GRUB_THEME="' /etc/default/grub || sudo sh -c "echo 'GRUB_THEME="/boot/grub/themes/tux-grub2-theme/theme.txt"' >> /etc/default/grub"
4) Tell GRUB2 to make a new cfg file
sudo grub-mkconfig -o /boot/grub/grub.cfg
5) Restart and look out for Tux!

Uninstalling rEFInd theme

0) BACKUP YOUR FILES if you haven't done that already :)
1) Run this in the terminal to open the config file
sudo gedit /boot/efi/EFI/refind/refind.conf

2) Remove the last line looking like this:
include themes/tux-refind-theme/theme.conf

3) Save and exit gedit

4) If you wish to uninstall rEFInd as well run the following command:
sudo rm -r /boot/efi/EFI/refind
5) Reboot and you're done!

Troubleshooting

Can't boot anything
Alt 1) Use a Ubuntu install DVD/USB stick. Once loaded you can edit the rEFInd/GRUB2 config files to what it was before it stopped working.
Alt 2) Check out your BIOS/EFI settings by pressing F2, F8, F12 or Delete directly after you turned on your PC. In the settings that appear, try to change boot to "Legacy". That way your computer will boot using BIOS (if you otherwise are running on EFI) and then Ubuntu will boot using the standard GRUB2 boot loader.

Alt 3) If you're dual booting try to change boot order so that the Windows boot loader starts. You can also try to switch your boot setting to "safe mode". That way Windows will load as well. You can then use Windows to attach your Ubuntu drive and from there edit rEFInd/GRUB2 files. 
Windows boots all the time
You may need to disable "safe boot" under Boot-options. rEFInd is not "safe" according to some manufactures, since its not recognized.

Want more Tux?

1) Tux Boot Loader Theme for Ubuntu (rEFInd, new GRUB2/BURG)
2) Tux Boot Logo Theme for Ubuntu (Plymouth, XSplash, graphical splash)
3) Tux's classiness to your Ubuntu Login Screen
4) Tux's classiness to your Desktop (Theme, Icons and Fonts)
5) Tux's selection of Wallpapers
6) Tux Games
7) Get the t-shirt
And check out our project on GitHub and contribute.

No comments:

Post a Comment