The basic steps I often do every time I install a new Ubuntu system. The order of things is important.
Most of commands are for both Ubuntu and Pop!_OS, there are some which are only for Pop!_OS.
For Pop!_OS: You don't need to do everything in below steps.
- Using Rufus (on Windows) or Etcher (on any system, recommended) or popsicle (usb flasher, on Pop!_OS) to create a bootable USB driver.
- [Pop!_OS] Download Pop!_OS (with NVIDIA)
- (Update 05 Jun 2021 - IMPORTANT) If you're using DisplayLink Dock (more than 1 external screens, Pop!_OS doesn't work with the DisplayLink Driver 5.4 but it works for Ubuntu 20.04). So, you have no choice to use Ubuntu instead of Pop!_OS!!!! Read more.
- Choose a custom partition while installing > use at least 2 partitions for the installing (1 which is main for Root
/and one which is ~500MB for Boot
- Update & Upgrade
1sudo apt update & sudo apt upgrade
Download and install Google Chrome .👈 I use Brave
- Sign in to Google Account + sync all extensions + settings.
- Disable Tab hover information: Go to
chrome://flags/and search "tab hover" then choose "Disable".
- Install also these extensions:
- Install Guake Terminal (drop-down terminal supporting tabs). We install it first because we working mainly on terminal.
1sudo apt-get install guake 2# then add it to startup applications 3# 4# load preferences 5guake --restore-preferences ~/Downloads/guake_prefs
Note that: read Terminal + ZSH to install a good font and use zsh for terminal.
- Install GNOME Tweaks from App Store.
- Install git 👈 Check more in Github.
1sudo add-apt-repository ppa:git-core/ppa 2sudo apt update 3sudo apt install git
1# Tell who you are 2git config --global user.name "Thi" 3git config --global user.email "[email protected]"
1# Create a new ssh 2# Windows + Linux 3ssh-keygen -t rsa -b 4096 -C "[email protected]" 4# (-C for adding comment only) 5# Enter a file: 6# Linux: /home/thi/.ssh/id_rsa 7# Windows: C:\Users\dinha\.ssh\id_rsa 8# Enter password 9 10cat /home/thi/.ssh/id_rsa.pub 11# copy the public key 12# then go to: <https://github.com/settings/keys> to add this key
And then clone the repositories.
- Using rEFInd 👈 Just install and then restart to see the result!
1sudo apt-add-repository ppa:rodsmith/refind 2sudo apt-get update 3sudo apt-get install refind
In case you wanna hide some options in the boot manager with rEFInd, you can use
-button to hide it.
- Make Alt-Tab show windows instead of applications: change in Settings > Keyboards > Custom keyboards > Switch windows. Gnome: install this one to switch between windows on current screen only.
- [Optional] Make emojis showing up
1sudo apt install fonts-noto-color-emoji
After that (make browser recognize more icons), create a new file
with this content.
- Cannot use f keys on keyboard Keychron K8 (this is useful too):
1echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode 2# restore 3echo 1 | sudo tee /sys/module/hid_apple/parameters/fnmode
Hint: You can add this command to a script on startup.
- [Ubuntu only] Auto install drivers
1sudo ubuntu-drivers autoinstall
In case you wanna switch between Intel (more power efficient) and NVDIA driver (more powerful)
1sudo prime-select intel 2sudo prime-select nvidia
- [Ubuntu only] Check the NVDIA driver and install the newest version: check in Additional Drivers. In case you wanna remove it and reinstall it later, use
1sudo apt purge nvidia-*
- [Ubuntu only] Install GNOME Shell extensions
1sudo apt install gnome-shell-extensions
Install also chrome extension. Go to the corresponding extension link and turn it on and install it.
- Install video codecs,
1sudo apt install ubuntu-restricted-extras
- [Pop!_OS] Install snap:
sudo apt update && sudo apt install snapd.
- Install email client Mailsrping with snap:
sudo snap install mailspring.
1# Copy icon 2sudo cp /var/lib/snapd/desktop/applications/mailspring_mailspring.desktop /usr/share/applications/
- Install GoldenDict (app store) and dictionaries.
- Visual Studio Code and its basic extensions: Bracket Pair Colorizer, Docker, Linux Themes for VS Code, Markdown All in One, Markdown Shortcuts, Remote Development, Python, Auto Close Tags
Also add below settings to setting json file (
Pand search "Preferences: Open Settings (JSON)", it's in
- Turn off Gnome Shell Activities Animations (click on window taskbar to toggle max/min),
1gsettings set org.gnome.desktop.interface enable-animations true # enable 2gsettings set org.gnome.desktop.interface enable-animations false # disable
- IBUS Bamboo, Vietnamese Input Method. Need to restart Ibus and choose Bamboo in the keyboard layout. You can use also
~for changing the options (Removing the underline, for example) -- You have to switch to Vietnamese Input before using this shortcut. Use
Spaceto change between input methods.
- [Optional] You may need to install Python before install (successfully) Overgrive.
- Google Drive client for Ubuntu: OverGrive (5$ for each account). An alternative to Vgrive.
1# startup commandline for overgrive 2python3 /opt/thefanclub/overgrive/overgrive
1sudo apt-get install texlive-full # 5GB 2sudo apt-get install texmaker
- If you install Matlab, you can install
matlab-supportto add matlab icon to applications. Note that, if matlab exe file is at
/usr/local/MATLAB/R2017b/bin/matlab, we add the location of folder as
Eto open Nautilus File Manager: change in Keyboard shortcut > Custom Shortcut with command
- Default text editor
gedit, you can use this command in terminal.
Gnome Calendarin app store.
- Screen Recorder, use Kazam (app store). If cannot recognize mic and speaker, read this solution. An alternative is SimpleScreenRecorder.
- VLC (app store). If there is a problem of displaying video (there is only sound without video), check this.
- Read SD card
1sudo apt-get install exfat-utils exfat-fuse
- If you wanna make nautilus default again:
1xdg-mime default nautilus.desktop inode/directory application/x-gnome-saved-search 2gsettings set org.gnome.desktop.background show-desktop-icons true
- If you wanna make some web app a desktop app, use nativefier.
- Bluetooth problem on Dell XPS 15 only: cannot turn on bluetooth ⇒ Try turn off and turn on again the bluetooth in BIOS setting.
- Useful shortcuts:
- Capture fullscreen:
Ctrl+Alt+Print(photos will be saved in Pictures)
- Show desktop: set in Keyboards settings, try to find "Hide all normal windows".
- [Only Ubuntu] Connect Airpod to Ubuntu 20.04:
1# check bluetooth service is running 2hciconfig -a 3# 4# open a file 5sudo nano /etc/bluetooth/main.conf 6# 7# add 8ControllerMode = bredr 9# 10# restart bluetooth service 11sudo /etc/init.d/bluetooth restart 12# 13# disconnect other headphone device 14# press and hold backward button in the airpod case (flash light) 15# connect to airpod as other device via bluetooth
- Location of
1~/.local/share/applications/ 2/usr/share/applications/ 3/var/lib/snapd/desktop/applications/ 4# or 5locate *.desktop # bash 6locate \*.desktop # zsh
- [Optional]Xbox controller bluetooth connection: check this.
- Remove icon from dash application
1sudo add-apt-repository ppa:caldas-lopes/ppa 2sudo apt-get update 3sudo apt-get install ezame
- Restore dconf setting:
1dconf load / < dconf-settings.ini 2# or 3cat dconf-settings.ini | dconf load /
- Restore custom keyboard shortcuts
1# load 2dconf load /org/gnome/desktop/wm/keybindings/ < keybindings.dconf 3dconf load /org/gnome/settings-daemon/plugins/media-keys/ < keybindings.dconf
- [Optional] Disable touchpad automatically when plugging mouse:
1sudo add-apt-repository ppa:atareao/atareao 2sudo apt update 3sudo apt install touchpad-indicator 4# then open > click on icon > preferences 5# > action tab > "Disable touchpad when mouse plugged"
- Other applicatons:
- Extreme Download Manager (uninstall by running as root
AO (MS to do for Ubuntu):
snap install ao
- Shotwell or gThumb (image viewer + quick editor, install on Store)
- KolourPaint (photo editor supports cut and move a selection like Paint on Windows, install from AppStore)
- Cheese (camera app)
Stacer (optimizer system like Advanced System Care) Google Music. This one: Youtube Music Desktop (install with snap) -- Remove the coincisive keys with the system's. Authenticator
- alacarte (Main Menu, can be found in App Store): change/add icon in launcher.
- Swap function keyboards on Logitech K380, using this tool (try all keyboard hidraws if you are not sure!).
- Force Unity Dash to index all files on Home:
sudo updatedb(install by
sudo apt-get install mlocate)
- [Only Ubuntu] There are 2 ubuntu softwares in dash? (ref this question). "Ubuntu software" is pre-installed snap store (run by
snap-store), the other is
- Backup before installing a new system.
- Settings in
- All apps in
~/apps/with their desktop files in
- Pop!_OS Tips:
Y: toggle tiling mode.
- Add a windows/applition exepton of tiling mode (it won't be counted)
- Make clocks + dates 2 lines -> tutorial.
- Install clock override extension.
%H:%M%n%d/%m/%Yin text to display instead of the clock (with the spaces so that they are center aligned).