Asus Eee and a File Server


So yeah, I ordered an Asus Eee 900 today. It was dirt cheap and I still miss my laptop (R.I.P.). I'm going to use it for school as well as just a little toy, but storage will be an issue since it only has 16GB of SSD-space.

So I turned my desktop computer into a password protected file-server. You know, because I can. Now my music, documents, pictures and videos are available to me anywhere in the world (Not any sensitive stuff, obviously. That would be stupid.)

If you have Ubuntu/Linux as if you do! you can follow these tutorials and get going as well. It might take a while, but if you follow the steps it shouldn't be too difficult.



1. Install the server software
Just follow the instructions in order and you should be OK.

2. Now you have installed Apache 2 and some other things. In order to access your folders (Music and such) you need to place a shortcut to the folder in /var/www. Remember to make sure that the files can be accessed by all users. NEEDLESS TO SAY, YOU MOST DEFFINITELY SHOULD NOT PLACE ANYTHING REMOTELY PRIVATE AND/OR SENSITIVE IN ANY FOLDER YOU MAKE PUBLIC! You want to password protect the file-server. In order to do that you need to do a few things:


  • Edit /etc/apache2/sites-available/default. Specifically, change the line(s) AllowOverride None to AllowOverride AuthConfig

  • Create two files called .htaccess and .htpasswd respectively, and put .htaccess in /var/www and .htpasswd in /etc/apache2.

  • Go to this site and enter your desired username and a password. This should be something unique and something that's hard to guess. In the second box ( 2) ) you write /etc/apache2/.htpasswd. Leave the third box empty.

  • Paste the result in the repective files. Make sure that both files can be read by anyone, but written only by you (root/user)!


3. Now you need to make the Apache 2 server available from the internet. Follow this tutorial.

And that should be just about it.

0 kommentarer: