Contents

Install Linux Mint 20.1 Ulyssa Cinnamon

Install Linux Mint 20.1 Ulyssa Cinnamon

Mint

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
$ cat /etc/os-release 
NAME="Linux Mint"
VERSION="20.1 (Ulyssa)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20.1"
VERSION_ID="20.1"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=ulyssa
UBUNTU_CODENAME=focal

$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=20.1
DISTRIB_CODENAME=ulyssa
DISTRIB_DESCRIPTION="Linux Mint 20.1 Ulyssa"


Disk Partitions

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
$ sudo fdisk -l /dev/sda
Disk /dev/sda: 698.65 GiB, 750156374016 bytes, 1465149168 sectors
Disk model: WDC WD7500BPKT-7
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x4057e768

Device     Boot    Start        End    Sectors  Size Id Type
/dev/sda1           2048     999423     997376  487M  b W95 FAT32
/dev/sda2  *      999424    3000319    2000896  977M 83 Linux
/dev/sda3        3000320   35000319   32000000 15.3G 82 Linux swap / Solaris
/dev/sda4       35000320 1465147391 1430147072  682G 83 Linux

$ df |grep -e Mount -e sda
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda4      702801160 12192708 654838392   2% /
/dev/sda2         968312   309968    591940  35% /boot
/dev/sda1         497696        4    497692   1% /boot/efi

Git

Add the Official PPA by GIT, update the repository and then install Git.

1
2
3
$ sudo add-apt-repository ppa:git-core/ppa
$ sudo apt-get update
$ sudo apt-get install git

Reference: How to Install Git 2.28.0 in Ubuntu / Linux Mint & CentOS?


Terminator

Just do this for old version 1.91.

1
sudo apt-get install terminator

For the latest, add the official PPA, update the repository and then install Terminator.

1
2
3
sudo add-apt-repository ppa:mattrose/terminator
sudo apt-get update
sudo apt install terminator

Reference:


Google Chrome

First, download the Google signing key and install it.

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

Set up the Google Chrome repository.

1
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list

Update the repository index, install the stable version.

1
2
sudo apt-get update
sudo apt-get install -y google-chrome-stable

Reference: How to Install Google Chrome in Linux Mint 20


Hugo

Reference: Install Hugo from Tarball


Ibus-pinyin

ibus-pinyin is an input method for traditional Chinese. Here is the installation procedure.

1
2
3
$ sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-doc
$ sudo im-config -s ibus
$ sudo apt install ibus-pinyin

To set ibus as preference by adding these environment variables into ~/.bashrc .

1
2
3
4
5
6
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
export QT4_IM_MODULE=ibus
export CLUTTER_IM_MODULE=ibus


Add user

Script to add user

1
2
3
#!/bin/bash
groupadd -g 8888 cosmos
useradd -m -u 9009 -g 8888 -c "Dyi-Wu Liu,," -s /bin/bash -G adm,cdrom,sudo,dip,plugdev,lpadmin,sambashare,cosmos dyiwu

Evolution

1
2
3
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install evolution

