[关闭]
@songying 2018-03-03T16:47:19.000000Z 字数 4267 阅读 1414

ubuntu's software

software


更新软件源

  1. 备份原list
  1. sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
  1. 更改源
  1. sudo gedit /etc/apt/sources.list
  1. # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
  2. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted
  3. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted
  4. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
  5. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
  6. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
  7. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
  8. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
  9. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted
  10. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe
  11. deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse
  1. 生效
  1. sudo apt-get update
  2. sudo apt-get upgrade

安装Chrome

  1. sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/ //添加源
  2. wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - //导入公匙
  3. sudo apt-get update //更新源
  4. sudo apt-get install google-chrome-stable

安装搜狗拼音法

参考: 在Ubuntu 16.04 安装sogou 输入法详细讲解
0. 配置fcitx

sudo add-apt-repository ppa:fcitx-team/nightly //添加源
sudo apt-get update
sudo apt-get install fcitx
sudo apt-get install -f //若此时出现依赖错误,需要执行该命令
sudo apt-get install fcitx-config-gtk
sudo apt-get install fcitx-table-all
sudo apt-get install im-switch

1. 下载搜狗拼音法安装包
2. 输入:sudo dpkg -i sogoupinyin_2.1.0.0086_amd64.deb
此时会有错误,说明部分依赖没有安装
3. 输入:sudo apt --fix-broken install来解决依赖包问题
4. 输入:sudo dpkg -i sogoupinyin_2.1.0.0086_amd64.deb 安装
5. 在系统设置-->Language Support 将Keyboard input method system”设置为fcitx;
6. 重启生效。

安装oh-my-zsh

  1. sudo apt install zsh
  2. sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  3. chsh -s /bin/zsh

最后,注销重新登录生效。
主题建议为:ys

安装Atom

  1. sudo add-apt-repository ppa:webupd8team/atom
  2. sudo apt-get update
  3. sudo apt-get install atom

安装Typora

  1. sudo add-apt-repository 'deb https://typora.io linux/'
  2. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
  3. sudo apt update
  4. sudo apt install typora

安装mysql

  1. sudo apt-get install mysql-server mysql-client

安装mongodb

  1. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
  2. echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
  3. sudo apt-get update
  4. sudo apt-get install -y mongodb-org

设置Python3 为默认

  1. sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
  2. sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150

切换回python2.7

  1. sudo update-alternatives --config python
  1. sudo apt-get install python3-pip //安装pip

更改pip的源
在.pip/pip.conf文件中写入如下内容(文件夹不存在可以建立):

  1. [global]
  2. index-url = https://pypi.tuna.tsinghua.edu.cn/simple

安装pycharm

  1. sudo add-apt-repository ppa:webupd8team/java
  2. sudo apt-get update
  3. sudo apt-get install oracle-java8-installer
  1. tar -xvzf tar
  2. cd 包/bin
  3. ./pycharm.sh
  1. rm -rf ~/.Pycharm*/ ~/Download/pycharm-*/

安装截图工具shutter

  1. sudo apt-get install shutter

安装问题

Sub-process /usr/bin/dpkg returned an error code (1)
安装java如果使用oracle-java7-installer就会一起出错,dpkg错误:

  1. ImportError: No module named 'ConfigParser'
  2. dpkg: error processing package python-samba (--configure):
  3. subprocess installed post-installation script returned error exit status 1
  4. dpkg: dependency problems prevent configuration of samba-common-bin:
  5. samba-common-bin depends on python-samba; however:
  6. Package python-samba is not configured yet.
  7. dpkg: error processing package samba-common-bin (--configure):
  8. dependency problems - leaving unconfigured
  9. No apport report written because the error message indicates its a followup error from a previous failure.
  10. E: Sub-process /usr/bin/dpkg returned an error code (1)

解决方案:

  1. $ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old //现将info文件夹更名
  2. $ sudo mkdir /var/lib/dpkg/info //再新建一个新的info文件夹
  3. $ sudo apt-get update
  4. apt-get -f install
  5. $ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old//执行完上一步操作后会在新的info文件夹下生成一些文件,现将这些文件全部移到info_old文件夹下
  6. $ sudo rm -rf /var/lib/dpkg/info //把自己新建的info文件夹删掉
  7. $ sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info //把以前的info文件夹重新改回名字

[dpkg:处理 xxx (--configure)时出错解决办法]
[Sub-process /usr/bin/dpkg returned an error code (1)的解决方法]
皮皮blog

Fiddler

Fiddler上下载linux下的安装包,然后解压。
安装momo

  1. sudo apt-get install mono-complete

启动Fiddler

  1. mono Fiddler.exe

mysqlclient

  1. sudo apt-get install python3-dev libmysqlclient-dev
  2. sudo pip install mysqlclient
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注