Ubuntu Install Software

used software: nomacs, Flameshot, kphotoalbum, Krita, xournal, ImageMagick, pppoeconf, redshift, gparted, tree

package manager

Software

安装文件

Deb File

# way 1
sudo apt install ./file.deb
# way 2
sudo apt install gdebi
sudo gdebi file.deb
# way 3
sudo dpkg -i file.deb

references:

  1. https://help.ubuntu.com/kubuntu/desktopguide/C/manual-install.html

  2. https://itsfoss.com/install-deb-files-ubuntu/

  3. https://linuxize.com/post/how-to-install-deb-packages-on-ubuntu/

软件列表

cmus

cmus is a small, fast and powerful console music player for Unix-like operating systems. https://github.com/cmus/cmus

sudo apt-get install cmus

Albert

curl https://build.opensuse.org/projects/home:manuelschneid3r/public_key | sudo apt-key add -
echo 'deb http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_20.04/ /' | sudo tee /etc/apt/sources.list.d/home:manuelschneid3r.list
sudo wget -nv https://download.opensuse.org/repositories/home:manuelschneid3r/xUbuntu_20.04/Release.key -O "/etc/apt/trusted.gpg.d/home:manuelschneid3r.asc"
sudo apt update
sudo apt install albert

https://albertlauncher.github.io/installing/#using-official-albert-repositories

Anki

Install from here

Then exec these orders:

tar xjf Downloads/anki-2.1.42-linux.tar.bz2
cd anki-2.1.42-linux
sudo ./install.sh

apt

apt-key

apt-key del <keyid>         - remove the key <keyid>
# examples:
# pub   rsa3072 2020-09-02 [SC] [expires: 2022-09-02]
#       2CA3 2056 ED20 6CB8 1F44  A8CA C99B 11DE B975 41F0
# uid           [ unknown] Nate Smith <[email protected]>
# sub   rsa3072 2020-09-02 [E] [expires: 2022-09-02]
sudo apt-key del "2CA3 2056 ED20 6CB8 1F44  A8CA C99B 11DE B975 41F0"
# or
sudo apt-key del B97541F0

keyid is the last 8 characters of the gpg key’s fingerprint, which is that long hex-code under pub.

apt-fast

sudo add-apt-repository ppa:apt-fast/stable
sudo apt-get update
sudo apt-get -y install apt-fast
# zsh
cp completions/zsh/_apt-fast /usr/share/zsh/functions/Completion/Debian/
chown root:root /usr/share/zsh/functions/Completion/Debian/_apt-fast
source /usr/share/zsh/functions/Completion/Debian/_apt-fast

source

Curl

sudo apt-get install curl

ref:

  1. curl 错误总结

gh

source

# way 1(not work for me)
$ curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
$ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
$ sudo apt update
$ sudo apt install gh
# error when first step: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 127.0.0.1:7890

# way 2
$ wget https://github.com/cli/cli/releases/download/v1.10.2/gh_1.10.2_linux_amd64.deb && sudo apt install ./gh_1.10.2_linux_amd64.deb

gpg

ref: GnuPrivacyGuardHowto

FileZilla

sudo apt install filezilla

proxychains-ng

Clash

Install Clash

wget -O clash.gz https://github.com/Dreamacro/clash/releases/download/v1.6.0/clash-linux-amd64-v1.6.0.gz
gzip -f clash.gz -d
sudo mv ~/clash /usr/local/bin/clash
chmod +x /usr/local/bin/clash
clash -h
clash # Generate config.yaml, Country.mmdb in ~/.config/clash

Config

curl https://....yaml >> ~/.config/clash/config.yaml
# Config ~/.config/clash/config.yaml in terminal or with Web UI: http://clash.razord.top/
# UI port is external-controller's port

# Set daemon
sudo vim /etc/systemd/system/clash.service

systemctl daemon-reload
systemctl enable clash
service clash start # 启动
service clash stop # 停止
service clash restart # 重启
service clash status # 状态

/etc/systemd/system/clash.service:

