Jump to content


Photo

Which Distro?


  • Please log in to reply
26 replies to this topic

#1 heavyengineering

heavyengineering

    X-S Enthusiast

  • Members
  • 12 posts

Posted 18 July 2009 - 04:31 AM

i've got a v1.4 xbox ive modded with a duox2 chip that im trying to setup as a headless NAS. i need a good distro that has some sort of support or tutorial as i have no clue on linux/unix.

#2 bc54

bc54

    X-S Senior Member

  • Members
  • PipPip
  • 181 posts
  • Location:Norco, CA
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 18 July 2009 - 05:02 AM

gentoox is really easy to set up as a samba server.

i have written a tutorial here.

look over it and ask questions if you have any. it isnt hard at all to set up, but if you dont have a keyboard attached to your xbox it becomes more complicated.

hope i could help.


#3 heavyengineering

heavyengineering

    X-S Enthusiast

  • Members
  • 12 posts

Posted 18 July 2009 - 05:36 AM

im looking to do a native install on a WD 80gig HD.

stardust only gives the option to install on the e drive. i've tried both the newest loader bios and v5.11 with no success.


#4 bc54

bc54

    X-S Senior Member

  • Members
  • PipPip
  • 181 posts
  • Location:Norco, CA
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 18 July 2009 - 06:49 AM

hmm, your, right. apparently stardust doesnt support a 100% linux only native install.

i dida quick google, and found this tutorial.

this guy builds a samba server and bittorrent client from xebian. however, i have tried xebian, and i could never get apt to work correctly. it wouldnt hurt to try, and the guy totally outlines everything for you.

i would expect any xbox linux distro to support a full native install. i will look into this more.

i hope you get this thing working.


#5 heavyengineering

heavyengineering

    X-S Enthusiast

  • Members
  • 12 posts

Posted 18 July 2009 - 08:38 AM

it's funny you link that, it's what i stumbled across and started this projected. i had an xbox sitting in the closet with a borked dvd drive.

sadly, i couldnt find xebian or support for it anywhere. it seems most of the xbox distros from http://www.xbox-linu...g/wiki/Download have been forgotten about, which is sad given how much fun i've had with this box so far.


i will most likey attempt this tutorial http://forums.shalla....php?f=5&t=3092 although im not comfortable with it because i have no clue what the commands really mean. the learning curve is a bit steep.

edit: thanks for your assistance thus far

Edited by heavyengineering, 18 July 2009 - 08:40 AM.


#6 bc54

bc54

    X-S Senior Member

  • Members
  • PipPip
  • 181 posts
  • Location:Norco, CA
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 18 July 2009 - 09:36 AM

Ok. I looked at that tutorial, and I can't reccomend you attempt it. Because your inexperienced with linux and probably the command line, so I don't want you to mess up you xbox, hard drive, or both. I am writing a tutorial that will be noob friendly and will use all 80 gb of your hard drive. I will probably finish it tomorrow so just please be patient.

#7 heavyengineering

heavyengineering

    X-S Enthusiast

  • Members
  • 12 posts

Posted 18 July 2009 - 02:03 PM

excellent! i'm looking forward to it.

#8 bc54

bc54

    X-S Senior Member

  • Members
  • PipPip
  • 181 posts
  • Location:Norco, CA
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 19 July 2009 - 03:26 AM

ok, this is it in 10 easy steps, ok maybe at times you might want to pull your hair out, especially if you dont have a keyboard. i really reccomend either making an adapter or buying one as it will make it really easy. also, if you have any questions or trouble just ask.

***this so far assumes that you have cromwell bios flashed to your modchip or tsop. it is really easy and there are plenty of tutorials, but if you have questions just ask.

1. get xebian. if you have a keyboard that you can hook up to your xbox choose basic 1.1.4. if you dont have a keyboard, you have no choice but xbox 1.1.4.
***here is a link to basic and here is a link to xbox it will take 5-10 minutes, so make a sandwich.

2. burn xebian to a disc your xbox can read. dvd-rw will usually work. if you need more help choosing a media, see here.

