spousteni KDE jako synovsky proces ssh-agenta

Zdenek Pizl z.p na linux-cd.cz
Středa Září 22 14:08:57 CEST 2004


On Wednesday 22 of September 2004 13:01, Pavel Novák wrote:
> Tomáš Sukdol wrote:
> >>spouštění KDE jako synovský proces ssh-agenta, autor článku tam uvádí
> >>příklad s fvwm2, že stačí do ~/.xinitrc dát exec ssh-agent
> >>/usr/bin/x11/fvwm2, ale jak to to v MDK a KDE, to jsem v koncích...
> >>Můžete mi prosím poradit?
> >
> > startkde
>
> Co startkde? Mám si vytvořit initrc s tímto? 
> Mně se KDE spuštějí přímo 
> po startu automaticky,

no to ale nikdo nerekl :-). Slovem startkde se zrejme myslelo, ze v miste, kde 
se v .xinitrc vyskytuje jej nahradite konstrukci exec ssh-agent startkde. 

> to bude s tím fungovat??

ve Vasem pripade je potreba najit, odkud se pousti cela ta krasa a 
zakomponovat tam toho ssh-agenta. Vasi pozornosti doporucuji 
soubor /etc/X11/xinit/xinitrc a .xinitrc v domacim adresare uzivatele.

Pokud byste nemel dost znalosti a trpelivosti se temi soubory prokousat, ja 
mam v /etc/X11/xinit/xinitrc nasledujici blok (zaradit jej jiste uz dokazete 
sam):

# The user may have their own clients they want to run.  If they don't,
# fall back to system defaults.
# set up ssh agent environment if available.

if [ -f $HOME/.Xclients ]; then
    [ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
        exec ssh-agent $HOME/.Xclients || \
        exec $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
    [ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
        exec ssh-agent /etc/X11/xinit/Xclients || \
        exec /etc/X11/xinit/Xclients
else
       # failsafe settings.  Although we should never get here
       # (we provide fallbacks in Xclients as well) it can't hurt.
       xclock -geometry 100x100-5+5 &
       xterm -geometry 80x50-50+150 &
       if [ -x /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ]; then
               netscape /usr/share/doc/HTML/index.html &
       fi
       if [ -x /usr/X11R6/bin/fvwm2 ]; then
               exec fvwm2
       else
               exec twm
       fi
fi

> p.

-- 
Zdenek Pizl
Internetovy obchod s aktualizovanymi distribucemi GNU/Linuxu
http://www.Linux-CD.cz


Další informace o konferenci Linux