Installing and removing software
- 1. Introduction
- 2. Installing and removing software
- 3. Samba and SWAT
2. Installing and removing software
OK, so now when you boot into Linux and SSH to your Xbox you should have a folder called samba_share. Anything you put in here will be available on your NAS.
Now it is time to install some software. Debian has a great command for installing software that checks all the dependencies, so there is no need to worry about that. We're going to install Samba to enable filesharing, and SWAT so that we have a nice GUI to configure Samba with.
Since we're also going to install the TorrentFlux BitTorrent client later, we'll also install the Apache webserver, MySQL database, and PHP4 scripting language. Although it's optional, we'll also install the phpmyadmin web-based GUI for administering the MySQL database.
apt-get update upgrade
apt-get install samba
apt-get install swat
apt-get install apache
apt-get install mysql-server
apt-get install php4
apt-get install phpmyadmin (optional)
Also as this is a headless install you might want to consider removing the X-Windows modules to free up some RAM. Type in this:
dpkg --purge xfs
dpkg --purge x-window-system
dpkg --purge xdm
apt-get remove lpr (if you never intend to use it as a print server)
Now assuming all that went without incidence, you should have a fully working LAMP web server! On your PC's web browser go to http://ip_address/ (where you obviously put in the IP address of your Xbox) and you should get a screen telling that this page is under development.
- Previous page Introduction
- Next page Samba and SWAT





OK, so now when you boot into Linux and SSH to your Xbox you should have a folder called
How To: Convert your Xbox to a NAS - Part 2 : Read more
Hi, Just have one question, how do you create the database? Doesn't work with just typing "mysqladmin create torrentflux", it just says "access denied for user 'root'@'localhost'"
pls advice!
/Schatz
Sorted it myself.
mysql -u root -p
I think you are missing two very important software to install.
apt-get install libapache-mod-php4
apt-get install php4-mysql
otherwise it will not render php in apache and connect to the db