xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
> How to Install Ubuntu onto Your Xbox 360 Hard Drive
stonersmurff
post Apr 1 2007, 09:51 AM
Post #1


X-S Enthusiast


Group: Members
Posts: 7
Joined: 4-September 05
Member No.: 244436



How to Install Ubuntu onto your Xbox 360 Hard Drive
(Using Debootstrap)


Introduction:
This is an advanced guide for installing Ubuntu to an Xbox360. I am assuming you already have Linux experience and understand the fundamentals. Anybody who is willing to write a guide for beginners can feel free to reference any information from this guide.


Prerequisites:
• Xbox360 with a kernel version of 4532 or 4548. (If your kernel version is lower then 4532, you will need to update using HD_DVD_10-2006.zip.)
• Hitachi 360 DVD Drive with modified firmware (Samsung does not work!)
• Patched King Kong disk with the new King Kong Shader exploit for XeLL.
• Cpasjuste’s Gentoo Beta Live CD found here http://downloads.sourceforge.net/free60/ge...on-beta.tar.bz2
You must use the above version, because the first one lacks the tools needed.
• Internet Connection (High Speed is preferred, since you will be downloading the install packages from the internet.)
• Microsoft VGA cable for the 360 is also recommended, since it can be difficult to see what you are doing on a TV.
• USB Keyboard/mouse.
• Made a backup your retail xbox360 drive. (This is very important; not doing so will make it impossible to save 360 content to the drive again!)

Backing up your Xbox360 Retail Hard Drive WARNING:
Before even considering formatting your retail Xbox 360 Hard Drive for Linux, you must take a backup of either the whole drive or just the key sector to be able to use it again for saved games and other 360 content. This can be done with disk tools such as WinHex. If you’re unsure on how to do this, do not continue!

Installing Ubuntu Linux using Cpasjuste’s Gentoo Beta Live CD:
This guide is assuming that you have already patched and burned a King Kong ISO and have the new beta live CD booting your 360 into Gentoo. If you are not this far yet, then please refer to other guides to accomplish this. You will have to login as root before starting or put sudo at the beginning of each command, same goes for the rest of the guide.

At this point you should be in Gentoo Linux. DHCP should have setup your network connection. To check type ping www.google.com into the terminal you should get a response if your network connection is up and running. If not follow these steps to manually configure your network connection:

Type:
CODE
ifconfig eth0 192.168.0.2 up

Replace 192.168.0.2 with the IP address that you want to set.

CODE
route add default gw 192.168.0.1

Replace 192.168.0.1 with the gateway address that you want to set.

CODE
vi /etc/resolv.conf
nameserver 192.168.9.1

Replace 192.168.0.1 with the nameserver address that you want to set.

Now test your connection again, ping www.google.com you should now get a response, if you don’t get a response double check your settings.

Setting up the Hard Drive:
Type
CODE
cfdisk /dev/sda

This will bring up a graphical fdisk program.
Create your Linux swap partition:
Select New > Primary > 1024 > Select Beginning
Create your Linux install partition (you have to arrow down to free space first):
Select New > Primary > Let it use the rest of the free space and just press enter

Now you should have two partitions, sda2 should have the largest portion of space and sda1 should be around 1 gig to be used for swap space, if this is correct then arrow over to write, press enter and type yes. Then quit

Once that is done you need to format the install partition with:
CODE
mkfs.ext3 /dev/sda2

Then setup your swap partition with:
CODE
mkswap /dev/sda1
sync; sync; sync
swapon /dev/sda1


Install Ubuntu to the Xbox360:
Now that your drives are formatted and partitioned, it is time to mount the install partition and make a directory to get started from:
CODE
mkdir /mnt/ubuntu
mount /dev/sda2 /mnt/ubuntu
cd /mnt/ubuntu
mkdir work
cd work


Get the Debootstrap tools:
CODE
wget http://archive.ubuntulinux.org/ubuntu/pool/main/d/debootstrap/debootstrap_0.3.3.2ubuntu3_all.deb


Extract debootstrap:
CODE
ar -xf debootstrap_0.3.3.2ubuntu3_all.deb
cd –
zcat < /mnt/ubuntu/work/data.tar.gz | tar xv


