Plum's Blog

Ubuntu 18.04 Initial Setup

Download & Install Ubuntu 18.04

http://releases.ubuntu.com/18.04/


Upgrade all packages

sudo apt update
sudo apt upgrade

Install Ubuntu-unity-desktop

sudo apt install ubuntu-unity-desktop

and Choose lightdm as default login manager,Reboot & Login as Unity Desktop


Patch your Unity with fractional scaling fixed

wget https://file.plumz.me/unity.7.6.7z

unzip and install and reboot.


Install essential software

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

and Install debs above.


Install WPS Office

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


Change default fonts to WQY-microhei

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

with this:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="pattern">
    <test qual="any" name="family">
      <string>serif</string>
    </test>
    <edit name="family" mode="prepend" binding="strong">
      <string>Bitstream Vera Serif</string>
      <string>HYSong</string>
      <string>AR PL UMing CN</string>
      <string>AR PL UMing HK</string>
      <string>AR PL ShanHeiSun Uni</string>
      <string>AR PL New Sung</string>
      <string>WenQuanYi Bitmap Song</string>
      <string>AR PL UKai CN</string>
      <string>AR PL ZenKai Uni</string>
    </edit>
  </match>
  <match target="pattern">
    <test qual="any" name="family">
      <string>sans-serif</string>
    </test>
    <edit name="family" mode="prepend" binding="strong">
      <string>Bitstream Vera Sans</string>
      <string>WenQuanYi Micro Hei</string>
      <string>WenQuanYi Zen Hei</string>
      <string>Droid Sans Fallback</string>
      <string>HYSong</string>
      <string>AR PL UMing CN</string>
      <string>AR PL UMing HK</string>
      <string>AR PL ShanHeiSun Uni</string>
      <string>AR PL New Sung</string>
      <string>AR PL UKai CN</string>
      <string>AR PL ZenKai Uni</string>
    </edit>
  </match>
  <match target="pattern">
    <test qual="any" name="family">
      <string>monospace</string>
    </test>
    <edit name="family" mode="prepend" binding="strong">
      <string>Bitstream Vera Sans Mono</string>
      <string>WenQuanYi Micro Hei Mono</string>
      <string>WenQuanYi Zen Hei Mono</string>
      <string>Droid Sans Fallback</string>
      <string>HYSong</string>
      <string>AR PL UMing CN</string>
      <string>AR PL UMing HK</string>
      <string>AR PL ShanHeiSun Uni</string>
      <string>AR PL New Sung</string>
      <string>AR PL UKai CN</string>
      <string>AR PL ZenKai Uni</string>
    </edit>
  </match>
</fontconfig>


Change Dir to English

export LANG=en_US
xdg-user-dirs-gtk-update
export LANG=zh_CN

Enable Thinkpad X1 Carbon Trackpoint

sudo vim /etc/modprobe.d/blacklist.conf

comment out the line:

blacklist i2c_801


Configure libinput

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

add

Option "Tapping" "on"
Option "NaturalScrolling" "true"
Option "ClickMethod" "clickfinger"
Option "DisableWhileTyping" "True"


Theme your Unity Dash Button

wget https://file.plumz.me/launcher_bfb.png
sudo mv /usr/share/unity/icons/launcher_bfb.png /usr/share/unity/icons/launcher_bfb.png.bak
sudo cp launcher_bfb.png /usr/share/unity/icons/

Install arc-flatabulous-theme

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

Disable the whitedot background in Lightdm

gsettings set com.canonical.unity-greeter draw-grid false
sudo xhost +SI:localuser:lightdm
sudo su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter draw-grid false


Fix hi-Res support

sudo vim /etc/pulse/daemon.conf
pulseaudio -k
pulseaudio --start


Install terminator and set to default

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


Install ZSH

sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
wget --no-check-certificate https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.ansi-dark
mv dircolors.ansi-dark .dircolors
eval `dircolors ~/.dircolors`
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git
cd gnome-terminal-colors-solarized
./set_dark.sh


Some FREE INTERNET Works

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

Remove snap support and Install flash

sudo apt remove snapd
sudo apt install ubuntu-restricted-extras


Fix Shutter indicator bug

wget https://launchpadlibrarian.net/330848294/libgtk2-appindicator-perl_0.15-1build5_amd64.deb

Fix fcitx

sudo apt remove fcitx-ui-qimpanel 

TLP

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


Python3

sudo pip3 install pep8
sudo pip3 install jedi

Fix Dropbox Indicator Menu Not Working

cp ~/.config/autostart/dropbox.desktop ~/.config/autostart/start_dropbox.desktop
sed -i 's/^Exec=.*/Exec=env XDG_CURRENT_DESKTOP=Unity dropbox start -i/' ~/.config/autostart/start_dropbox.desktop
mkdir -p ~/.local/share/applications/
cp /usr/share/applications/dropbox.desktop ~/.local/share/applications/
sed -i 's/^Exec=.*/Exec=env XDG_CURRENT_DESKTOP=Unity dropbox start -i/' ~/.local/share/applications/dropbox.desktop

Install weather indicator

https://github.com/kasramp/UbuntuIndicatorWeather


Enjoy!

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »