Re: [Server-devel] revisor-2.1.8 rebuilt for F9

2009-08-07 Thread Martin Langhoff
On Thu, Aug 6, 2009 at 10:40 PM, Daniel Drake wrote:
> It didn't work. Revisor is quite tied into anaconda, and revisor takes
> advantage of various new changes in anaconda. It fails with the old
> one shipped in F9. Getting new anaconda running on F9 looks like a big
> headache.
>
> :(

Yes. Jerry and I butted heads w Revisor and Anaconda quite a bit. He's
playing with the F11 Revisor, on F11, building a F11 "minimal" plus
our packages.

Should be trivial, right?  -- the best I can summarize -- his notes
indicate that on F11 some things are solved (we can probably now
actually replace fedora-logos) but there is definitely a new batch of
interesting... ummm... behaviours.

Would "quirky" suffice? :-/

Jerry -- is it ok to forward your notes to the list? They're mighty interesting.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] iptables generation (was Re: pppd restarting mysteriously)

2009-08-07 Thread Joshua N Pritikin
Here is the script I promised Martin.
>From f7333e727d7c3d89c3f6bc727dba7061d7ae584d Mon Sep 17 00:00:00 2001
From: Joshua Pritikin 
Date: Fri, 7 Aug 2009 10:26:23 +0530
Subject: [PATCH] Automate iptable rules generation

---
 sysconfig/iptables-config   |7 +
 sysconfig/olpc-scripts/gen-iptables |   46 +++
 sysconfig/xs_wan_device |1 +
 3 files changed, 49 insertions(+), 5 deletions(-)
 create mode 100755 sysconfig/olpc-scripts/gen-iptables
 create mode 100644 sysconfig/xs_wan_device

diff --git a/sysconfig/iptables-config b/sysconfig/iptables-config
index 819d809..f22076e 100755
--- a/sysconfig/iptables-config
+++ b/sysconfig/iptables-config
@@ -7,11 +7,8 @@
 ## config settings
 SERVER_NUM=`cat /etc/sysconfig/xs_server_number`
 if [ $SERVER_NUM=1 ];then
-if [ -e /etc/sysconfig/xs_httpcache_on ]; then
-	IPTABLES_DATA=/etc/sysconfig/olpc-scripts/iptables.principal.cache
-else
-	IPTABLES_DATA=/etc/sysconfig/olpc-scripts/iptables.principal
-fi
+IPTABLES_DATA=/etc/sysconfig/olpc-scripts/iptables-xs
+/etc/sysconfig/olpc-scripts/gen-iptables > $IPTABLES_DATA
 fi
 
 # Load additional iptables modules (nat helpers)
diff --git a/sysconfig/olpc-scripts/gen-iptables b/sysconfig/olpc-scripts/gen-iptables
new file mode 100755
index 000..e67cdfa
--- /dev/null
+++ b/sysconfig/olpc-scripts/gen-iptables
@@ -0,0 +1,46 @@
+#!/usr/bin/python
+
+import re;
+import os;
+import logging;
+
+#sysconfig = './'   # for testing
+sysconfig = '/etc/sysconfig/'
+
+wan = 'eth0'
+try:
+ conf = sysconfig + 'xs_wan_device'
+ file = open(conf)
+ wan = file.readline()
+ wan = re.sub(r'\s$', '', wan)
+except IOError:
+ logging.warning(conf + " not found, assuming "+wan)
+ 
+try:
+ conf = sysconfig + 'xs_httpcache_on'
+ os.stat(conf)
+ squid = 1
+except OSError:
+ squid = 0
+
+#print("wan="+wan+" squid=%i" % squid)
+
+print '''\
+*nat
+:PREROUTING ACCEPT [0:0]
+:POSTROUTING ACCEPT [0:0]
+:OUTPUT ACCEPT [0:0]'''
+
+if squid:
+ for inf in ('lanbond0', 'mshbond0', 'mshbond1', 'mshbond2'):
+  print '-A PREROUTING -i %s -p tcp --dport 80 -j REDIRECT --to-ports 3128' % inf
+
+print '-A POSTROUTING -o %s -j MASQUERADE' % wan
+
+print '''\
+COMMIT
+*filter
+:INPUT ACCEPT [0:0]
+:FORWARD ACCEPT [0:0]
+:OUTPUT ACCEPT [0:0]
+COMMIT'''
diff --git a/sysconfig/xs_wan_device b/sysconfig/xs_wan_device
new file mode 100644
index 000..d4398d5
--- /dev/null
+++ b/sysconfig/xs_wan_device
@@ -0,0 +1 @@
+ppp0
-- 
1.6.0.6

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] [Sugar-devel] Backup and Restore for Sugar on a Stick

2009-08-07 Thread Tomeu Vizoso
On Thu, Aug 6, 2009 at 15:29, Caroline Meeks wrote:
> This email is especially for Miguel Salazar and the Chiapas deployment.
> The code for backup and restore of Sugar Sticks using the XS is awaiting
> code review, if you can please test it.
> http://dev.sugarlabs.org/ticket/916
> http://dev.sugarlabs.org/ticket/1124

Is it intended to be integrated in Sugar? Or only for SoaS?

If it's for Sugar, then please follow the review process outlined here:

http://wiki.sugarlabs.org/go/Development_Team/CodeReview

Thanks,

Tomeu

> Thanks,
> Caroline
>
> --
> Caroline Meeks
> Solution Grove
> carol...@solutiongrove.com
>
> 617-500-3488 - Office
> 505-213-3268 - Fax
>
> ___
> Sugar-devel mailing list
> sugar-de...@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel