From Free60
Jump to: navigation, search

Install Debian Etch from the Gentoo LiveCD

Warning: This script will WIPE your Xbox 360 harddisk (/dev/sda) and install Debian Etch will create two partitions. 1 GB swap on sda1 and the rest of the disk as a root-filesystem on sda2. Run the script as root from the Gentoo LiveCD v2. You will need a DHCP-server on your network for this script.

How do I run it?

Click "Application > Accessories > Terminal" and type the following commands:

Note: Do not use this, use the modified bash code posted at the bottom of this page.

 sudo su
 sh ./

Reboot the 360 when you are told. Boot with and login as root. You will be asked for a new password. The rest of the installation will start automatically. The download is about 600Mb. Select xenosfb when the script asks for Xserver-driver.

   dd if=/dev/zero of=/dev/sda bs=512 count=1
   sfdisk /dev/sda << EOF
   mkfs.ext3 /dev/sda2
   mkswap /dev/sda1
   sync; sync; sync
   swapon /dev/sda1
   mkdir /mnt/debian
   mount /dev/sda2 /mnt/debian
   cd /mnt/debian
   mkdir /mnt/debian/work
   cd /mnt/debian/work
   wget --no-check-certificate
   ar -xf debootstrap_0.3.3.2etch1_all.deb
   cd /mnt/debian
   zcat < /mnt/debian/work/data.tar.gz | tar xv
   export DEBOOTSTRAP_DIR=/mnt/debian/usr/lib/debootstrap
   export PATH=$PATH:/mnt/debian/usr/sbin
   debootstrap --arch powerpc etch /mnt/debian
   echo Xenon > /mnt/debian/etc/hostname
   cat > /mnt/debian/etc/fstab << EOF
   /dev/sda2     /          ext3     defaults   0   0
   /dev/sda1     none    swap    sw           0   0
   proc            /proc    proc    defaults  0   0
   cat > /mnt/debian/etc/network/interfaces << EOF
   iface lo inet loopback
   auto lo
   auto eth0
   iface eth0 inet dhcp
   cat > /mnt/debian/etc/apt/sources.list << EOF
   deb  etch main contrib non-free
   #Change root-pwd inside chroot
   chroot /mnt/debian
   echo -e "xbox\nxbox" | (passwd --stdin $USER)
   cp /mnt/debian/root/.bashrc /mnt/debian/root/.bashrc.orginal
   cat >> /mnt/debian/root/.bashrc << EOF
   apt-get update
   apt-get install ntp wget -y --force-yes
   apt-get install x-window-system -y --force-yes
   aptitude install gnome -y
   apt-get install build-essential firefox gftp khexedit console-tools -y --force-yes
   echo "AVAHI_DAEMON_START=0" > /etc/default/avahi-daemon
   /etc/init.d/networking restart
   cd /usr/lib/xorg/modules/drivers/
   rm -r -f *
   cd /etc/X11/
   rm -r -f xorg.conf
   mkdir /lib/modules/
   touch /lib/modules/
   echo "" > /etc/gdm/gdm.conf-custom
   sed -i '/security/ a\AllowRoot=true' /etc/gdm/gdm.conf
   sed -i 's/#LEDS=+num/LEDS=+num/' /etc/console-tools/config
   update-rc.d -f remove
   update-rc.d -f festival remove
   update-rc.d -f portmap remove
   update-rc.d -f cupsys remove
   update-rc.d -f spamassassin remove
   update-rc.d -f alsa-utils remove
   rm /root/.bashrc
   mv /root/.bashrc.orginal /root/.bashrc
   /etc/init.d/gdm start
   echo "Base System Install Complete!"
   echo "You may now shutdown the xbox360."
   echo "Then continue the install by booting the Xell-Bootloader-sda2."