[lug] ssh-agent under KDE and KNOPPIX
Michael D. Hirsch
mhirsch at nubridges.com
Tue Jun 22 13:04:41 MDT 2004
On Tuesday 22 June 2004 02:29 pm, Neal McBurnett wrote:
> In KNOPPIX version 3.4 2004-05-04, the situation is a bit different,
> but with the same effect. The file 45xsession starts X11 up, and
> doesn't use the $STARTUP convention used by latter scripts like
> 90xfree86-common_ssh-agent.
>
> I've now reported it as a bug at
> http://www.knoppix.net/docs/index.php/Bugs/3.4
>
> There are ways to save your home directory
> (menu/knoppix/configure/create persistent home directory), and to then
> change the startup process from the boot command line (including
> providing your own home directory (home=) and your own knoppix.sh
> startup program), and you can modify at least some startup files by
> relinking them to new files.
>
> So I think we're getting close on two fronts. Now to figure
> out what would be necessary in a $HOME/.xsession file. When is that
> called, and by what, and what is done if it isn't there....
Try just putting an xterm in it and see what happens.
A useful command for this kind of debugging is
ls -l --time=atime
that will show the last access time on a file. Its very useful for seeing if
a file is ever looked at during startup.
Michael
> -Neal
>
> On Tue, Jun 22, 2004 at 08:44:52AM -0400, Michael D. Hirsch wrote:
> > On Monday 21 June 2004 04:40 pm, Michael D. Hirsch wrote:
> > > On Monday 21 June 2004 04:13 pm, Neal McBurnett wrote:
> > > > Anyone know how to get KDE to use ssh-agent right (i.e. as parent to
> > > > all applications)? googles I've found refer to stuff that doesn't
> > > > work, at least under knoppix 3.4.
> > > >
> > > > See http://www.knoppix.net/docs/index.php/ssh-agent%20and%20KNOPPIX
> > > > for a wiki page with "the story so far"...
> > >
> > > Hmm. It looks like you already know my trick. In my ~/.Xclients file
> > > I have exec ssh-agent $HOME/.Xclients-default
> > > and inside .Xclients-default it has
> > > exec startkde
> > >
> > > So my only difference is that I use .Xclients and you tried .xsession.
> >
> > I did some poking around in Knoppix last night, trying to trace what
> > happens at startup. It looks like it is trying to do the right thing and
> > use ssh, but I think it is configured wrong.
> >
> > There is a directory /etc/X11/xsession.d, and in that dir are a bunch of
> > scripts whose names start with 2 digit numbers. xsession runs those
> > scripts one at a time. There are a couple (why two?) of scripts that
> > setup ssh. Unfortunately, their numbers are greater than 50, and 50 is
> > the number of the script that actually starts all the X stuff. It looks
> > to me like the script numbered 50 should be renamed to 99 for ssh to work
> > right. This requiers changes to the CD itself.
> >
> > Also, it looks like it does looks for a .xsession file. I couldn't tell
> > if it was clever enough to get the file from removable media, or if it
> > always looked in /home/knoppix which comes from the CD.
> >
> > I couldn't see anything that I thought would definitely work without
> > changeing the CD.
> >
> > Michael
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
More information about the LUG
mailing list