@Cancerous
Code: Select all
DEB_MIRROR="http://cdn.debian.net/debian"
DEBOOTSTRAP_VERSION=$(wget -q "$DEB_MIRROR/pool/main/d/debootstrap/?C=M;O=D" -O- | grep -o 'debootstrap[^"]*all.deb' | head$
URL_DEBOOTSTRAP="$DEB_MIRROR/pool/main/d/debootstrap/$DEBOOTSTRAP_VERSION"
[/quote]
where do we have to insert the code?
this is my (some how) updated Installscript for mint debian:
~Updated deboostrap link
~Updated xorg.conf link
~Updated xenosfb link
Code: Select all
#!/bin/bash
# set the date to anything except 1/1/1970 since this causes issues
# time is now also set after first boot by .bashrc script below
date -s 1/1/2012
mkdir /mnt/ubuntu
# USB Partition einhängen
mount /dev/sda2 /mnt/ubuntu
cd /mnt/ubuntu
mkdir /mnt/ubuntu/work
cd /mnt/ubuntu/work
# download extract and run debootstrap
wget http://ftp.de.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.32_all.deb
ar -xf debootstrap_1.0.32_all.deb
cd /mnt/ubuntu
zcat < /mnt/ubuntu/work/data.tar.gz | tar xv
export DEBOOTSTRAP_DIR=/mnt/ubuntu/usr/share/debootstrap
export PATH=$PATH:/mnt/ubuntu/usr/sbin
debootstrap --arch powerpc natty /mnt/ubuntu http://ports.ubuntu.com/
# create needed files on hdd
echo Falcon > /mnt/ubuntu/etc/hostname
cat > /mnt/ubuntu/etc/fstab << EOF
/dev/sda2 / ext2 defaults 0 0
/dev/sda1 none swap sw 0 0
proc /proc proc defaults 0 0
EOF
cat > /mnt/ubuntu/etc/network/interfaces << EOF
iface lo inet loopback
auto lo
auto eth0
iface eth0 inet dhcp
EOF
cat > /mnt/ubuntu/etc/apt/sources.list << EOF
deb http://ports.ubuntu.com/ natty main restricted universe multiverse
EOF
#Change root-pwd inside chroot
chroot /mnt/ubuntu
echo -e "xbox\nxbox" | (passwd --stdin $USER)
apt-get update
apt-get --reinstall install grub-common grub-pc os-prober
grub-setup /dev/sda
exit
cp /mnt/ubuntu/root/.bashrc /mnt/ubuntu/root/.bashrc.orginal
# create .bashrc script on hdd
cat >> /mnt/ubuntu/root/.bashrc << EOF
date -s 1/1/2012
passwd
#mkdir /lib/modules/2.6.24.3
#touch /lib/modules/2.6.24.3/modules.dep
apt-get update
apt-get install ntp wget -y --force-yes
aptitude install ubuntu-desktop -y
echo "AVAHI_DAEMON_START=0" > /etc/default/avahi-daemon
#/etc/init.d/networking restart
service networking
cd /usr/lib/xorg/modules/drivers/
wget http://file.libxenon.org/free60/linux/driver/xenosfb/xenosfb_drv.so_natty
mv xenosfb_drv.so_natty xenosfb_drv.so
cd /etc/X11/
wget http://file.libxenon.org/free60/linux/driver/xenosfb/xorg.conf
#mv ubuntu.conf xorg.conf
#cd /usr/lib/xorg/modules/linux/
#mv libfbdevhw.so libfbdevhw.so.bk
#wget http://home.comcast.net/~ssmurf/libfbdevhw.so
rm -r -f /work/
echo "" > /etc/gdm/gdm.conf-custom
sed -i 's/AllowRoot=false/AllowRoot=true/' /etc/gdm/gdm.conf
rm /root/.bashrc
mv /root/.bashrc.orginal /root/.bashrc
/etc/init.d/gdm start
EOF
# done
echo "Base installation completed."
echo "To finish the installation. Reboot then load the sda2 bootloader CD."
echo "This may take up to two hours"