记录一下 Ubuntu 和 Linux Mint 的一些初始化设置。

桌面环境 Cinnamon

毕竟用了多年 GUI,至今还是不能接受完全的命令行,虽然有人非常极端用 i3,但是我目前还是接受不了。所以在剩下的桌面环境中,我选择了 Cinnamon。个人觉得是我用过所有桌面中最 User-Friendly 的。

当然如果是 Mint 默认就会选择 Cinnamon,而 Ubuntu 可以使用 PPA 安装:

sudo add-apt-repository ppa:embrosyn/cinnamon

Postman

SNAP

sudo snap install postman telegram-desktop

Syncthing

# Add the release PGP keys:
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -

# Add the "stable" channel to your APT sources:
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list

# Update and install syncthing:
sudo apt-get update
sudo apt-get install syncthing

PPA

一些值得一提的 PPA。

sudo add-apt-repository ppa:noobslab/icons sudo apt install arc-theme

sudo add-apt-repository ppa:noobslab/themes sudo apt install flatabulous-theme

sudo add-apt-repository ppa:numix/ppa sudo apt install numix-icon-theme

sudo add-apt-repository ppa:snwh/pulp sudo apt install paper-icon-theme // 同时也可以安装 GTK 和 Cursor 主题 sudo apt install paper-gtk-theme sudo apt install paper-cursor-theme

sudo add-apt-repository ppa:papirus/papirus sudo apt install papirus-icon-theme

sudo add-apt-repository ppa:papirus/papirus -y sudo add-apt-repository ppa:atareao/telegram -y sudo add-apt-repository ppa:numix/ppa -y sudo add-apt-repository ppa:atareao/atareao -y sudo add-apt-repository ppa:papirus/papirus -y sudo apt-get install fcitx fcitx-sunpinyin fcitx-module-cloudpinyin gtk2-engines-murrine:i386 libudev1:i386 vlc i965-va-driver vainfo gimp inkscape openshot shutter filezilla audacity classicmenu-indicator numix-gtk-theme shimmer-themes numix-icon* caffeine leafpad git unity-tweak-tool fcitx-mozc ibus-qt4 curl ctags vim-doc vim-scripts cscope fonts-dejavu indent vim vim-gnome exuberant-ctags psensor libluajit-5.1-2 python3-pip ubuntu-make ppa-purge jayatana compizconfig-settings-manager zsh telegram wget papirus-folders papirus-icon-theme filezilla-theme-papirus exfat-fuse exfat-utils ttf-bitstream-vera -y wget https://launchpadlibrarian.net/292068009/indicator-sound-switcher_2.1.1ubuntu0-1_all.deb wget http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/s/syspeek/syspeek_0.3+bzr26-1~webupd8~zesty_all.deb wget https://linux.dropbox.com/packages/ubuntu/dropbox_2015.10.28_amd64.deb wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb wget https://jaist.dl.sourceforge.net/project/deadbeef/debian/deadbeef-static_0.7.2-2_amd64.deb

WPS

wget http://kdl1.cache.wps.com/ksodl/download/linux/a21//wps-office_10.1.0.5707~a21_amd64.deb wget http://kdl.cc.ksosoft.com/wps-community/download/fonts/wps-office-fonts_1.0_all.deb wget http://kr.archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb sudo dpkg -i libpng12-0_1.2.54-1ubuntu1_amd64.deb sudo dpkg -i wps-office_10.1.0.5707~a21_amd64.deb sudo dpkg -i wps-office-fonts_1.0_all.deb

sudo apt-get install wqy-* sudo gedit /etc/fonts/conf.avail/69-language-selector-zh-cn.conf

文泉译微米黑字体

sudo apt install fonts-wqy-microhei

sudo vim /usr/share/X11/xorg.conf.d/40-libinput.conf

Option “Tapping” “on” Option “NaturalScrolling” “true” Option “ClickMethod” “clickfinger” Option “DisableWhileTyping” “True”

sudo apt install sassc autoconf automake pkg-config libgtk-3-dev git -y git clone https://github.com/andreisergiu98/arc-flatabulous-theme && cd arc-flatabulous-theme ./autogen.sh –prefix=/usr –disable-transparency sudo make install

