It's been a long time since I published anything on this blog, but here I found it so convenient that I wanted to share it.
It's been awhile since I told myself that I would need a home server that would allow me:
- Make regular backups of my important files
- Who would allow me to access my movies and music without Over
- Who would file server for easy sharing between my various PCs and my smartphone Android
- to run a small web server, allowing many to work as a software forge Indefero example. So before
:
- It is powerful enough to do all this without flinching,
- It consumes very little (22W was full but probably much less in normal use). This is important because it is designed to stay on 24/24 and 7 / 7!
- It has a battery, which eliminates the need for a UPS in case of power failure (even if autonomy is lower, ca avoids reboot at small power outages).
- The NAS does not mean that the file storage (even if I think they do better because it manages the RAID) and are really not given.
First choose an operating system (necessarily free):
- I tested FreeNAS, it's good, it works hard and is super light, it seems we can add a web server, but it requires you to format the disk because it does not support writing on FAT32 disks for example. My goal is to store, and I want to disconnect a disk and take it with me and share my files, so we forget. I also tried
- Slitaz is a lightweight ubuntu, which seems to do well for this application, but I struggled terribly to configure Samba file sharing (because there are windows PC in the house, those of my wife, I assure you ...). So I gave up.
- Finally, I chose Xubuntu, which, while remaining as user-friendly Ubuntu is still a little lighter.
Also on this kind of distribution I am fully install all the tools I need.
Here is the list:
- A LAMP server for my websites
- SAMBA to share disks across the network
- Vino to take control of the server desktop remotely
- Subsonic for streaming music ( it also works for the movie as it seems). This software is simply magic, there is even an app for Android listen to music throughout the home (WiFi) from your mobile, or even elsewhere in 3G!
- EEA-control to reduce to silence the EeePC (the fan produces a sound very boring and this app allows you to moderate it quite frankly.
- The EEEPC
- hard disks 2.5 "(I like the power supply by USB, no need for additional power supply)
suite soon ....
Installation:
Xubuntu
-----------
- Configure window host to connect automatically (to launch the VNC server remotely).
- Configure wireless network so it does demand plus the password for the WiFi connections (also to be able to connect via VNC without having to go on the computer to type the word epass).
Fi network, click edit then tick the box at the bottom "Available for all users".
- Freeze local address our future on the server box. Whenever a new computer is connected to the network, a local address is given to him (like 192.168.1.5 for example). To prevent our exchange server addresses become unreachable so it must freeze its local address in the box in the booking adsl. My home AliceBox, here's what it looks like. He must go to the configuration of the box (192.168.1.1 into the address bar of your browser).
My EEEPC has the address 192.168.1.7 (To know the type ifconfig in the console and look for wlan0 if it is wireless or wired eth0)
I will copy its MAC address (1) a new lease with the DHCP IP address I want (I would keep 192.168.1.7) by making a new entry.
From now on, the address 192.168.1.7 is reserved and will always be attributed to my server when EEEPC MAC address will be recognized by the network. Install Samba
Install vino and configure it to start at boot
Install Subsonic
--------------------- Begin by reading the instructions for installing Debian / Ubuntu here: # debian http://www.subsonic.org/pages/installation.jsp
must first install Java
sudo apt-get install openjdk-6-jre
Then, start the download and open the file to start automatically with the instalation Gdebi.
Once installed, a small boot (not absolutely necessary, but at home he helped start the server Subsonic) and it remains to go on the web page administration by entering localhost: 4040 (not work at home, I had to enter 192.168.1.7:4040) and connect with the username admin interim admin / admin. The result is to switch to French (settings> general), change the password admin, add disks (Settings> Music Folder).
He just have to install the application on your Android mobile market since and enjoy your music on your wireless network.
(Settings for access to outside).
TODO:
Find a way to stop automatically when the disks are not used. Manage
hours of starting and stopping the server (with option to force start if needed for Wake on lan
0 comments:
Post a Comment