New ubuntu system setup steps

I keep my ubuntu system initial setup checklist here in case of future need when I get some new computer to set up. System clone can be tricky when setting up a new machine with different hardware. Build from the ground up is a safer way to do it. It will cost you some time but it always results in a familiar and convenient environment.

  1. Configure sources.list file, use tuna mirrors at tsinghua university, it is the fastest mirror in my location.

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

    sudo gedit /etc/apt/sources.list

    Change the file content to tsinghua mirror deb lists.

  2. Update the system

    sudo apt update

    sudo apt upgrade

  3. Modify the grup default startup

    If the computer has diffirent os other than ubuntu, need modify /etc/default/grub, set GRUB_DEFULT to according startup item list sequence, like 4. set GRUB_TIMEOUT

    Then run

    sudo update-grub
    to enable the modification.

  4. Setup network proxy

    Install putty.

    sudo apt install putty

    Copy required session and ppk files into new system, the fix folder is $HOME/.putty/session and ‘$HOME/Tools/EC2-Ubuntu` respectively.

    After copy the files, run putty and start the session EC2.
    Start System setting tools Settings/Network/Network Proxy, select Automatic, set the Configuration URL to file:///$HOME/Tools/vpnPAC/OmegaProfile_Proxy.pac

    Install Chromium-browser, sign in google acount and sync.

    sudo apt install chromium-browser

  5. Install fcitx and Sougou Pinyin for linux by following this link

    sudo apt install fcitx

    install the deb file downloaded from the link above.

    Open Settings/Region & Language, Manage Installed Languages, install Simple Chinese and set the Keyboard input method system to fcitx.

    Configure input method, add sougou Pinyin.

  6. Mails

    Copy old mails from $HOME/.thunderbird and paste them to the corresponding folders.

  7. Keyboard Shortcuts Settings

    • Home folder: Super+E
    • Launch Terminal: Super+T
    • Settings: Super+C
    • Close Window: Super+X
    • Hide Window: Super+Z
    • PrtSc-Area-cliboard: Ctrl+Alt+C: gnome-screenshot -a -c
    • System-Monitor: Ctrl+Alt+M: gnome-system-monitor
    • PrtSc-Area: Ctrl+Alt+A: gnome-screenshot -a
    • fsearch: Super+F: fsearch
  8. Install development supporting apt packages and required softwares.

    sudo apt-get install git build-essential automake autoconf libtool pkg-config intltool autoconf-archive libpcre3-dev libglib2.0-dev libgtk-3-dev libxml2-utils

    sudo apt install doublecmd-gtk gnome-tweaks dconf-tools virtualbox wps-office default-jre default-jdk openjdk-8-jre openjdk-8-jdk

    • fsearch
    • Double commander, You will encounter an error when you want to extract rar files under doublecmd. Linux Mint Debian Edition (LMDE) does not include, this means you cannot open RAR files with Double Commander. You need to build yourself by following the link at the beginning of this paragraph.
    • anaconda using mirror at Tsinghua tuna mirror site
    • FoxitReader
    • Visual Studio Code, extensions can be installed by copy $HOME/.vscode/extensions folder to the according folder.
    • Zotero
    • Docear, docear need java 8 runtime, run sudo update-alternatives --config java to config the java runtime to openjave-8-jre. The compatible PDf Viewer selection under ubuntu is tricky, the version is V2.5 build 322.9, it’s a green edition, and the pdf management configuration need to be wine*$HOME/Tools/PDFXViewer/PDFXCview.exe*/A*page=$PAGE*$FILE. Also need to set the copy comment to clipboard and single document settings in PDFXViewer.
    • Gitkraken
    • Wps Office need to download and install wps-fonts, one need to copy them into the exact folder /usr/share/fonts/wps-fonts.
  9. Set the dock click action to minimize. using dconf-editor tools, goto org/gnome/shell/extensions/dash-to-dock/click-action,
    change the custom value to ‘minimize’

  10. Install Windows in Virtualbox, the installation is simple strait forward, the tricky part is the Virtualbox extensions pack, to use software like Altium Designer in virtualbox and USB 3.0 hard drives, one need to enable 3D acceleration and USB 3.0 respectively, in order to do that, install the extensions pack in windows safe mode, which can enter by click F8 at the startup.

  11. After restore virtualbox image to other computer, you may encounter an error when you are trying to connect usb devices in virtualbox machines, to solve that you need add ubuntu user to group vboxusers and usbfs in /etc/group file.
  12. Remmina is a good way to use remote desktop, the version ubuntu provided is kind of low, to get better experience and latest version, do as follow steps

    sudo apt-add-repository ppa:remmina-ppa-team/remmina-next

    sudo apt-get update

    sudo apt-get install remmina remmina-plugin-rdp

  13. Jupyter notebook extensions. If you are using jupyter notebook for interactive python develop, you may want to add some additional feather to it. nbextensions is a good choice to manage the extensions.

    active your anaconda environment.

    pip install jupyter_contrib_nbextensions -i
    jupyter contrib nbextension install –user

    pip install –user jupyter_nbextensions_configurator
    jupyter nbextensions_configurator enable –user