3. cold boot your xbox with your xebian disc. cromwell will boot and automatically detect your disc. let your xbox boot up completely.

4. ok, this is where stuff starts to fork, depending on which version of xebian you have.
a. basic - ok so now you should see a command line. i have never used basic before, so it might autologin to user live, or it might give ask you to login.
*if you are user "live", just enter "su" without the quotes. it will then ask for your password, which is "xebian" without the quotes.
*if it asks you to login, just enter "root" as a user. then enter "xebian" as a password. again, not wuotes.

b. xbox - ok now you see something that resembles a desktop. now, using your left thumbstick, point the cursor over the virtaul keyboard icon. double tap "A" and a on screen keyboard will open. then repeat the same process but on the terminal icon. now, click the "focus" button on the on screen keyboard, then your cursor will turn into a cross. point it over the terminal window and press "A". now your on screen keyboard will control the terminal. enter "su" then for the password enter "xebian". now you will be the root account.

5. ok, so now you are root, and you have an empty shell in front of you. enter "XBOXLinuxInstall" and a text based installer will begin. when it gives you the option to choose your type of install, pick "NATIVE". this is the most important step. the rest you can use your own judgment, the defaults are fine. you will notice it will ask for a preferred ip address (meaning static ip, if you need dhcp, just wait we will address that later).

6. then your install will finish. now in the terrminal enter "halt". the xbox will begin shutdown sequence. let it finish. then, power on the xbox with the eject button. remove the xebian disc. now, cromwell should detect your native install and boot it.

6.5 (optional) once you are fully booted, you have xebian. now, use whatever method you used before to load a terminal and gain root access. now, if you need dhcp, enter "dhclient". dhcp will now initiate, it will give you your new ip. however this solution is just temporary. to permanently use dhcp read on.
a. ok, right now if your still using the xbox controller and the virtual keyboard your fingers are killing you. google "putty" and get the free telnet/ssh client. download it.
b. start putty.exe. enter the xbo's ip addres and enter port 22 and make sure the ssh button is ticked.
c. a terminallike login window will popup. enter "root" as the user. enter "xebian" as the password. now you can controll your xbox from your computer.

7.ok, in your ssh terminal, your command line, or a desktop terminal, enter "apt-get update". it will show some errors, but they dont matter. next enter "apt-get upgrade", again some errors, but ignore them. this step will take a while just let it finish. during the upgrade, it will ask some questions, just press enter to use the default. if a text like document appears on the screen, just press "q".

8. now in the same terminal, enter "apt-get install samba" it will want to upgrade some more packages and ask to continue, press enter at all prompts, and basicly follow the same rules as above.

9. now you have samba, but your server isnt setup. so first enter "/etc/init.d/samba stop". now enter "cp /etc/samba/smb.conf /etc/samba/smb.conf.backup". then enter "nano /etc/samba/smb.conf" and a terminal based text editor will open the file. the default version of this file has a lot of extras that we wont touch. if you want to make it really easy, you can backspace everything and start from scratch because i will explain all the neccessary steps.
this is what mine looks like:
CODE
#======================= Global Settings =====================================
  [global]
      dns proxy = no
      log file = /var/log/samba/log.%m
      #netbios name = XBOX
      smb passwd file = /etc/samba/private/smbpasswd
      load printers = yes
      printing = cups
      server string = XBOX
      socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
      workgroup = MSHOME  ### important, change to suit your network
      os level = 20
      encrypt passwords = yes ### maybe important, i have never gotten  passwords to work, but this supposedly increases password compatability  with windows systems.
      printcap name = lpstat
      security = share ### important, because i have not gotten security to work yet.
      max log size = 50
      guest ok = yes ### important, again a secuity issue
      force user = root ### important, again a secuity issue
      force group = root ### important, again a secuity issue
  
  [Media]
      writeable = yes ### if you want to be able to change files on your server.
      browseable = yes ### important
      path = /mnt/FatX/F/Media ### get your path correct, because you  will wipe all fatx, this should probably be something like /public or  something.