[Unit]
Description=Clash daemon, A rule-based proxy in Go.
After=network.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/clash -d "/home/tianheg/.config/clash"

[Install]
WantedBy=multi-user.target

.zshrc:

# terminal proxy (Ubuntu)
export http_proxy="http://127.0.0.1:7890"
export https_proxy="https://127.0.0.1:7890"
export http_proxy_user=user
export http_proxy_pass=pass
export https_proxy_user=user
export https_proxy_pass=pass

# below didn't work
export http_proxy="socks5://127.0.0.1:1080"    
export socks_proxy="socks5://127.0.0.1:1080"

Setting System Proxy

Settings > Network > Network Proxy > Manual:

  • HTTP Proxy: 127.0.0.1:7890

  • HTTPS Proxy: 127.0.0.1:7890

  • Socks Host: 127.0.0.1:7891

  • Ignore Host: localhost, 127.0.0.0/8, ::1

Problems

Git: git clone 报错 :Failed to receive SOCKS4 connect request ack.

# 7891 是 clash 代理 socket 的端口
git config --global http.proxy 'socks5://127.0.0.1:7891'
git config --global https.proxy 'socks5://127.0.0.1:7891'

Emacs

sudo apt install emacs

Exa

sudo apt install exa

Error:

exa
zsh: command not found: exa

Understand from url:

The groovy name is 20.10, not 20.04 LTS. So this package is not available for 20.04 LTS.

But you can install it manually with:

wget http://archive.ubuntu.com/ubuntu/pool/universe/r/rust-exa/exa_0.9.0-4_amd64.deb
sudo apt-get install ./exa_0.9.0-4_amd64.deb

and test it via:

$ exa --version
exa v0.9.0

source

Keepass

Install from here

MScorefonts

sudo apt update
sudo apt install ttf-mscorefonts-installer
sudo fc-cache -f -v

Netease Music

Download *.deb file here

Nnn

$ wget https://github.com/jarun/nnn/releases/download/v4.0/nnn_4.0-1_ubuntu20.04.amd64.deb
$ sudo apt install ./nnn_4.0-1_ubuntu20.04.amd64.deb

source

Package Manager

synaptic(Graphical package manager) or aptitude(terminal-based package manager)

Can be installed through apt

Snap(能不用就不用) https://snapcraft.io/

Apt(Advanced Package Tool) https://wiki.debian.org/PackageManagement?action=show&amp;redirect=CategoryPackageManagement

ref:

  1. https://packages.ubuntu.com/focal/synaptic

  2. https://packages.ubuntu.com/focal/aptitude

Phddns

花生壳 5.0 for Linux 使用教程

+--------------------------------------------------+
 |             Oray PeanutHull Linux 5.1.0          |
 +--------------------------------------------------+
 |  SN: oray8deecb38e199   Default password: admin  |
 +--------------------------------------------------+
 |    Remote Management Address http://b.oray.com   |
 +--------------------------------------------------+

Postman

source

# Download Postman from https://dl.pstmn.io/download/latest/linux64
cd Downloads
tar -xzf Postman-linux-x64-VERSION-NAME.tar.gz
sudo rm -rf /opt/Postman # If you have already installed previous version first remove it.
sudo mv Postman /opt
sudo ln -s /opt/Postman/Postman /usr/local/bin/postman
postman # run postman
sudo gedit /usr/share/applications/postman.desktop # Create a desktop file for Postman App

/usr/share/applications/postman.desktop:

[Desktop Entry]
Type=Application
Name=Postman
Icon=/opt/Postman/app/resources/app/assets/icon.png
Exec="/opt/Postman/Postman"
Comment=Postman GUI
Categories=Development;Code;

Skype

Install skypeforlinux-64.deb from here

source

Spotify

source

curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add -
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt-get update && sudo apt-get install spotify-client
sudo apt-get remove spotify-client
# 安装完白屏,打不开

SQLite Database Browser

Install SQLite Database Browser

source:

  1. https://ubuntuforums.org/showthread.php?t=1556007

  2. https://sqlitebrowser.org/dl/#ubuntu-and-derivatives

