Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-22-2007, 09:29 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2004
Location: Wabasha, MN
Posts: 23
Rep:
|
vncserver startup error messages in log
I have been trying to get vncserver running smoothly. It seems that it works to start it and I can attach to it from vnc client, but if I try to connect again it doesn't work. What I end up doing is killing the process, removing the logs and then starting it up again.
I checked the logs twice to see if there were some problems and came up with this.
first I tried to start the vncserver as a privileged user and got this log file.
Code:
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
Xvnc version 4.0b4 - built Jan 8 2007 11:56:46
Underlying X server release 40300000, The XFree86 Project, Inc
Wed Aug 22 08:21:49 2007
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: Listening for HTTP connections on port 5801
vncext: created VNC server for screen 0
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
SESSION_MANAGER=local/ANAKIN:/tmp/.ICE-unix/28172
next I started as root and got this.
Code:
Xvnc version 4.0b4 - built Jan 8 2007 11:56:46
Underlying X server release 40300000, The XFree86 Project, Inc
Wed Aug 22 08:26:59 2007
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: Listening for HTTP connections on port 5801
vncext: created VNC server for screen 0
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
now I don't know if this has anything to do with the problem, but if it does, then how do I correct it?
I am running Red Hat 3.1 ES
|
|
|
|
08-22-2007, 12:02 PM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 2 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,287
|
I'm not sure why you're running vncserver as root, that's not a very secure thing to do. See this thread for help on running a vncserver and how to connect to it: http://www.linuxquestions.org/questi...00#post2862900
|
|
|
|
08-22-2007, 01:51 PM
|
#3
|
|
LQ Newbie
Registered: Dec 2004
Location: Wabasha, MN
Posts: 23
Original Poster
Rep:
|
here is my xstartup.
Code:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
exec gnome-session &
#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
I modfied this so that I could vnc from a Windows Client into a xwindows (gui) session on the Linux box.
besides the errors that I got, when I log off of the session, it clears the screen, leaves the background picture up and then just hangs there.
After a while I simply use the "X" box on the upper right corner to delete the session. Then I have to go the Linux OS and kill the vnc session there before I can come back in again.
|
|
|
|
08-22-2007, 05:03 PM
|
#4
|
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 2 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,287
|
This is how your xstartup should look:
#!/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 &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
exec gnome-session &
Backup your current xstartup and try the above as it is instead.
|
|
|
|
08-22-2007, 05:26 PM
|
#5
|
|
LQ Newbie
Registered: Dec 2004
Location: Wabasha, MN
Posts: 23
Original Poster
Rep:
|
This did not work. It brought me into a gui windows as planned, but when I did a "Log Off", it close all of the icons and then left the VNC desktop hanging. I waited for a while and then "closed the connection". I waited a while longer and then went back into the client VNC from the windows and it brought up just the GUI background with no icons.
If I kill the vncserver, it seems to clear everything, but that means that I have to run the vncserver command again to go into the GUI console.
|
|
|
|
08-22-2007, 06:26 PM
|
#6
|
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 2 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,287
|
Log off? There's no need to do that. Just close the window (like you would for any app that you no longer need). The session will remain active until you shutdown the remote machine or kill the Xvnc session on the remote machine. With the session still active you only need to log in using the same details you started the initial session with, and the desktop should be as you left it when you closed the window.
|
|
|
|
08-22-2007, 08:35 PM
|
#7
|
|
LQ Newbie
Registered: Dec 2004
Location: Wabasha, MN
Posts: 23
Original Poster
Rep:
|
I guess, I misunderstood how vncserver worked. if I start something on it, it must stay running on the Linux box as long as the box is running or the pid for vncserver session is running (not killed).
if this is the case, then how do I set up my boot up to include starting a vnc session for a particular user???
|
|
|
|
08-22-2007, 08:56 PM
|
#8
|
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 2 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,287
|
What you're looking for can be found here: http://linuxreviews.org/howtos/xvnc/ go to section 6 - Create a file called /etc/xinetd.d/xvncserver. There's also this page that explains how to autostart a session for a particular user: http://www.linuxforums.org/forum/lin...re-5-boot.html
Last edited by {BBI}Nexus{BBI}; 08-22-2007 at 08:59 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:17 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|