#!/bin/sh # instructions for install: # 1. install ubuntu 10.04 through 11.10 # 2. put in this CD and do: # cd /media/cdrom; ./install PROJ=springdale SRC=`pwd` USR=`id -u -n` # get this release of ubuntu: REL=`grep DISTRIB_RELEASE /etc/lsb-release | sed "s/DISTRIB_RELEASE=//"` # check for root if [ "$(id -u)" = "0" ]; then echo "This script must NOT be run as root" 1>&2 exit 1 fi # check for already installed system if [ -e ~/${PROJ} ]; then echo "I appears that you've already installed ltib since ~/${PROJ} exists" 1>&2 exit 1 fi cd sudo sed -i -e "s/^.*admin ALL.*$/${USR} ALL = NOPASSWD: ALL/" /etc/sudoers # turn off screen saver gconftool-2 -s /apps/gnome-screensaver/lock_enabled --type=bool false # enable autologin, doesn't work on 11.10 if [ "$REL" != "11.10" ]; then cat > /tmp/tftp < /tmp/custom.conf < /tmp/proxy < /tmp/exports sudo sh -c 'cat /tmp/exports >> /etc/exports' sudo exportfs -r # sudo sh -c 'echo "192.168.1.200 omap" >> /etc/hosts' # set ip address of target # to test: # mkdir -p /tmp/mnt; sudo mount -t nfs localhost:$OPT_HOME/rd /tmp/mnt # sudo umount /tmp/mnt # cd # tftp localhost # get ${PROJ}/uImage if [ "$REL" = "11.04" ]; then cat > /tmp/tftp < /tmp/minirc.omap <> ~/${PROJ}/rd/etc/hosts" | sudo sh # set host address sudo cp /etc/resolv.conf ~/${PROJ}/rd/etc # use our resolv.conf on the target xterm -e minicom -w ${PROJ} & cd ~/clip make clean make kernel