Help - Search - Members - Calendar
Full Version: Which Distro?
Scenyx Entertainment Community > Xbox1 Forums > Software Forums > *nix OS on Xbox
heavyengineering
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.
bc54
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.
heavyengineering
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.
bc54
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.
heavyengineering
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-linux.org/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.shallax.com/viewtopic.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
bc54
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.
heavyengineering
excellent! i'm looking forward to it.
bc54
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.
heavyengineering
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
bc54
ok, do you have a keyboard? with basic you will absolutely need a keyboard.

just double checking.
heavyengineering
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?
bc54
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.

heavyengineering
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.org/debian-non-US/dis...386/Packages.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.org/debian-non-US/dis...ry-i386/Release Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.org/debian-non-US/dis...386/Packages.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.org/debian-non-US/dis...ry-i386/Release Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.org/debian-non-US/dis...386/Packages.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.org/debian-non-US/dis...ry-i386/Release Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.org/debian-non-US/dis...urce/Sources.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.org/debian-non-US/dis.../source/Release Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.org/debian-non-US/dis...urce/Sources.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.org/debian-non-US/dis.../source/Release Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.org/debian-non-US/dis...urce/Sources.gz Could not resolve 'non-us.debian.org'
Failed to fetch http://non-us.debian.org/debian-non-US/dis.../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:~#
run088
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.
heavyengineering
@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

bc54
ok, i think i might hae the fix.

BIG THANKS TO adr3nal1n for finding this
QUOTE

deb http://archive.debian.org/debian sarge main contrib non-free

deb http://archive.debian.org/debian-non-US oldstable/non-US main contrib non-free
deb-src http://archive.debian.org/debian-non-US oldstable/non-US main contrib non-free

deb http://archive.debian.org/debian-security sarge/updates main contrib non-free
deb-src http://archive.debian.org/debian-security sarge/updates main contrib non-free


you can see the original thread here

these are the new apt lines ince debian moved the debs to archive.

so, run "nano /etc/apt/sources.list" then in the very front of every line put a "#" minus the quotes. then hit return a few times so you can see a distinct seperation between the old apt lines and the new ones you are going to put in. the copy the above lines word for word. hit Ctrl+X, then Y to save, then Enter to overwrite.

now start from step 7, and you have to make sure you have internet access. look at step 6.5 if you have dhcp.
run088
On Xdsl I ran into this issue and managed to get it all installed correctly but it took some tweaking to get done. I just had to add a dummy file in a couple of places and it installed just fine. If you run into dependency issues here is a link to the post I made about the corrections to get samba to install on xdsl.


http://forums.xbox-scene.com/index.php?showtopic=669489
heavyengineering
thanks, it looks good. ill play with this tonite.
bc54
so run, you got samba to work in xdsl? when ever i try to use apt for anything, it always errors on pcmcia-cs. i can remove the package, but i dont really know what im removing.

i have googled it, and you once said to get it to go thru you just put a blank file in /etc/init.d/pcmcia, but that didnt fix it. here is the exact error:
CODE
Error: Expected no more than 3 tokens for --msgbox, have 4.
Use --help to list options.


debconf: whiptail output to the above errors, giving up!
dpkg: error processing /var/cache/apt/archives/pcmcia-cs_3.1.33-6woody1_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 255
Errors were encountered while processing:
/var/cache/apt/archives/pcmcia-cs_3.1.33-6woody1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


any ideas?
run088
Try to delete that file and leave a blank one in its place named the same. I am pretty sure that file gets overwritten anyway. Then follow the link to the post I pointed to and see if that does it for you. If you cant get it to work let me know and I will build it again and document it better.
bc54
wow run, your a genius.

i couldnt get pcmcia-cs to work, so i just removed it, nothing really bad so far.

samba installed almost perfectly, but debconf asked questions like what workgroup and whatnot, but it did not implement them in the smb.conf. still now i have a samba server in 30sec as opposed to the 2min startup on gentoox.

heavy, this could work for you, but in order to do a full native install of xdsl, you have to follow the guide at the end of this page.

it looks a lot easier than the gentoox full install, but i suggest you try to get xebian to work first. good luck.
heavyengineering
the changes to sources.list made a difference.

the config file has a number of settings, some appear to be duplicates. i'm not sure which one should be modified and which one left alone....and if i were to wipe everything, do you really mean everything? there's a ton of settings that seem important.

and how do i verify my path?



edit: how do i set this up so i dont have to run dhclient in order to get putty to go?
bc54
ok, yeah, if samba doesnt find a specific option in smb.conf, it uses the default. just make sure the settings marked "### important" are in there. you will have to change some and add others, but make sure you dont have conflicting settings, like "workgroup = xebian" at the beginning, then at the end "workgroup = workgroup".

sorry, i forgot about dhcp. to do dhcp permanently:
edit the interfaces file.

CODE
su
cd /etc/network
cp interfaces interfaces.back
nano interfaces

In the file, change the word static to dhcp, and delete the three lines beneath it. then restart the network:

CODE
/etc/init.d/networking restart

that is from the xebian howto. hope that helps.
heavyengineering
dhcp worked.

ill just dump your settings in smb.conf....but what about the path?
bc54
just usually make a directory somewhere containing all the files you want to share. what i do is make a directory at "/public". but, in my example, because all the data is on the fatx partitions, i used "/mnt/FatX/F/Media" instead.

then i fill it with sub-directories like "/public/Music", "/public/Pictures", then lets say i want to share a home folder, i run "ln -s /home/<username> /public/<username>" ("ln" means make a link, "-s" makes it symbolic, kinda like a shortcut in windows.)

oh, by "dump" do you mean copy and paste? in "my smb.conf", i cut out a little bit to save length. it was some printer share settings and stuff, so if you want to cut and paste, just cut and paste the lines marked important over the the default counterpart lines. this way you wont, for example say "load printers = yes" then never specify a printer share.
heavyengineering
im a bit confused here... what are the commands for creating a directory and sub-directory?

and what's the difference between creating sub-directories vs dropping folders in from the network?



since you said samba will use the default if it can't find the specific option, i blew out all the options and put yours in. ill edit it once i get the path sorted out.



is there a good resource for learning more about xebian/linux commands?
bc54
ok, to make a directory, run "mkdir /path/to/new/directory" and dont use spaces in the name. i personally like to use sub-directories because then i have one share per machine, but you can setp up multiple shares per machine, it doesnt really make a difference.

however, i have found seperate shares useful when, lets say you want a media sonly share, but you want it read only, then create a seperate share, for example "/media", then when defining it in "/etc/samba/smb.conf" put:
CODE
[Media]
browseable = yes
writeable = no
path = /media


if you want to learn these commands, google "linux bash commands" you can find all kinds of tutorials out there.

if you just dropped in my config, i just want to let you know shares will work fine, but if say you hooked up a usb printer, you wont get it to work over the network because printer shares werent defined. but like i said, regular old network shared directories will work perfectly.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.