Install Sun Java on etch

Janning Vygen vygen at planwerk6.de
Wed May 9 18:58:33 CEST 2007


Am Mittwoch, 9. Mai 2007 18:40 schrieb Emil Gorter:
> Hi Janning,
>
>
> On Wed, 9 May 2007 17:14:21 +0200,
> Janning Vygen <vygen at planwerk6.de> wrote:
>  ...
>
> >    sun-dlj-v1-1 license could not be presented
>
>  ...
>
> > 3. Add a hook to install it manually with a little trick:
> >
> >      $ cat hooks/softupdate.JRE
> >      #!/bin/sh
> >      yes 'yes' | DEBIAN_FRONTEND=Readline apt-get install sun-java5-bin
> >
> > now everything runs non-interactively
>
> I ran into the same, but found a different solution.  Yours seems
> more correct than mine, but I'd like to share it anyhow.

Both are hacks. and hacks are "correct" if they work...

> First I did the interactive install and realised that my answer had
> been stored somewhere, because the 2nd time I was not asked to
> confirm again.  I found it sitting in /var/cache/debconf/config.dat
> so I added the following to my hooks/instsoft.WORKSTATION
>
> ---------------------------------------------------------------------
> CONF=$FAI_ROOT/var/cache/debconf/config.dat
>
> if grep "^Name: shared/accepted-sun-dlj-v1-1" $CONF >/dev/null 2>&1;
> then
>         echo "Sun license already in $CONF"
> else
>
> cat >> $CONF <<EDIT_END
>
> Name: shared/accepted-sun-dlj-v1-1
> Template: shared/accepted-sun-dlj-v1-1
> Value: true
> Owners:
> Flags: seen
> EDIT_END
>
>         echo "applied SUN license hack.."
>
> fi
> ---------------------------------------------------------------------

nice hack.

> I guess it's not completely legal to 'preset' your acceptance,

of course it is! 

> but I 
> did read and accept the license the 1st time I did it interactively.. :-)

so did i. to fully understand what i sign, i translated it to german by an 
excellent and very expensive lawyer :-))

> Cheers,
>
> Emil Gorter



More information about the linux-fai mailing list