#Ubuntu Survival Guide This is a guide to those who don't use Ubuntu as their primary OS, and often tend to forget all the useful tricks and tips.
- Don't want to type sudo in every command
- Desktop background won't stay after reboot
- Installing external fonts
- Installing bunch of fonts (over 700MB)
- Recursively search for files
- Plugin off the wireless dongle
- Execute:
sudo modprobe -r usbhid
- Restart Ubuntu
Tired of constantly prefixing sudo in pretty much every command? Execute the following:
sudo -i
It will ask for the root password once for that instance, and for the subsequent commands that require root privileges will not ask for password again.
If you restart Ubuntu, your desktop background change may not persist and revert to the default Ubuntu background. In order to get around that, you need to copy the background files inside your user-name folder which is usually /user/user-name, and execute the following:
sudo chown -R user-name /home/user-name
Perhaps you want to copy all Windows 8.1 fonts, you should copy the *.ttf files inside a folder (in this instance, external-fonts), copy to /home/.fonts folder and rebuild the font cache.
sudo mkdir -p ~/.fonts/win8.1
cd external-folder
sudo cp *.ttf ~/.fonts/win8.1/
sudo chown -R user-name /home/user-name
sudo fc-cache -f -v
If you would like to view the /home/.fonts hidden folder in the Files, press Ctrl + H
.
sudo apt-get install ttf-mscorefonts-installer edubuntu-fonts ubuntustudio-font-meta ttf-oxygen-font-family ttf-xfree86-nonfree
sudo fc-cache -f -v
find . -print | grep -i '.*[.]json'
sudo nano /etc/default/grub # find and change the line to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"
sudo update-grub