Results 1 to 6 of 6
Hi to the forum,
Well this is my first time using redhat 7, the install went fine and webserver, mysql, phpmyadmin are all working......great
The only problem i have is ...
- 07-22-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 4
remote desktop
Hi to the forum,
Well this is my first time using redhat 7, the install went fine and webserver, mysql, phpmyadmin are all working......great
The only problem i have is the remote desktop
I have set the password in preferences/remote desktop
run command vncpasswd and set password
in services vncserver i get this message......... xsetroot: unable to open display '' Xvnc is stopped and
vncserver failed. The error was: xsetroot: unable to open display ''
Shutting down VNC server: 1:user1 [FAILED]
Starting VNC server: 1:user1 [FAILED]
my vncservers file looks like this
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
VNCSERVERS="1:user1"
VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
I have tried restarting service using root login and user1
Could someone please help me with this as i am all googled out
- 07-22-2009 #2
You may find that the problem you encountered is because screen 1 is not available. Try changing the server ID from 1 to 2 (or more) in your /etc/sysconfig/vncserver file.
You did run 'vncpasswd' as user1 didn't you?
If you did, you'll have a .vnc directory in user1's home. Inside here add an extra file called xstartup, and edit the file to contain either 'startkde' or 'gnome-session' (depending on the desktop type you want), and make the file executable with 'chmod u+x xstartup'.
You should do all this as user1 - then start the server as root with 'service vncserver start'. It will tell you if it starts or fails here. If anything goes wrong, post the error on here and I'll take a look.Linux user #126863 - see http://linuxcounter.net/
- 07-22-2009 #3Just Joined!
- Join Date
- Jul 2009
- Posts
- 4
Re
Ok i think i have done what you have asked, i had to edit all web links as i am a new poster
vncserver is giving error after restart of service
xsetroot: unable to open display ''
Xvnc (pid 4581) is running
..................................................
vnc file is set to:
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my 'user1' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <WEBresearch.WEB/archive/vnc/sshvnc.WEB>.
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
VNCSERVERS="2:user1"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
..............................................
in .vnc folder i have
SERVERNAME:2.pid......with 4581 when opened
..................................................
SERVERNAME:2.log
Xvnc Free Edition 4.1.2
Copyright (C) 2002-2005 RealVNC Ltd.
See [WEB=WEB.realvnc.WEB]RealVNC - RealVNC remote control software[/WEB] for information on VNC.
Underlying X server release 70101000, The X.WEB Foundation
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
VNCSERVERS="2:user1"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
Wed Jul 22 18:30:56 2009
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5902
vncext: created VNC server for screen 0
AUDIT: Wed Jul 22 18:30:57 2009: 4581 Xvnc: client 1 rejected from local host
AUDIT: Wed Jul 22 18:30:57 2009: 4581 Xvnc: client 1 rejected from local host
localuser:user1 being added to access control list
No profile for user 'user1' found
SESSION_MANAGER=local/SERVERNAME:/tmp/.ICE-unix/4588
Window manager warning: Log level 32: could not find XKB extension.
Initializing nautilus-open-terminal extension
** Message: Could not connect to power manager: Could not get owner of name 'org.gnome.PowerManager': no such name
Unable to open desktop file /usr/share/applications/redhat-email.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.o-1.9-writer.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.o-1.9-impress.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.o-1.9-calc.desktop for panel launcher: No such file or directory
** (eggcups:467
: WARNING **: IPP request failed with status 1030
** (eggcups:467
: WARNING **: IPP request failed with status 1030
Passkey agent registration failed: Passkey agent already exists
** (nm-applet:4722): WARNING **: <WARN> applet_dbus_manager_start_service(): Could not acquire the NetworkManagerUserSettings service.
Message: 'Connection ":1.67" is not allowed to own the service "org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file'
Introspect error: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.DBus.Introspectable" member "Introspect" error name "(unset)" destination "edu.duke.linux.WEB")
Traceback (most recent call last):
File "/usr/bin/puplet", line 467, in ?
main()
File "/usr/bin/puplet", line 464, in main
p.run()
File "/usr/bin/puplet", line 451, in run
self._refreshInfo()
File "/usr/bin/puplet", line 191, in _refreshInfo
if self.updatesObject is not None and \
AttributeError: DBusException instance has no attribute '_dbus_error_name'
................................................
i also have two other files in .vnc
passwd and xstartup
Hope you can make sence of this...many many thanks for looking
- 07-22-2009 #4
- 07-22-2009 #5Just Joined!
- Join Date
- Jul 2009
- Posts
- 4
sorry
I am using latest Red Hat Enterprise Linux 30-Day Evaluation
- 07-23-2009 #6
Does 'user1' actually exist? Did you use 'adduser' to insert the user into the system, or did you do it manually?
They clearly have a home directory, but none of the gnome settings. Try logging on to the X console locally as this user using the gnome desktop first, that should set up their gnome settings.
You also seem to be treading on the toes of SELinux which is imposing policies to protect your system from the changes that you're making. SELinux is outside of my expertise, perhaps someone could help with that?Linux user #126863 - see http://linuxcounter.net/


Reply With Quote

