个人工具

“UbuntuHelp:Installation/WindowsServerNetboot”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的8个中间版本)
第2行: 第2行:
 
{{Languages|UbuntuHelp:Installation/WindowsServerNetboot}}
 
{{Languages|UbuntuHelp:Installation/WindowsServerNetboot}}
 
== Network Installing Ubuntu Using a Windows box ==
 
== Network Installing Ubuntu Using a Windows box ==
This document describes how to install ubuntu through your network without having to use a linux box as a TFTP and DHCP server. This is a very easy method for a linux newb like me.
+
This document describes how to install Ubuntu through your network without having to access to an existing linux TFTP / DHCP server. This method is especially useful for installing Ubuntu onto a machine that does not have removable drives.  
=== My scenario ===
+
I want to install ubuntu linux onto a computer that has no removable drives. This computer has a PXE booting capable BIOS.  
+
 
If you have a floppy drive, you can make a floppy that will allow you to PXE boot on a non PXE enabled network card. The etherboot based one can be found here: [http://sourceforge.net/project/showfiles.php?group_id=80408&package_id=97496] the package is ''network_boot_floppy+cd+hd_540.zip''
 
If you have a floppy drive, you can make a floppy that will allow you to PXE boot on a non PXE enabled network card. The etherboot based one can be found here: [http://sourceforge.net/project/showfiles.php?group_id=80408&package_id=97496] the package is ''network_boot_floppy+cd+hd_540.zip''
 
Alternatively you can use the Microsoft based pxe boot floppy - which can be constructed by using the Remote Boot Floppy Generator program named "rbfg.exe" which can be found in Windows 2003 or Windows 2000 Server version under the directory ''\windows\system32\dllcache''  or ''\winnt\ServicePackFiles\i386'' respectively.  
 
Alternatively you can use the Microsoft based pxe boot floppy - which can be constructed by using the Remote Boot Floppy Generator program named "rbfg.exe" which can be found in Windows 2003 or Windows 2000 Server version under the directory ''\windows\system32\dllcache''  or ''\winnt\ServicePackFiles\i386'' respectively.  
第10行: 第8行:
 
* A network with a windows computer
 
* A network with a windows computer
 
* A a network gateway to the internet (Cable/DSL Router)
 
* A a network gateway to the internet (Cable/DSL Router)
* Tftpd32.exe (The windows TFTP/DHCP server program)
+
* Tftpd32.exe (The windows TFTP/DHCP server program) ([http://tftpd32.jounin.net/ Tftpd32 Homepage])
 
* The Ubuntu Netboot Image
 
* The Ubuntu Netboot Image
* 7-Zip to unzip the image ([http://cameronbergh.com/mirror/7z432.exe Available Here])
+
* [http://www.7-zip.org/ 7-Zip] or [http://www.rarlabs.com/ WinRAR] to unzip the image  
'''All files necessary'''
+
=== Netboot Files ===
[http://mirror.cameronbergh.com/breezynetboot.7z Breezy netboot kit (386)]
+
'''Karmic Koala (9.10)'''
[http://mirror.cameronbergh.com/breezynetboot64.7z Breezy netboot kit (amd64)]
+
[http://archive.ubuntu.com/ubuntu/dists/karmic/main/installer-i386/current/images/netboot/netboot.tar.gz Karmic Netboot Image (i386)]
'''Individual files'''
+
[http://archive.ubuntu.com/ubuntu/dists/karmic/main/installer-amd64/current/images/netboot/netboot.tar.gz Karmic Netboot Image (amd64)]
[http://tftpd32.jounin.net/ tftpd32.exe Mirror 1]
+
'''Jaunty Jackalope (9.04)'''
 +
[http://archive.ubuntu.com/ubuntu/dists/jaunty/main/installer-i386/current/images/netboot/netboot.tar.gz Jaunty Netboot Image (i386)]
 +
[http://archive.ubuntu.com/ubuntu/dists/jaunty/main/installer-amd64/current/images/netboot/netboot.tar.gz Jaunty Netboot Image (amd64)]
 +
'''Intrepid Ibex (8.10)'''
 +
[http://archive.ubuntu.com/ubuntu/dists/intrepid/main/installer-i386/current/images/netboot/netboot.tar.gz Intrepid Netboot Image (i386)]
 +
[http://archive.ubuntu.com/ubuntu/dists/intrepid/main/installer-amd64/current/images/netboot/netboot.tar.gz Intrepid Netboot Image (amd64)]
 +
'''Hardy Heron (8.04)'''
 +
[http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-i386/current/images/netboot/netboot.tar.gz Hardy Netboot Image (i386)]
 +
[http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-amd64/current/images/netboot/netboot.tar.gz Hardy Netboot Image (amd64)]
 +
'''Dapper Drake (6.06)'''
 
[http://archive.ubuntu.com/ubuntu/dists/dapper/main/installer-i386/current/images/netboot/netboot.tar.gz Dapper Netboot Image (i386)]
 
[http://archive.ubuntu.com/ubuntu/dists/dapper/main/installer-i386/current/images/netboot/netboot.tar.gz Dapper Netboot Image (i386)]
 
[http://archive.ubuntu.com/ubuntu/dists/dapper/main/installer-amd64/current/images/netboot/netboot.tar.gz Dapper Netboot Image (amd64)]
 
[http://archive.ubuntu.com/ubuntu/dists/dapper/main/installer-amd64/current/images/netboot/netboot.tar.gz Dapper Netboot Image (amd64)]
[http://archive.ubuntu.com/ubuntu/dists/breezy/main/installer-i386/current/images/netboot/netboot.tar.gz Breezy Netboot Image (i386)]
+
=== Netboot Instructions ===
[http://archive.ubuntu.com/ubuntu/dists/breezy/main/installer-amd64/current/images/netboot/netboot.tar.gz Breezy Netboot Image (amd64)]
+
<ol><li>On the windows box, make a folder called "UbuntuNetInstall"
[http://archive.ubuntu.com/ubuntu/dists/hoary/main/installer-i386/current/images/netboot/netboot.tar.gz Hoary Netboot Image (i386)]
+
</li><li>Place tftpd32.exe in that folder
[http://archive.ubuntu.com/ubuntu/dists/hoary/main/installer-amd64/current/images/netboot/netboot.tar.gz Hoary Netboot Image (amd64)]
+
</li><li>Extract the contents of netboot.tar.gz and place them in a folder called "netboot"</li></ol>
=== This is how we do it (Breezy Style) ===
+
 
# If you downloaded the 7z that i provided, skip to step 7.
+
2. On the windows box, make a folder called "cb"
+
3. Place Tftpd32.exe with its support files in "cb"
+
4. Extract the contents of netboot.tar.gz and place them in a folder called "netboot"
+
 
''Note: Winrar may give you some errors that it couldn't create some symbolic links, just ignore it.''
 
''Note: Winrar may give you some errors that it couldn't create some symbolic links, just ignore it.''
5. Put the netboot folder inside of the "cb" folder
+
<ol><li>Put the netboot folder inside of the "UbuntuNetInstall" folder
6. Go To ../cb/netboot/ubuntu-installer/i386/ or ../cb/netboot/ubuntu-installer/amd64/ then copy "pxelinux.cfg", "linux", and "pxelinux.0". Now paste them in ../cb/netboot/
+
</li><li>Go To UbuntuNetInstall/netboot/ubuntu-installer/i386/ or UbuntuNetInstall/netboot/ubuntu-installer/amd64/ and copy pxelinux.cfg folder
7. Run Tftpd32.exe and click the DHCP tab
+
</li><li>Go back to the netboot folder and Paste pxelinux.cfg folder.</li></ol>
 +
 
 +
You may also have to copy pxelinux.0 to the netboot folder (instead of it's original home in '/netboot/ubuntu-installer/i386/'), if you get an error such as 'error 2 in system call CreateFile: The system cannot find the file specified' in TFTPD32's logs.
 +
<ol><li>Run tftpd32.exe and click the DHCP tab</li></ol>
 +
 
 
* in the default router box, put the address of your internet gateway (usually 192.168.0.1 or 192.168.1.1 for residential routers)
 
* in the default router box, put the address of your internet gateway (usually 192.168.0.1 or 192.168.1.1 for residential routers)
 
* in the ip pool starting address box put your gateway's address + 1 to the last number (Example: 192.168.0.2)
 
* in the ip pool starting address box put your gateway's address + 1 to the last number (Example: 192.168.0.2)
 
* Size of pool = i said about 10
 
* Size of pool = i said about 10
* if your network is something like 192.168.0.1 then your network mask should be 255.255.255.0
+
* If your network is something like 192.168.0.1 then your network mask should be 255.255.255.0
* Set the Bootfile field to the location of the pxelinux.0 file (example "\netboot\pxelinux.0)
+
* Set the Bootfile field to the address of the pxelinux.0 file (it should be "\netboot\pxelinux.0)
 
* Set the WINS/DNS server address to the address of your main router (192.168.0.1)
 
* Set the WINS/DNS server address to the address of your main router (192.168.0.1)
 
* Leave the domain name blank, unless you need to change it.
 
* Leave the domain name blank, unless you need to change it.
8. Hit the "Save" button and then click "settings"
+
<ol><li>Hit the "Save" button and then click "settings"
9. on the settings menu Check the following and leave the others how they are.
+
</li><li>on the settings menu Check the following items:</li></ol>
 +
 
 
* PXE Compatibility
 
* PXE Compatibility
 
* translate unix file names
 
* translate unix file names
 
* allow / as virtual root
 
* allow / as virtual root
10. click "ok", Now every machine on your network that requests a PXE boot rom should receive the breezy installer! (please let me know if this works for you).
+
then uncheck 'Ping address before assignation' and leave the others how they are.
 +
10. click "ok" and tell your target computer to look on your network for a PXE boot rom.
 
'''A few bugs''':  
 
'''A few bugs''':  
 
''When picking a apt-get source, if you select the united states, the installer tries to connect to "http://.archive.ubuntu.com" instead of "http://archive.ubuntu.com", this results in a failure to connect. you can work around this by selecting the UK mirror and then selecting "archive.ubuntu.com" when prompted.''
 
''When picking a apt-get source, if you select the united states, the installer tries to connect to "http://.archive.ubuntu.com" instead of "http://archive.ubuntu.com", this results in a failure to connect. you can work around this by selecting the UK mirror and then selecting "archive.ubuntu.com" when prompted.''
''The AMD64 image for some reason installs the "edubuntu-desktop" package rather than the "ubuntu-desktop" package. My fix was to install breezy with a server install, and then install the ubuntu-desktop package via apt-get.''
+
''The AMD64 image for some reason installs the "edubuntu-desktop" package rather than the "ubuntu-desktop" package. My fix was to install it with a server install, and then install the ubuntu-desktop package via apt-get.''
 
''Sometimes the install of the base system seems to fail, I found that just repeating the base system install WITHOUT removing the packages (installing to unclean target) means that it eventually works - must be internet connection errors or whatever - keep trying as it gets there in the end! ''
 
''Sometimes the install of the base system seems to fail, I found that just repeating the base system install WITHOUT removing the packages (installing to unclean target) means that it eventually works - must be internet connection errors or whatever - keep trying as it gets there in the end! ''
=== This is how we do it (Hoary Style) ===
 
# On the windows box, make a folder called "cameronrules"
 
2. Place Tftpd32.exe in that folder
 
3. Extract the contents of netboot.tar.gz and place them in a folder called "netboot"
 
''Note: Winrar may give you some errors that it couldn't create some symbolic links, just ignore it.''
 
4. Put the netboot folder inside of the "cameronrules" folder
 
5. Go To cameronrules/netboot/ubuntu-installer/i386/ or cameronrules/netboot/ubuntu-installer/amd64/ and copy pxelinux.cfg folder
 
6. Go back to the netboot folder and Paste pxelinux.cfg folder
 
7. Run Tftpd32.exe and click the DHCP tab
 
* in the default router box, put the address of your internet gateway (usually 192.168.0.1 or 192.168.1.1 for residential routers)
 
* in the ip pool starting address box put your gateway's address + 1 to the last number (Example: 192.168.0.2)
 
* Size of pool = i said about 10
 
* If your network is something like 192.168.0.1 then your network mask should be 255.255.255.0
 
* Set the Bootfile field to the address of the pxelinux.0 file (it should be "\netboot\pxelinux.0)
 
* Set the WINS/DNS server address to the address of your main router (192.168.0.1)
 
* Leave the domain name blank, unless you need to change it.
 
8. Hit the "Save" button and then click "settings"
 
9. on the settings menu Check the following and leave the others how they are.
 
* PXE Compatibility
 
* translate unix file names
 
* allow / as virtual root
 
10. click "ok" and tell your target computer to look on your network for a PXE boot rom.
 
if all went right, you should see some text fly by and then the ubuntu installer will load on your target computer. let me know if you have any problems.
 
 
----
 
----
[[category:CategoryDocumentation]]
 
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 22:52的最新版本


Network Installing Ubuntu Using a Windows box

This document describes how to install Ubuntu through your network without having to access to an existing linux TFTP / DHCP server. This method is especially useful for installing Ubuntu onto a machine that does not have removable drives. If you have a floppy drive, you can make a floppy that will allow you to PXE boot on a non PXE enabled network card. The etherboot based one can be found here: [1] the package is network_boot_floppy+cd+hd_540.zip Alternatively you can use the Microsoft based pxe boot floppy - which can be constructed by using the Remote Boot Floppy Generator program named "rbfg.exe" which can be found in Windows 2003 or Windows 2000 Server version under the directory \windows\system32\dllcache or \winnt\ServicePackFiles\i386 respectively.

What you will need

  • A network with a windows computer
  • A a network gateway to the internet (Cable/DSL Router)
  • Tftpd32.exe (The windows TFTP/DHCP server program) (Tftpd32 Homepage)
  • The Ubuntu Netboot Image
  • 7-Zip or WinRAR to unzip the image

Netboot Files

Karmic Koala (9.10) Karmic Netboot Image (i386) Karmic Netboot Image (amd64) Jaunty Jackalope (9.04) Jaunty Netboot Image (i386) Jaunty Netboot Image (amd64) Intrepid Ibex (8.10) Intrepid Netboot Image (i386) Intrepid Netboot Image (amd64) Hardy Heron (8.04) Hardy Netboot Image (i386) Hardy Netboot Image (amd64) Dapper Drake (6.06) Dapper Netboot Image (i386) Dapper Netboot Image (amd64)

Netboot Instructions

  1. On the windows box, make a folder called "UbuntuNetInstall"
  2. Place tftpd32.exe in that folder
  3. Extract the contents of netboot.tar.gz and place them in a folder called "netboot"

Note: Winrar may give you some errors that it couldn't create some symbolic links, just ignore it.

  1. Put the netboot folder inside of the "UbuntuNetInstall" folder
  2. Go To UbuntuNetInstall/netboot/ubuntu-installer/i386/ or UbuntuNetInstall/netboot/ubuntu-installer/amd64/ and copy pxelinux.cfg folder
  3. Go back to the netboot folder and Paste pxelinux.cfg folder.

You may also have to copy pxelinux.0 to the netboot folder (instead of it's original home in '/netboot/ubuntu-installer/i386/'), if you get an error such as 'error 2 in system call CreateFile: The system cannot find the file specified' in TFTPD32's logs.

  1. Run tftpd32.exe and click the DHCP tab
  • in the default router box, put the address of your internet gateway (usually 192.168.0.1 or 192.168.1.1 for residential routers)
  • in the ip pool starting address box put your gateway's address + 1 to the last number (Example: 192.168.0.2)
  • Size of pool = i said about 10
  • If your network is something like 192.168.0.1 then your network mask should be 255.255.255.0
  • Set the Bootfile field to the address of the pxelinux.0 file (it should be "\netboot\pxelinux.0)
  • Set the WINS/DNS server address to the address of your main router (192.168.0.1)
  • Leave the domain name blank, unless you need to change it.
  1. Hit the "Save" button and then click "settings"
  2. on the settings menu Check the following items:
  • PXE Compatibility
  • translate unix file names
  • allow / as virtual root

then uncheck 'Ping address before assignation' and leave the others how they are. 10. click "ok" and tell your target computer to look on your network for a PXE boot rom. A few bugs: When picking a apt-get source, if you select the united states, the installer tries to connect to "http://.archive.ubuntu.com" instead of "http://archive.ubuntu.com", this results in a failure to connect. you can work around this by selecting the UK mirror and then selecting "archive.ubuntu.com" when prompted. The AMD64 image for some reason installs the "edubuntu-desktop" package rather than the "ubuntu-desktop" package. My fix was to install it with a server install, and then install the ubuntu-desktop package via apt-get. Sometimes the install of the base system seems to fail, I found that just repeating the base system install WITHOUT removing the packages (installing to unclean target) means that it eventually works - must be internet connection errors or whatever - keep trying as it gets there in the end!