In order to enable the GUI Access for Intel® Developer Cloud, follow the steps below.
- Connect to an Intel® Developer Cloud instance using the SSH command from View Instances page.
- Execute the following commands line-by-line, to set up VNC.
sudo apt install xfce4 xfce4-goodies tightvncserver xterm firefox -y
sudo update-alternatives --config x-terminal-emulator
sudo snap install novnc
mkdir ~/.vnc
cat > ~/.vnc/xstartup <<EOF
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
EOF
chmod +x ~/.vnc/xstartup
- Execute the following command to start a VNC server instance.
vncserver -geometry 1280x1024 :1 - Execute the following command to run noVNC.
novnc --vnc localhost:5901
Note | If encounter error: Port 6080 in use. Try --listen PORT
- Kill the process running on port 6080 using the following command.
fuser -k 6080/tcp - Execute the following command to run noVNC again.
novnc --vnc localhost:5901
|
- Open a new terminal, add -L 6080:localhost:6080 to the end of the SSH command and connect to the instance.
- Navigate to the following URL on a web browser.
http://localhost:6080/vnc.html?host=localhost - Connect using the password set up during VNC configuration, and successfully access the GUI.
- Open a terminal in the GUI and launch xterm.
- Execute the following command to disable the access control.
xhost + - Finally, launch any installed application from the GUI on the Intel® Developer Cloud instance without issue.