LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 03-08-2006, 10:23 AM   #1
giantjoebot
Member
 
Registered: Mar 2006
Posts: 41

Rep: Reputation: 15
Need advice on turning an old P2 into a file/media server


I am about to embark on a project of turning an old Pentium 2 based HP with a 192mb of ram into a file/media server. I have never even used Linux, and know very little about it, but have always wanted to use it.

Here is what I mean by a file/media server: Basically I just want to setup a file server with samba workgroup file sharing, be able to access it remotely, and use azures remotely. In order to run azureus I need to run JRE runtime.

Why I want to do it: I download a lot of bittorrents, and have a large music collection thats all stored on my desktop. I also watch a lot of content, and listen to music on my modded xbox through my network. This all takes resources on my desktop, and it has to be running almost all the time with a 500 watt power supply. If I build the server than I can have it running all the time with 110 watt power supply.

This is what I already have planned: I already have figured out a way to mod the case to run 2 hard drives. I'm also going to mod it for better cooling. I plan on buying a cheap SATA RAID card for around $20-$25, a gigabit ethernet card for about $15-$20, and running 2 160 gig SATA drives in RAID0.

This is what I would like advice on if people would be so kind: What distro should I run? I'm looking for something easy since I've never done this before. Any advice on which RAID card or gigabit network adapter card to buy would be helpful. And any links with tutorials or anything like that would be great. There are a few remote access plugins for azureus, which one should I use? I was thinking of going with Telnet access.

Any advice at all is very much appreciated!

Last edited by giantjoebot; 03-08-2006 at 11:16 AM.
 
Old 03-08-2006, 11:47 AM   #2
conn-fused
Member
 
Registered: Jun 2004
Posts: 124

Rep: Reputation: 15
OK, this isn't a small topic is it? But hopefully this will get you started:

Plan your network:
You've given some thought to your hardware, but you haven't told us how you want to structure your little network. For what you want to do, my recommendation would be to connect your internet to the Linux box and then connect the Linux box to a switch/hub. Your Windows(?) box can plug into the same switch/hub and share the Linux box's connection. The reason this is good is that your Linux box can work as a router, providing extra protection for your Windows machine. This is especially good if you're using an ADSL modem or other connection method that doesn't act as a hardware firewall.

What distro:
If you're completely new to Linux, I'd use either Mandriva 2006 or Fedora Core 4. Both have simple installation procedures and easy-to-use "package management systems" (which means you can avoid compiling things from source - not that compiling is difficult or frightening - but it's one less thing to think about at this stage). For now, avoid the distros with a steeper learning curve like Debian, Gentoo, and Slackware.

What RAID card:
It's good that you're thinking about this now rather than later. RAID can be tricky. The best thing to do is to check the hardware compatibility lists for the distros you're interested in. Get a card that others have succeeded with in the past.

Samba:
This will be easy. Once your Linux box is up and samba is installed, you just edit the /etc/samba/smb.conf file to define a share, and give a Linux user a samba password with the smbpasswd command. Then, on Windows, you just make a link to \\LinuxBox\whatever_share. When you access this share it will ask you for your username and password, and then it's just like having another window open in explorer. But you'll get much clearer advice by searching for "Samba HOWTO" on any search engine.

Shell access:
No telnet. Telnet is not secure. Use ssh on the Linux box for encrypted shell access. You can get a freeware ssh client for Windows called PuTTY.

Azureus:
I don't know so much about this. I certainly can't advise on remote plugins. Another option (which I also don't know much about) is a program called Cygwin. It will allow you to display X windows on your Windows machine, so you could actually relay the display.

Hopefully that's some help. If/When you have more questions, post them!
 
Old 03-08-2006, 12:57 PM   #3
giantjoebot
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
My network is pretty basic. Iv'e got 2 XP machines and my modded xbox all connected to a Dlink gameing router with a built in gigabit switch. I have my broadband connection just pluged into the wan port of the router, but the router does have a built in firewall (so does my nforce4 ultra board, but I don't use it because I've had problems with it). Its also got wireless for my laptop. I plan on just connecting the server to the remaining port.

I was going to use telnet just for azureus. Its really important to be able to remote access azureus because bittorrents really fragment your dirve. Otherwise I got to look up the torrent with the server ect. I think if I use azureus with remote access then its like I'm just using it on my desktop except all the work is being done by the server, but I could be wrong. I don't think that security has to be a huge issue with that either since its going to just be on my personal home network. Its cool if no one knows the answer to that question. I was thinking that it would probably be more suited for an azureus forum then here. I'll find out one way or another, I ussually do.

I've alread been looking into the hardware, and found some that sound good. Just wondering if anyone has had any good or bad experiencies with a particular hardware, and wanted to make a recomendation.

I have looked at SAMBA how to's but they were kinda confusing for me. Plus they always said that they were for this or that distro. And I wasn't sure if it was the same for all distros.

I really apperciate your post conn-fused. Thanks

Sorry if this doesn't sound right. I'm really tired, and about to go to sleep.

Last edited by giantjoebot; 03-08-2006 at 02:46 PM.
 
Old 03-08-2006, 03:36 PM   #4
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: SimplyMEPIS 6.0, openSuSE 10.2
Posts: 90

Rep: Reputation: 15
For a Linux distribution I suggest SimplyMEPIS. It is a live CD based on Debian and easily and quickly (<10 minutes) installs to hard disk. It has both Azureus and SAMBA already installed and configured, and many other goodies. It's a great way to be introduced to Linux.

I have had serious problems with both Mandriva and Fedora but if either of them works for you, more power to you!
 
Old 03-09-2006, 12:16 AM   #5
giantjoebot
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
That sounds great. I wonder how it is on RAID arrays. Do you still have to edit the /etc/samba/smb.conf file to define a share.

Last edited by giantjoebot; 03-09-2006 at 12:40 AM.
 
Old 03-09-2006, 01:23 AM   #6
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 46
Also, if you are running this as a dedicated server, you should not run X on it (i.e. runlevel 3); that will save a lot of RAM.
 
Old 03-09-2006, 02:07 AM   #7
giantjoebot
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
The only thing besides using it as a server that I'm going to use it for is to run azureus. I tried to find out if I could run it without running X, but could not find a definite answer. I guess that I will find out when I get to that point.
 
Old 03-09-2006, 02:17 AM   #8
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 46
Quote:
Originally Posted by giantjoebot
The only thing besides using it as a server that I'm going to use it for is to run azureus. I tried to find out if I could run it without running X, but could not find a definite answer. I guess that I will find out when I get to that point.
Well if you are running it remotely, you don't need X on the machine (you only need the X on your machine).
 
Old 03-09-2006, 02:47 AM   #9
giantjoebot
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
Right on! Yeah, that old P2 with SD ram is going to need all the resources that it can get. I just think this is a good rout to go. You know, I looked into the new network external drives, but I hear that they are slow on transfers. This way I can run it at 1gb/s transfer, runazureus on it, and run a RAID. And since I got the old P2 for free its actually going to be cheaper. I'm thinking about documenting the process and posting it on the web when I'm done becuse I think other people might want to do the same thing.
 
Old 03-09-2006, 07:17 AM   #10
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: SimplyMEPIS 6.0, openSuSE 10.2
Posts: 90

Rep: Reputation: 15
Quote:
Originally Posted by giantjoebot
That sounds great. I wonder how it is on RAID arrays. Do you still have to edit the /etc/samba/smb.conf file to define a share.
I have not tried RAID---I don't have enough drives.

You don't need to edit smb.conf to make a file or directory shareable. You can use Konqueror (the KDE file manager) to make any file or directory shareable. In addition MEPIS has a few directories that are shareable by default; a soft link in any of these directories will make its target shareable.
 
Old 03-09-2006, 07:32 AM   #11
giantjoebot
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
If I can I might just map the whole thing as a network drive.

Last edited by giantjoebot; 03-09-2006 at 07:58 AM.
 
Old 03-28-2006, 10:19 AM   #12
giantjoebot
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
I've been trying to look into RAID cards, and how to install them in Linux, but havn't had much luck. Is it really that hard to configure a RAID on Linux.
 
Old 03-28-2006, 06:06 PM   #13
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
If it's a hardware RAID card then there should be no configuration in linux really. Also azureus won't run without X, I believe it has a CLI client but it doesn't work real well but that's okay cause azureus is overrated anyway. rtorrent is a fantastic CLI bittorrent app, I'd suggest that, admin the machine via ssh over the network and use samba to share something like /share so you can easy move stuff to and from the machine. Sharing / isn't the best idea IMO.
 
Old 03-29-2006, 01:50 AM   #14
giantjoebot
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
But with azureus I can use a remote plugin, and I won't have to access the whole OS to download a torrent.
 
Old 03-29-2006, 08:31 AM   #15
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
But with SSH, you can access the whole OS remotely and do whatever you like without directly accessing the computer. It's an addictive technology
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux as file server/media gateway nashallen Linux - Newbie 4 12-19-2005 04:54 PM
New user: Want to set up a linux media file server/myth box Disorder Linux - General 2 11-08-2005 10:58 AM
Media plugin advice for firefox coffeedrinker Slackware 9 10-07-2005 10:27 PM
Need advice on turning in hacker cli_man Linux - Security 16 03-15-2005 09:59 AM
File Server Hardware Advice PDD Linux - Hardware 2 12-14-2004 01:15 PM


All times are GMT -5. The time now is 03:30 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration