This blog post records the steps for enabling remote desktop to run remote access on the Ubuntu server.
This blog post records the steps for enabling remote desktop to run remote access on the Ubuntu server.
First, you need to create an Ubuntu server on Azure. The specific steps are skipped in this article.
- Use putty or other ssh tools to connect to the Ubuntu server on Azure. The address of the target host can be seen in the Azure Management Portal. Azure in China is generally an address ending with chinacloudapp.cn, the international version of Azure is cloudapp.net.
- Run sudo apt-get update.CommandEnsure that all packages are updated to the latest version.
- Run sudo apt-get install ubuntu-desktop. This command will install the ubuntu desktop. You will be prompted to confirm somewhere in the middle and click Y to continue.
- Now Ubuntu Desktop has been installed, but on the cloud server, you cannot display the desktop through a local display, so you need to install VNC server at this time, the command is sudo apt-get install vnc4server
- Run vncserver. At this time, you will be asked to enter the password for Remote Desktop Connection.
- Run vncserver-kill: 1
- Modify. vnc/xstartup
!/bin/sh# Uncomment the following two lines for normal desktop:unset SESSION_MANAGER# exec /etc/X11/xinit/xinitrc/usr/bin/gnome-session &[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvncconfig -iconic &# x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &# x-window-manager &
- You can use the volume Viewer.
- Save the connection session of putty, modify Thunnel, and increase by 3389 and 5001.
-