Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
heading =WARNING|
message = This is recommended only for advanced users, proceed with caution.}}
__TOC__
=Method 1=
Most of this information was obtained from: www.havetheknowhow.com.
= Alternate Method2 =
This is just what I found on how to install a VNC for Ubuntu 12.04LTS after figuring out that TigerVNC (the above methods) do not work for Ubuntu. The method is copied from [http://coddswallop.wordpress.com/2012/05/09/ubuntu-12-04-precise-pangolin-complete-vnc-server-setup/ here]. This will result in the gnome GUI, not Unity.
* 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
In a VNC terminal window type:
{{Code|Code = sudo gparted}}
To start Synaptic Package Manager:
In a VNC terminal window type:
 {{Code|Code = sudo synaptic}}
12,424

edits