Re: more Fedora Cookbook: VNC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 05 Jan 2008 21:09:35 +0900
John Summerfield <debian@xxxxxxxxxxxxxxxxxxxxxx> 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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux