By Fattur
I want to install ubuntu-desktop gui to my server and connect it to via vnc. I read a lot of articles but I couldn’t make any success. I installed apt-get install ubuntu-desktop and thinvncserver but when i connect only thing i see is a grey screen. I don’t know how to deal with this and idk how to use “nano” to edit files.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
@Fattur Actually, I need to seperately install sudo apt-get install ubuntu-gnome-desktop
And install this: sudo apt-get install gnome-core
This comment has been deleted
Okey I think I’ve done it by these steps. Thank’s a lot to @sierracircle .
create new user by writing these: (vnc is username. you can choose whatever you want)
adduser vnc
enter a password
reboot
then login as new user
then write su and get root access then install those packges
sudo apt-get update
sudo apt-get install gnome-shell && ubuntu-gnome-desktop && ubuntu-core -y
sudo apt-get install vnc4server -y
after installed these exit and be back to vnc(get rid of root rights) start vnc server by writing
vncserver
it should be asked for a password. Define a password. You will use it to connect your server.
go to ftp manager and connect to your files find this file and make the changes that told at below
/etc/init/gdm.conf
comment out these by #
#start on ((filesystem
# and runlevel [!06]
# and started dbus
# and plymouth-ready)
# or runlevel PREVLEVEL=S)
this will prevent gnome from starting at your console
then again in file manager goto your home direction and find the folder of the newly created user. in my case it was: /home/vnc in that folder you must see a folder as “.vnc” inside of that there is a file named “xstartup” . Exact path is :
/home/vnc/.vnc/xstartup
Edit it with the following changes:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
#export XKL_XMODMAP_DISABLE=1
#unset SESSION_MANAGER
#unset DBUS_SESSION_BUS_ADDRESS
#gnome-session --session=ubuntu -geometry 1024x768 -ls -title "$VNCDESKTOP Desktop" &
metacity &
gnome-settings-daemon &
gnome-panel &
save the file and reboot your droplet then login with newly created user (vnc) and start vncserver again with
vncserver
command. then connect to it by a vnc program. To address write your droplets ip and add vnc port. It should be like
192.168.1.1:5901 and login with your vnc password. That’s all. Happy end :)
http://i.imgur.com/5CxLVGR.png
Edit: Oh there is a little problem which is System Settings under System Tools is inaccessible
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.