Trying to install VNC on Centos 6 OS [GNOME Desktop Environment]

Status
Not open for further replies.

igordr

Member
22
2012
1
0
Hello,

This is third day i am trying to install VNC on Centos 6, on my Dedicated linux server.
I have followed steps from below posts, and something is still wrong.

http://www.wjunction.com/18-server-...ow-install-remote-desktop-rdp-centos-vps.html
http://wiki.centos.org/HowTos/VNC-Server
[ame]http://www.youtube.com/watch?v=pzBE5_db5JU[/ame]
http://freevps.us/thread-3575.html

I can't connect with desktop environment to my server [VNC Viewer], i only see blank dark background:

http://imageupload.org/getfile.php?i...tled-2.jpg&i=1

When i enter in SHH command "service vncserver start" i get: "Starting VNC server: 2:root A VNC server is already running as :2 [FAILED]"

Is there someone who can help me with that, Team Viewer or so?

Thank you

---------- Post added at 07:44 PM ---------- Previous post was at 07:37 PM ----------

Check log file please.

Code:
Xvnc TigerVNC 1.0.90 - built Dec  8 2011 01:43:50
Copyright (C) 2002-2005 RealVNC Ltd.
Copyright (C) 2000-2006 Constantin Kaplinsky
Copyright (C) 2004-2009 Peter Astrand for Cendio AB
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11004000, The X.Org Foundation


Tue Jun 26 21:40:53 2012
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5904
 vncext:      created VNC server for screen 0
expected keysym, got XF86TouchpadOn: line 120 of inet
expected keysym, got XF86TouchpadOff: line 121 of inet
gnome-session[8662]: devkit-power-gobject-WARNING: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
gnome-session[8662]: WARNING: Could not connect to ConsoleKit: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
gnome-session[8662]: WARNING: Could not connect to ConsoleKit: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
GNOME_KEYRING_SOCKET=/tmp/keyring-EUxzv0/socket
SSH_AUTH_SOCK=/tmp/keyring-EUxzv0/socket.ssh
GNOME_KEYRING_PID=8690

(gnome-panel:8705): GVFS-RemoteVolumeMonitor-WARNING **: invoking IsSupported() failed for remote volume monitor with dbus name org.gtk.Private.GduVolumeMonitor: org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process /usr/libexec/gvfs-gdu-volume-monitor received signal 6

** (gnome-panel:8705): WARNING **: panel-applet-frame.c:1288: failed to load applet OAFIID:GnoteApplet:
(null)
gnome-session[8662]: WARNING: Could not connect to ConsoleKit: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
gnome-session[8662]: WARNING: Could not connect to ConsoleKit: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

** (gnome-panel:8705): WARNING **: panel-applet-frame.c:1359: failed to load applet OAFIID:GNOME_FastUserSwitchApplet (cannot get property bag):
Unknown CORBA exception id: 'IDL:omg.org/CORBA/INV_OBJREF:1.0'

(gnome-panel:8705): Gtk-WARNING **: A floating object was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_ref_sink().
 
7 comments
Ok, do with my tutorial here:

Step 1: If you are running CentOS 6, the command is
$ yum groupinstall Desktop
If you are running CentOS 5,
$ yum groupinstall "GNOME Desktop Environment"
If you are a minimalist, or simply testing, however, it is sufficient to have yum install a simple XTERM client:
$ yum install xterm
Step 2: If you are running CentOS 6, install vnc-server is:
$ yum install vnc-server
Step 3: Create your VNC users
$ adduser yourusername
$ passwd: yourusername
Switch user into the account for each user, and run: vncpasswd This will create a .vnc directory.
$ su – yourusername
$ vncpasswd
Step 4: Edit the server configuration
$ vi /etc/sysconfig/vncservers
VNCSERVERS="1:yourusername"
VNCSERVERARGS[1]="-geometry 800x600"
Step 5: We will create the xstartup scripts by starting and stopping the vncserver as root.
# /sbin/service vncserver start
Step 6: Remote login with vncviewer
Go to your client machine with vncserver and test the VNC.
$ vncviewer -via yourusername@192.168.10.10 localhost:1
 
Last edited:
Thanks for replying.

thanhlangso, may you help me with Team Viewer ?
Now i get other error:

Code:
root@bravo612 [~]# /sbin/service vncserver start
: command not foundervers: line 11:
: command not foundervers: line 13:
: command not foundervers: line 17:
: command not foundervers: line 20:
: command not foundervers: line 21:
: command not foundervers: line 22:
 does not existigordr3:igordr3

How i can uninstall following:
Code:
yum groupinstall Desktop 
 yum install vnc-server

And do the clean install of it ?

I am running CentOS 6.


masterbator - Didn't work. :(
 
no need to reinstall the vnc if it's already installed

kill the VNC first
Code:
pkill -9 vnc
then clean the temporary dir
Code:
rm -rf /tmp/.X1*
or if got more than 1 desktop instances started (replace the number 2 with the number of the desktop)
Code:
rm -rf /tmp/.X2*

then start the vnc again
Code:
vncserver

it will display message like this:
Code:
New 'yourserver:1 (root)' desktop is yourserver:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/fprx:1.log

then open up your vnc client and connect to the server this way
Code:
youripaddress:1
 
Thanks for replying.

thanhlangso, may you help me with Team Viewer ?
Now i get other error:

Code:
root@bravo612 [~]# /sbin/service vncserver start
: command not foundervers: line 11:
: command not foundervers: line 13:
: command not foundervers: line 17:
: command not foundervers: line 20:
: command not foundervers: line 21:
: command not foundervers: line 22:
 does not existigordr3:igordr3
How i can uninstall following:
Code:
yum groupinstall Desktop 
 yum install vnc-server
And do the clean install of it ?

I am running CentOS 6.


masterbator - Didn't work. :(

Ok, contact with me, I will try help you.
 
masterbator, i have followed your steps and managed to run VNC Viewer but just as root user, it says:

You are currently trying to run as the root super user. The super user is a specialized account that is not designed to run a normal user session. Various programs will not function properly, and actions performed under this account can cause unrecoverable damage to the operating system.

When i enter in client this

Code:
[B]$ vncviewer -via yourusername@192.168.10.10[/B][B] localhost:1[/B]
It says command not found.

I have changed yourusername with mine, created and changed IP...

Also, i have problems following this step:

Code:
$ vi /etc/sysconfig/vncservers
 VNCSERVERS="1:yourusername" 
VNCSERVERARGS[1]="-geometry 800x600"
I can't after editing close this file by typing ':wq'. It says

Code:
E45: 'readonly' option is set (add ! to override)
But that is just for user i have created, for root it's fine, i can edit...


thanhlangso, may we use some instant messenger?
MSN, Gmail chat or so?
Write me here adress please.

Checkout screenshot of my desktop:
http://postimage.org/image/xg3ims1x7/

I can't use internet on it, i would like to have installed Mozilla firefox, after setting VNC server working fine. Also, display colors are wired.
 
Last edited:
Status
Not open for further replies.
Back
Top