Install Script

 

Here is the install script used on our install days. This is actually the version from the setup at ECC, used to update the machines their:

MepisInstallScript

A script to download the script


#! /bin/bash

rm -f script.1
cd /tmp
wget http://10.10.134.181/script.1
chmod +x script.1
./script.1

The Script


#!/bin/bash

SUPPOSE=10.10.134.181

#wget http://$SUPPOSE/proxy
wget http://$SUPPOSE/sources.list
wget http://$SUPPOSE/linux.pdf
wget http://$SUPPOSE/GCompris.desktop
wget http://$SUPPOSE/locale.gen

mv /etc/hosts /etc/hosts.old
cat /etc/hosts.old | grep -v suppose > /etc/hosts.temp
cat /etc/hosts.temp | grep 127.0.0.1 | grep -v $SUPPOSE > /etc/hosts
echo "$SUPPOSE      suppose" >> /etc/hosts
cat /etc/hosts.temp | grep -v 127.0.0.1 | grep -v $SUPPOSE >> /etc/hosts

#sort timezone
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Europe/London /etc/localtime

mv locale.gen /etc/locale.gen
mv /etc/apt/sources.list /etc/apt/sources.list.bak
cp sources.list /etc/apt/sources.list

rm -f /etc/apt/apt.conf.d/proxy
#mv proxy /etc/apt/apt.conf.d/

apt-get update
apt-get --purge remove guarddog spamassassin spamc apache2-common apache2-mpm-prefork apache2-utils capiutils isdnutils kweather kicker-applets capi4hylafax isdn-config isdnactivecard isdnbutton isdnutils-base isdnvboxclient
apt-get install liquidwar vlc vlc-plugin-alsa mozilla-plugin-vlc libsdl1.2debian gcompris tuxpaint mathwar xaos gtans kstars ktuberling tuxtype kworldclock junior-toys mirrormagic rss-glx celestia wbritish openoffice.org-hyphenation-en-gb openoffice.org-help-en myspell-en-gb openoffice.org-thesaurus-en-us openoffice.org-l10n-en nano


#Find correct user
USERDESKTOP=`ls /home/ | grep user`
mv linux.pdf /home/$USERDESKTOP/Desktop/linux.pdf
mv GCompris.desktop /home/$USERDESKTOP/Desktop/GCompris.desktop
chown $USERDESKTOP.users /home/$USERDESKTOP/Desktop/GCompris.desktop

sshd

#echo "PLEASE WRITE DOWN THE MAC ADDRESS!!!!"
#ifconfig eth0

rm -f /tmp/script.1

#cat /var/log/dmesg | grep Detected
#cat /var/log/dmesg | grep LOWMEM
#cat /var/log/dmesg | grep ^hda | grep sectors
echo
echo "Script complete, if there were no errors then the install is complete"
echo

make sound work debian:/home/demo/?InstallFiles/Parental control# chmod o+rw /dev/dsp debian:/home/demo/?InstallFiles/Parental control# chmod o+rw /dev/mixer debian:/home/demo/?InstallFiles/Parental control# chmod o+rw /dev/snd -R


Last edited on February 6, 2007 12:08 pm.


Our Supporters

Bristol Wireless Community Co-operative Ltd. Registered under the Industrial and Provident Societies Act and with the FSA. Registration Number 29638R

Mailing Lists

General Discussion

Announcements

Donate via Paypal

Donations allow us to connect those within our communities who find themselves excluded from the communications revolution

No Software Patents

No Software Patents Link Image

Powered by

PHPWiki logo Linux logo Needle @ Haystack Widget OpenWRT logo