We are usually using remote desktop to manage Window Server because it 's friendly user interface so that it 's the first choice for almost people. But maybe many people don't know Linux OS also support the same functionality with VNC Server. Here is step by step how to install VNC Server for Ubuntu 12.04
1. Update OS
I consider you are login as root account to Ubuntu server via SSH, let 's update all of resource:
2. Install graphic support library and tools
Code:
apt-get install gnome-core gnome-session-fallback
3. Upgrade to make sure all of packages work well if you need
4. Install VNC4Server package
Code:
apt-get install vnc4server
5. Make VCN4Server start with OS
Type this:
Code:
vncserver
vncserver -kill :1
cp .vnc/xstartup .vnc/xstartup.bak
nano .vnc/xstartup
And then enter this to startup code
Code:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
gnome-session –session=gnome-classic &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
#x-window-manager &
Now let 's start with configuration you want to screen resolution
Code:
vncserver -geometry 1680x1050
And maybe this is a good start for mobile phone
Code:
vncserver -geometry 1024x768 -depth 8
If you get a grey screen when you try and connect tunnelling over SSH, don’t panic. Try using port 5902, because you might not have killed the initial session properly, or restarted a default one by mistake. If you don’t know what I mean by tunnelling, you might find that you can’t connect to the VNC server. The problem is the built-in firewall, ufw.
Good luck to your server!!! Welcome any comment!
View more threads in the same category:
Bookmarks