A.2. 啟動安裝程式

For some quick links to installation images, check out the debian-installer home page. The debian-cd team provides builds of installation images using debian-installer on the Debian CD/DVD page. For more information on where to get installation images, see 節 4.1, “Official Debian GNU/Linux installation images”.

Some installation methods require other images than those for optical media. The debian-installer home page has links to other images. 節 4.2.1, “Where to Find Installation Files” explains how to find images on Debian mirrors.

下一節我們就各種可能的安裝方法,仔細解釋如何取得所需的映像檔。

A.2.1. Optical disc

The netinst CD image is a popular image which can be used to install bullseye with the debian-installer. This installation method is intended to boot from the image and install additional packages over a network; hence the name netinst. The image has the software components needed to run the installer and the base packages to provide a minimal bullseye system. If you'd rather, you can get a full size CD/DVD image which will not need the network to install. You only need the first image of such set.

Download whichever type you prefer and burn it to an optical disc. To boot the disc, you may need to change your BIOS/UEFI configuration, as explained in 節 3.6.1, “Invoking the BIOS/UEFI Set-Up Menu”.

A.2.2. USB 隨身碟

我們也可以透過 USB 隨身碟來安裝套件。無論到哪你都可帶著 USB 隨身碟,這是一個相當方便的 Debian 安裝工具。

The easiest way to prepare your USB memory stick is to download any Debian CD or DVD image that will fit on it, and write the image directly to the memory stick. Of course this will destroy anything already on the stick. This works because Debian CD/DVD images are isohybrid images that can boot both from optical and USB drives.

除此之外,還有其它更為彈性的方式可以做出能啟動 debian-installer 的 USB 隨身碟,且即使是較小容量的 USB 隨身碟亦可成功。欲知詳情,請看 節 4.3, “準備從 USB 隨身碟開機的檔案”

While booting from USB storage is quite common on UEFI systems, this is somewhat different in the older BIOS world. Some BIOSes can boot USB storage directly, and some cannot. You may need to configure your BIOS/UEFI to enable USB legacy support or Legacy support. The boot device selection menu should show removable drive or USB-HDD to get it to boot from the USB device. For helpful hints and details, see 節 5.1.1, “從 USB 隨身碟開機”.

A.2.3. 透過網路開機

要完全從網路上啟動(即 netboot) debian-installer 也是可行的。而採取哪種方法來從網路啟動取決於您的硬體架構和網路啟動的相關設定。在 netboot/ 目錄裡的檔案是用來從網路啟動 debian-installer

The easiest thing to set up is probably PXE netbooting. Untar the file netboot/pxeboot.tar.gz into /srv/tftp or wherever is appropriate for your tftp server. Set up your DHCP server to pass filename pxelinux.0 to clients, and with luck everything will just work. For detailed instructions, see 節 4.5, “準備以 TFTP 網路開機用的檔案”.

A.2.4. 從硬碟開機

It's possible to boot the installer using no removable media, but just an existing hard disk, which can have a different OS on it. Download hd-media/initrd.gz, hd-media/vmlinuz, and a Debian CD/DVD image to the top-level directory of the hard disk. Make sure that the image has a filename ending in .iso. Now it's just a matter of booting linux with the initrd. 節 5.1.5, “Booting from Linux using GRUB explains one way to do it.