特殊:Badtitle/NS100:UbuntuLTSP/AutomatedTCStartup:修订间差异
小 创建新页面为 '{{From|https://help.ubuntu.com/community/UbuntuLTSP/AutomatedTCStartup}} {{Languages|UbuntuHelp:UbuntuLTSP/AutomatedTCStartup}} {|border="1" cellspacing="0" |This page is specif...' |
小无编辑摘要 |
||
第87行: | 第87行: | ||
=== GOTCHA 2: === | === GOTCHA 2: === | ||
* 2009/02/20 Lns: I've experienced the situation where certain specific hardware might not respond to WoL magic packets, even with the workaround implemented in '''GOTCHA 1'''. I've narrowed it down to when the user manually shuts the thin client down via LDM's "Shutdown" option in the menu. Apparently it uses the ''poweroff -p'' command. Manually using ''/sbin/halt'' (ala the [[UbuntuHelp:UbuntuLTSP/AutomatedTCShutodwn|Automated|Shutdown Procedure]]) works fine. You can probably symlink / alias the commands to make it work as expected, until the bug/situation is fixed upstream. | * 2009/02/20 Lns: I've experienced the situation where certain specific hardware might not respond to WoL magic packets, even with the workaround implemented in '''GOTCHA 1'''. I've narrowed it down to when the user manually shuts the thin client down via LDM's "Shutdown" option in the menu. Apparently it uses the ''poweroff -p'' command. Manually using ''/sbin/halt'' (ala the [[UbuntuHelp:UbuntuLTSP/AutomatedTCShutodwn|Automated|Shutdown Procedure]]) works fine. You can probably symlink / alias the commands to make it work as expected, until the bug/situation is fixed upstream. | ||
=== NOTES: === | |||
* If you are using dhcpd, then you can get the list of mac addresses that are supposed to correspond to a given hostname (when up), allowing you to wakeonlan <byhostname>. A simple tool called [http://www.cs.mcgill.ca/~james/code/ omwol] can make this process easy, and also allows you to wake up a well named lab of machines with simple commands like: | |||
<pre><nowiki> | |||
$ omwol machinename 1 16 | |||
</nowiki></pre> | |||
which would wake up hosts machinename1 through machinename16. | |||
---- | ---- | ||
[[category:CategoryLtsp]] | [[category:CategoryLtsp]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年11月17日 (二) 20:51的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UbuntuLTSP/AutomatedTCStartup }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/af | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|Afrikaans| [[::UbuntuLTSP/AutomatedTCStartup/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/ar | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|العربية| [[::UbuntuLTSP/AutomatedTCStartup/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/az | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|azərbaycanca| [[::UbuntuLTSP/AutomatedTCStartup/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/bcc | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|جهلسری بلوچی| [[::UbuntuLTSP/AutomatedTCStartup/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/bg | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|български| [[::UbuntuLTSP/AutomatedTCStartup/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/br | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|brezhoneg| [[::UbuntuLTSP/AutomatedTCStartup/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/ca | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|català| [[::UbuntuLTSP/AutomatedTCStartup/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/cs | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|čeština| [[::UbuntuLTSP/AutomatedTCStartup/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/de | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|Deutsch| [[::UbuntuLTSP/AutomatedTCStartup/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/el | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|Ελληνικά| [[::UbuntuLTSP/AutomatedTCStartup/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/es | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|español| [[::UbuntuLTSP/AutomatedTCStartup/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/fa | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|فارسی| [[::UbuntuLTSP/AutomatedTCStartup/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/fi | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|suomi| [[::UbuntuLTSP/AutomatedTCStartup/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/fr | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|français| [[::UbuntuLTSP/AutomatedTCStartup/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/gu | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|ગુજરાતી| [[::UbuntuLTSP/AutomatedTCStartup/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/he | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|עברית| [[::UbuntuLTSP/AutomatedTCStartup/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/hu | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|magyar| [[::UbuntuLTSP/AutomatedTCStartup/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/id | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|Bahasa Indonesia| [[::UbuntuLTSP/AutomatedTCStartup/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/it | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|italiano| [[::UbuntuLTSP/AutomatedTCStartup/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/ja | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|日本語| [[::UbuntuLTSP/AutomatedTCStartup/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/ko | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|한국어| [[::UbuntuLTSP/AutomatedTCStartup/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/ksh | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|Ripoarisch| [[::UbuntuLTSP/AutomatedTCStartup/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/mr | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|मराठी| [[::UbuntuLTSP/AutomatedTCStartup/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/ms | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|Bahasa Melayu| [[::UbuntuLTSP/AutomatedTCStartup/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/nl | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|Nederlands| [[::UbuntuLTSP/AutomatedTCStartup/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/no | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|norsk| [[::UbuntuLTSP/AutomatedTCStartup/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/oc | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|occitan| [[::UbuntuLTSP/AutomatedTCStartup/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/pl | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|polski| [[::UbuntuLTSP/AutomatedTCStartup/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/pt | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|português| [[::UbuntuLTSP/AutomatedTCStartup/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/ro | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|română| [[::UbuntuLTSP/AutomatedTCStartup/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/ru | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|русский| [[::UbuntuLTSP/AutomatedTCStartup/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/si | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|සිංහල| [[::UbuntuLTSP/AutomatedTCStartup/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/sq | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|shqip| [[::UbuntuLTSP/AutomatedTCStartup/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/sr | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|српски / srpski| [[::UbuntuLTSP/AutomatedTCStartup/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/sv | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|svenska| [[::UbuntuLTSP/AutomatedTCStartup/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/th | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|ไทย| [[::UbuntuLTSP/AutomatedTCStartup/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/tr | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|Türkçe| [[::UbuntuLTSP/AutomatedTCStartup/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/vi | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|Tiếng Việt| [[::UbuntuLTSP/AutomatedTCStartup/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/yue | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|粵語| [[::UbuntuLTSP/AutomatedTCStartup/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/zh | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|中文| [[::UbuntuLTSP/AutomatedTCStartup/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/zh-hans | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|中文(简体)| [[::UbuntuLTSP/AutomatedTCStartup/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | UbuntuHelp:UbuntuLTSP/AutomatedTCStartup | {{#if: | :}}UbuntuLTSP/AutomatedTCStartup}}/zh-hant | • {{#if: UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|中文(繁體)| [[::UbuntuLTSP/AutomatedTCStartup/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UbuntuLTSP/AutomatedTCStartup|:UbuntuLTSP/AutomatedTCStartup|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuLTSP/AutomatedTCStartup/zh | | {{#ifexist: UbuntuLTSP/AutomatedTCStartup/zh | | {{#ifeq: {{#titleparts:UbuntuLTSP/AutomatedTCStartup|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuLTSP/AutomatedTCStartup|1|-1|}} | zh | | }}
This page is specific to Ubuntu versions 8.04 |
If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.
If you have configured automated|thin-client shutdown, maybe you'd like to configure your thin-clients to turn on automatically as well. This can be accomplished via WoL technology (Wake-on-LAN). This allows a system on your network to send a "magic packet" to the MAC address of a specified thin-client(s) to "wake up" (power on) without having to physically push a button. Pretty nifty! To do this, we must configure a few aspects of our LTSP network. These configurations are described below:
- Determine if your clients support Wake-on-LAN. Most newer systems support this BIOS feature (called "Wake on LAN", "WOL", "PME" (Power management events), or similar. Each BIOS is different - consult your documentation if you are unsure. If your clients' BIOSes do not support this, sorry! Maybe a newer BIOS revision supports it. Consult your hardware manufacturer's website for any available BIOS updates. If they do support it, enable it in the BIOS and read on!
- Get MAC addresses of all clients you want to boot up automatically. This can be accomplished by logging into each client's chroot environment (you can follow instructions HERE to enable the root account in your chroot environment) and running ifconfig. A nice alternative is if all of your thin-clients are booted up, you can automatically gather MAC addresses of connected clients (though possibly not a complete list, you'll want to test it) by running the following command from the server:
sudo arp -an | cut -d " " -f 4
Personally, I use this command and redirect the output to a text file in /etc/ltsp on the server for easy editing:
sudo arp -an | cut -d " " -f 4 | sudo tee /etc/ltsp/client-mac-addresses.txt
- Install the wakeonlan package. This package will install the software necessary for your server to send the magic packets to the clients:
sudo apt-get install wakeonlan
- Configure a wrapper script for wakeonlan to sleep between sending WoL packets to clients. AFAICT, wakeonlan has the functionality to read from a list of MACs (via the -f switch), but does NOT have the functionality to wait in between sending packets. Thinking to myself while initially setting this up, "Self, powering on 35 systems all at once might blow our electrical circuit!" So I wrote a very simple wrapper script to, instead, wait 2 seconds in between powering on each system listed in our file:
sudo vim /etc/ltsp/wol
/etc/ltsp/wol:
#!/bin/bash # # Uses wakeonlan to bring up clients from a file, sleeping 2sec. in between. # while read line do /usr/bin/wakeonlan $line sleep 2 done < /etc/ltsp/client-mac-addresses.txt # EOF
- Of course, we'll want this script executable:
sudo chmod +x /etc/ltsp/wol
- Configure CRON to automate wakeonlan at your specified time. In this example we'll use 7:50am (Monday-Friday) as our bootup times:
sudo vim /etc/crontab
/etc/crontab:
50 7 * * 1-5 root /etc/ltsp/wol
- Update your client chroot:
sudo ltsp-update-image
- Reboot your thin-clients, and enjoy automated bootup!
GOTCHA 1:
In my experience on some specific thin-client hardware, some Linux/LTSP (not sure which) bootup function disables the ability to use WoL, even though it is enabled in the BIOS. If you experience your systems not booting up via WoL, maybe you will benefit from the workaround I found, via the ethtool command. Create a file in your chroot environment and enable this command during bootup:
sudo vim /opt/ltsp/i386/etc/ltsp/wolfix
/opt/ltsp/i386/etc/ltsp/wolfix:
#!/bin/bash # # Uses 'ethtool' to 'fix' WoL functionality since, for some reason, it's # turned off during bootup (even when, in BIOS, it is turned on). # ethtool -s eth0 wol g # EOF
- Make this file executable as well:
sudo chmod +x /opt/ltsp/i386/etc/ltsp/wolfix
- Edit your lts.conf file to execute this script upon client bootup:
sudo vim /var/lib/tftpboot/ltsp/i386/lts.conf
/var/lib/tftpboot/ltsp/i386/lts.conf:
RCFILE_01 = /etc/ltsp/wolfix
(Substitute RCFILE_01 with a different number if you are already using it)
GOTCHA 2:
- 2009/02/20 Lns: I've experienced the situation where certain specific hardware might not respond to WoL magic packets, even with the workaround implemented in GOTCHA 1. I've narrowed it down to when the user manually shuts the thin client down via LDM's "Shutdown" option in the menu. Apparently it uses the poweroff -p command. Manually using /sbin/halt (ala the Automated|Shutdown Procedure) works fine. You can probably symlink / alias the commands to make it work as expected, until the bug/situation is fixed upstream.
NOTES:
- If you are using dhcpd, then you can get the list of mac addresses that are supposed to correspond to a given hostname (when up), allowing you to wakeonlan <byhostname>. A simple tool called omwol can make this process easy, and also allows you to wake up a well named lab of machines with simple commands like:
$ omwol machinename 1 16
which would wake up hosts machinename1 through machinename16.