LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2008, 01:06 AM   #1
niner710
Member
 
Registered: Apr 2008
Posts: 37

Rep: Reputation: 15
VNC Server won't work


I am trying to setup VNC server on Fedora 8. I am able to use a vnc client on a XP machine and login to my linux box correctly, but all I see if a grey screen and not my gnome session. This is my xstartup file. Can anyone tell me what I'm doing wrong in the file? Thanks.

#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 1024x768 -ls -title "VNCDESKTOP Desktop" &
gnome-session &
 
Old 04-27-2008, 04:00 AM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
I think that the last line should read:

exec gnome-session &

You don't need the xterm and xsetroot commands...this ought to be enough:

#!/bin/sh

# VNC helper utility for clipboard etc.
vncconfig -iconic &

# GNOME!
exec gnome-session &
 
Old 04-27-2008, 06:35 PM   #3
niner710
Member
 
Registered: Apr 2008
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for the response. I tried including just those two lines but still no luck. I am still not able to see my gnome desktop. I looked at the process that the .pid file was running and it is running Xvnc. Why am I running XVNC instead of gnome and how would I change it to gnome instead?

Also, does anyone know how I would be able to run VNC server on reboot. I would just like to have my Fedora linux box as just a machine w/o peripherals(keyboard, display, etc). Everytime I reboot I have to manually restart vncserver. Does anyone know how it would just do it automatically.

Last edited by niner710; 04-27-2008 at 06:40 PM.
 
Old 04-27-2008, 06:37 PM   #4
niner710
Member
 
Registered: Apr 2008
Posts: 37

Original Poster
Rep: Reputation: 15
Nevermind got it. I had to uncomment these two lines for it to work

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

Last edited by niner710; 04-27-2008 at 11:56 PM.
 
  


Reply

Tags
vnc



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
rhel4 vnc problem, where to configure GUI vnc server? hocheetiong Linux - Newbie 1 10-24-2007 06:05 AM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM
Need help setting up VNC from ISA server at work to desktop at home jrh008 Linux - Networking 1 08-04-2005 05:50 PM
VNC Server to work on Mandrake 10 Linux Echo Kilo Linux - Networking 3 09-25-2004 03:51 PM
Need help getting VNC server program to work rogue_nine82 Linux - Networking 4 09-01-2004 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 AM.

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