LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-19-2005, 10:30 PM   #1
theycallmepj
LQ Newbie
 
Registered: Jun 2005
Location: Montrose - PA - USA
Distribution: Fedora Core 4
Posts: 13

Rep: Reputation: 0
vnc server - fedora


ok, I am new to linux, and I would like to start vncserver. When I do [service vncserver status] it says Xvnc is stopped. so I did [service vncserver restart] and it seemed to do it ok, but when I did [service vncserver status] again, it stil said Xvnc is stopped.

So i tried [service Xvnc status] and it does not recognize it as a service....I need help.
 
Old 08-20-2005, 08:58 AM   #2
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
you can simply start a vnc session by typing vncserver, the first you do that you will be asked for a password. after that you can connect to from any machine qith vnc by typing ip:1

if you want to startup the default desktop manager edit the file 'homedir'/.vnc/xstartup and follow the intructions in it.
 
Old 08-20-2005, 09:58 AM   #3
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
if you did not define any vncserver displays/options in /etc/sysconfig/vncservers then when starting vncserver service there is nothing for it to start. if there is nothing for it to start then nothing will be running and its status will report stopped

try editiing /etc/sysconfig/vncservers (there is a really generic example in there)

jdogpc is correct if you want a single (quick) instance of vnc, just run vncserver with options from the command-line and editing ~/.vnc/xstartup will allow for desktop manager (or other options) to load

if you set it in the /etc/sysconfig/vncservers you can then set vncservers service to start on boot so that even after a reboot your vnc sessions will be started again.

hope this helps
 
Old 08-20-2005, 11:27 AM   #4
theycallmepj
LQ Newbie
 
Registered: Jun 2005
Location: Montrose - PA - USA
Distribution: Fedora Core 4
Posts: 13

Original Poster
Rep: Reputation: 0
thanks guys....now that works, so now when I connect....It shows X-windows.....how can I do it so it uses gnome?


thanks alot
 
Old 08-20-2005, 11:53 AM   #5
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
view my reply 3 before this one
 
Old 08-20-2005, 02:43 PM   #6
theycallmepj
LQ Newbie
 
Registered: Jun 2005
Location: Montrose - PA - USA
Distribution: Fedora Core 4
Posts: 13

Original Poster
Rep: Reputation: 0
I see that, but if does not have directions for gnome, and I do not know what the path is to type in.

this is the 'homedir'/.vnc/xstartup file

Code:
# 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" &
twm &
so I uncommented those lines, but it looks like the line "exec /etc/X11/xinit/xinitrc" has something to do with X-windows, I want it to be gnome.
 
Old 08-23-2005, 06:16 PM   #7
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Sorry about that.

just uncomment the first two lines

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

and comment all the other.
this should start your default windows manager. By default RedHat and Fedora start Gnome Window manager, bu in case it does not start, edit the file /etc/X11/xinit/Xclients and append
gnome-session to the line PREFERRED=, so that it reads PREFERRED=gnome-session
You can also edit the file /etc/sysconfig/desktop and change the line from DESKTOP="" to DESKTOP="GNOME".

This two options change the default windows manager for everybody on your system.

Have fun.
 
Old 08-23-2005, 08:42 PM   #8
theycallmepj
LQ Newbie
 
Registered: Jun 2005
Location: Montrose - PA - USA
Distribution: Fedora Core 4
Posts: 13

Original Poster
Rep: Reputation: 0
it works!!!

thank you so much guys
 
Old 08-25-2005, 06:31 AM   #9
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
I can get the vnc server to work, however I was hoping to be able to login and see what is currently displayed on the screen (ie if I have a monitor attached I can see the mouse moving on it as well as the vnc window).

If anyone knows how to make that work I would be greatly appreciated.

PS I am trying to get it to work with Win2VNC which allows you to use one mouse and keyboard sort of like a KVM switch with seperate monitors.
 
Old 08-25-2005, 03:34 PM   #10
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
Well I found out how to fix that problem and now I can almost connect, but I don't know what password to use. Any ideas??
 
Old 12-19-2005, 07:27 AM   #11
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Rep: Reputation: 30
Whe you start the server for the first time it asks you which one you would like.
The second way is just to use the 'vncpasswd' and restart the server (i'm not sure though if you have to restart it).

enjoy.
 
Old 12-22-2005, 12:56 PM   #12
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
if you use vncpasswd to change the password you shouldnt need to restart the vncserver. the vncpasswd file is checked each time a connection is made. once you change your password, simply connect to the vncserver and use the password given.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora vnc shadow Fedora 11 04-29-2009 11:03 AM
Fedora Core 1 VNC Server Problems alannerd Linux - Networking 2 07-09-2005 05:17 AM
Vnc Server Strange Behavior In Fedora Core 3 kasra Fedora 3 06-26-2005 06:11 AM
VNC Server setup for Fedora Core 3 HELP!!! PLZ bkz81 Linux - Networking 7 06-09-2005 03:49 PM
VNC server on Fedora FC3 Vard0 Linux - Newbie 8 03-17-2005 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:16 PM.

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