1、點(diǎn)擊VMware虛擬機(jī)選項(xiàng),安裝VMware Tool
2、點(diǎn)擊后桌面出現(xiàn)VMware Tool,雙擊,將里面的VMwareTool.tar.gz復(fù)制到桌面并解壓
3、sudo passwd 設(shè)置root密碼,su root切換到root,安裝執(zhí)行
./vmware-install.pl
4、設(shè)置apt阿里云數(shù)據(jù)源
備份源文件 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
rm -rf sources.list,刪掉原來(lái)的
vi sources.list 把以下內(nèi)容復(fù)制進(jìn)去
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刪除光標(biāo)所在行)
: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、設(shè)置jdk環(huán)境變量,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確認(rèn)
14、安裝g++ ,gcc,cmake
apt install build-essential
apt install cmake
15、gcc --version ,g++ --version ,cmake --version確認(rèn)
————————————————
2020年創(chuàng)新互聯(lián)年中促銷(xiāo)活動(dòng)
限購(gòu)2臺(tái)特價(jià)
韓國(guó)服務(wù)器 美國(guó)站群服務(wù)器
CN2線路 優(yōu)選配置 首月半價(jià)
更有國(guó)內(nèi)高防服務(wù)器超值特價(jià)
100G-200G防御
年付更優(yōu)惠
數(shù)量有限 售完為止
歡迎在線客服