Ubuntu common software installation
Before introducing the installation, let's change the list of Ubuntu's APT software sources to domestic ones.
shell cd /etc/apt/
shell sudo vim sources.list
Replace the original content of sources.list with Ali's source. as follows:
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
Here, I encountered a pit. After I replace it with Ali's source, execute:
shell> sudo apt-get update
It is found that the update cannot be performed normally, all requests are Ign: http://..., and the update execution time is very slow.
In addition, I installed it according to the tutorial on the sublime text3 official website ( https://www.sublimetext.com/docs/3/linux_repositories.html ), but it also failed and I couldn't get the package correctly.
It took me a whole day to find out that the problem actually lies in the source list. Although I replaced the content of sources.list with Ali's source, it didn't work. Need to do the following
Enter /etc/apt and double-click sources.lsit, the Software&Updates (Chinese system: software and updates) configuration box will pop up as follows
Then, execute sudo apt-get update installation, which is to update and download from domestic sources, which is very fast.
Refer to the official website to install as follows:
1. Install GPC Key
shell>wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
It sometimes fails when it first starts to execute. Be sure to make sure that your system's apt can execute https requests. If it cannot be executed, please install it first:
shell>sudo apt-get install apt-transport-https
If it still fails after installation, execute this pipeline command separately as follows:
shell>wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg
shell>sudo apt-key add -
2 Select the type you want to install, we will not introduce other types, just select the stable version.
shell>echo “deb https://download.sublimetext.com/ apt/stable/” | sudo tee /etc/apt/sources.list.d/sublime-text.list
3 Update and install
shell>sudo apt-get update
shell>sudo apt-get install sublime-text-installer
4 Set Chinese input (default sublime text3 does not support Chinese input by default)
shell>git clone https://github.com/lyfeyaj/sublime-text-imfix.git
shell>cd sublime-text-imfix/
shell>sudo cp lib/libsublime-imfix.so /opt/sublime_text/
shell>sudo cp src/subl /usr/bin/
Find the absolute path of the startup command, if it prompts /usr/bin, it means it is successful.
shell>which subl
Execute subl in the command window to start sublime text3
shell>subl
5 Solve the bug that the input Chinese, English and numbers are not on the same horizontal line and the position is offset.
Preferences→settings In the curly braces on the right, add the property:
"font_face": "WenQuanYi Micro Hei Mono"
Just restart sublime text
The above operation replaces the font of Sublime with "Wenquanyi Micron Black Font", and the input is vertically centered. In the past, Chinese was always a little lower than English and numbers.
6 Get rid of the annoying update new version reminder in Sublime Text 3
As in 5, modify Preferences.sublime-settings to add the attribute "update_check": false
7 Solve the problem that the Chinese input method does not follow in "Sublime Text 3".
1. First download the plugin - IMESupport, see the download page: http://download.csdn.net/detail/pospro/8797023
2. Open Sublime, through Preferences->Browse Packages, you can open a directory, unzip the RAR file obtained in 1, and put it in this directory.
(Under Win7, this directory is C:\Users\username\AppData\Roaming\Sublime Text 3\Packages) [After this part is completed, a folder named IMESupport should be added to the above directory. Open the IMESupport folder to see 4 folders and 9 files including hook folder]
3 Restart Sublime
8 Supplementary questions
We want to update the system after installing some software. Execute sudo apt-get update and find that the update is still very slow. For example, in this example, I do an update
Later, it was found that the request has been stuck on the update of sublime text, and the progress is slow. why?
The reason is still the source, we (2) have added the source of sublime text3 to our sources.list file, and this source address is foreign
address ( https://download.sublimetext.com/ ), so, cause the update stuck here. How to do it?
(1) You wait patiently, it is updated slowly
(2) Skip it, don't let it update, I usually use the second
还是双击sources.list 弹出的“软件&更新”配置框中,选择Other Software 选项卡,去掉相应源地址前面的对勾即可。示例如下:
install guake
sudo apt-get install guake
Modify the width and display position of guake
shell>which guake
/usr/bin/guake
Some machines are /usr/local/bin/guake
shell>sudo vim /usr/bin/guake
turn up
height = self.client.get_int(KEY('/general/window_height'))
width = 100
halignment = self.client.get_int(KEY('/general/window_halignment'))
Change 100 to the value you need, pay attention to the width here to make a ratio, make the ratio of guake relative to the screen.
找到
if width < total_width:
if halignment == ALIGN_LEFT:
window_rect.x =0 // (total_width - window_rect.width) / 2
elif halignment == ALIGN_LEFT:
window_rect.x = 0
elif halignment == ALIGN_RIGHT:
window_rect.x = total_width - window_rect.width
window_rect.y = 0
………
Change halignment to what you need
uninstall libOffice install wps
sudo apt-get purge libreoffice? ## Don't miss the wildcard "?", otherwise all LibreOffice packages cannot be purged/uninstalled
sudo apt-get autoremove
Download
libpng12-0y separately
Download address: http://archive.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.27-2+lenny5_amd64.deb
WPS installation package
http://kdl.cc.ksosoft.com/wps-community/download/a21/wps-office_10.1.0.5672~a21_amd64.deb
安装libpng12-0:
sudo dpkg -i libpng12-0_1.2.27-2+lenny5_amd64.deb
安装WPS:
sudo dpkg -i wps-office_10.1.0.5672~a21_amd64.deb
sudo apt-get install -f
Solve the problem that wps cannot input Chinese
WPS text
打开终端输入:
sudo vim /usr/bin/wps
添加一下文字到打开的文本中(添加到“#!/bin/bash”下面):
export XMODIFIERS = ”@im = fcitx”
export QT_IM_MODULE = ”fcitx”
WPS Form
打开终端输入:
sudo vim /usr/bin/et
添加一下文字到打开的文本中(添加到“#!/bin/bash”下面):
export XMODIFIERS = ”@im = fcitx”
export QT_IM_MODULE = ”fcitx”
WPS demo
打开终端输入:
sudo vim /usr/bin/wpp
添加一下文字到打开的文本中(添加到“#!/bin/bash”下面):
export XMODIFIERS = ”@im = fcitx”
export QT_IM_MODULE = ”fcitx”
After modification, save it, open the corresponding program and switch the input method to input Chinese.
Remove links to Amazon
sudo apt-get remove unity-webapps-common
Remove unused software
sudo apt-get remove rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot
sudo apt-get remove gnome-mines cheese transmission-common gnome-orca webbrowser-app gnome-sudoku landscape-client-ui-install
sudo apt-get remove onboard deja-dup
Install shutter screenshot software
sudo apt-get install shutter
Sometimes it can't be installed, add the following source address to sources.list (note to back up the original source file aa)
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http: // us .archive.ubuntu.com / ubuntu / xenial -proposed main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http: //us.archive.ubuntu .com / ubuntu / xenial-security main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-srchttp://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
安装redshift
sudo add-apt-repository ppa:dobey/redshift-daily
sudo apt-get update
sudo apt-get install redshift redshift-gtk