Change folder paths by typing:
CODE
export DEBOOTSTRAP_DIR=/mnt/ubuntu/usr/lib/debootstrap
export PATH=$PATH:/mnt/ubuntu/usr/sbin


Run debootstrap:
CODE
debootstrap --arch powerpc edgy /mnt/ubuntu http://archive.ubuntulinux.org/ubuntu


For the fastest installation, use a mirror closest to you. Mirrors are listed at
http://wiki.ubuntulinux.org/Archive.

Downloading the basic installation can take an hour or so.

Configure the Base System:
Once the download is complete change root to your new Ubuntu file system:
CODE
chroot /mnt/ubuntu /bin/bash


Create a custom fstab:
CODE
editor /etc/fstab


You will need to add these entry’s to your fstab:
CODE
/dev/sda2     /          ext3     defaults   0   0
/dev/sda1     none    swap    sw           0   0
proc          /proc     proc    defaults  0   0
sys          /sys      sysfs   defaults  0   0


Configure Networking:
You will now need to configure your network, below is an example. Make sure to use the settings for your network. (If you do not set a loopback as shown in the example, gnome will fail to boot correctly)
CODE
editor /etc/network/interfaces


CODE
iface lo inet loopback
auto lo

# To use dhcp:
auto eth0
iface eth0 inet dhcp

#To use static:
auto eth0
iface eth0 inet static
address 192.168.0.45
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1


Edit resolv.conf to insert your nameserver, below is an example. Make sure to use the settings for your network
CODE
editor /etc/resolv.conf

search hsd1.mn.comcast.net.
nameserver 192.168.0.1
nameserver 192.168.0.2
domain WORKGROUP


Now reboot the Xbox 360.

Booting into Ubuntu from the Hard Drive:
Since you are no longer using the live cd, you will need to burn this ISO that includes a kernel that will boot from the Hard Drive.
http://mydedibox.homelinux.com/ubuntu-inst...loader-sda2.iso

Boot this cd just as you booted the live cd. You should now be in Ubuntu Linux.

Adding users, groups, setting root password, and hostname:
Set a root password:
CODE
passwd root


Create a user for yourself:
CODE
adduser your_username


Create an admin group:
CODE
addgroup admin


Add yourself to the admin group:
CODE
adduser your_username admin


Add your username to sudoers:
CODE
visudo
your_username ALL=(ALL) ALL


Set a host name:
CODE
echo Xenon > /etc/hostname


Installing Ubuntu Desktop (Gnome):
Make sure your logged in as root and type:
CODE
aptitude install ubuntu-desktop


This also can take up to and hour or so. When it’s almost finished you will get a resolution setup screen, select 1280x768 as the default resolution with space bar, and deselect the rest. The setup will continue for ten or so more minutes.

Configuring X:
Next you will need to download the xenon Xorg driver.
Type:
CODE
cd /usr/lib/xorg/modules/drivers/
wget http://mydedibox.homelinux.com/ubuntu-install/xenonfb_drv.so


Then run the visual Xorg configuration:
CODE
sudo dpkg-reconfigure xserver-xorg


Setup as follows:

1. Attempt to autodetect video hardware? > No
2. X Server Driver: Xenonfb
3. Generic Video Card > Enter
4. Video card’s bus identifier: Press enter for default
5. Amount of memory: Press enter for default
6. Use kernel framebuffer device interface? > Yes
7. Autodetect keyboard layout? > Yes
8. Keyboard layout: us
That’s if you’re in the united states, if your not then fill in your default layout.
9. XKB rule set to use: xorg
10. Keyboard model: choose your rule set based on the options
11. Keyboard variant: leave blank if you’re in the U.S.
12. Keyboard options: Leave as default
13. Mouse Protocol: ImPS/2
14. Emulate a 3 button mouse? > Your choice
15. Xorg server modules: Default
16. Write default Files section to configuration file? > Yes
17. Attempt monitor detection? > Yes
18. Use generic monitor if it doesn’t detect it.
19. Video modes to be used by the X server: 1280x768
20. Method for selecting the monitor characteristics: Medium
21. Monitors best video mode: Choose what’s best for your monitor.
22. Write monitor sync ranges to the configuration file? > Yes
23. Desired default color depth in bits: 24

Now reboot and you will be greeted by ubuntu with Gnome the next time you load the XeLL boot cd.