the important lines are commented.

10. now, samba should be correctly configured, so start the samba daemon, enter "/etc/init.d/samba start" then test it out, if it doesnt work double check step 9.

ok, this is just a little rough tutorial, but i am in the process of making a super noob easy tutorial with screens on how to get a xbox nas.
hope i could help.

Edited by bc54, 19 July 2009 - 03:27 AM.


#9 heavyengineering

heavyengineering

    X-S Enthusiast

  • Members
  • 12 posts

Posted 19 July 2009 - 04:29 AM

ugh. now i feel stupid not being able to find the download. its installing basic currently. ill make a full report when i'm done.

thank you

#10 bc54

bc54

    X-S Senior Member

  • Members
  • PipPip
  • 181 posts
  • Location:Norco, CA
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 19 July 2009 - 04:41 AM

ok, do you have a keyboard? with basic you will absolutely need a keyboard.

just double checking.


#11 heavyengineering

heavyengineering

    X-S Enthusiast

  • Members
  • 12 posts

Posted 19 July 2009 - 05:04 AM

keyboard yes.

problem though. on step 9... i get "No such file or directory" for the first 2 commands and nothing in the editor?

did i miss something?

#12 bc54

bc54

    X-S Senior Member

  • Members
  • PipPip
  • 181 posts
  • Location:Norco, CA
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 19 July 2009 - 05:14 AM

ok this might mean that samba did not install correctly.

run "su" then login as root. then run "apt-get update", then run "apt-get install samba"

tell me what the terminal writes back, if it looks like something is installing repeat step 9, if not, tell me what it said.



#13 heavyengineering

heavyengineering

    X-S Enthusiast

  • Members
  • 12 posts

Posted 19 July 2009 - 05:26 AM

