LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-04-2012, 06:59 PM   #1
Matthew9170
LQ Newbie
 
Registered: Jun 2012
Distribution: Arch
Posts: 3

Rep: Reputation: Disabled
Best way to stream video via a server without a website


Okay. This may be my first post on LQ but I have been comming here via Google for years. My questions is this: I have a server box running a de-Xorg version of Linux Mint 13, it has an old 80gb IDE hard drive, 5gb RAM (DDR2), Tri-core AMD cpu, an messed up intergrated g-card, I want to have the server be able to run both a MC server (say 40ppl at once) while being able for me to plug in an external HDD and have it stream video on the HDD from either in the house and around the country (USA), but the streaming will only be for people in my family (Brothers, Parents, etc...) as it will have some family related videos on it. I was thinking of doing a FTP server with it but that would defeat it because it would require you to download the video, I want it kinda how say Hulu or Youtube streams video. So is there anyway for me to do this? I already have the MC server running on it fine (Not open to public yet).

Thanks,
Matthew9170

Last edited by Matthew9170; 06-04-2012 at 07:09 PM.
 
Old 06-04-2012, 07:19 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
not sure what an mc server is. this mite help (i dont think the script is relevent to you):
http://www.linuxquestions.org/questi...2/#post4416109

Last edited by schneidz; 06-04-2012 at 07:20 PM.
 
Old 06-04-2012, 07:58 PM   #3
Matthew9170
LQ Newbie
 
Registered: Jun 2012
Distribution: Arch
Posts: 3

Original Poster
Rep: Reputation: Disabled
MC = Minecraft, that post is somewhat relevent but I want it so anyone with say the correct username / password can have access and it didn;t require xbmc.
 
Old 06-05-2012, 08:05 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
oh sorry, i thought mc was media center server...

if you want to share video, the link mentions i use sshfs to share media across the network (mite be a challenge if everyone isnt using linux).

else turn on your httpd server and give everyone a link to your files (i think most clients try to cache/ stream rather than wait for the entire download).


this mite be helpful:
Code:
[schneidz@hyper ~]$ cat ./stuff/netcat.ksh
#!/bin/bash
PL=$(find /root/user/music -name "*.mp3")
NUM=$(echo $PL |wc -w)
{
while true; do
r=$(($RANDOM%$NUM))
s=$(echo $PL |cut -d ' ' -f$r)
echo "HTTP/1.0 200 OK\nContent-Type: audio/x-mp3stream\n\n"
dd if=$s bs=1024
done
} | nc -l -s address -p 8020

Last edited by schneidz; 06-05-2012 at 08:28 AM.
 
Old 06-06-2012, 12:39 PM   #5
Matthew9170
LQ Newbie
 
Registered: Jun 2012
Distribution: Arch
Posts: 3

Original Poster
Rep: Reputation: Disabled
Well I am the only one to use Linux and yea I want to do a streaming other than redownloading. With httpd is there a way to make it password protected?
 
Old 06-06-2012, 08:46 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Do the auth inside the <Directory> sections in the main httpd.conf file, using the Require directive https://httpd.apache.org/docs/2.2/mo...html#directory.
Don't(!) use .htaccess file(s) for the reasons stated here https://httpd.apache.org/docs/2.2/ho...cess.html#when
 
1 members found this post helpful.
Old 06-07-2012, 08:24 AM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
some more reading found by googling:
http://httpd.apache.org/docs/2.0/howto/auth.html
 
Old 06-07-2012, 12:02 PM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
you could also look into vlc, it also supports the ability to stream over a network and has a way of being set up as a 'video on demand' server
 
  


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
[SOLVED] Which program to stream video? BrainCheese Linux - Software 1 04-21-2010 11:18 AM
Live Stream on Website snares Linux - Software 1 11-21-2008 12:15 PM
publish webcam stream video on website paul_mat Linux - Software 1 06-22-2006 10:19 PM
stream video from samba? greenthing Linux - Software 14 06-12-2005 01:41 AM
Capturing Video Stream suriyamohan Programming 0 03-25-2003 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:39 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