LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-30-2011, 10:26 PM   #1
ahzthecat
Member
 
Registered: May 2010
Location: Japan
Distribution: Slackware 13.37, Slackware 14, Wind0z8, Ubuntu 12.10
Posts: 156

Rep: Reputation: 9
New Slack 13.37 server setup help/advice?


Hey Slackerz, here's my question.

I just acquired a 1.5Tb Hdd which I am sticking in an old desktop to make a home net portal and server. I'd like to share files between the server and my various linux boxes, as well as my wife's XP and w7 laptops. For this I plan to use Samba. I'd also like to use the box as my media library, streaming video (using VLC?) I'm assuming if I can connect to the box over the home network I'll be able to read write and stream media files easily.

I'm also toying with the idea of installing Apache and hosting a website from the same box.

I'd also like to be able to ssh in remotely, and allow for sending files via ftp.

I've got the hardware set up, the drive is partitioned in to /, swap, and /home. I'm going in for a full Slackware 13.37 install, but from there I'm not sure exactly how to proceed.

Any advice, tips, warnings? Is this plan even feasible? All feedback is welcome.

Cheers!
-AtC
 
Old 04-30-2011, 10:41 PM   #2
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 239

Rep: Reputation: 31
Slackware has all the tools you need for your setup. For streaming, you can try icecast and ices0 available from slackbuilds.org. For ftp, check out vsftp.
 
Old 05-01-2011, 09:47 AM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Before starting in earnest, make sure you can ping both ways with all machines.

Configure your server's NFS export file and then test connecting to those mount points. After testing modify the client fstabs.

When configuring Samba, be careful with little nuances such as preserving case, name mangling, etc.

If you are going to stream videos, consider a separate partition and using XFS. I use a separate partition and XFS on my HTPC. That file system handles large files much better than ext3/4.

For SSH, public keys are easier to work with than passwords. That also helps with any tasks you might want to automate through scripts.

Are you going to share printers from this machine? For the Windows machines you'll want to allow raw support and enable application/octet-stream in /etc/cups/mime.types. The Windows machines will print to a network printer share through Samba. With raw support CUPS will pass the data straight through.

Have you considered backups of all this precious data? I use a removable SATA drive bay for weekly backups and a fire-proof safe to hold the backup drive. SATA II supports hot swapping the disk without powering off the machine. I use a second internal drive to backup key user and system files. Should I cause my own headaches with any such file I can restore the file quickly right at the system. I run those backups every three hours. I use rsnapshot for both, which uses rsync and hard links to save a lot of storage space. I keep my video DVDs in a safe storage place and exclude those files from the backups to help save space. I can restore those disk images from the original DVD if necessary, although that never has happened.

I keep all of my video files on my HTPC owned by root:root. I have a directory for TV recordings and that is the only place normal users can delete files. Same with music files. You might want to do the same for most files except user files. Using root:root simply avoids fat finger problems.
 
Old 05-01-2011, 10:45 AM   #4
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
For file sharing between your server and your Win7 machines, I would use (and indeed do use) minidlna. It works to stream stuff to Xbox and PS3. It's actually what the netgear stora uses for filesharing.

Last edited by manwichmakesameal; 05-04-2011 at 08:47 AM. Reason: Removed link. Eric has the link to the original.
 
Old 05-01-2011, 11:02 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by manwichmakesameal View Post
I have a slackbuild for it here.
Actually, that's a copy of my own script ;-)
You can find the original at http://slackware.com/~alien/slackbuilds/minidlna/ and mind the ffmpeg dependency.

Works nicely, however I switched to mediatomb for the scripting abilities it has (I can not get minidlna to stream subtitle file (.srt) to my television. My kid needs the dutch subtitles). With mediatomb, I transcode the video on the fly file while streaming, imprinting the subtitle onto the video.

Eric
 
Old 05-01-2011, 11:33 AM   #6
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
I actually just noticed that. Sorry eric.
 
Old 05-01-2011, 09:06 PM   #7
ahzthecat
Member
 
