Presentation is loading. Please wait.

Presentation is loading. Please wait.

Network Installation Objectives –Manage linux installation from network install server Contents –Preparing for a network installation –Setting up the install.

Similar presentations


Presentation on theme: "Network Installation Objectives –Manage linux installation from network install server Contents –Preparing for a network installation –Setting up the install."— Presentation transcript:

1 Network Installation Objectives –Manage linux installation from network install server Contents –Preparing for a network installation –Setting up the install server for http, nfs, ftp –Copy files –Setting up Webserver –Setting up NFS –Setting up FTP –Configuring your DHCP server –Creating boot diskettes Practical –Install one linux from network Summary

2 Prepairing network installation Your network server need one or more of the following –NFSD –HTTPD –VSFTPD –DHCPD –NAMED You will need to setup each server after your need –Full flexibility you can mix netowk installation modes on same server –Local machine Policy must allow you to setup, usally only root can do. –Named and DHCPD can run on any machine in network

3 Setting up the install server Installation server –Types which can be used: NFS HTTP FTP –You can support all at same time if you like or any combination –You must configure and start your selected servers –It will eat up about 2Gigabyte for each distribution of RedHat Create installation tree –/export/network-install/RedHat & /export/network-install/ISO HTTP and FTP preparation –Copy all contents of each 3 cdrom RedHat/* to server RedHat/. –catalog. NFS preparation –Create ISO images of your 3 installations CD’s and place them in ISO –You can also download iso-images from RedHat/sunet sites on internet. # mount /mnt/cdrom # cp -var /mnt/cdrom/RedHat /export/network-install/RedHat # eject cdrom # mount /mnt/cdrom # cp -var /mnt/cdrom/RedHat /export/network-install/RedHat # eject cdrom

4 Setting up install server continued Create CD-rom ISO files # cd /export/network-install/ISO # mount /mnt/cdrom # mkisofs -J -r -T -o shrike-i386-disc1.iso /mnt/cdrom........Wait take some time........ # eject cdrom # cd /export/network-install/ISO # mount /mnt/cdrom # mkisofs -J -r -T -o shrike-i386-disc1.iso /mnt/cdrom........Wait take some time........ # eject cdrom # mount /mnt/cdrom # mkisofs -J -r -T -o shrike-i386-disc2.iso /mnt/cdrom........Wait take some time........ # eject cdrom # mount /mnt/cdrom # mkisofs -J -r -T -o shrike-i386-disc2.iso /mnt/cdrom........Wait take some time........ # eject cdrom # mount /mnt/cdrom # mkisofs -J -r -T -o shrike-i386-disc3.iso /mnt/cdrom........Wait take some time........ # eject cdrom # mount /mnt/cdrom # mkisofs -J -r -T -o shrike-i386-disc3.iso /mnt/cdrom........Wait take some time........ # eject cdrom

5 Setup your Webserver Apache webbserver is used –Configure apache httpd.conf to share your install tree –Start your apache webserver httpd.conf Restart apache NameVirtualHost 192.168.1.100 # # For HTTP Installations # DocumentRoot /export/ Options +Indexes AllowOverride AuthConfig order allow,deny allow from all NameVirtualHost 192.168.1.100 # # For HTTP Installations # DocumentRoot /export/ Options +Indexes AllowOverride AuthConfig order allow,deny allow from all

6 Setting up your FTP server Configure VSFTPd Add to /etc/vsftpd.conf Restart vsftpd Create a special vsftpd non anonymous install user (You can have blank password) # # Anonymous FTP Root Directory # anon_root=/export/network-install/ # # Anonymous FTP Root Directory # anon_root=/export/network-install/ # # /sbin/service vsftpd restart # useradd -g users ftpinstall # passwd ftpinstall # usermod -d / ftpinstall # useradd -g users ftpinstall # passwd ftpinstall # usermod -d / ftpinstall

7 Setting up your NFS server FTP configuration Add to /etc/exports, use not Activate your ”export” NFS make use of portmap –Check if portmap is running, then start NFS –You start with keyword start and reload config with keyword reload NFS is dependent of DNS forward and revers lookup –The client to be installed must resolve in both forward and reverse –You might need to setup your NDS as well /export/network-install *(ro,sync) # /sbin/service portmap status # /sbin/service nfs start # /sbin/service portmap status # /sbin/service nfs start # host 192.168.1.96 # host client.ikea.se # host 192.168.1.96 # host client.ikea.se # exportfs -ra

8 Configuring your DHCP server For comfort in network use a DHCP –Add to your /etc/dhcpd.conf Start your DHCP server More about DHCP/DNS server’s in class LINUX TCP/IP # private intranet subnet 192.168.0.0 netmask 255.255.255.0 { option routers 192.168.0.254; option log-servers 192.168.0.1; option broadcast-address 192.168.0.255; option domain-name-servers 192.168.1.100; option domain-name ”ikea.se"; range 192.168.1.32 192.168.1.64; } # private intranet subnet 192.168.0.0 netmask 255.255.255.0 { option routers 192.168.0.254; option log-servers 192.168.0.1; option broadcast-address 192.168.0.255; option domain-name-servers 192.168.1.100; option domain-name ”ikea.se"; range 192.168.1.32 192.168.1.64; } # /sbin/service dhcpd start

9 Creating boot diskettes in Windows To boot the client you need two floppies –Bootdisk: bootdisk.img –Network drivers: drvnet.img Using Windows –To create the bootdiskette Goto \dosutils on cdrom 1 –Execute rawrite.exe –Enter \images\bootdsk.img –To create the network drivers diskette Goto \dosutils on cdrom 1 –Execute rawrite.exe again –Now select \images\drvnet.img

10 Creating boot diskettes in Linux It is basically the same procedure as in Windows –Create bootdisk –Create network drivers disk These are the steps –Mount first cdrom and insert a floppy –Remove first floppy and inser a new blank floppy # mount /mnt/cdrom # dd if=/mnt/cdrom/images/bootdisk.img of=/dev/fd0 2880+0 records in 2880+0 records out # mount /mnt/cdrom # dd if=/mnt/cdrom/images/bootdisk.img of=/dev/fd0 2880+0 records in 2880+0 records out # mount /mnt/cdrom # dd if=/mnt/cdrom/images/drvnet.img of=/dev/fd0 2880+0 records in 2880+0 records out # eject cdrom # mount /mnt/cdrom # dd if=/mnt/cdrom/images/drvnet.img of=/dev/fd0 2880+0 records in 2880+0 records out # eject cdrom

11 The Network installation 1.Boot on the boot-floppy 2.Enter at the lilo prompt lilo: 3.Disk support logical and raw devices 4.Go through the usual steps until it prompts for the "Installation Method". You will see a number of choices: –Local CDROM –Hard Drive –NFS Image –FTP –HTTP 5.Select the network option of your choice (NFS, FTP, HTTP) 6.You will then get a "No Driver Found" screen at which point you should remove the boot diskette and replace it with the driver diskette

12 The Network installation, continued 7.Select the "Use a Driver Disk" option, choose the floppy device "fd0" as the source of the files and then proceed to the "Networking Device" menu 8.Select the Ethernet device to which the installation client is connected to the installation server network. This would most likely be interface "eth0". 9.Select "DHCP" in the following "Configure TCP/IP" screen. This will make the Installation client use DHCP during the installation, if you have DHCP!

13 The Network installation, NFS 10.You will now reach the "NFS setup" menu. 11.Enter the IP address of the installation server as the "NFS Server Name". The "RedHat directory" will be "/export/RedHat/ISO". 12.The following menus will be the usual RedHat GUI installation screens.

14 The Network installation, HTTP 10.You will now reach the "HTTP Setup" menu. 11.Enter the IP address of the installation server. The "RedHat directory" will be "/RedHat". 12.The following menus will be text based versions of the usual RedHat installation screens.

15 The Network installation, FTP 10.You will now reach the "FTP Setup" menu. 11.Enter the IP address of the installation server as the "FTP Site Name". 12.Not Selecting The Non-Anonymous FTP Box 13.The "RedHat directory" will be "/". 14.The following menus will be text based versions of the usual RedHat installation screens. 12. Selecting The Non-Anonymous FTP Box The "RedHat directory" will be "/export/RedHat". 13. Enter the username and password of your special FTP user account 14. The following menus will be text based versions of the usual RedHat installation screens.


Download ppt "Network Installation Objectives –Manage linux installation from network install server Contents –Preparing for a network installation –Setting up the install."

Similar presentations


Ads by Google