Fonts

  • 文泉驛正黑

    1
    
    sudo apt-get install fonts-wqy-zenhei
    
  • 文泉驛微米黑

    1
    
    sudo apt-get install fonts-wqy-microhei
    
  • 文泉驛點陣宋體

    1
    
    sudo apt-get install xfonts-wqy
    
  • 文鼎字型

    1
    
    sudo apt-get install fonts-arphic-uming 
    

    如要安裝全部文鼎中文字型,可輸入以下指令:

    1
    
    sudo apt-get install fonts-arphic*
    
  • 教育部標準楷書

    1
    
    sudo apt-get install fonts-moe-standard-kai
    
  • cwTex圓體

    1
    
    sudo apt-get install fonts-cwtex-yen
    
  • Noto Sans CJK (思源黑體)

    1. 先上官網(http://www.google.com/get/noto/) 複製DOWNLOAD ALL FONTS按鈕的網址,格式大概如下:

      https://noto-website-2.storage.googleapis.com/pkgs/Noto-unhinted.zip

    2. 進入一個新增的資料夾:

      1
      2
      
      sudo mkdir /usr/share/fonts/truetype/Noto-unhinted
      cd /usr/share/fonts/truetype/Noto-unhinted
      
    3. 下載字型壓縮檔:

      1
      
      sudo wget https://noto-website-2.storage.googleapis.com/pkgs/Noto-unhinted.zip
      
    4. 解壓縮

      1
      
      sudo unzip Noto-unhinted.zip
      
    5. update font cache and reboot

      1
      2
      3
      
      sudo fc-cache -f -v
      fc-cache -f -v
      sudo reboot
      

Reference:


Remmina

Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks.

Remmina supports multiple network protocols in an integrated and consistent user interface.

The profile options relax-order-checks and glyph-cache, which are under profile’s advanced tab, need be enabled to make remmnia work in Raspberry Pi.

xfreerdp /w:1900 /v:MyDNSServername /relax-order-checks +glyph-cache

An official PPA with Remmina 1.4.7 release can be installed by copying and pasting this in a terminal:

1
2
3
4
sudo apt-add-repository ppa:remmina-ppa-team/remmina-next
sudo apt update
sudo apt install remmina remmina-plugin-rdp remmina-plugin-secret
sudo apt install freerdp2-x11 remmina-plugin-nx remmina-plugin-exec remmina-plugin-kwallet remmina-plugin-xdmcp remmina-plugin-www fam qt5-qmltooling-plugins

Make sure Remmina is not running. Either close it, reboot, or kill it by pasting this in a terminal:

1
sudo killall remmina

List available plugins with apt-cache search remmina-plugin. By default RDP, SSH and SFTP are installed.

1
apt-cache search remmina-plugin

Reference: How to install Remmina

Samba Client

Access network SAMBA share from Pi Client

Install required packages

1
sudo apt-get install samba-common smbclient samba-common-bin cifs-utils

Create directory for mount point

1
2
3
4
sudo mkdir /mnt/ds420p
sudo mkdir /mnt/ds420p/video
sudo mkdir /mnt/ds420p/music
sudo mkdir /mnt/ds420p/photo

Create a credential file for saving the user name and password.

1
2
3
4
sudo cat /root/smb.cred
username=xyz
password=password_of_xyz
domain=workgroup

Save this credential file and change its permissions so it is not readable by others.

1
2
sudo chown root:root /root/smbcred
sudo chmod 600 /root/smbcred

Create entries in /etc/fstab

1
2
3
4
5
grep cifs /etc/fstab
//ds420p/video  /mnt/ds420p/video cifs credentials=/root/smb.cred  0  0
//ds420p/music  /mnt/ds420p/music cifs credentials=/root/smb.cred  0  0
//ds420p/photo  /mnt/ds420p/photo cifs credentials=/root/smb.cred  0  0

Test it,

1
2
3
4
5
sudo mount -a
df | grep ds420p
//ds420p/video 7742705752 7561820676 180885076  98% /mnt/ds420p/video
//ds420p/music 7742705752 7561820676 180885076  98% /mnt/ds420p/music
//ds420p/photo 7742705752 7561820676 180885076  98% /mnt/ds420p/photo

Typora

Typora is a truly minimal markdown editor.

Add repository server’s key by

1
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE

or

1
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -

Add Typora repository

1
2
sudo add-apt-repository 'deb https://typora.io/linux ./'
sudo apt-get update

Install Typora

1
sudo apt-get install typora

Pdfunite

Pdfunite is a handy tool that can be used for merging to or more PDF documents. It is part of poppler-utils package, so install poppler utils, end up with pdfunite.

To install pdfunite, we’ll install the poppler-utils package as shown

1
apt install poppler-utils

To merge the PDF documents, the syntax will be as shown

1
pdfunite file1.pdf file2.pdf merged_output.pdf

Reference: How to Merge PDF Files on Linux

Open-vm-tools

Make sure open-vm-tools (and open-vm-tools-desktop if you’re using a desktop environment) are installed, and that you’ve rebooted after their installation.

1
2
sudo apt update
sudo apt install open-vm-tools open-vm-tools-desktop

Make sure you have a /mnt/hgfs directory made and empty. If not:

1
sudo mkdir -p /mnt/hgfs

To mount the filesystem, run:

1
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other

The shared folders will now be in subdirectories of /mnt/hgfs

Add the following line to /etc/fstab to set up auto-mounting

1
.host:/ /mnt/hgfs fuse.vmhgfs-fuse auto,allow_other 0 0

Reference: open-vm-tools and VMWare Shared Folders for Ubuntu guests

Tips

To create symlinks in Linux Mint Cinnamon: In the file manager (Nemo) open the View menu > Extra Pane.

Open the Desktop folder in one pane, and the source folder in the other pane. Click on the folder or file you want to symlink.

Hold down SHIFT-CTRL and drag the folder to the other pane. A symlink will be magically created.

Reference: Creating shortcuts

Reference: