Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-01-2005, 08:22 PM   #1
LQ Newbie
Registered: Mar 2004
Location: Austin, TX (Dell land)
Distribution: red hat
Posts: 10

Rep: Reputation: 0
Question Trouble starting vncserver

I am attempting to start vncserver on RH 9. I have installed the service and it shows up in the service configuration. I checked the box and then tried to start it, and it immediately pops up service started successfully. Usually it takes a bit for a service to start. After I click ok, the details still say the service is stopped. I have attempted to start and restart the service, but same issue, says it started successfully but the service is still stopped.

Not sure what I am doing wrong, or what else I need to do, any help on this would be greatly appreciated.
Old 04-02-2005, 05:17 AM   #2
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282

Rep: Reputation: 30
Ok, you need to provide us with more information.

You can
1) check the /var/log/message to see if there is any vnc relate error message
2) in a console, run
bash -x /etc/init.d/vncserver
- this will print detailed information about how vnc is started

Capture these information and post it here again

However, before you go thru this, you can actually try vncpasswd first. It is very likely that you did not set the password for the login which will use vnc. Check vncpasswd documentation for more detail
Old 04-02-2005, 12:37 PM   #3
LQ Newbie
Registered: Mar 2004
Location: Austin, TX (Dell land)
Distribution: red hat
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the information, here is the output from:
bash -x /etc/init.d/vncserver

+ alias 'rm=rm -i'
+ alias 'cp=cp -i'
+ alias 'mv=mv -i'
+ '[' -f /etc/bashrc ']'
+ . /etc/bashrc
+++ id -gn
+++ id -un
+++ id -u
++ '[' root = root -a 0 -gt 99 ']'
++ umask 022
++ '[' '' ']'
+ . /etc/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
++ export PATH
++ '[' -z '' ']'
++ '[' -z '' ']'
+++ /sbin/consoletype
++ '[' -f /etc/sysconfig/i18n -a -z '' ']'
++ . /etc/sysconfig/i18n
+++ LANG=en_US.UTF-8
+++ SUPPORTED=en_US.UTF-8:en_US:en
+++ SYSFONT=latarcyrheb-sun16
++ '[' pty '!=' pty ']'
++ export LANG
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ RES_COL=60
+++ MOVE_TO_COL=echo -en \033[60G
+++ SETCOLOR_SUCCESS=echo -en \033[0;32m
+++ SETCOLOR_FAILURE=echo -en \033[0;31m
+++ SETCOLOR_WARNING=echo -en \033[0;33m
+++ SETCOLOR_NORMAL=echo -en \033[0;39m
+++ PROMPT=yes
++ '[' pty = serial ']'
++ '[' color '!=' verbose ']'
+ . /etc/sysconfig/network
++ HOSTNAME=localhost.localdomain
+ '[' yes = no ']'
+ '[' -f /etc/sysconfig/vncservers ']'
+ . /etc/sysconfig/vncservers
+ prog=VNC server
+ echo 'Usage: /etc/init.d/vncserver {start|stop|restart|condrestart|status}'
Usage: /etc/init.d/vncserver {start|stop|restart|condrestart|status}
+ exit 1

When I had vncserver running on an old linux box that I no longer have, I don't remember having to enter a password, of course I could be mistaken.

Thanks again.
Old 04-02-2005, 12:49 PM   #4
LQ Newbie
Registered: Mar 2004
Location: Austin, TX (Dell land)
Distribution: red hat
Posts: 10

Original Poster
Rep: Reputation: 0
Actually nevermind I got it working, simple changes in one of the files and now it works without a problem.

Thanks for the assistance.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting vncserver at boot using rc.local promethious Linux - General 3 10-14-2005 07:57 AM
Starting vncserver mickeyboa Fedora 3 08-08-2005 02:47 AM
vncserver problems starting Xris718 Linux - General 2 10-08-2004 11:53 PM
Starting VNCserver on Mandrake 10.0 archange Linux - Newbie 1 10-01-2004 08:14 PM
Problem starting vncserver bunghole Linux - Networking 2 10-29-2001 03:53 AM

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration