You are viewing our Forum Archives. To view or take place in current topics click here.
"TUT"How to turn your jtag in to a server!
Posted:

"TUT"How to turn your jtag in to a server!Posted:

808blackout
  • Resident Elite
Status: Offline
Joined: Jan 04, 201014Year Member
Posts: 229
Reputation Power: 10
Status: Offline
Joined: Jan 04, 201014Year Member
Posts: 229
Reputation Power: 10
This is a tutorial to turn your JTAG into an affordable, fast file server.

Things you will need:

JTAG (derp)
Gentoo Live CD (Download here: [ Register or Signin to view external links. ] )
Xell Linux Loader (Download here: [ Register or Signin to view external links. ] )
Xbox 360 Hard Drive or USB hard drive that you don't use for anything else (20gb recommended min.)
USB Keyboard
Optional USB Mouse
Coffee

Step 1:
Burn Gentoo LiveCD to a blank disk using software such as powerISO. A CD-RW will work just fine.

Step 2:
Boot the JTAG by holding down the eject button (boot into xell), put the disk in and close it in one swift motion. (If you wait to long, it won't detect the disk and you will have to start over) Make sure that you have an ethernet cable plugged in at this point. It can't detect it after boot and you will need to start over if it isn't in.

Step 3:
When prompted with a logon screen, wait 10 seconds until default user 'Gentoo' logs in.

Step 4:
At the Desktop, click Applications>Accessories>Text Editor. Paste this bash script into the blank file:

#!/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/debian
mount /dev/sda2 /mnt/debian
cd /mnt/debian
mkdir /mnt/debian/work
cd /mnt/debian/work
wget --no-check-certificate [ Register or Signin to view external links. ]
ar -xf debootstrap_0.3.3.2etch1_all.deb
cd /mnt/debian
zcat </mnt> /mnt/debian/etc/hostname
cat > /mnt/debian/etc/fstab <<EOF> /mnt/debian/etc/network/interfaces <<EOF> /mnt/debian/etc/apt/sources.list <<EOF>> /mnt/debian/root/.bashrc <<EOF> /etc/default/avahi-daemon
/etc/init.d/networking restart
cd /usr/lib/xorg/modules/drivers/
rm -r -f *
wget [ Register or Signin to view external links. ]
cd /etc/X11/
rm -r -f xorg.conf
wget [ Register or Signin to view external links. ]
mkdir /lib/modules/2.6.21.1
touch /lib/modules/2.6.21.1/modules.dep
echo "" > /etc/gdm/gdm.conf-custom
sed -i '/security/ aAllowRoot=true' /etc/gdm/gdm.conf
sed -i 's/#LEDS=+num/LEDS=+num/' /etc/console-tools/config
update-rc.d -f hwclock.sh 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
EOF
echo "Base System Install Complete!"
echo "You may now shutdown the xbox360."
echo "Then continue the install by booting the Xell-Bootloader-sda2."



That is a code that has been cleaned up by me and re-up'd to free60. If you would care the see the old code that doesn't work, please visit:
[ Register or Signin to view external links. ]

Step 5:
Save the file as: debianinstall.sh

Step 6:
Open up Terminal, found at Applications>Accessories>Terminal

Type the following commands:

sudo su
sh ./debianinstall.sh



Step 7:
Grab some coffee and wait about 30 minutes while it is doing the preliminary install steps. After a while, it should prompt you to reboot using the Xell Linux Loader. Check the Terminal for any errors (there shouldn't be any) and if everything looks good, click the power button on your console.

Step 8:
Burn the Xell Linux Loader to a blank disk. I recommend not putting it on your Gentoo disk because if something goes wrong and you need to start over you will have to burn everything again.

Step 9:
Boot the JTAG into xell, but put the linux loader in this time. It will go through some boot procedures and after a while you will be prompted to enter a new unix password. Enter something secure, but make sure you don't forget it other wise you will have to start over.
A good example of a secure password is: KJHB*#&&*#222a&^G

Step 10:
Go grab another cup of coffee, this is the longest part.

Step 11:
Wait until a blue screen asking for your resolution pops up. The default values (the last three on the screen) should already be checked and all you need to do is press enter.

Step 12:
Wait some more until some more blue configuration screens pop up. Just select what you want and then wait again. (Don't worry, this is the final wait!)

Step 13:
After a while a login screen should pop up. Congrats, you are done with the hardest part.

Step 14:
Log into root and open terminal. Run the following commands:

apt-get install apache2

apt-get install libapache2-mod-php5 libapache2-mod-perl2 php5 php5-cli php5-common php5-curl php5-dev php5-domxml php5-gd php5-imap php5-ldap php5-mcal php5-mhash php5-mysql php5-odbc php5-pear php5-xslt



If it installed correctly, when you type php -v it should display a version number.

Step 15:
Type:

apt-get install ssh


in the terminal. When it is done, type the command:

nano -w /etc/ssh/sshd_config


Use your arrow keys to navigate to where it says "X11Forwarding". Change 'yes' to 'no'.

Click Control+x to exit nano, 'y' to save and enter to save it as the same file.

Now to restart the file server, type

/etc/init.d/ssh restart



Step 16: (Almost there!)
Install samba by typing:

apt-get install samba



Step 17:
The last thing to set up is the FTP server.
In the terminal, type:

apt-get install proftpd


Configure it to your liking using the command:

nano -w /etc/proftpd/proftpd.conf


After you are done configuring, restart the ftp daemon by typing:

/etc/init.d/proftpd restart



Step 18: (Final step!)
Download this script, make it executable and run it using these commands:

wget [ Register or Signin to view external links. ]
chmod 777 useradd.sh
sh useradd.sh



The script will add a new user that the xbox will execute apache with. (This is critical, do not let users execute apache as root!)


Step 19:
To test it out, type ifconfig in your terminal. It will display your local IP Adress. Get on another computer (connected to the same network) and type the JTAG's local IP into your address bar. If done correctly, a page should come up saying, "It works!"
If you are greeted with that text then congrats, you now have a working file server.

Step 20:
To change what the text says and upload files that you can remotely retrieve, navigate to your /var/www/apache2-default/ folder. Put whatever files you want to access in there.

Step 21: To access these files outside of your local network, you will need to port forward port 80 to your console. There are thousands of different routers out there and each has a different port forwarding process, so look up your model number on this site:
[ Register or Signin to view external links. ]
and it will have a nice tutorial for you. After you are done port forwarding you can test it by typing your external ip (find that you by going to [ Register or Signin to view external links. ] )
If it shows the "It works" page, then congrats. You now have a working, low budget file server accessible from anywhere where you have internet!
i dnt tak credit
#2. Posted:
Kontentz
  • TTG Senior
Status: Offline
Joined: Jul 25, 201014Year Member
Posts: 1,337
Reputation Power: 57
Status: Offline
Joined: Jul 25, 201014Year Member
Posts: 1,337
Reputation Power: 57
ok.............................
#3. Posted:
Forest
  • Fairy Master
Status: Offline
Joined: Jul 13, 200915Year Member
Posts: 7,815
Reputation Power: 3052
Status: Offline
Joined: Jul 13, 200915Year Member
Posts: 7,815
Reputation Power: 3052
and just how fast of a server would the xbox be?

im guessing not that good because it is a poorly built console
#4. Posted:
808blackout
  • Resident Elite
Status: Offline
Joined: Jan 04, 201014Year Member
Posts: 229
Reputation Power: 10
Status: Offline
Joined: Jan 04, 201014Year Member
Posts: 229
Reputation Power: 10
true..............................
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.