LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack 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
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-19-live-usb/ aix
Posts: 3,563

Rep: Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522
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
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-19-live-usb/ aix
Posts: 3,563

Rep: Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522
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
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,093

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
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
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-19-live-usb/ aix
Posts: 3,563

Rep: Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522
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,010

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
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


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
[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


All times are GMT -5. The time now is 12:53 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration