Created
May 20, 2012 14:29
-
-
Save GregSutcliffe/2758311 to your computer and use it in GitHub Desktop.
Blog/ArchPage1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > /etc/apache2/sites-available/archiso << EOF | |
Listen 23575 | |
<VirtualHost *:23575> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /srv/archiso/mnt | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
<Directory /srv/archiso/mnt/> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride None | |
Order allow,deny | |
allow from all | |
</Directory> | |
LogLevel warn | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
</VirtualHost> | |
EOF | |
a2ensite archiso | |
/etc/init.d/apache2 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the ISO and mount it | |
mkdir -p /srv/archiso/mnt | |
cd /srv/archiso | |
wget http://releng.archlinux.org/isos/2012.05.15_04-00-01/archlinux-2012.05.15_04-00-01-netinstall-x86_64.iso | |
mount -oloop,ro archlinux-2012.05.15_04-00-01-netinstall-x86_64.iso mnt/ | |
# Copy the boot files to TFTP | |
cp /mnt/arch/boot/x86_64/archiso.img /tftpboot/boot/Archlinux-1.0-x86_64-initrd | |
cp /mnt/arch/boot/x86_64/vmlinuz /tftpboot/boot/Archlinux-1.0-x86_64-linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install nfs-kernel-server | |
echo "/srv/archiso/mnt 192.168.1.0/24(ro,no_subtree_check,no_root_squash)" >> /etc/exports | |
exportfs -ra |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment