Configuration of Ubuntu
1 Appearance
1.1 Themes(Application Themes & Shell Themes & Icons)
You can visit Gnome Themes to find application themes, shell themes, and icons.
1.1.1 Installation
- Create folder
~/.themes
and~/.icons
. - Download the archive file and extract files to that folder.
1.1.2 Applications & Shell Themes
1.1.3 Icons
1.2 Fonts
1.2.1 Powerline Fonts
This contains pre-patched and adjusted fonts for usage with Powerline status line plugin.
Installation
sudo apt install fonts-powerline
1.2.2 Nerd Fonts
Installed font: Hack
Installation
# Download the zip file and extract files to ~/.local/share/fonts
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Hack.zip
unzip Hack.zip
mv Hack\ * ~/.local/share/fonts
# Clear and regenerate the cache and indexes.
fc-cache -f -v
# Confirm that the fonts are installed.
fc-list | grep "Hack"
1.2.3 Comfortaa
Installation
sudo apt install fonts-comfortaa
1.3 Wallpapers
You can visit Wallpapers to find more wallpapers.
2 Extensions
You can visit GNOME Shell Extensions to find and download extensions.
2.1 Recommended Extensions
2.1.1 Tweaks
Tweak advanced GNOME 3 settings.
sudo apt install gnome-tweaks
2.1.2 User Themes
Load shell themes from user directory.
2.1.3 GSConnect
Transfer files with mobile phone.
3 Terminal
3.1 Oh My Zsh
A framework of zsh manages themes and plugins of zsh.
3.2 Lsd
This is a next generation of command ls
which makes the output of ls
beautiful.
This should be used with font Hack Nerd Font Regular
.
3.2.1 Installation
wget https://github.com/Peltoche/lsd/releases/download/0.19.0/lsd_0.19.0_amd64.deb
sudo apt install lsd_0.19.0_amd64.deb
3.2.2 Alias
alias ls='lsd'
alias ll='lsd -l'
alias la='lsd -a'
alias lla='lsd -la'
alias lt='lsd --tree'
3.3 Color Scheme
3.3.1 Gogh
Pre-Installation
sudo apt install dconf-cli uuid-runtime
Installation
git clone https://github.com/Mayccoll/Gogh.git
cd Gogh/themes
# Necessary on Ubuntu
export TERMINAL=gnome-terminal
# Install themes
Recommended Schemes
- 139, Paul Millr
- 161, Snazzy
- 177, Symphonic
4 Applications
4.1 Goldendictionary
Installation
sudo snap install goldendictionary
Add Dictionary
Select Edit > Dictionaries > Sources > Websites > Add
, and set the Name
as youdao
and set the Address
as http://dict.youdao.com/search?q=%GDWORD%&ue=utf8
. Then check Enabled
.
Select Dictionary
Select Edit > Dictionaries > Dictionaries
and then drag the dictionary to active group or inactive group.
4.2 Sublime Text
Installation
sudo snap install sublime-text
4.3 Google Chrome
Installation
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install google-chrome-stable_current_amd64.deb
4.4 Visual Studio Code
4.5 Typora
4.6 Zotero
Installation
wget https://download.zotero.org/client/release/5.0.95/Zotero-5.0.95_linux-x86_64.tar.bz2
Turn on Sync
Enter Edit > Preferences > Sync
and input user and password of your account.
4.7 Startup Disk Creator
Installation
sudo apt install usb-creator-gtk
4.8 Wps
Installation
wget https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/10161/wps-office_11.1.0.10161.XA_amd64.deb
4.9 Pycharm
Installation
sudo snap install --classic pycharm-professional
4.10 StarUML
Installation
wget https://staruml-7a0.kxcdn.com/releases-v4/StarUML_4.0.0_amd64.deb
4.11 Todoist
Installation
sudo snap install todoist
5 Network
We configure a proxy with electron-ssr which provides proxy of HTTPS as frontend and Hivessr as backend.
Install Electron-ssr
wget --directory-prefix=$DOWNLOAD_DIR_PREFIX https://github.com/shadowsocksrr/electron-ssr/releases/download/v0.2.7/electron-ssr-0.2.7.deb
sudo apt install -y $DOWNLOAD_DIR_PREFIX/electron-ssr-0.2.7.deb
Configure Proxy
Set Settings > Network > Network Proxy
to Automatic
and set the value to http://127.0.0.1:2333/proxy.pac
.
FAQ
1. Reboot gnome shell.
Press Alt + F2
and enter r
to reboot the gnome shell.
Use gnome-shell --replace
to reboot the gnome shell.
2. Where do desktop files save in Ubuntu.
root user | other user | |
---|---|---|
snap application | /snap/app/current/snap/gui |
/snap/app/current/snap/gui |
deb application | /usr/share/applications |
~/.local/share/applications |
3. Unzip file in format tar.xz.
Use tar -xvJf file
.
4. The /etc/hosts
file.
This file save some mappings of some hostnames to IP addresses. Because as machine gets started, it will need to know these mappings before DNS can be referred. This file can also be used to add some mappings which will make machine resolve hostnames to specific IP address.
# For example
IP_address Hostname
127.0.0.1 localhost
# The follow can make machine resolve hostname imap.google.com to address 127.0.0.1.
127.0.0.1 imap.google.com