Skip to content

Instantly share code, notes, and snippets.

@javacruft
javacruft / ubuntu-server-arm-local.preseed
Created September 9, 2011 09:28
Ubuntu ARM USB Drive install
d-i clock-setup/ntp boolean true
d-i clock-setup/utc-auto boolean true
d-i console-setup/ask_detect boolean false
d-i debian-installer/exit/restart boolean true
d-i finish-install/reboot_in_progress note
d-i pkgsel/upgrade select full-upgrade
d-i pkgsel/update-policy select none
d-i pkgsel/updatedb boolean false
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
@javacruft
javacruft / dandi-omap4-arm-netboot.sh
Created September 9, 2011 09:22
Cobbler Daily ARM Netboot Download and install
#!/bin/bash
set -e
PWD=`pwd`
DATE=`date +%Y%m%d`
TDIR=`mktemp -d`
# Grab OMAP4 netboot images
wget -O $TDIR/uImage \
http://ports.ubuntu.com/ubuntu-ports/dists/oneiric/main/installer-armel/current/images/omap4/netboot/uImage
@javacruft
javacruft / omap4-netboot-mkcard.sh
Created September 9, 2011 08:23
omap4 netboot SD card creation script
#!/bin/bash
set -e
if [ ! "$1" = "/dev/sda" ] ; then
unset LANG
DRIVE=$1
if [ -b "$DRIVE" ] ; then
dd if=/dev/zero of=$DRIVE bs=1024 count=1024
SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'`