Install Eclipse and Remote Desktop under Ubuntu

1. Install Eclipse under Ubuntu:

 

Uninstall JDK

To remove OpenJDK (if installed). First, check which OpenJDK package is installed.

 

# dpkg --list | grep -i jdk

Remove the openjdk package:

 

# apt-get purge openjdk*

Uninstall OpenJDK related packages:

 

# apt-get purge icedtea-* openjdk-*

Check that all OpenJDK packages have been uninstalled:

 

# dpkg --list | grep -i jdk

complete.

 

Cheap JDK8: http://jingyan.baidu.com/article/d621e8da0e92052865913f32.html

安装Eclipse:http://blog.csdn.net/gavin_dinggengjia/article/details/7364375

    http://wenku.baidu.com/view/fb27eeb6b9d528ea81c7799b.html

 

2. Install Remote Desktop:

ubuntu 下

1. Install xrdp and enter "sudo apt-get install xrdp"

2. Install the desktop input "sudo apt-get install xubuntu-desktop"

3. Download and install tigervnc,

  Enter: wget https://bintray.com/artifact/download/tigervnc/stable/ubuntu-14.04LTS/amd64/tigervncserver_1.4.3-3ubuntu1_amd64.deb

  sudo dpkg -i tigervncserver_1.4.3-3ubuntu1_amd64.deb

4.输入"echo "xfce4-session" >~/.xsession"

5. Enter "sudo service xrdp restart"

6. mstsc remote connection under windows.

 

Note: Each user can connect remotely by copying .xsession to their current directory

 

Under Centos

1. Install the desktop: yum groupinstall "GNOME Desktop"

2. Install the VNC server: yum install -y tigervnc-server

3. Configure vnc-server

  #cd /lib/systemd/system

  #cp [email protected] vncserver@:1.service

  #vi vncserver @: 1.service

   One and only one substitution is needed here: replace <User> with the user that needs to be configured. Note that the root's home directory is /root/, not /home/root/.

  #systemctl daemon-reload

  #systemctl enable vncserver@:1.service

  #systemctl start vncserver@:1.service

   报错:Job for vncserver@:1.service failed because the control process exited with error code.  

   Solution: vi vncserver@:1.service Type=forking error, change to Type=simple

4. Set a password

  #vncpasswd

  #systemctl restart vncserver@:1.service

5. Configure the firewall

   #vi /etc/sysconfig/iptables 

    add configuration

      "-A INPUT -p tcp -m state –state NEW -m tcp –dport 5901 -j ACCEPT"

  Note: If the iptables file cannot be found, perform the following steps and the iptables file will appear.

      #cd /etc/sysconfig

      #iptables -P OUTPUT ACCEPT

      #service iptables save

 6. Check the connection port)

     # netstat -tulpn | grep vnc

7. Use TigerVNC Viewer to connect remotely under Windows.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326442938&siteId=291194637