Re: [Freedombox-discuss] Virtual Machine Scripting and Tiny Tiny RSS

2013-06-29 Thread Michael Williams
what about Docker (http://www.docker.io/) for the VMs?


On Sun, May 19, 2013 at 5:13 PM, Sean Alexandre  wrote:

> I went to a presentation this past weekend about Tiny Tiny RSS. It's an
> RSS web
> app that can be installed on a server, to provide something like a "Google
> Reader" app.
> (The title of the presentation was "The Coming Google RSS Reader
> Apocalpyse", at
> BarCampRDU 2013.)
>
> The presenter has Tiny Tiny RSS running on a machine at home, and is
> providing service
> for himself and some family and friends. He's even written a
> keyboard-centric web frontend:
> https://github.com/cgrinds/dripdripdrop
> He runs Tiny Tiny RSS as the backend, and then serves up pages based on
> the front end he's written.
>
> Tiny Tiny RSS is listed on the FreedomBox LeavingTheCloud page:
> http://wiki.debian.org/FreedomBox/LeavingTheCloud
>
> This got me thinking about how I'd like to Tiny Tiny on the machine I've
> got at home.
> Currently it's running ownCloud, WordPress, a Tor Relay, and BitTorrent.
> They run on
> separate VMs. I'd like to run Tiny Tiny RSS too, and want to put it in a
> separate VM.
>
> Ideally I'd have a script I could run, that just spins up a new VM running
> Tiny Tiny.
> It would be something like:
>
> freedombox-vm create tiny-tiny-rss [instance-name] [config-script-file]
> freedombox-vm start [instance-name]
>
> The VMs would run using KVM. Here's an interesting post on this, from this
> past week:
>
> How to get started with libvirt on Debian
> http://rabexc.blogspot.com/2013/05/how-to-get-started-with-libvirt-on.html
>
> I want to dig into this as a next project, after some other things I'm
> working on.
> I thought I'd put it out there to get any thoughts other might have on
> this, and
> find out if anyone else is doing something similar.
>
> Ultimately, it seems this kind of approach would be a good one for
> FreedomBox in
> general. The process of spinning up instances would be hidden behind the
> FreedomBox
> web UI, but a user would essentially be doing things such as
> "freedombox-vm create"
> and "freedombox-vm start".
>
> This way, services are better insulated from each other, for better
> security.  The
> host machine would probably be doing basic network services (dhcpd,
> dhclient, iptables,
> etc.) But then there would be a separate VM for user services such as an
> RSS reader,
> social networking, chat, etc.
>
> To take this one step further, the longer term goal would be to do
> something similar to
> what Qubes is doing with things such as temporary VMs -- VMs created
> temporarily for
> just one task and then discarded:
> http://www.qubes-os.org/
>
>
> ___
> Freedombox-discuss mailing list
> Freedombox-discuss@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss
>
___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

Re: [Freedombox-discuss] Virtual Machine Scripting and Tiny Tiny RSS

2013-06-29 Thread Nick Daly
Nick Hardiman  writes:

> Do you have a rundown yet of how to 
> * stick exmachina (http://gitorious.org/exmachina) at the back, 
> * proxy (http://www.privoxy.org, 
> https://github.com/jvasile/freedombox-privoxy) in front, and 
> * various apps into LXC?

From a higher-level, this should probably be configured in
Freedom-Maker's bin/projects-chroot script.  As for the individual
tasks:

- Gluing EM into Plinth: I believe that's complete.

- Gluing Privoxy into Plinth: Incomplete.

- Gluing LXC into Plinth: Incomplete.

Nick


pgprYlGIjTK0J.pgp
Description: PGP signature
___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

[Freedombox-discuss] Freedom-Maker Booted Cues?

2013-06-29 Thread Nick Daly
So, one of the most annoying things about the DreamPlug is that it's
nearly impossible to tell when it's finished booting.  Anyone who's
interested in getting started on contributing code to FreedomMaker could
fork it and create a "signal-running.sh" file that used Festival or the
blinkenlights (particularly the currently unused Bluetooth light) to
signal "hey, I've booted!" or to read off the system's current IP
address (easier through audio with Festival, maybe Morse-code for the
lights?) when it finishes booting.

All you'd have to do is to create an /etc/init.d/signal-running.sh file
in the /source directory and add a symlink like
/etc/rc2.d/99-signal-running that points to the file.

To blink the lights:

$ echo 1 > `eval ls /sys/class/leds/guruplug\:green\:wmode/brightness`

$ echo 0 > `eval ls /sys/class/leds/guruplug\:red\:wmode/brightness`

Thought that might be a fun, zany little idea that someone might enjoy
building.

Thanks for your time,
Nick


pgpvCxQek1Dfk.pgp
Description: PGP signature
___
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss