Re: VNC server


Subject: Re: VNC server
From: shortpier (shortpier@shortpier.is-a-geek.com)
Date: Tue Nov 11 2003 - 07:06:23 AKST


Mike...

VNC server has its own X server
my machine that I uise VNC on alot has these files
/etc/sysconfig/vncservers : screen name and user

vncserver uses the xinitrc in a users home directory so edit that to run
proggys OR add a startkde or what ever OR on my mandrake box I have a
.vnc in the home dir and in there is a xstarup script tat reads

#!/bin/sh

# Mandrake Linux VNC session startup script
exec /etc/X11/xinit/xinitrc

Also have a script that strats i in the sysv init
/etc/rc.d/init.d/vncserver
It parses /etc/sysconfig/vncservers and starts them up for each user

Most important part of the script is this

Start() {
    gprintf "Starting %s: " "$prog"
    ulimit -S -c 0 >/dev/null 2>&1
    RETVAL=0
    for display in ${VNCSERVERS}
    do
        gprintf "%s " "${display}"
        initlog $INITLOG_ARGS -c \
            "su ${display##*:} -c \"cd ~${display##*:} && [ -f
.vnc/passwd ] && vncserver :${display%%:*}\""
        RETVAL=$?
        [ "$RETVAL" -ne 0 ] && break
    done
    [ "$RETVAL" -eq 0 ] && success $"vncserver startup" || \
        failure "vncserver start"
    echo
    [ "$RETVAL" -eq 0 ] && touch /var/lock/subsys/vncserver

on the command line you can specify shared or not, colormap, password,
port/screen

I have used it for years on both Windows and Linux...

Shortpier
On Wed, 2003-11-12 at 18:19, Barsalou wrote:
> Anyone get vncserver running on their box? I haven't found a good step
> by step yet.
>
> I think I only have to change the vnc configuration file and make sure
> that I have a .vnc directory and a startx script that launches what I
> want when the VNC server starts....right?
>
> Mike

-- 

-- Attached file included as plaintext by Listar -- -- File: signature.asc -- Desc: This is a digitally signed message part

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA/sQj+NyWzwlj5xp4RAlL9AJ4uxmv4PvyqtMgVVT9iT9Gsu0ymLQCgvIze DBNDPJBzRqIFC+MAw/YFxV0= =96RW -----END PGP SIGNATURE-----

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Thu Nov 13 2003 - 00:37:14 AKST