Changes

From Amahi Wiki
Jump to: navigation, search
* First we need to update our repositories and install gnome.
{{Code| sudo apt-get update sudo apt-get install gnome-core gnome-session-fallback}}
* Next we install VNC4Server. Follow the instructions.
{{Code| sudo apt-get install vnc4server}}
* We need to test the VNC, and then close the session. In the process we are prompted for a password to use everytime we try to connect using our VNC client.
{{Code| vncserver vncserver -kill :1}}
* We open the startup file that we need to edit to make gnome show up in the VNC, and not just a terminal:
{{Code| cp .vnc/xstartup .vnc/xstartup.bak nano .vnc/xstartup}}
* We edit the file to uncomment the second line, and add "gnome-session -session=gnome-classic &". So it will look like this:
{{Text|Text=<nowikipre>#</nowiki>!/bin/sh
<nowiki>#</nowiki> Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
<nowiki>#</nowiki>exec /etc/X11/xinit/xinitrc
gnome-session –session=gnome-classic &
xsetroot -solid grey
vncconfig -iconic &
<nowiki>#</nowiki>x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &<nowiki>#</nowiki>x-window-manager &}}</pre>
* And finally we quit nano and save the file.
ctrl + x
y (for confirmation that yes, we do want the file to be overwritten with the new information)}}
* To start the VNC just type the following into a terminal (using something like [[Key-based SSH Logins With Putty|Putty]]. This will start a new VNC session.
{{Code| vncserver}}
However, if you have installed the desktop version you can also follow the above method except the edit in the xstartup file will look like the following:
{{Text|Text=<nowikipre>#</nowiki>!/bin/sh
<nowiki>#</nowiki> Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
<nowiki>#</nowiki>exec /etc/X11/xinit/xinitrc
gnome-session –session=ubuntu-2d &
xsetroot -solid grey
vncconfig -iconic &
<nowiki>#</nowiki>x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &<nowiki>#</nowiki>x-window-manager &}}</pre>
This will now give you a connection with the Unity desktop being displayed
12,424

edits