ubuntu个人配置过程
1、点击VMware虚拟机选项,安装VMware Tool
2、点击后桌面出现VMware Tool,双击,将里面的VMwareTool.tar.gz复制到桌面并解压
3、sudo passwd 设置root密码,su root切换到root,安装执行
./vmware-install.pl
4、设置apt阿里云数据源
备份源文件 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
rm -rf sources.list,删掉原来的
vi sources.list 把以下内容复制进去
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
(vi可以用dd删除光标所在行)
:wq保存
apt-get update
5、apt-get update
6、apt-get install vim
7、apt-get install openssh-server
8、vim /etc/ssh/sshd_config ,修改或添加PermitRootLogin yes,然后systemctl restart sshd重启ssh
9、上传jdk,eclipse
10、tar -zxvf解压jdk,mv到/usr/local/jdk
11、设置jdk环境变量,vim /etc/profile,在底部添加:
export JAVA_HOME=/usr/local/jdk
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
12、source /etc/profile
13、java --version确认
14、安装g++ ,gcc,cmake
apt install build-essential
apt install cmake
15、gcc --version ,g++ --version ,cmake --version确认
————————————————
2020年纵横数据年中促销活动
限购2台特价
韩国服务器 美国站群服务器
CN2线路 优选配置 首月半价
更有国内高防服务器超值特价
100G-200G防御
年付更优惠
数量有限 售完为止
欢迎在线客服