sudo apt-get install terminator sudo update-alternatives –config x-terminal-emulator gsettings set org.gnome.desktop.default-applications.terminal exec ‘terminator’

sudo dpkg-reconfigure ca-certificates sudo apt install shadowsocks-libev simple-obfs sudo vim /etc/shadowsocks-libev/config.json sudo vim /lib/systemd/system/shadowsocks-libev.service

sudo apt remove fcitx-ui-qimpanel

sudo apt-get install tlp tlp-rdw tp-smapi-dkms acpi-call-dkms thermald powertop

sudo add-apt-repository ppa:papirus/papirus -y
# telegram
sudo add-apt-repository ppa:atareao/telegram -y
sudo add-apt-repository ppa:numix/ppa -y
sudo add-apt-repository ppa:atareao/atareao -y
sudo add-apt-repository ppa:gottcode/gcppa -y
sudo add-apt-repository ppa:nextcloud-devs/client -y
sudo add-apt-repository -u ppa:snwh/ppa -y
sudo add-apt-repository ppa:ubuntuhandbook1/shutter -y
sudo add-apt-repository ppa:kasra-mp/ubuntu-indicator-weather -y
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo add-apt-repository -u ppa:snwh/ppa -k
sudo apt-get install fcitx fcitx-module-cloudpinyin gtk2-engines-murrine:i386 libudev1:i386 vlc i965-va-driver vainfo gimp inkscape openshot shutter filezilla audacity classicmenu-indicator numix-gtk-theme shimmer-themes numix-icon* caffeine leafpad git unity-tweak-tool fcitx-mozc ibus-qt4 curl ctags vim-doc vim-scripts cscope fonts-dejavu indent vim vim-gnome exuberant-ctags  psensor libluajit-5.1-2 python3-pip  ubuntu-make ppa-purge jayatana compizconfig-settings-manager zsh telegram wget papirus-folders papirus-icon-theme filezilla-theme-papirus exfat-fuse exfat-utils ttf-bitstream-vera gtk2-engines-pixbuf gnome-themes-standard paper-icon-theme indicator-weather gcc-8 nextcloud-client focuswriter paper-icon-theme -y

sudo chmod 777 -R /opt/telegram

wget https://launchpadlibrarian.net/292068009/indicator-sound-switcher_2.1.1ubuntu0-1_all.deb wget http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/s/syspeek/syspeek_0.3+bzr26-1~webupd8~zesty_all.deb wget https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_2019.01.31_amd64.deb wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb wget https://jaist.dl.sourceforge.net/project/deadbeef/debian/deadbeef-static_0.7.2-2_amd64.deb wget https://launchpadlibrarian.net/330848294/libgtk2-appindicator-perl_0.15-1build5_amd64.deb

Hi Res 与蓝牙 LDAC

sudo add-apt-repository ppa:eh5/pulseaudio-a2dp -y
sudo apt-get install  pulseaudio-module-bluetooth

sudo vim /etc/pulse/daemon.conf

resample-method = soxr-vhq
default-sample-format = s32le
default-sample-rate = 192000
alternate-sample-rate = 96000

pulseaudio -k
pulseaudio --start

sudo vim /etc/pulse/default.pa

# LDAC Standard Quality
load-module module-bluetooth-discover a2dp_config="ldac_eqmid=sq"

# LDAC High Quality; Force LDAC/PA PCM sample format as Float32LE
#load-module module-bluetooth-discover a2dp_config="ldac_eqmid=hq ldac_fmt=f32"

粘贴板工具

sudo add-apt-repository ppa:hluk/copyq-beta sudo apt install copyq

Theme

  • flatabulous-theme
  • communitheme

ICON

图标包我非常喜欢的是 Numix 这个系列的图标,特别是其中的 numix-icon-theme-circle。那么就安装 numix-icon-theme-circle 这套图标包了。

Numix-icon-theme-circle

sudoadd-apt-repository ppa:numix/ppa

sudo apt-get update

sudo apt-get install numix-icon-theme-circle

图标包安装好了设置使用上该套图标包还需要使用 Gnome Tweak,安装方法也是通过到 AppStore 中搜索 Gnome Tweak 即可,也可以通过 sudo apt-get install gnome-tweak-tool 来完成安装。由于系统是中文系统,该软件中文名叫做“优化”。

reference