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:
# 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
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:
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:
]$ cat xstartup
[ -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 &