LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 07-18-2004, 01:30 PM   #1
digita1prophet
LQ Newbie
 
Registered: Jul 2004
Distribution: fedora
Posts: 1

Rep: Reputation: 0
where is vnc config file


New installation of Fedora Core 2. I am a linux newbie.

I need to enable vncserver on this machine. I selected that package during the installation. Having trouble finding it to configure it.

A. Where should I be looking for it?
B. Is there a default location where I should be looking for service installs?
 
Old 07-18-2004, 10:23 PM   #2
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Rep: Reputation: 31
I believe most config files are in /etc. When in doubt and I need to find a config file I just do a trusty search.
 
Old 07-19-2004, 09:40 AM   #3
growler
Member
 
Registered: Apr 2002
Posts: 84

Rep: Reputation: 15
Re: where is vnc config file

Quote:
Originally posted by digita1prophet
New installation of Fedora Core 2. I am a linux newbie.

I need to enable vncserver on this machine. I selected that package during the installation. Having trouble finding it to configure it.

A. Where should I be looking for it?
B. Is there a default location where I should be looking for service installs?
Look in /etc/syscofig/vncservers. That file will define system-wide settings for user logons. For example, as root, you can define which Display a particular user will get when they connect to the vncserver, and what resolution they will get:

Code:
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (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
# <URL:http://www.uk.research.att.com/vnc/sshvnc.html>.

VNCSERVERS="1:<user_name>"
VNCSERVERARGS[1]="-geometry 1024x768
so when <user_name> connects, they will connect to display 1 (eg. port 5901; display 2 would be port 5902, etc.) at a resolution of 1024x768. A display number of 0: won't work here, although there is a way to connect to Display 0 (ie. the display currently being shown for the locally logged on user, like the way MS windows does it). you can find more info at the realvnc site here:

http://www.realvnc.com/v4/x0.html

User-specific vnc options are located in the $HOME/.vnc directory. The important files in there will be passwd (which you generate with the vncpasswd program, and the xstartup script. Here's an example:
Code:
]$ cat xstartup
#!/bin/sh                              
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot --solid grey
vncconfig --iconic &
#exec gnome-session &
#exec startkde &
exec startxfce4 &
Good luck!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
I have an XF86 config file for video, how do I turn it into XORG config lowpingnoob Linux - Newbie 18 06-12-2005 12:07 PM
vnc connection config spedsta Linux - Networking 2 03-31-2005 02:29 AM
krfb --config; Format of config file? Need to allow ports below 1024. SavvyPlayer Linux - Software 0 10-16-2004 08:28 PM
config Gnome's VNC without monitor? Moebius Linux - Software 0 10-06-2004 09:04 PM
Lan Config file / internet config file Raven_X_Neo Linux - Networking 1 10-30-2002 01:05 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration