Skip to content

Instantly share code, notes, and snippets.

@tsaqib
Last active May 30, 2016 09:26
Show Gist options
  • Save tsaqib/fd748cd9a5f94a93ebd2 to your computer and use it in GitHub Desktop.
Save tsaqib/fd748cd9a5f94a93ebd2 to your computer and use it in GitHub Desktop.
Ubuntu Survival Guide

#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.

Hardware


Operating System

Hyper-V


Hardware

Can't recognize wireless mouse anymore

  1. Plugin off the wireless dongle
  2. Execute: sudo modprobe -r usbhid
  3. Restart Ubuntu

Operating System

Don't want to type sudo in every command

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.

Desktop background won't stay after reboot

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

Installing external fonts

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.

Installing bunch of fonts

sudo apt-get install ttf-mscorefonts-installer edubuntu-fonts ubuntustudio-font-meta ttf-oxygen-font-family ttf-xfree86-nonfree
sudo fc-cache -f -v

Recursively search for files

find . -print | grep -i '.*[.]json'

Ubuntu screen resolution is too low

sudo nano /etc/default/grub # find and change the line to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"
sudo update-grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment