Hello list, I played around a bit, and after help from Jammcq finally got my own ACPI-aware kernel to boot. I just got an option to remote-shutdown my workstations and wanted to tell you about. This is far from perfect, but perhaps is useful for someone.
As I wrote, I used a selfmade kernel. I just took the initrd-3.0.10 kit which contains a kernel config file for 2.4.19. I downloaded the 2.4.19 sources, copied this config-2.4.19-ltsp-1 file to /usr/src/kernel-source-2.4.19/config, changed into that directory and make menuconfig -> selected General Setup/Power Management ACPI support (Yes, not Module) with sub-option "System" enabled (not module). make dep; make bzImage mknbi-linux --output=/tftpboot/vmlinuz.ltsp --append="init=/linuxrc rw" --rootdir="/dev/ram0" arch/i386/boot/bzImage /home/anselm/ltsp_initrd_kit/initrd-2.4.19-ltsp-1.gz I installed the local_apps package and changed /opt/ltsp/i386/etc/passwd, the root line now looks like root:c5kge81n5Ag0a:0:0:root:/root:/bin/bash where c5kge... is an encrypted password. You could steal one from your server's /etc/passwd probably. Then I changed /opt/ltsp/i386/etc/host.allow to contain ALL: 10.0.3.1 where 10.0.3.1 is my server Then I copied /sbin/halt to /opt/ltsp/i386/sbin/mypoweroff and the necessary libs (ldd will tell you) into the ltsp tree. I hope I forgot nothing, but now it should be possible to telnet into the workstation and issue "/sbin/mypoweroff -p -f" which should turn off any ATX compliant workstation. Getting this automated is a bit tricky. Perhaps someone can use it with the +s bit or sudo so that one user specifically created for that only can halt the workstations. It could be used to turn off all workstations at a fix time, or perhaps one could even build a proper "shutdown" button into kdm. The present solution in kdm does allow to enter a shutdown script name, but in the environment of this script there is no chance to find out which workstation issued the shutdown request. Besides, kdm kills itself - not only on the one workstation that shuts down. Perhaps I'll find a solution for that. What do you think? Best regards, Anselm Martin Hoffmeister Stockholm Projekt Computer-Service <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net