Registered: May 2010
Location: Japan
Distribution: Slackware 13.37, Slackware 14, Wind0z8, Ubuntu 12.10
Posts: 156

Original Poster
Rep: Reputation: 9
Wow, thanks for the advice fellers! Lots to keep me busy over my spring break. Installing Slackware now...actually waiting for the disk to finish formatting. Went for a full format with bad sector checking on the home partition (1.3Tb), started yesterday afternoon, still hasn't finished yet. Starting to worry... Is this normal?
 
Old 05-01-2011, 10:01 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Formatting with bad sector check really can take a lot of time, especially on such large harddisks. I never use it, since modern drives are SMART-compatible and can easily be checked if they have found bad sectors in normal use.
Yes, this is normal.
 
Old 05-02-2011, 01:12 AM   #9
ahzthecat
Member
 
Registered: May 2010
Location: Japan
Distribution: Slackware 13.37, Slackware 14, Wind0z8, Ubuntu 12.10
Posts: 156

Original Poster
Rep: Reputation: 9
Glad to hear that...next time I'll just quick format. Another quick question ... I'm planning to install the server between the modem and router. Good idea or bad?
 
Old 05-02-2011, 01:31 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Why are you trying to do that? What advantages will a setup like that have? I personally wouldn't do that, but may be I am missing a point here.
 
Old 05-02-2011, 06:56 AM   #11
ahzthecat
Member
 
Registered: May 2010
Location: Japan
Distribution: Slackware 13.37, Slackware 14, Wind0z8, Ubuntu 12.10
Posts: 156

Original Poster
Rep: Reputation: 9
I saw a network diagram that was set up that way and figured that was the normal thing. Seems like it would increase load on the server though. I'd rather have everything communicating via the wireless router...I'll just plug it into the LAN and see where that gets me. If its finished formatting that is
 
Old 05-02-2011, 08:40 AM   #12
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by ahzthecat View Post
Wow, thanks for the advice fellers! Lots to keep me busy over my spring break. Installing Slackware now...actually waiting for the disk to finish formatting. Went for a full format with bad sector checking on the home partition (1.3Tb), started yesterday afternoon, still hasn't finished yet. Starting to worry... Is this normal?
One small thing.. I dearly hope you aren't using EXT4 for this partition. With disks over 500G or so EXT filesystems are terribly wasteful. I recommend using XFS. For my own uses all of my slackware installations are on EXT4 and all of my large storage disks/paritions are XFS.
 
Old 05-03-2011, 02:50 AM   #13
ahzthecat
Member
 
Registered: May 2010
Location: Japan
Distribution: Slackware 13.37, Slackware 14, Wind0z8, Ubuntu 12.10
Posts: 156

Original Poster
Rep: Reputation: 9
Wouldn't you know it, Ext4 is exactly what I'm using. Not really up on the differences between file systems, and the installer defaults to Ext4 so I figured that would be fine. XFS is the way to go for large partitions? Would it hurt anything if I stopped the installer while its checking the disk and restart? (Still checking, BTW, almost 48 hours have elapsed...)
 
Old 05-03-2011, 03:29 AM   #14
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
You'll need to start from scratch.. but assuming you choose XFS and no bad-block checking, formatting the file-system should take seconds only.
 
Old 05-03-2011, 06:46 AM   #15
ahzthecat
Member
 
Registered: May 2010
Location: Japan
Distribution: Slackware 13.37, Slackware 14, Wind0z8, Ubuntu 12.10
Posts: 156

Original Poster
Rep: Reputation: 9
I think I'll give that a shot then. Tired of waiting for the damn partition to finish formatting. Keep you all posted on how things go...
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
server setup advice on raid and encryption wincen Linux - Newbie 3 01-05-2011 04:00 AM
need advice to setup a file server achla Linux - Server 11 10-22-2010 01:31 AM
Needs some advice on building a web server setup wakkana12 Linux - Server 5 04-01-2010 07:43 AM
Need advice on server setup zogthegreat Linux - Server 3 09-14-2009 11:17 PM
Home Server Setup - General Advice? cdrom600 Linux - Newbie 12 02-14-2007 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:08 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration