Results 1 to 2 of 2
I have installed Vnc server in debian server. I want to know how to set a new port for VNC, how to autostart VNC server at the bootup,How to check ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-13-2005 #1
- Join Date
- Dec 2005
I want to know how to set a new port for VNC, how to autostart VNC server at the bootup,How to check that the VNC server is running, where error logs are located
how we can set the KDE graphical environment to be started when X server is launched.
Pls reply !!!!!.
- 12-14-2005 #2
- Join Date
- Jun 2005
- berkeley, ca
There are two ways to change the ports for your vncservers. You can specify the port when you start the server:
Or, you can edit the config file: /etc/sysconfig/vncservers. Here is mine:
# The VNCSERVERS variable is a list of display:user pairs. # # Uncomment the lines below to start a VNC server on display :2 # 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="4:matt" VNCARGS="-geometry 1280x1024 -depth 16 -alwaysshared"
I haven't configured debian startup files, but a little research tells me that adding a link in
The answer to your last questions is all in the same directory: ~/.vnc . If you look in there, you should see "xstartup". You can edit this to determine which desktop environment loads for the vncserver. For example:
#!/bin/sh # 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" & ##/usr/bin/fluxbox startkde &
When you start vncserver, it creates two files in your ~/.vnc directory, <hostname><port>.pid and <hostname><port>.log. So, if your hostname is "host" and the vnc port is 5904, you get:
The pid file contains the process information about the server, and the log is, well, a logfile.
Hope that helps.