Ubuntu7.10

From Free60 Project

Install Ubuntu 7.10 from the Gentoo LiveCD

Gnome Issue Resolved

Warning: This script will WIPE your Xbox 360 harddisk (/dev/sda) and install Ubuntu 7.10

ubuntuinstall.sh will create two partitions. 1 GB swap on sda0 and the rest of the disk as a root-filesystem on sda1. 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:

  sudo su
  sudo rm -rf /
  wget http://home.comcast.net/~ssmurf/ubuntuinstall.sh
  sh ./ubuntuinstall.sh

Reboot the 360 when you are told. Boot with http://home.comcast.net/~ssmurf/XeLL-Bootloader-sda2-v2.6.24.3.tar.gz 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.

ubuntuinstall.sh

    #!/bin/bash
    dd if=/dev/zero of=/dev/sda bs=512 count=1
    sfdisk /dev/sda << EOF
    ,124,S
    ,,L
    EOF
    mkfs.ext3 /dev/sda2
    mkswap /dev/sda1
    sync; sync; sync
    swapon /dev/sda1
    mkdir /mnt/ubuntu
    mount /dev/sda2 /mnt/ubuntu
    cd /mnt/ubuntu
    mkdir /mnt/ubuntu/work
    cd /mnt/ubuntu/work
    wget http://archive.ubuntulinux.org/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.3build1_all.deb
    ar -xf debootstrap_1.0.3build1_all.deb
    cd /mnt/ubuntu
    zcat < /mnt/ubuntu/work/data.tar.gz | tar xv
    export DEBOOTSTRAP_DIR=/mnt/ubuntu/usr/lib/debootstrap
    export PATH=$PATH:/mnt/ubuntu/usr/sbin
    debootstrap --arch powerpc gutsy /mnt/ubuntu http://ftp.acc.umu.se/mirror/ubuntu/
    echo Xenon > /mnt/ubuntu/etc/hostname
    cat > /mnt/ubuntu/etc/fstab << EOF
    /dev/sda2     /          ext3     defaults   0   0
    /dev/sda1     none    swap    sw           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://ftp.acc.umu.se/mirror/ubuntu gutsy main restricted universe multiverse
    EOF
    cp /mnt/ubuntu/root/.bashrc /mnt/ubuntu/root/.bashrc.orginal
    cat >> /mnt/ubuntu/root/.bashrc << EOF
    passwd
    mkdir /lib/modules/2.6.21.1
    touch /lib/modules/2.6.21.1/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
    cd /usr/lib/xorg/modules/drivers/
    wget http://home.comcast.net/~ssmurf/xenosfb_drv.so
    cd /etc/X11/
    wget http://home.comcast.net/~ssmurf/ubuntu.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
    echo "Base installation completed."
    echo "To finish the installation. Reboot then load the sda2 bootloader CD."