more Fedora Cookbook: VNC

Tom Horsley tom.horsley at att.net
Sat Jan 5 21:38:05 UTC 2008


On Sat, 05 Jan 2008 21:09:35 +0900
John Summerfield <debian at herakles.homelinux.org> wrote:

> 3.
>   gnome-session
> play with that for a while, then logout

It probably depends on the distribution, but I notice
on a lot of versions of linux the "gnome-session"
program all by itself isn't sufficient to get a
complete session up and running. I've taken to adding
these lines in my VNC xstartup script:

kill_agent="no"
if [ -z "$SSH_AUTH_SOCK" ]
then
   eval `ssh-agent -s`
   kill_agent="yes"
fi
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]
then
   eval `dbus-launch --sh-syntax --exit-with-session`
fi

run gnome-session or whatever here...

if [ "$kill_agent" = "yes" ]
then
   ssh-agent -k
fi




More information about the users mailing list