still stuck.
xebian:~# apt-get update
Err http://non-us.debian.org stable/non-US/main Packages
Could not resolve 'non-us.debian.org'
Err http://non-us.debian.org stable/non-US/main Release
Could not resolve 'non-us.debian.org'
Hit http://security.debian.org stable/updates/main Packages
Hit http://security.debian.org stable/updates/main Release
Hit http://security.debian.org stable/updates/contrib Packages
Err http://non-us.debian.org stable/non-US/contrib Packages
Could not resolve 'non-us.debian.org'
Hit http://security.debian.org stable/updates/contrib Release
Hit http://security.debian.org stable/updates/non-free Packages
Hit http://security.debian.org stable/updates/non-free Release
Hit http://security.debian.org stable/updates/main Sources
Hit http://security.debian.org stable/updates/main Release
Hit http://security.debian.org stable/updates/contrib Sources
Hit http://security.debian.org stable/updates/contrib Release
Hit http://security.debian.org stable/updates/non-free Sources
Hit http://security.debian.org stable/updates/non-free Release
Err http://non-us.debian.org stable/non-US/contrib Release
Could not resolve 'non-us.debian.org'
Hit http://ftp.at.debian.org stable/main Packages
Hit http://ftp.at.debian.org stable/main Release
Err http://non-us.debian.org stable/non-US/non-free Packages
Could not resolve 'non-us.debian.org'
Hit http://ftp.at.debian.org stable/contrib Packages
Hit http://ftp.at.debian.org stable/contrib Release
Hit http://ftp.at.debian.org stable/non-free Packages
Hit http://ftp.at.debian.org stable/non-free Release
Err http://non-us.debian.org stable/non-US/non-free Release
Could not resolve 'non-us.debian.org'
Err http://non-us.debian.org stable/non-US/main Sources
Could not resolve 'non-us.debian.org'
Err http://non-us.debian.org stable/non-US/main Release
Could not resolve 'non-us.debian.org'
Err http://non-us.debian.org stable/non-US/contrib Sources
Could not resolve 'non-us.debian.org'
Err http://non-us.debian.org stable/non-US/contrib Release
Could not resolve 'non-us.debian.org'
Err http://non-us.debian.org stable/non-US/non-free Sources
Could not resolve 'non-us.debian.org'
Err http://non-us.debian.org stable/non-US/non-free Release
Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian...386/Packages.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian...ry-i386/Release Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian...386/Packages.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian...ry-i386/Release Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian...386/Packages.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian...ry-i386/Release Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian...urce/Sources.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.../source/Release Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian...urce/Sources.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.../source/Release Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian...urce/Sources.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.../source/Release Could not resolve 'non-us.debian.org'
Reading Package Lists... Done
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
xebian:~# apt-get install samba
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libattr1 libc6 libcups2 libdb4.6 libgcrypt11 libgnutls26 libgpg-error0
libkeyutils1 libkrb53 libldap-2.4-2 libncurses5 libpam0g libpopt0
libreadline5 libsasl2-2 libtalloc1 libtasn1-3 libwbclient0 lsb-base netbase
readline-common samba-common update-inetd xinetd
Suggested packages:
locales glibc-doc libc6-i686 cups-common rng-tools gnutls-bin krb5-doc
krb5-user libpam-doc openbsd-inetd inet-superserver smbldap-tools ldb-tools
Recommended packages:
libgpm2 libsasl2-modules
The following NEW packages will be installed:
libcups2 libdb4.6 libgnutls26 libkeyutils1 libkrb53 libldap-2.4-2
libreadline5 libsasl2-2 libtalloc1 libtasn1-3 libwbclient0 lsb-base
readline-common samba samba-common update-inetd xinetd
The following packages will be upgraded:
libattr1 libc6 libgcrypt11 libgpg-error0 libncurses5 libpam0g libpopt0
netbase
8 upgraded, 17 newly installed, 0 to remove and 139 not upgraded.
Need to get 0B/15.4MB of archives.
After unpacking 22.2MB of additional disk space will be used.
Do you want to continue? [Y/n]
Reading changelogs... Done
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
Preconfiguring packages ...
(Reading database ... 13428 files and directories currently installed.)
Preparing to replace libc6 2.3.2.ds1-22 (using .../archives/libc6_2.7-18_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
WARNING: POSIX threads library NPTL requires kernel version
2.6.8 or later. If you use a kernel 2.4, please upgrade it
before installing glibc.

The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18_i386.deb
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://non-us.debian.org stable/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_stable_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Sub-process /usr/bin/dpkg returned an error code (1)
xebian:~# /etc/init.d/samba stop
bash: /etc/init.d/samba: No such file or directory
xebian:~# cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
cp: cannot stat `/etc/samba/smb.conf': No such file or directory
xebian:~#


#14 run088

run088

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,003 posts
  • Interests:rebuilding broken xboxes
  • Xbox Version:v1.0
  • 360 version:none

Posted 19 July 2009 - 05:53 AM

When ever I have tried using apt-get with xebian I 1st have to open up nano navigate to the source list and comment out one of the list because it always errors out. I think it is the non-us one but I could be wrong. I know it errors out for me at 99%.


On a side not if you are using custom partitions on your hdd that are bigger than the 137 limit then linux will see them garbled. Atleast xdsl does and it is based on debian so I imagine xebian does too. This is the main reason I serve with xbmc using the upnp option which can also be streamed or burned on a windows pc using nero home.

#15 heavyengineering

heavyengineering

    X-S Enthusiast

  • Members
  • 12 posts

Posted 19 July 2009 - 06:32 AM

@run
hard drive is 80gig. i wanted to limit the difficulties i would have first time around.

while i think i understand what your first comment means, i have no idea how to accomplish it.



looks like im done with this for tonite as the new baby thinks its time to party and im on diaper duty.

i'll leave you with the quick shots...sorry for flash and no macro on the wifes camera

new cd/dvd drive and HD in. niether is mounted permanently as im unsure what i want to do with the case. the borked original drive is still in there atm.
IPB Image


ouside view of modded s-controller
IPB Image


inside view. i removed all the memory card bits and soldered the usb wires straight to the board.
IPB Image






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users