特殊:Badtitle/NS100:UbuntuLTSP/LTSPMultiboot:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
第2行: 第2行:
{{Languages|UbuntuHelp:UbuntuLTSP/LTSPMultiboot}}
{{Languages|UbuntuHelp:UbuntuLTSP/LTSPMultiboot}}
=== This page describes the steps needed to setup PXE network booting as well as local disk booting ===
=== This page describes the steps needed to setup PXE network booting as well as local disk booting ===
Using the below method instead of the PXE clients booting straight off the network, the user is displayed a message and is allowed to choose whether to boot from the network or from the local hard drive.  In this way, establishments who already have machines setup with local disk booting, can utilise both systems without having to modify anything on the client HDD.
Using the below method instead of the PXE clients booting straight off the network, the user is displayed a message and is allowed to choose whether to boot from the network or from the local hard drive.  In this way, establishments who already have machines setup with local disk booting, can utilise both systems without having to modify anything on the client HDD.
We need to first edit the '''pxelinux.cfg/default''' file to incorporate the choices for booting. On edubuntu 7.04 path /var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default.  The syntax is similar to lilo's configuration.  More information can be found at [[http://syslinux.zytor.com/faq.php#config Syslinux]].  First take a look at the configuration below and we will break it down line by line.
We need to first edit the '''pxelinux.cfg/default''' file to incorporate the choices for booting. On edubuntu 7.04 path /var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default.  The syntax is similar to lilo's configuration.  More information can be found at [[http://syslinux.zytor.com/faq.php#config Syslinux]].  First take a look at the configuration below and we will break it down line by line.
<pre><nowiki>
<pre><nowiki>
DEFAULT localboot
DEFAULT localboot
第12行: 第9行:
PROMPT 1
PROMPT 1
DISPLAY display.msg
DISPLAY display.msg
LABEL linux
LABEL linux
KERNEL vmlinuz
KERNEL vmlinuz
APPEND ro initrd=initrd.img quiet splash
APPEND ro initrd=initrd.img quiet splash
LABEL localboot
LABEL localboot
LOCALBOOT 0
LOCALBOOT 0
</nowiki></pre>
</nowiki></pre>
This overall configuration will present the user with a boot prompt.  After 5 seconds, the default choice is made which is the ''localboot'' option.  Users will have the choice to type in either ''localboot'' or ''linux'', which will boot the respective operating system.
This overall configuration will present the user with a boot prompt.  After 5 seconds, the default choice is made which is the ''localboot'' option.  Users will have the choice to type in either ''localboot'' or ''linux'', which will boot the respective operating system.
<pre><nowiki>
<pre><nowiki>
DEFAULT localboot
DEFAULT localboot
第29行: 第22行:
DISPLAY display.msg
DISPLAY display.msg
</nowiki></pre>
</nowiki></pre>
The '''DEFAULT''' keyword specifies which boot option will be chosen once the timeout runs out.  The '''TIMEOUT''' option specifies how long to wait before booting the ''default'' option.  This is measured in 1/10 of a second.  Thus 50 = 5seconds.  The '''PROMPT''' option specifies whether the PXE software displays the ''boot:'' prompt to enable users to choose an operating system.  The '''DISPLAY''' option displays a text file on the screen as an introduction  In this case, the file is called '''display.msg''' and must be in the root LTSP directory, alongside the pxelinux.0 file.  An example of this file is proposed below.
The '''DEFAULT''' keyword specifies which boot option will be chosen once the timeout runs out.  The '''TIMEOUT''' option specifies how long to wait before booting the ''default'' option.  This is measured in 1/10 of a second.  Thus 50 = 5seconds.  The '''PROMPT''' option specifies whether the PXE software displays the ''boot:'' prompt to enable users to choose an operating system.  The '''DISPLAY''' option displays a text file on the screen as an introduction  In this case, the file is called '''display.msg''' and must be in the root LTSP directory, alongside the pxelinux.0 file.  An example of this file is proposed below.
<pre><nowiki>
<pre><nowiki>
==============================================================================
==============================================================================
Welcome to the Multiboot System (SGMS)
Welcome to the Multiboot System (SGMS)
The system will start in 5 seconds...
The system will start in 5 seconds...
for linux users type :  linux  
for linux users type :  linux  
at the boot: prompt and press <enter>
at the boot: prompt and press <enter>
==============================================================================
==============================================================================
</nowiki></pre>
</nowiki></pre>
This prompt will be displayed as soon as the computer begins to boot from the network.
This prompt will be displayed as soon as the computer begins to boot from the network.
<pre><nowiki>
<pre><nowiki>
LABEL linux
LABEL linux
第52行: 第37行:
APPEND ro initrd=initrd.img quiet splash
APPEND ro initrd=initrd.img quiet splash
</nowiki></pre>
</nowiki></pre>
The above 3 lines defines the ''''linux'''' option for booting.  This is defined by the '''KERNEL''' and '''APPEND''' options, which you will notice are extraced from the original '''default''' file.  As shown below
The above 3 lines defines the ''''linux'''' option for booting.  This is defined by the '''KERNEL''' and '''APPEND''' options, which you will notice are extraced from the original '''default''' file.  As shown below
<pre><nowiki>
<pre><nowiki>
DEFAULT vmlinuz ro initrd=initrd.img quiet splash
DEFAULT vmlinuz ro initrd=initrd.img quiet splash
</nowiki></pre>
</nowiki></pre>
All that is needed now, is the option for booting from the local hard drive.  As seen below
All that is needed now, is the option for booting from the local hard drive.  As seen below
<pre><nowiki>
<pre><nowiki>
第64行: 第46行:
LOCALBOOT 0
LOCALBOOT 0
</nowiki></pre>
</nowiki></pre>
Thse lines define the ''''localboot'''' option as used with the '''DEFAULT''' keyword earlier in the file.  The only definition included in this option is the '''LOCALBOOT''' option, with a parameter of 0.  This provides normal harddisk booting.  Other parameters are available and these can be seen on the Syslinux page.
Thse lines define the ''''localboot'''' option as used with the '''DEFAULT''' keyword earlier in the file.  The only definition included in this option is the '''LOCALBOOT''' option, with a parameter of 0.  This provides normal harddisk booting.  Other parameters are available and these can be seen on the Syslinux page.
Upon rebooting of the client, the following changes should be seen and you will be presented with a screen similar to the following.
Upon rebooting of the client, the following changes should be seen and you will be presented with a screen similar to the following.
https://help.ubuntu.com/community/UbuntuLTSP/LTSPMultiboot?action=AttachFile&do=get&target=LTSPMultibootScreenShot.png
https://help.ubuntu.com/community/UbuntuLTSP/LTSPMultiboot?action=AttachFile&do=get&target=LTSPMultibootScreenShot.png
* '''Created''': [[Date(2006-04-21T09:26:44Z)]] by PeteSavage
* '''Created''': [[Date(2006-04-21T09:26:44Z)]] by PeteSavage
----
----

2007年11月30日 (五) 21:51的版本

{{#ifexist: :UbuntuLTSP/LTSPMultiboot/zh | | {{#ifexist: UbuntuLTSP/LTSPMultiboot/zh | | {{#ifeq: {{#titleparts:UbuntuLTSP/LTSPMultiboot|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuLTSP/LTSPMultiboot|1|-1|}} | zh | | }}

This page describes the steps needed to setup PXE network booting as well as local disk booting

Using the below method instead of the PXE clients booting straight off the network, the user is displayed a message and is allowed to choose whether to boot from the network or from the local hard drive. In this way, establishments who already have machines setup with local disk booting, can utilise both systems without having to modify anything on the client HDD. We need to first edit the pxelinux.cfg/default file to incorporate the choices for booting. On edubuntu 7.04 path /var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default. The syntax is similar to lilo's configuration. More information can be found at [Syslinux]. First take a look at the configuration below and we will break it down line by line.

DEFAULT localboot
TIMEOUT 50
PROMPT 1
DISPLAY display.msg
LABEL linux
KERNEL vmlinuz
APPEND ro initrd=initrd.img quiet splash
LABEL localboot
LOCALBOOT 0

This overall configuration will present the user with a boot prompt. After 5 seconds, the default choice is made which is the localboot option. Users will have the choice to type in either localboot or linux, which will boot the respective operating system.

DEFAULT localboot
TIMEOUT 50
PROMPT 1
DISPLAY display.msg

The DEFAULT keyword specifies which boot option will be chosen once the timeout runs out. The TIMEOUT option specifies how long to wait before booting the default option. This is measured in 1/10 of a second. Thus 50 = 5seconds. The PROMPT option specifies whether the PXE software displays the boot: prompt to enable users to choose an operating system. The DISPLAY option displays a text file on the screen as an introduction In this case, the file is called display.msg and must be in the root LTSP directory, alongside the pxelinux.0 file. An example of this file is proposed below.

==============================================================================
Welcome to the Multiboot System (SGMS)
The system will start in 5 seconds...
for linux users type :  linux 
at the boot: prompt and press <enter>
==============================================================================

This prompt will be displayed as soon as the computer begins to boot from the network.

LABEL linux
KERNEL vmlinuz
APPEND ro initrd=initrd.img quiet splash

The above 3 lines defines the 'linux' option for booting. This is defined by the KERNEL and APPEND options, which you will notice are extraced from the original default file. As shown below

DEFAULT vmlinuz ro initrd=initrd.img quiet splash

All that is needed now, is the option for booting from the local hard drive. As seen below

LABEL localboot
LOCALBOOT 0

Thse lines define the 'localboot' option as used with the DEFAULT keyword earlier in the file. The only definition included in this option is the LOCALBOOT option, with a parameter of 0. This provides normal harddisk booting. Other parameters are available and these can be seen on the Syslinux page. Upon rebooting of the client, the following changes should be seen and you will be presented with a screen similar to the following. LTSPMultiboot?action=AttachFile&do=get&target=LTSPMultibootScreenShot.png