Talk:Install Server: Difference between revisions
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
mkdir /srv/tftp | mkdir /srv/tftp | ||
mkdir /srv/nfs | mkdir /srv/nfs | ||
mkdir /srv/images | |||
#set up tftp boot | |||
mkdir /srv/tftp/i386 | |||
cd /srv/images/ | |||
wget -R -c7 http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-i386/current/images/netboot/ | |||
cp -av ./netboot ../tftp/i386 | |||
cd /srv/tftp/i386/pxelinux.cfg | |||
touch default | |||
echo "include trusty-bootmenu.cfg" >> default | |||
echo "default ubuntu-installer/i386/boot-screens/vesamenu.c32" >> default | |||
echo "prompt 0" >> default | |||
echo "timeout 100" >> default | |||
cd /srv/tftp/ | |||
touch trusty-bootmenu.cfg | |||
echo "menu hshift 13" >>default | |||
echo "menu width 49" >>default | |||
echo "menu margin 8" >>default | |||
echo "menu title Trusty NetBoot Menu" >>default | |||
echo "include ubuntu-installer/i386/boot-screens/stdmenu.cfg" >>default | |||
echo "menu begin Cool options" >>default | |||
echo " default livei386" >>default | |||
echo " label livei386" >>default | |||
echo " menu label Xubuntu 14.04 Live 32bit" >>default | |||
echo " kernel ubuntu-livecd-boot/i386/vmlinuz" >>default | |||
echo " append boot=casper netboot=nfs nfsroot=192.168.0.1:/srv/nfs/live-files/i386 initrd=ubuntu-livecd-boot/i386/initrd.lz -- splash quiet" >>default | |||
echo " label liveamd64" >>default | |||
echo " menu label Xubuntu 14.04 Live 64bit" >>default | |||
echo " kernel ubuntu-livecd-boot/amd64/vmlinuz" >>default | |||
echo " append boot=casper netboot=nfs nfsroot=192.168.0.1:/srv/nfs/live-files/amd64 initrd=ubuntu-livecd-boot/amd64/initrd.lz -- echo "splash quiet" >>default | |||
echo "menu end" >>default | |||
</pre> | </pre> |
Revision as of 16:24, 9 May 2014
I'm going to post a really basic shell script here to replicate the setup I have on headwaiter (the install on which this article is based). I will also place the file in the Special:ListFiles section so it will be wget-able. Later there will be a more refined, general-purpose script on our github.
install-server-setup.sh
!#/bin/bash # run this as root, but READ IT FIRST. # BEFORE you run this, edit the ./interface-changes.txt file. # if you don't see that file, don't run this script, it won't work without that file present. But it WILL break things. apt-get install isc-dhcp-server tftpd-hpa nfs-kernel-server cp /etc/network/interfaces /etc/network/interfaces.old cat ./interface-changes > /etc/network/interfaces echo 'INTERFACES="eth0" >> /etc/default/isc-dhcp-server echo '/srv/nfs/live-files/i386' >> /etc/exports mkdir /srv mkdir /srv/tftp mkdir /srv/nfs mkdir /srv/images #set up tftp boot mkdir /srv/tftp/i386 cd /srv/images/ wget -R -c7 http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-i386/current/images/netboot/ cp -av ./netboot ../tftp/i386 cd /srv/tftp/i386/pxelinux.cfg touch default echo "include trusty-bootmenu.cfg" >> default echo "default ubuntu-installer/i386/boot-screens/vesamenu.c32" >> default echo "prompt 0" >> default echo "timeout 100" >> default cd /srv/tftp/ touch trusty-bootmenu.cfg echo "menu hshift 13" >>default echo "menu width 49" >>default echo "menu margin 8" >>default echo "menu title Trusty NetBoot Menu" >>default echo "include ubuntu-installer/i386/boot-screens/stdmenu.cfg" >>default echo "menu begin Cool options" >>default echo " default livei386" >>default echo " label livei386" >>default echo " menu label Xubuntu 14.04 Live 32bit" >>default echo " kernel ubuntu-livecd-boot/i386/vmlinuz" >>default echo " append boot=casper netboot=nfs nfsroot=192.168.0.1:/srv/nfs/live-files/i386 initrd=ubuntu-livecd-boot/i386/initrd.lz -- splash quiet" >>default echo " label liveamd64" >>default echo " menu label Xubuntu 14.04 Live 64bit" >>default echo " kernel ubuntu-livecd-boot/amd64/vmlinuz" >>default echo " append boot=casper netboot=nfs nfsroot=192.168.0.1:/srv/nfs/live-files/amd64 initrd=ubuntu-livecd-boot/amd64/initrd.lz -- echo "splash quiet" >>default echo "menu end" >>default
interface-change.sh
#wired - services listen on this iface auto allow-hotplug eth0 iface eth0 inet static address 192.168.0.1 netmask 255.255.255.0 up /etc/init.d/tftpd-hpa start up /etc/init.d/isc-dhcp-server start up exportfs -a #radio - connected to internets allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "Network-essid" wpa-psk "wpa-password"