From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RPfa4-0003zv-7C for garchives@archives.gentoo.org; Sun, 13 Nov 2011 19:19:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC145E0462; Sun, 13 Nov 2011 19:18:29 +0000 (UTC) Received: from svr-us4.tirtonadi.com (svr-us4.tirtonadi.com [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id ACFAA21C1E3 for ; Sun, 13 Nov 2011 19:16:06 +0000 (UTC) Received: from mail-bw0-f53.google.com ([209.85.214.53]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1RPfXD-000V9x-Tq for gentoo-user@lists.gentoo.org; Mon, 14 Nov 2011 02:16:08 +0700 Received: by bkaq10 with SMTP id q10so6562617bka.40 for ; Sun, 13 Nov 2011 11:16:01 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.204.155.152 with SMTP id s24mr16185609bkw.5.1321211761828; Sun, 13 Nov 2011 11:16:01 -0800 (PST) Received: by 10.223.74.16 with HTTP; Sun, 13 Nov 2011 11:16:01 -0800 (PST) Received: by 10.223.74.16 with HTTP; Sun, 13 Nov 2011 11:16:01 -0800 (PST) In-Reply-To: References: Date: Mon, 14 Nov 2011 02:16:01 +0700 Message-ID: Subject: Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ? From: Pandu Poluan To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=000e0ce02e26bca5d104b1a29592 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: 7a54cb7b-5bf0-4e1d-af31-4ecb6943e3f4 X-Archives-Hash: 52dbe0a4c733e79fdeb015ff8cbc3ff6 --000e0ce02e26bca5d104b1a29592 Content-Type: text/plain; charset=UTF-8 On Nov 14, 2011 1:25 AM, "Mark Knecht" wrote: > > Hi, > Pandu asked a similar question a few days ago about serving up > files, but mostly for distfiles IIRC. It got me thinking about doing > the same sort of thing, but this time to serve up MP4 video files for > my Kindle Fire as well as other computers on _only_ my home network. > Sort of an in-house Mark's Watch Instantly setup. I've now got a few > hundred gigabyte of mp4 files ripped with Grant's suggested app > Handbrake. They look good on my desktop playing in xine. When the > Kindle Fire arrives I'd like to have a web server running on my > private network that Silk (Amazon's KF broswer) could access, possibly > presenting nothing but the alphabetical folders that the video files > are in, and then if I select one it starts streaming that file. > > My main issue isn't really the lightest in terms of memory or CPU > usage, but rather something that's VERY easy to setup the config so > that I don't have to spend much time reading manuals. > > From browsing around a lot of pages on the web it seems that there > are a number of small & light servers (in terms of memory anyway) in > portage. Some names: fnord, thttpd, boa, monkeyd & cherokee. Does > anyone know if one of those would fit my main need of just being > extremely simple to setup and keep running for this one purpose? > > Thanks in advance, > Mark > Try: python -m SimpleHTTPServer & (the trailing ampersand detaches the process and makes it run in the background) Or for something that survives a logout, try: nohup python -m SimpleHTTPServer & Of course, RAM usage will be huge compared to the lightweight HTTP servers, but I can't think of a simpler thing atm. Rgds, --000e0ce02e26bca5d104b1a29592 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Nov 14, 2011 1:25 AM, "Mark Knecht" <markknecht@gmail.com> wrote:
>
> Hi,
> =C2=A0 Pandu asked a similar question a few days ago about serving up<= br> > files, but mostly for distfiles IIRC. It got me thinking about doing > the same sort of thing, but this time to serve up MP4 video files for<= br> > my Kindle Fire as well as other computers on _only_ my home network. > Sort of an in-house Mark's Watch Instantly setup. I've now got= a few
> hundred gigabyte of mp4 files ripped with Grant's suggested app > Handbrake. They look good on my desktop playing in xine. When the
> Kindle Fire arrives I'd like to have a web server running on my > private network that Silk (Amazon's KF broswer) could access, poss= ibly
> presenting nothing but the alphabetical folders that the video files > are in, and then if I select one it starts streaming that file.
>
> =C2=A0 My main issue isn't really the lightest in terms of memory = or CPU
> usage, but rather something that's VERY easy to setup the config s= o
> that I don't have to spend much time reading manuals.
>
> =C2=A0 From browsing around a lot of pages on the web it seems that th= ere
> are a number of small & light servers (in terms of memory anyway) = in
> portage. Some names: fnord, thttpd, boa, monkeyd & cherokee. Does<= br> > anyone know if one of those would fit my main need of just being
> extremely simple to setup and keep running for this one purpose?
>
> Thanks in advance,
> Mark
>

Try:

python -m SimpleHTTPServer <port number> &

(the trailing ampersand detaches the process and makes it run in the bac= kground)

Or for something that survives a logout, try:

nohup python -m SimpleHTTPServer <port number> &

Of course, RAM usage will be huge compared to the lightweight HTTP serve= rs, but I can't think of a simpler thing atm.

Rgds,

--000e0ce02e26bca5d104b1a29592--