ubuntu 部署开发环境(eclipse, VS code,sublime text 3,tomcat)

VS CODE(Python,php,java)

su

cd 到目录

dpkg -i vs*.deb

sublime text 3(参考 http://www.sublimetext.com/docs/3/linux_repositories.html)

wget -qO – https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add –
apt install apt-transport-https
​echo “deb https://download.sublimetext.com/ apt/stable/” | sudo tee /etc/apt/sources.list.d/sublime-text.list
apt-get update
apt-get install sublime-text

eclipse和tomcat

​要确定JDK是否有安装(可以参考NetBeans with JDK 8)
apt install default-jre

只需要直接解压文件,运行eclipse即可。

ubuntu 安装deb (wps,qq,搜狗输入法)

指令篇

su

进入超级管理员

cd 到文件目录

dpkg -i iptux.deb#安装iptux.deb软件包(其中-i等价于–install)如果报错或者需要支持库

apt -f install

图形篇

右键使用gdebi打开。

QQ需要先

ttf和fonts

wine的关联gdebi会进行安装

wps和qq直接指令或者gdebi安装即可​

最后注意:32位和64位

ubuntu 改为阿里云源

为了提高下载和更新速度

要把默认的Xubuntu源改为阿里云源

切换后需要 sudo apt update 更新源

中文

设置-》软件和更新-》

下载自

其他站点

中国

选择aliyun.com

使用指令

cp /etc/apt/source.list /etc/apt/source.list.backup

vi /etc/apt/source.list

vi使用,按d是删除行,按i是插入。先d删除全部内容然后按i复制一下内容,然后按: 输入qw!

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ – Release amd64 (20160420.1)]/ xenial main restricted

deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted

deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties

deb http://mirrors.aliyun.com/ubuntu/ xenial universe

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe

deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse

deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties

deb http://archive.canonical.com/ubuntu xenial partner

deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted

deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties

deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe

deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

centos 更换国内 阿里云 源(提高速度)

CentOS 5

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

CentOS 6

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

CentOS 7

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

然后进行一个
yum makecache