SwitchHosts

  1. Download deb file with here: source.

  2. sudo apt install ./SwitchHosts_linux_4.0.0.6029.deb

Typora

for Debian/Ubuntu:

# or use
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -

# add Typora's repository
sudo add-apt-repository 'deb https://typora.io/linux ./'
sudo apt-get update

# install typora
sudo apt-get install typora

Upgrade Typora

After installing Typora, the typora package will be managed by apt-get, so when your system updates installed packages, or you execute apt-get upgrade, Typora will be updated to latest version.

# upgrade all packages include Typora
sudo apt-get upgrade

VLC

Through these:

Nota Bene

If you wish to install the traditional deb package, it is available as usual via, with all security and critical bug fixes. However, there will be no major VLC version updates until the next Ubuntu release.

source

VMware Workstation Player

Download from here

chmod a+x VMware-Player-16.1.0-17198959.x86_64.bundle
sudo ./VMware-Player-16.1.0-17198959.x86_64.bundle

Zola

sudo snap install zola --edge

source

Zotero

/opt $ sudo wget https://download.zotero.org/client/release/5.0.96/Zotero-5.0.96_linux-x86_64.tar.bz2
/opt $ sudo tar -xf Zotero-5.0.96_linux-x86_64.tar.bz2
/opt $ sudo mv Zotero_linux-x86_64 zotero
/opt $ cd zotero
/opt/zotero $ ./zotero
/opt/zotero $ sudo ./set_launcher_icon
/opt/zotero $ ln -s /opt/zotero/zotero.desktop ~/.local/share/applications/zotero.desktop
/opt $ sudo chown -R tianheg:tianheg zotero # give write permission to zotero folder and its files

source:

  1. https://www.zotero.org/download/client/dl?channel=release&amp;platform=linux-x86_64&amp;version=5.0.96

  2. https://www.zotero.org/support/installation

Manage Fonts

sudo apt-get install font-manager

source

Netplan

source13

The network configuration abstraction renderer

Netplan is a utility for easily configuring networking on a linux system. You simply create a YAML description of the required network interfaces and what each should be configured to do. From this description Netplan will generate all the necessary configuration for your chosen renderer tool.

fcitx

It is a input method.

# Install fcitx input method system
sudo apt install fcitx-bin
# Install Google Pinyin Chinese input method
sudo apt install fcitx-googlepinyin

Change the input method system from IBus to fcitx in Region & Language. Click Manage Installed Languages. Click Install/Remove Languages to install Chinese Simplified and/or Chinese Traditional if necessary. Remove all the input sources except English (US) under the Input Sources in Region & Language. Otherwise, there will be two input icons on your system. Reboot the computer and we would see a new input icon at the top right corner of our desktop. We then add Google Pinyin to the fcitx method. We start the fcitx-configtoolby running the following command in the terminal. Click + to add input methods. Uncheck Only Show Current Language, select Google Pinyin, and press OK. Now you can start to use Google Pinyin by toggling using Ctrl + Space by default.

The default fcitx icon at idle is ugly. We would like to make it look better. We run the following commands in the terminal.

# Remove classic UI
sudo apt remove fcitx-ui-classic
# Install new UI
sudo apt install fcitx-ui-qimpanel

Reboot the computer and we would see a new penguin input icon at the top right corner of our desktop. It will turn to a keyboard icon whenever the cursor is placed somewhere allows inputs.

全半角切换

Alt + Shift + Escape

ref:

  1. https://leimao.github.io/blog/Ubuntu-Gaming-Chinese-Input/

  2. What are the meta, super, and hyper keys?

按类别

书籍

  • FBReader(ePub, mobi, fb2, HTML, RTF, plain text. The primary formats are ePub and fb2)

  • Buka(PDF)

  • Calibre(sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin install_dir=/opt)

  • Bookworm(ePUB, PDF, MOBI, FB2, CBR, CBZ)

  • Ebook-Viewer

  • Foliate(ePUB, azw, azw3, mobi, fb2, fb2.zip, cbr, cbz, cbt, cb7, txt)

  • Moon+ Reader

  • Koodo Reader