[Freedombox-discuss] freedombox.img with qemu

Markus Sabadello markus.sabadello at gmail.com
Sun Sep 23 19:55:15 UTC 2012


I'd also be interested in accessing Plinth from a non-localhost address.
With your fix below, I can indeed access it remotely from a browser.

But as others have noted before, the links in the UI still don't work:
http://lists.alioth.debian.org/pipermail/freedombox-discuss/2012-April/003688.html

For example, my Dreamplug is on http://172.16.0.199:8000/, and I can access
that just fine.

The links in the UI look like this:
http://172.16.0.199:8000/privacy
http://172.16.0.199:8000/sharing
http://172.16.0.199:8000/apps

But once I click on them, I get redirected to 127.0.0.1 and never get to
the actual page.

Any idea?

There seem to be lots of hardcoded references to 127.0.0.1 in the Plinth
code, not quite sure where to start..

Markus

On Sat, Sep 22, 2012 at 5:07 AM, Nick M. Daly <nick.m.daly at gmail.com> wrote:

> "tornow at riseup.net" <tornow at riseup.net> writes:
>
> > On Sun, 16 Sep 2012 12:00:23 +0000
> >>  Re: freedombox.img with qemu
> >
> > After a couple of days, and help from another user,  the best i could
> > find is using chroot and qemu-arm-static, after "unpacking" the img with
> > parted and dd...
> >
> > I am not sure if that is of any use, because i couldn't find a way to
> > make the chroot act as if it was an external device yet
> > (i would like to test freedombox-privxoy and plinth in the local
> > browser).
>
> It might be easier to just change Plinth to answer to public requests so
> you can use the more recent VirtualBox image.  The following (UNTESTED)
> code might fix that.  I'll see if I can't fix this properly for both
> privoxy and Plinth this weekend.  I can't guarantee I'll have the time,
> though.  Anybody else want to take a crack at it?
>
> Apply this to Plinth by running ``patch -p1 < public-plinth.diff``,
> after you save the below as "public-plinth.diff".
>
> /--
> |
> | diff --git a/plinth.py b/plinth.py
> | index adab110..fce2700 100755
> | --- a/plinth.py
> | +++ b/plinth.py
> | @@ -116,12 +116,12 @@ def setup():
> |
> |     # Add an extra server
> |     server = _cpserver.Server()
> | -   server.socket_host = '127.0.0.1'
> | +   server.socket_host = '0.0.0.0'
> |     server.socket_port = 52854
> |     server.subscribe()
> |
> |     # Configure default server
> | -   cherrypy.config.update({'server.socket_host': '127.0.0.1',
> | +   cherrypy.config.update({'server.socket_host': server.socket_host,
> |                             'server.socket_port': cfg.port,
> |                             'server.thread_pool':10,
> |                             'tools.staticdir.root': cfg.file_root,
> |
> \--
>
> _______________________________________________
> Freedombox-discuss mailing list
> Freedombox-discuss at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/freedombox-discuss/attachments/20120923/2b1e6bcb/attachment.html>


More information about the Freedombox-discuss mailing list