【Linux】软件

wps

http://wps-community.org/downloads

gvim

1
2
sudo apt update
sudo apt install vim-gnome

synpase(快速启动)

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

fcitx 五笔输入法

  • 安装
    sudo apt-get install fcitx fcitx-table-wubi fcitx-tools -y

  • 启用自动调频
    修改配置文件 /usr/share/fcitx/table/wbx.conf

1
AdjustOrder=AdjustFreq
  • 不能正常打出中文标点
    修改配置文件
    /usr/share/fcitx/addon/fcitx-fullwidth-char.conf
1
Priority=80

git

1
2
sudo apt-get update
sudo apt-get install git

vlc(多媒体播放器)

1
2
sudo apt-get update
sudo apt install vlc

wiz

1
http://www.wiz.cn/wiznote-linux.html

firefox

1
2
3
4
5
6
7
8
9
#
# https://www.computernetworkingnotes.com/ubuntu-linux-tutorials/how-to-update-firefox-in-ubuntu-linux.html
# install
sudo apt-get update
sudo apt-get install firefox

# update
sudo apt-get update
sudo apt-get install --only-upgrade firefox

chrome

  • install
1
2
3
4
5
6
7
8
9
# https://askubuntu.com/questions/510056/how-to-install-google-chrome

# 1. add key
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# 2. set repository
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
# 3. install package
sudo apt-get update
sudo apt-get install google-chrome-stable
  • config
1
2
3
https://github.com/FelisCatus/SwitchyOmega/releases/

https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt

vscode

1
2
3
4
5
6
7
# https://code.visualstudio.com/docs/setup/linux

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get update
sudo apt-get install code # or code-insiders

idea

1
2
# https://www.jetbrains.com/help/idea/install-and-set-up-product.html
sudo snap install intellij-idea-ultimate --classic

emacs

1
sudo apt-get install emacs

shadowsocks

  • install
1
2
3
# ubuntu
sudo apt-get install python-pip
pip install --upgrade pip
1
2
3
4
// sudo vim /usr/bin/pip
from pip import __main__
if __name__ == '__main__':
sys.exit(__main__._main())

sudo pip install shadowsocks

  • config
    sudo vi $HOME/p/shadowsocks.json
1
2
3
4
5
6
7
8
9
10
// 在shadowsocks.json中加入以下内容:
{
"server": "my_server_ip",
"local_address": "127.0.0.1",
"local_port": 1080,
"server_port": my_server_port,
"password": "my_password",
"timeout": 300,
"method": "aes-256-cfb"
}

sudo ln -s $HOME/p/shadowsocks.json /etc/shadowsocks.json

  • start
1
2
3
4
- 前端启动: sudo sslocal -c /etc/shadowsocks.json
- 后端启动: sudo sslocal -c /etc/shadowsocks.json -d start
- 后端停止: sudo sslocal -c /etc/shadowsocks.json -d stop
- 重启(修改配置要重启才生效): sudo sslocal -c /etc/shadowsocks.json -d restart
  • boot up
    sudo vim /etc/systemd/system/shadowsocks.service
1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=Shadowsocks Client Service
After=network.target

[Service]
Type=simple
User=root
ExecStart=/usr/bin/sslocal -c /etc/shadowsocks.json

[Install]
WantedBy=multi-user.target

systemctl enable /etc/systemd/system/shadowsocks.service

  • now you can reboot to check it~

proxychains

1
2
3
4
5
6
7
8
# https://askubuntu.com/questions/610333/how-to-set-socks5-proxy-in-the-terminal
# install proxychains
sudo apt install proxychains
sudo proxychains apt-get update

# now you can config your proxy in /etc/proxychains.conf
# sudo vim /etc/proxychains.conf
socks5 127.0.0.1 1080

privoxy

1
2
3
4
5
6
7
8
9
10
11
12
13
# https://linoxide.com/linux-how-to/install-use-privoxy-ubuntu-16-04/
# install
sudo apt-get install privoxy

# sudo vim /etc/privoxy/config
# 添加下面这一行
forward-socks5 / 0.0.0.0:1080 .

#启动
/etc/init.d/privoxy restart

# 测试
curl -x 127.0.0.1:8118 http://www.google.com

caja(文件管理器)

1
2
3
# https://www.devmanuals.net/install/ubuntu/ubuntu-16-04-LTS-Xenial-Xerus/how-to-install-caja.html
sudo apt-get update
sudo apt-get install caja

terminal

terminator

1
2
3
# http://www.ubuntugeek.com/terminator-multiple-gnome-terminals-in-one-window.html
# https://linux.cn/article-2978-1.html
sudo apt-get install terminator

PAC Manager

tmux

