--- wikisrc/amazon_ec2.mdwn 2011/02/17 21:01:50 1.7 +++ wikisrc/amazon_ec2.mdwn 2011/02/17 21:10:12 1.8 @@ -99,17 +99,16 @@ PermitRootLogin without-password Create **etc/fstab** and **etc/ifconfig.xennet0**: -[[!template id=filecontent name=etc/fstab text=""" +[[!template id=programlisting text=""" +cd /mnt/ec2 +echo "dhcp" > etc/ifconfig.xennet0 # EC2 network configuration +cat > etc/fstab << EOF /dev/xbd1a / ffs rw 1 1 /dev/xbd0a /grub ext2 rw 2 2 kernfs /kern kernfs rw ptyfs /dev/pts ptyfs rw procfs /proc procfs rw -"""]] - -[[!template id=filecontent name=etc/ifconfig.xennet0 text=""" -# Configure interface for EC2 network -dhcp +EOF """]] Once done, you can modify the system living under **/mnt/ec2** to fit your needs (adding custom binaries, packages, etc).