- 选装ssh
-
shh安装 sudo apt-get update sudo apt-get install open-ssh sudo servive ssh start
-
- 下载tigervnc
-
https://bintray.com/tigervnc/stable/tigervnc/1.10.1 ubuntu下载tar.gz wget https://bintray.com/tigervnc/stable/download_file?file_path=tigervnc-1.10.1.x86_64.tar.gz windows端下载tigernvc viewer https://bintray.com/tigervnc/stable/download_file?file_path=vncviewer64-1.10.1.exe
-
- 下载核心组件
-
sudo apt-get install gnome-core 解压下载的tigervnc.tar.gz 运行./vncserver :1 修改默认的配置文件vim ~/.vnc/xstartup 改为一下内容 #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager & gnome-panel & gnmoe-settings-daemon & metacity & nautilus & 关闭vncserver vncserver -list vncserver -kill :1
-
- windows端连接
-
windows端连接 ip:1即可
-
其他初始化ubuntu后开发环境的搭建
1.open8及环境搭建
sudo apt-get update sudo apt-get install openjdk-8-jdk
2.环境变量配置
vim /etc/profile export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH source /etc/profile