/etc/apt/source.list 可以自动匹配速度比较快的源
1 2 3 4 5 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse
删除不常用软件包 1 2 3 4 5 6 7 8 ## amazon sudo apt-get remove unity-webapps-common ## libre-office sudo apt-get remove libreoffice-common sudo apt-get remove thunderbird totem 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
shadowsocks-libev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev sudo apt-get update sudo apt install shadowsocks-libev # Edit the configuration file sudo vim /etc/shadowsocks-libev/config.json # Edit the default configuration for debian sudo vim /etc/default/shadowsocks-libev # Start the service #sudo /etc/init.d/shadowsocks-libev start # for sysvinit, or #sudo systemctl start shadowsocks-libev # for systemd ss-local -c /etc/shadowsocks-libev/config.json
网易云音乐 1 2 wget http://s1.music.126.net/download/pc/netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb sudo dpkg -i netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb
Psensors 首先安装监控cpu 主板 风扇等需要的包:
1 2 sudo apt-get install lm-sensors hddtemp sudo sensors-detect
回复”yes”即可。 重启或通过以下命令加载 sensor需要的模块。
1 2 sudo service module-init-tools start sudo apt-get install psensor
或者通过stable PPA安装
1 2 3 sudo add-apt-repository ppa:jfi/ppa sudo apt-get update sudo apt-get install psensor
设置时间使用UTC 1 2 sudo vim /etc/default/rcS 将UTC=no改为UTC=yes
安装Chrome 1 2 3 4 wget https://dl.google.com/Linux/direct/google-chrome-stable_current_amd64.deb sudo apt-get install libappindicator1 libindicator7 sudo dpkg -i google-chrome-stable_current_amd64.deb sudo apt-get -f install
安装搜狗输入法 1 2 3 deb http://archive.ubuntukylin.com:10006/ubuntukylin trusty main sudo apt-get update sudo apt-get install sogoupinyin
安装WPS Office sudo apt-get install wps-office
安装Oracle Java
方法一1 2 3 sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer
由于系统自带的是OpenJDK,卸载OpenJDK之后会带有残留,导致运行java -version
时第一行不是java的版本号,会是Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar这个提示,导致很多检测java版本号的脚本会运行出错,因此需要手动清除残留。sudo rm /usr/share/upstart/sessions/jayatana.conf
删除/usr/share/upstart/sessions/jayatana.conf文件,重启之后再运行java -version就不会再有Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar提示了。
方法二1 2 wget http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz
安装Sublime Text 3 1 2 3 sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo apt-get install sublime-text
安装git和vpnc
sudo apt-get install vpnc git
安装unrar 系统默认不带解压缩rar文件的功能,手动安装unrar程序 sudo apt-get install unrar
装上之后就可以用命令解压缩rar文件了。 使用如下命令解压缩文件到当前目录。 unrar x test.rar
为知笔记 1 2 3 $ sudo add-apt-repository ppa:wiznote-team $ sudo apt-get update $ sudo apt-get install wiznote
有道词典 youdao-dict go to the official website http://cidian.youdao.com/index-linux.html and download the 二进制安装 then run the install.sh
1 2 wget http://codown.youdao.com/cidian/linux/youdao-dict_1.1.0-0-deepin_amd64.deb sudo dpkg -i
zshell 1 2 3 4 5 sudo apt-get install zsh sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" ##常用主题 gentoo # 切换到zsh chsh -s $(which zsh)
mysql 1 sudo apt-get install mysql-server mysql-client libmysqlclient-dev
安装过程中会提示设置密码什么的,注意设置了不要忘了,安装完成之后可以使用如下命令来检查是否安装成功: sudo netstat -tap | grep mysql
通过上述命令检查之后,如果看到有mysql 的socket处于 listen 状态则表示安装成功。
拼音输入法 1 2 3 sudo add-apt-repository ppa:fcitx-team/nightly sudo apt-get update sudo apt-get install fcitx fcitx-config-gtk fcitx-table-all im-switch fcitx-googlepinyin
sublime 1 2 3 sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo apt-get install sublime-text-installer
tomcat 1 2 3 4 wget http://download.nus.edu.sg/mirror/apache/tomcat/tomcat-8/v8.5.8/bin/apache-tomcat-8.5.8.tar.gz tar -xf apache-tomcat-8.5.8.tar.gz sudo mv apache-tomcat-8.5.8 /opt
安装Cairo-Dock并启用桌面视觉效果 Cairo-Dock是一款漂亮且灵巧的用于Linux桌面上的启动条,类似于Mac OS X dock。想要在Ubuntu上安装它,可以在终端上运行以下命令:
1 sudo apt-get install cairo-dock cairo-dock-plug-ins
点击图标最小化功能的设置 ubuntu16.04默认是没有开启此功能
1 gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true
Shutter Ubuntu上最好用的截图工具,可以对截图的图片进行编辑。
1 sudo apt-get install shutter
状态栏系统监控 1 2 3 4 5 sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor sudo apt-get update sudo apt-get install indicator-sysmonitor
终端执行: indicator-sysmonitor &,然后Ctrl+C就可以实现后台运行indicator-sysmonitor,
可以对要显示的信息的格式进行设置。
安装失败时的处理方法 安装失败 1 2 3 sudo dpkg -i --force-overwrite /var/cache/apt/archives/libogremain-1.7.3_1.7.3-ogredev-natty3_i386.deb sudo apt-get autoremove sudo apt-get update
function 2
1 2 3 4 sudo rm /var/lib/dpkg/info/oracle-java7-installer* sudo apt-get purge oracle-java7-installer* sudo rm /etc/apt/sources.list.d/*java* sudo apt-get update
Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? 这是一个最好的方式
1 2 3 ps aux | grep apt kill processnumber kill -9 processnumber
i-nex 硬件查看工具 cpu-z 的移植 版本