Have fun!!

Guide written by stonersmurf ( http://xboxhacker.net / http://free60.org/)
Thanks to:
Cpasjuste for all the help.
Tmbinc for all the great tools, drivers, and patches.
Gentoo and Ubuntu developers for the great distro’s.

Where to find more info on Linux for Xbox 360:
http://www.free60.org/
Free60 is a project towards porting GNU/Linux, BSD, Darwin and related open-source operating systems to the Microsoft Xbox 360 video game console.

Microsoft, Xbox, Xbox360 (and probably some more) are registered trademarks by
Microsoft Corp. No affiliation between the Free60 Project and Microsoft Corp.
exists or is implied. All other trademarks and copyrights are
property of their respective owners.


This post has been edited by stonersmurff: Apr 1 2007, 09:58 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
stonersmurff   How to Install Ubuntu onto Your Xbox 360 Hard Drive   Apr 1 2007, 09:51 AM
burgerbee   Works perfekt! Tnx for a nice tutorial. The o...   Apr 3 2007, 08:26 AM
burgerbee   Ubuntu 7.04 Beta Officially isnt Ubuntu supporte...   Apr 3 2007, 03:38 PM
Olsenius   Tried installing with debootstrap --arch powerp...   Apr 11 2007, 05:16 PM
Olsenius   Tried installing with debootstrap --arch power...   Apr 11 2007, 06:22 PM
Cpas   Thanks stonersmurff good tut and job :)   Apr 3 2007, 06:43 PM
throwingks   Nice work!   Apr 4 2007, 09:41 AM
Perplexer   Post deserves to be pinned, or put in the tutorial...   Apr 5 2007, 07:59 PM
semajturtle   Absolutely awesome tut. Is it possible to format a...   Apr 5 2007, 11:35 PM
stonersmurff   Absolutely awesome tut. Is it possible to format ...   Apr 6 2007, 02:21 AM
burgerbee   Have been thinking a bit about Xbox 360 optimizati...   Apr 8 2007, 11:33 PM
epsilon72   text based install still scares me, but that is a ...   Apr 8 2007, 11:40 PM
JKD   Post deserves to be pinned, or put in the tutoria...   Apr 8 2007, 11:41 PM
burgerbee   a bit off-topic but still.... Debian Etch 64-bit ...   Apr 12 2007, 11:02 PM
seaweed   Great tutorial! Any chance of installing linu...   Apr 15 2007, 10:53 AM
Icekiller2k6   Great tutorial! a. Any chance of installing ...   Apr 15 2007, 11:37 AM
fosterchild11   Anyone have up to date install instructions? I...   Aug 5 2008, 06:33 AM
pastortom   Anyone have up to date install instructions? I...   Oct 16 2008, 11:48 AM
burgerbee   I have made a little script for this now. Warning ...   Apr 15 2007, 05:34 PM
seaweed   Nice work. Im trying your new script now but im ge...   Apr 16 2007, 10:02 AM
burgerbee   Nice work. Im trying your new script now but im g...   Apr 16 2007, 10:41 AM
seaweed   Its working fine now burgerbee, apperantly it didn...   Apr 16 2007, 10:39 AM
seaweed   Indeed i did ;) Thanks for the quick reply ;)   Apr 16 2007, 01:47 PM
azerty007   hey seaweed what did you have of hard disk 100mb   Apr 30 2007, 04:49 PM
stonersmurff   Heres the update bootloader cd to add support for ...   May 5 2007, 06:12 PM
mikomraz   I use a small 1gb MP3 player. First of all, when I...   May 8 2007, 04:33 PM
mikomraz   I use a small 1gb MP3 player. First of all, when ...   May 10 2007, 04:55 AM
MrDVD   Is this installed Ubuntu a 32 or 64 bit version ?   Jun 24 2007, 03:24 AM
Chan163   Let's assume I have a 250Gb WD BEVS drive and ...   Jun 28 2007, 10:11 PM
Chan163   No one? @ mikomraz: I guess your MP3 player won...   Jul 3 2007, 12:11 AM
Gnash   This is very nice and useful. It's amazing how...   Jul 27 2007, 01:43 PM
MoNeY_MaN   This is a great looking guide and very informative...   Jul 29 2007, 11:32 PM
brilliantdonkey   CHan163, did you ever get your split XBox360 + Ubu...   Aug 16 2007, 05:27 PM
hellawacked   might not go here but anyways would it be possible...   Nov 11 2007, 03:16 AM
Icekiller2k6   might not go here but anyways would it be possibl...   Nov 27 2007, 08:45 PM
clousr   Would it be possible to intall linux to an externa...   Dec 16 2007, 05:36 PM
xmugen360   there is an app called tiny xp and yes search the ...   Dec 16 2007, 06:41 PM
iwanttheagrocrag   HOLY S*** not only is linux possible its also my f...   Jan 18 2008, 05:30 PM
Icekiller2k6   HOLY S*** not only is linux possible its also my ...   Jan 18 2008, 05:56 PM
Icekiller2k6   Just a heads up, Ubuntu 7.10 now works @ xbox 36...   Feb 13 2008, 12:52 PM
utar   Just a heads up, Ubuntu 7.10 now works @ xbox 3...   Mar 2 2008, 05:42 PM
Icekiller2k6   Bonus! As a matter of interest how was the G...   Mar 5 2008, 05:30 PM
sparticus13   Well I don't think this can be done yet but ca...   Feb 28 2008, 04:28 PM
rapidmovies   how would the speed suck? I thought the 360 had 3 ...   Feb 29 2008, 01:17 AM
battery   after you install Ubuntu, how do you put the origi...   Apr 5 2008, 11:24 PM
Menzis0   how about a philips, benq or liteon? im just askin...   Apr 16 2008, 06:51 PM
Grim187   Run debootstrap: debootstrap --arch powerpc edgy /...   Apr 22 2008, 10:00 PM
Multihax   Run debootstrap: [code]debootstrap --arch powerpc ...   Apr 23 2008, 03:47 AM
Multihax   Couldn't edit my previous post, so... i notic...   Apr 23 2008, 05:12 AM
xxANTMANxx   It all seemed to install great using the script at...   Jun 10 2008, 03:30 AM
pastortom   [center][b]How to Install Ubuntu onto your Xbox 3...   Oct 16 2008, 10:52 AM
pastortom   Hi mate.. Recently got a hold of a Xbox 360 w...   Oct 17 2008, 11:44 AM
dervboy   does anyone want to replace those files back on th...   Mar 8 2009, 05:44 PM
Wadarr   does anyone want to replace those files back on t...   Aug 31 2009, 11:27 AM
Hellzone   I found a new Debootstrap Put it in... but it didn...   Aug 31 2009, 09:14 PM
geoffmac   Someone please post a working script to get ubuntu...   Sep 13 2009, 07:52 PM
P!XAR   WHEN release OS for other Version XBOX-(falcon -j...   Sep 16 2009, 11:12 AM
Hellzone   I was able to install the core OS... how ever it w...   Sep 17 2009, 06:10 AM
masterluke   the script i posted here.. http://forums.xbox-sc...   Oct 12 2009, 08:04 AM
DaemoniZ   Hi. Why i cant install Ubuntu 9.10 ?   Nov 24 2009, 09:59 PM
Icekiller2k6   Hi. Why i cant install Ubuntu 9.10 ? because the...   Nov 24 2009, 11:42 PM
DaemoniZ   because the kernel patches weren't made for i...   Nov 25 2009, 01:39 AM
Icekiller2k6   And it is impossible to fix? sure if your a prog...   Nov 25 2009, 09:21 AM
NoWar   sure if your a programmer, you can "port...   Feb 1 2010, 10:13 AM
hvckz   thus this installation will work on jtag'ed xb...   Feb 4 2010, 10:36 AM
juggahax0r   Ok so how do i go back to sqaure 1 , i need to sta...   Mar 27 2010, 03:30 AM
juggahax0r   I solved it , i happen to be a linux user. My prob...   Mar 27 2010, 04:43 AM
jigglywiggly   Someone pleaes post updated instructions I got stu...   Apr 13 2010, 03:18 AM
mirrors   Would someone mind explaining how to maintain (or ...   Aug 7 2010, 08:39 PM
herman05   Thanking you Nice post. namebench   May 15 2012, 01:02 PM






Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 19th June 2013 - 05:33 PM