New Linux Mint Install and Setup

Posted on with tags: linux / linux mint

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.


Here is a list of things to do:

  1. Remove vim-tiny and install vim-gtk3. 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.9.1.

  5. Setup SSH keys and upload to github.

  6. Download github repos with git clone.

  7. Install Chrome, VS Code (download deb packages). Chrome will ask for a keyring password, leave it blank. Check out this post for more info.

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

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

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.


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.

Printer Driver

Canon website provides printer drivers for Debian Linux. Download the driver file, upzip it, and run sudo ./ command to install it.


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-gtk3
vim ~/.vimrc

# mount synology network drive
sudo vim /etc/fastab
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-get install -y make build-essential libssl-dev zlib1g-dev 
 libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev
 libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl 
curl | bash
vim .bashrc 
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