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 1RPg0z-0001VH-Mp for garchives@archives.gentoo.org; Sun, 13 Nov 2011 19:46:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94E3A21C1D7; Sun, 13 Nov 2011 19:46:35 +0000 (UTC) Received: from mail-gx0-f181.google.com (mail-gx0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id EAA6D21C090 for ; Sun, 13 Nov 2011 19:45:38 +0000 (UTC) Received: by ggnv2 with SMTP id v2so7033925ggn.40 for ; Sun, 13 Nov 2011 11:45:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=IPIN3CXxRlu03Mdzf7sjoGGBvpq+E1AYaHG+iikZrrc=; b=eu9+4vbTSH8mrGD5wnxBJhOCQMhDixk4zxgf6WnD/p4cKlC01wAvRqvxGiAYvxCyGU JVAfUj39QjspZTXMwaAH8DV7+59LbHYV9Lu2U04lohcCZFTLH9tqaw6U7H+x/e7c9JVY AjDUJWYG1LGz6tPxxgOxa6BrIiG4GwOlMiYu0= 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.182.155.101 with SMTP id vv5mr2001742obb.41.1321213538369; Sun, 13 Nov 2011 11:45:38 -0800 (PST) Received: by 10.182.149.33 with HTTP; Sun, 13 Nov 2011 11:45:38 -0800 (PST) In-Reply-To: References: Date: Sun, 13 Nov 2011 11:45:38 -0800 Message-ID: Subject: Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ? From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 32ad4088-a11d-4c9f-85fe-21f36001f9d0 X-Archives-Hash: 5d4176ac238219079c14a15ac6fb5407 On Sun, Nov 13, 2011 at 11:16 AM, Pandu Poluan wrote: > > On Nov 14, 2011 1:25 AM, "Mark Knecht" wrote: >> =C2=A0 From browsing around a lot of pages on the web it seems that ther= e >> 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 server= s, > but I can't think of a simpler thing atm. > > Rgds, > Wow! That certainly qualifies for the simple part! The trick seemed to be to cd to the video directory before running python, but once I did that I am able to get video. One 'problem' if you will is the video isn't streaming but rather the whole file is being copied and then xine is being run. That leads to no disk space over time. Is this a function of Firefox being set up to use xine as opposed to some other app or plugin? I'd really like to understand a little more about getting it to stream instead of copy, if possible. The other thing I just tested was accessing the server using my wife's iPod Touch. It can browse to the video files but then Quicktime doesn't play them. Back in the python terminal I see a lot of message like this: ---------------------------------------- 192.168.1.243 - - [13/Nov/2011 11:44:26] "GET /H/Howard%27s%20End.m4v HTTP/1.1" 200 - ---------------------------------------- Exception happened during processing of request from ('192.168.1.243', 4945= 0) Traceback (most recent call last): File "/usr/lib64/python2.7/SocketServer.py", line 284, in _handle_request_noblock self.process_request(request, client_address) File "/usr/lib64/python2.7/SocketServer.py", line 310, in process_request self.finish_request(request, client_address) File "/usr/lib64/python2.7/SocketServer.py", line 323, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib64/python2.7/SocketServer.py", line 641, in __init__ self.finish() File "/usr/lib64/python2.7/SocketServer.py", line 694, in finish self.wfile.flush() File "/usr/lib64/python2.7/socket.py", line 303, in flush self._sock.sendall(view[write_offset:write_offset+buffer_size]) error: [Errno 32] Broken pipe ---------------------------------------- None the less it's an interesting start. Thanks!! Cheers, Mark