1
sudo apt-get install tmux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
VERSION=2.8
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz
tar xf tmux-${VERSION}.tar.gz
rm -f tmux-${VERSION}.tar.gz
cd tmux-${VERSION}

sudo apt-get install libevent-dev
sudo apt-get install ncurses-dev
./configure
make
sudo make install
cd -
sudo rm -rf /usr/local/src/tmux-\*
sudo mv tmux-${VERSION} /usr/local/src

zsh

1
2
3
4
5
# install
sudo apt-get install zsh

# change default shell to zsh
chsh -s /bin/zsh
  • oh my zsh
1
2
3
# https://github.com/robbyrussell/oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
  • autojump
1
2
3
4
5
sudo apt-get install autojump

vim .zshrc
#在最后一行加入,注意点后面是一个空格
plugins=( [plugins...] autojump)
  • zsh-syntax-highlighting
1
2
3
4
5
6
7
# https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md
# 1. Clone this repository in oh-my-zsh's plugins directory:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# 2. Activate the plugin in ~/.zshrc:
plugins=( [plugins...] zsh-syntax-highlighting)
# 3. Source ~/.zshrc to take changes into account:
source ~/.zshrc
  • zsh-autosuggestions
1
2
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
plugins=( [plugins...] zsh-autosuggestions)
  • theme:
1
2
3
4
$ git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

vi ~/.vimrc
ZSH_THEME="powerlevel9k/powerlevel9k"

https://travis.media/top-12-oh-my-zsh-themes-for-productive-developers/#20210921-eastwood

git-cola

1
apt-get install git-cola

variety 壁纸切换

1
2
sudo apt-get update
sudo apt-get install variety

catfish 文件搜索

calibre(电子书阅读器)

红移(色温调节工具)

workrave(定时提醒)

LibreOffice

Transmission (downloader)

diodon

截图软件 shutter

  1. sudo add-apt-repository ppa:shutter/ppa1
  2. sudo apt-get update
  3. sudo apt-get install shutter1
  4. 设置快捷键 keyboard -> shortcut -> shutter -s -> Ctrl+Alt+A -> ok

卸载软件

  1. 查找安装名称:dpkg -l | grep package_name
  2. 卸载sudo apt-get remove package_name, 具体输入apt-get命令查看

本地安装

以安装网易云音乐为例

  1. 从官网下载 deb 安装文件
  2. 执行下列命令
1
2
$ sudo dpkg -i netease*.dbg
$ sudo apt -f install

去除 chrome 的输入密码以解锁密码环提示

安装 WenQuanYi Zen Hei 字体

  1. download file: wqy-zenhei-0.9.45.deb
  2. install: dpkg -i wqy-zenhei-0.9.45.deb

sleep

1
2
#!/bin/bash
dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.Suspend" boolean:true

wine

https://wiki.winehq.org/Ubuntu

add C env

apt-get install build-essential

rg

https://github.com/BurntSushi/ripgrep

1
2
3
curl -LO https://github.com/BurntSushi/ripgrep/releases/download/0.10.0/ripgrep_0.10.0_amd64.deb

sudo dpkg -i ripgrep_0.10.0_amd64.deb

trash-cli

fzf

A command-line fuzzy finder

https://github.com/junegunn/fzf

v2ray

server

1
2
bash <(curl -s -L https://git.io/v2ray.sh)
bash <(curl -s -L https://git.io/v2ray-setup.sh)

client

1
bash <(curl -L -s https://install.direct/go.sh)
1
2
3
4
5
6
7
说明
此脚本会自动安装以下文件:
/usr/bin/v2ray/v2ray:V2Ray 程序;
/usr/bin/v2ray/v2ctl:V2Ray 工具;
/etc/v2ray/config.json:配置文件;
/usr/bin/v2ray/geoip.dat:IP 数据文件
/usr/bin/v2ray/geosite.dat:域名数据文件
  1. 修改配置
    vi /etc/v2ray/config.json

  2. 启动和状态查看

1
2
3
service v2ray start
service v2ray status
service v2ray restart

android 客户端:BifrostV

file server

How To Quickly Serve Files And Folders Over HTTP In Linux - OSTechNix

How do I modify or disable the HUD’s use of the Alt key?

  1. open System Settings
  2. Then go to Keyboard > Shortcuts > Launchers. You can redefine the HUD key with the Key to show the HUD option. Pressing Backspace will disable the HUD shortcut altogether.
  3. You can redefine the HUD key with the Key to show the HUD option. Pressing Backspace will disable the HUD shortcut altogether.

Install Fira in Ubuntu

1
2
3
4
wget https://github.com/mozilla/Fira/archive/master.zip
unzip master.zip
sudo mkdir -p /usr/share/fonts/truetype/fira
sudo cp Fira-master/ttf/* /usr/share/fonts/truetype/fira