New Linux Mint/Ubuntu System Install and Setup

Originally Posted on with tags: linux / linux mint
Last Update on

I have been using Linux Mint since June 2019. Most times I am happy with it. It seems that version 19.x is more stable than 20.x at this time. My computer still has 19.3 installed, and eventually I will upgrade to 20.x or a newer version. Here is a short note to setup linux mint on a new computer.

The system has been upgraded to Linux Mint 21.1 Cinnamon in May 2023, and
the article has been modified to reflect that.


Here is a list of things to do:

  1. Remove vim-tiny and install vim. Add a ~/.vimrc, copy code from previous blog post.

  2. Map the Synology Network Drive.

  3. Install git, this step is needed for pyenv install. Do not forget to set user email and user name.

  4. Install pyenv and latest python 3.X.

  5. Setup SSH keys and upload to github.

  6. Download github repos with git clone.

  7. Install Chrome, VS Code (download deb packages).

  8. Install other apps like Node, Inkscape, GIMP, etc.

  9. Copy Roboto font and Fira Code font. Font Selection tool to set default font.

Add New Fonts

This tutorial has information on how to add new fonts to Linux Mint.

The easy way is to copy truetype font files into this directory.


Here is an excellent online article about how to set default fonts and font aliases on Linux.

VS Code

The VS code settings file is in this directory:


The file has these lines:

    "editor.fontFamily": "'Fira Code', 'monospace', monospace, 
      'Droid Sans Fallback'",
    "editor.fontSize": 16,
    "liveServer.settings.AdvanceCustomBrowserCmdLine": "google-chrome",
    "printcode.browserPath": "/usr/bin/google-chrome",

The print functionality of Chrome is much better than Mozilla Firefox that comes with Linux Mint installation.


Here are the output of history bash command (with edit).

# update the system
sudo apt-get update
sudo apt-get upgrade

# update vim
sudo apt-get remove vim-tiny
sudo apt-get update
sudo apt-get install vim
vim ~/.vimrc

# mount synology network drive
sudo vim /etc/fstab 
sudo vim /etc/samba/credentials
sudo mkdir /media/synology
sudo mount -a

# git install and config
sudo apt install git
git --version
git config --global "<email address>"
git config --global "<name>"

# Install pyenv
sudo apt update
sudo apt install build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev curl libncursesw5-dev xz-utils tk-dev \ 
libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev

curl | bash

vim .bashrc 
# Add those 3 lines to .bashrc for new version of
# export PYENV_ROOT="$HOME/.pyenv"
# command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
# eval "$(pyenv init -)"

exec "$SHELL"
pyenv install --list | grep " 3\.[6789]"

# install python under pyenv
pyenv install --help
pyenv install 3.9.1
pyenv global 3.9.1

# ssh key generation
ssh-keygen -t rsa -b 4096 -C "<email address>"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa

cat ~/.ssh/ 
cd Desktop/
mkdir git-repo
cd git-repo/
git clone<repo address>

python -V
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt 
invoke livereload

Linux Mint/Windows Dual Bool Time Issue

When a computer has both Linux Mint and Windows system installed, the system time in Windows is wrong. The issue is described in this article.

The easy way to fix the issue is to run the commands in Ubuntu,

timedatectl set-local-rtc 1