Skip to content

Instantly share code, notes, and snippets.

@cwhy
Last active March 22, 2018 03:57
Show Gist options
  • Save cwhy/b8fc2f2b6b838e29e1ee85c6ef2bb3cd to your computer and use it in GitHub Desktop.
Save cwhy/b8fc2f2b6b838e29e1ee85c6ef2bb3cd to your computer and use it in GitHub Desktop.
Ubuntu desktop routine
  • (Tested on 16.04.3)

System Config

  • Choose closest update server location
  • Disable activity record in Security & Privacy
  • Change Firefox download settings
  • Enable workspace in Appearance/Behavior
  • [Optional] Dual screen setup (remove sticky edges)
  • [Optional] Add printers

Home setup

cd ~
mkdir Projects
mkdir ToDelete
mkdir Projects/Temp
mkdir Softwares
mkdir Softwares/Downloads
mkdir Softwares/Launchers
mkdir Softwares/DesktopEntries
ln -s Softwares/DesktopEntries ~.local/share/applications/Softwares
echo "export SOFTWARES=/home/owner/Softwares" > Softwares/softwares.sh
mkdir Style
touch Style/style.sh
mkdir Style/Fonts
echo "
source ~/Style/style.sh
source ~/Softwares/softwares.sh
" > ~/cli_config.sh

cat >> ~/.bashrc << EOF

# Custom script by CWhy
source ~/cli_config.sh
EOF

System upgrade and install essentials

sudo apt update
sudo apt upgrade
sudo apt install git vim openssh-server tmux htop curl

Install Chrome

echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list  

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -  

sudo apt-get update  

sudo apt-get install google-chrome-stable

[1]

SSH setup

  • [optional] Copy an existing key

    • Copy the key to ~/.ssh/
    chmod 600 ~/.ssh/*
    ssh-add id_rsa
  • [optional] Create a new key

ssh-keygen -t rsa -C "chenyyuio@gmail.com"
cd ~/.ssh
ssh-add id_rsa
cat id_rsa.pub
  • Add the above key to github

Solarized style

cd ~/Style
git clone git@github.com:Anthony25/gnome-terminal-colors-solarized.git
./gnome-terminal-colors-solarized/install.sh
git clone git@github.com:seebi/dircolors-solarized.git
ln -s ~/Style/dircolors-solarized/dircolors.256dark ~/.dircolors
echo "eval `dircolors ~/.dir_colors/dircolors`" >> ~/Style/style.sh

Git/Vim setup

git config --global user.email "chenyu.nus@gmail.com"
git config --global user.name "Chen Yu"
git config --global core.editor vim
update-alternatives --config editor
cd ~
git clone --recursive git@github.com:cwhy/.vim 

Add system load indicator

sudo add-apt-repository ppa:indicator-multiload/stable-daily
sudo apt update
sudo apt install indicator-multiload

Install monofur font and setup powerline

  • Download monofur font as a folder in ~/Style/Fonts
ln -s Style/Fonts .fonts
fc-cache -f -v
  • Modify setting in terminal to use monofur

Install numix theme

sudo add-apt-repository ppa:numix/ppa
sudo apt update
sudo apt install numix-icon-theme-circle
sudo apt install numix-gtk-theme
gsettings set org.gnome.desktop.interface icon-theme "Numix-Circle"
gsettings set org.gnome.desktop.interface icon-theme "Numix-Circle"
gsettings set org.gnome.desktop.interface gtk-theme "Numix"
gsettings set org.gnome.desktop.wm.preferences theme "Numix"
sudo apt install numix-wallpaper-*

[2]

Install sogou input method

sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 8D5A09DC9B929006
sudo dpkg -i ~/Softwares/Downloads/sogoupinyin*.deb; sudo apt -f install
sudo apt update
  • Restart the computer [3]

[Optional] Install tilda

sudo apt install tilda

[Optional] Install local Python version

[Optional] Extra Python-related tools installation

pip install flake8
  • Install Powerline [4]

Links

[1] https://askubuntu.com/questions/765037/why-does-google-chrome-not-install-in16-04-ubuntu

[2] https://github.com/numixproject/numix-gtk-theme

[3] http://ubuntuhandbook.org/index.php/2016/07/2-best-chinese-pinyin-im-ubuntu-16-04/

[4] https://github.com/banga/powerline-shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment