Install Sun Java on etch

2007-05-09 Thread Janning Vygen
I just tried to install sun-jav5-jre with FAI on etch with softupdate.

the hints in 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg02045.html
helped a lot but didn't work (maybe because of etch)

I ran into problems because debconf must ask for acceptance of java license. 
As aptitude runs in non-interactive mode it aborts installing java:

   sun-dlj-v1-1 license could not be presented
   try 'dpkg-reconfigure debconf' to select a frontend other 
   than noninteractive
   dpkg: Fehler beim Bearbeiten 

I want to share the two hours of work to make it run smoothly.

1. You need to add "non-free" packages to your sources.list. I place it in a 
hook beacuse i must run it before instsoft runs

 $ cat hooks/softupdate.DEFAULT
 #!/bin/sh
 if ifclass JRE; then
fcopy /etc/apt/sources.list | grep -q \. && apt-get update
 fi

2. Add sun-java5-jre to your packages_config file (just for documentation 
purpose, see 3.)

 $ cat conf/package_config/JRE
 PACKAGES aptitude
 sun-java5-jre

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

If you don't use softupdate rename your hooks accordingly.

i hope it helps anyone. 

kind regards
Janning


FAI kernel won't boot on certain boxes

2007-05-09 Thread Frank Doepper
Hi,

the 2.6.18-kernel from fai-kernels-1.17 boots fine on most boxes. A
recompilation with FC support also works fine.

But both, the out-of-the-box kernel and the self-compiled kernel, won't
boot on a certain variant of "transtec" Intel Celeron PC. It says
"Loading vmlinuz-install..Ready." and dies.

Any clues?

An older FAI CD with kernel-2.6.8 works fine, so that I could even post
the output of the SYSINFO task to you. ;)

Regards,
Frank.


Re: FAI kernel won't boot on certain boxes

2007-05-09 Thread Thomas Lange
> On Wed, 09 May 2007 18:12:43 +0200, Frank Doepper <[EMAIL PROTECTED]> 
> said:

> But both, the out-of-the-box kernel and the self-compiled kernel, won't
> boot on a certain variant of "transtec" Intel Celeron PC. It says
> "Loading vmlinuz-install..Ready." and dies.
Mmm. Which variant?
I only know of problems with some e1000 cards, where the fai
kernels hangs when doing DHCP request.

You can also use a stock Debian kernel with initrd. Have a look at
http://www.uni-koeln.de/bin2/maillist/linux-fai/20070105.220333/174065
-- 
regards Thomas


Re: FAI kernel won't boot on certain boxes

2007-05-09 Thread Henning Sprang

On 5/9/07, Thomas Lange <[EMAIL PROTECTED]> wrote:

You can also use a stock Debian kernel with initrd. Have a look at
http://www.uni-koeln.de/bin2/maillist/linux-fai/20070105.220333/174065
--


It depends - YMMV.
When I tried this, I did not get all needed parameters through.

Old notes I made in a mail draft as response to this thread, which I
never sent because I never found the time again to check that further.

"
- saving logs on the right server could be changed by adding the
LOGSERVER variable to fai.conf (and recreating the nfsroot, or also
changing in nfsroot/etc/fai/fai,conf), but  my system still tries to
run fai-chboot on a server with the ip 1.2.3.4, which is the same as
given on the kernel command line (but not used for ip config because
dhcp is used later).

- somehow the mounting of the config space takes a long while. I get
portmap error messages.  It seems, thet portmapper is not correctly
run in this setup.

- I am a bit confused about the problems with getting the
installserver from dhcp...
"

So, in my opinion, this is a good idea to do it like this, and to get
rid of the fai-kernels, but, at least when I last tried, it does not
work nice and easy in the same way as it does with the fai-kernels.

Have to investigate further, and maybe look if the problem might be
solved in newer versions of the initrdtools.

Henning


Re: Install Sun Java on etch

2007-05-09 Thread Emil Gorter

Hi Janning,


On Wed, 9 May 2007 17:14:21 +0200,
Janning Vygen <[EMAIL PROTECTED]> 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.

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 <

Re: Install Sun Java on etch

2007-05-09 Thread Janning Vygen
Am Mittwoch, 9. Mai 2007 18:40 schrieb Emil Gorter:
> Hi Janning,
>
>
> On Wed, 9 May 2007 17:14:21 +0200,
> Janning Vygen <[EMAIL PROTECTED]> 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 <
> 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


Re: FAI kernel won't boot on certain boxes

2007-05-09 Thread Henning Sprang

BTW:

On 5/9/07, Henning Sprang <[EMAIL PROTECTED]> wrote:

Have to investigate further, and maybe look if the problem might be
solved in newer versions of the initrdtools.


Frank, that doesn't mean you shouldn't try it - but try and report
problems, better fixes, here :)

I just wanted to add to the record that this possibility is still not
a 100% alternative to the fai-kernels, unfortunately.

Henning


Re: FAI kernel won't boot on certain boxes

2007-05-09 Thread Frank Doepper
Am 09.05.2007 18:38 schrieb Thomas Lange:
>> On Wed, 09 May 2007 18:12:43 +0200, Frank Doepper <[EMAIL PROTECTED]> 
>> said:
> 
> > But both, the out-of-the-box kernel and the self-compiled kernel, won't
> > boot on a certain variant of "transtec" Intel Celeron PC. It says
> > "Loading vmlinuz-install..Ready." and dies.
> Mmm. Which variant?
> I only know of problems with some e1000 cards, where the fai
> kernels hangs when doing DHCP request.

No, it dies at the very beginning when exec'ing the kernel. Not a single
sign of life from the kernel at all.

I have just tried to change some kernel configuration details (processor
type, smp support) and recompiled and tried, but it's still the same.

If you want to have a look at the old-fai-cd-sysinfo-log from kernel
2.6.8, here it is:
http://taz.de/~fd/stuff/fai.log

Just tried the fai-3.0-cd with linux-2.6.17, it works.

Tried that kernel via netboot - it does not work!

So I think it has to do rather with pxelinux than with the kernel. It is
from recent syslinux version 1:3.31-4. The pxelinux.cfg entry is

label fai-generated
kernel vmlinuz-install
append ip=dhcp  root=/dev/nfs
  nfsroot=/srv/fai/nfsroot,v3,tcp,rsize=32768,wsize=32768
  FAI_FLAGS=verbose,sshd,createvt

Maybe I need to upgrade the PXE-BIOS? Is this becoming off-topic?

Regards,
Frank.


Strange cfagent message ...

2007-05-09 Thread Ralf Mattes
Hello list,

after upgrading from FAI2 to FAI3.1 (on Ubuntu Fesity) I changed my 
cfengine scripts to be run by cfagent (after some googling arround).
No I end up with the following messages in cfagent.log:

=   cfagent: FLAPTOP/40-misc   =
cfengine:FlapTop-04::0: Warning: actionsequence is empty 
cfengine:FlapTop-04::0: Warning: perhaps cfagent.conf/update.conf have
not yet been set up?
FLAPTOP/40-misc  OK.
=   cfagent: FLAPTOP/72-misc   =
cfengine:FlapTop-04::0: Warning: actionsequence is empty 
cfengine:FlapTop-04::0: Warning: perhaps cfagent.conf/update.conf have
not yet been set up?
FLAPTOP/72-misc  OK.

And it looks as if none of the actions where performed. Here's 72-misc:

#!/usr/sbin/cfagent -f

control:
   any::
   actionsequence = ( editfiles )
   EditFileSize = ( 3 )

editfiles:
   any::
{ ${target}/etc/X11/gdm/gdm.conf
  ReplaceAll "^GraphicalTheme=.*" With
"GraphicalTheme=FlapGreeter"
}


What am I missing here?

 TIA Ralf Mattes







Re: FAI kernel won't boot on certain boxes

2007-05-09 Thread Thomas Lange
> On Wed, 09 May 2007 19:27:50 +0200, Frank Doepper <[EMAIL PROTECTED]> 
> said:

>> > boot on a certain variant of "transtec" Intel Celeron PC. It says
>> > "Loading vmlinuz-install..Ready." and dies.

> Just tried the fai-3.0-cd with linux-2.6.17, it works.
> Tried that kernel via netboot - it does not work!

> So I think it has to do rather with pxelinux than with the kernel. It is
> from recent syslinux version 1:3.31-4. The pxelinux.cfg entry is
I have syslinux version 3.31-4 with the 1: in front.
Yes, it could be the pxelinux loader. Try the old pxelinux.0 file from
sarge. Maybe this version works with your hardware.

Also try to do a memtest. Maybe defect RAM.
-- 
regards Thomas


Re: Strange cfagent message ...

2007-05-09 Thread Thomas Roth

Hello Ralf,

I get these messages after re-installing machines that had prior contact 
to the cfengine server. Deleting the key on the server 
(cfengine-reset-key ) helps against 'empty actionsequences'. 
That much for helpful error messages ...
You might also want to try more options in your shebang, such as: 
#!/usr/sbin/cfagent -qvKf


Regards,
Thomas


Ralf Mattes wrote:

Hello list,

after upgrading from FAI2 to FAI3.1 (on Ubuntu Fesity) I changed my 
cfengine scripts to be run by cfagent (after some googling arround).

No I end up with the following messages in cfagent.log:

=   cfagent: FLAPTOP/40-misc   =
cfengine:FlapTop-04::0: Warning: actionsequence is empty 
cfengine:FlapTop-04::0: Warning: perhaps cfagent.conf/update.conf have

not yet been set up?
FLAPTOP/40-misc  OK.
=   cfagent: FLAPTOP/72-misc   =
cfengine:FlapTop-04::0: Warning: actionsequence is empty 
cfengine:FlapTop-04::0: Warning: perhaps cfagent.conf/update.conf have

not yet been set up?
FLAPTOP/72-misc  OK.

And it looks as if none of the actions where performed. Here's 72-misc:

#!/usr/sbin/cfagent -f

control:
   any::
   actionsequence = ( editfiles )
   EditFileSize = ( 3 )

editfiles:
   any::
{ ${target}/etc/X11/gdm/gdm.conf
  ReplaceAll "^GraphicalTheme=.*" With
"GraphicalTheme=FlapGreeter"
}


What am I missing here?

 TIA Ralf Mattes







Re: Install Sun Java on etch

2007-05-09 Thread Michael Tautschnig
> I just tried to install sun-jav5-jre with FAI on etch with softupdate.
> 
> the hints in 
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg02045.html
> helped a lot but didn't work (maybe because of etch)
> 
> I ran into problems because debconf must ask for acceptance of java license. 
> As aptitude runs in non-interactive mode it aborts installing java:
>
[...]

As you stated correctly, it asks a debconf question - so you need to answer it.
The proper way to do this in FAI is debconf preseeding. You achieve this by
adding something like

sun-java5-bin   shared/accepted-sun-dlj-v1-1boolean true
sun-java5-jdk   shared/accepted-sun-dlj-v1-1boolean true
sun-java5-jre   shared/accepted-sun-dlj-v1-1boolean true

to debconf/DEFAULT in your FAI config space. That's all.

Best,
Michael




pgpyTdUuO5e9x.pgp
Description: PGP signature