Ubuntu7.04

From Free60

Jump to: navigation, search
      • Not working as of Oct. 10th, 2009*** -remove this when fixed.

Install Ubuntu 7.04 from the Gentoo LiveCD

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

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 Livcd. You will need a DHCP-server on your network for this script.


[edit] How do I run it?

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

  sudo su
  wget http://free60.mydedibox.fr/files/installer/ubuntu704/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 xenonfb when the script asks for Xserver-driver.

Mirror : http://free60.mydedibox.fr/files/common/XELL-Bootloader-sda2-v2.6.21.1.rar

[edit] 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_0.3.3.2ubuntu3_all.deb
    ar -xf debootstrap_0.3.3.2ubuntu3_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 feisty /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  feisty main restricted universe multiverse
    EOF
    cp /mnt/ubuntu/root/.bashrc /mnt/ubuntu/root/.bashrc.orginal
    cat >> /mnt/ubuntu/root/.bashrc << EOF
    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://free60.mydedibox.fr/files/common/xenosfb_drv.so
    dpkg-reconfigure xserver-xorg
    apt-get remove network-manager-gnome -y
    apt-get remove network-manager -y
    mkdir /lib/modules/2.6.20
    touch /lib/modules/2.6.20/modules.dep
    echo "" > /etc/gdm/gdm.conf-custom
    sed -i 's/AllowRoot=false/AllowRoot=true/' /etc/X11/gdm/gdm.conf
    update-rc.d -f bluetooth remove
    update-rc.d -f binfmt-support remove
    update-rc.d -f laptop-mode remove
    update-rc.d -f pppd-dns remove
    update-rc.d -f pcmciautils remove
    update-rc.d -f festival remove
    update-rc.d -f hwclock.sh remove
    update-rc.d -f usplash remove
    update-rc.d -f portmap remove
    update-rc.d -f cupsys remove
    update-rc.d -f hplip remove
    update-rc.d -f spamassassin remove
    update-rc.d -f powernowd remove
    update-rc.d -f powernowd.early remove
    update-rc.d -f nfs-common remove
    update-rc.d -f alsa-utils remove
    update-rc.d -f exim4 remove
    rm /root/.bashrc
    mv /root/.bashrc.orginal /root/.bashrc
    startx
    EOF
    shutdown -h now
Personal tools