Hi, I just completed an OLPCorps deployment in Sierra Leone; we used a GPRS modem to get internet on the school server for the XOs; just a little addition to the previous discussion on CDMA/GPRS modem and pppd:
The change(from eth0 to ppp0) described by Jerry in the earlier email should be made to both the iptables.principal and iptables.principal.cache file in the /etc/sysconfig/olpc-scripts folder. The latter is the one used when squid or another caching service is turned on. Best, Faaez Ul Haq http://olpcsm.blogspot.com > Message: 1 > Date: Sat, 25 Jul 2009 11:04:11 -0500 > From: Jerry Vonau <[email protected]> > Subject: Re: [Server-devel] pppd restarting mysteriously > To: Joshua N Pritikin <[email protected]> > Cc: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain > > On Fri, 2009-07-24 at 10:47 +0530, Joshua N Pritikin wrote: >> On Fri, Jul 24, 2009 at 11:32:37AM +1000, James Cameron wrote: >> > The symptom is that your pppd receives an LCP Configuration Request from >> > the modem that attempts to begin authentication all over again. pppd >> > handles this (correctly) by shutting down the link. >> > >> > My analysis of this when I was observing the problem was that it was >> > caused by packets being sent with source IP addresses that the service >> > provider's network did not like. It might take up to 30 seconds between >> > the offending packet and the disconnection. >> >> I feel really dumb: >> >> # iptables -t nat -v -L >> >> Chain POSTROUTING (policy ACCEPT 341 packets, 24402 bytes) >> pkts bytes target prot opt in out source >> destination >> 0 0 MASQUERADE all -- any eth0 anywhere >> anywhere >> >> Where do I change the iptables rule? >> >> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE > > edit: > /etc/sysconfig/olpc-scripts/iptables.principal > > from: > -A POSTROUTING -o eth0 -j MASQUERADE > > to: > -A POSTROUTING -o ppp0 -j MASQUERADE > > Jerry On 7/26/09, [email protected] <[email protected]> wrote: > Send Server-devel mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.laptop.org/listinfo/server-devel > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Server-devel digest..." > > > Today's Topics: > > 1. Re: pppd restarting mysteriously (Jerry Vonau) > 2. can I groupinstall 'X Window System'? (Joshua N Pritikin) > 3. Re: the "first user is admin" moodle policy (Joshua N Pritikin) > 4. Re: the "first user is admin" moodle policy (Sameer Verma) > 5. Re: can I groupinstall 'X Window System'? (Martin Langhoff) > 6. Re: the "first user is admin" moodle policy (Joshua N Pritikin) > 7. Re: the "first user is admin" moodle policy (Martin Langhoff) > 8. Re: the "first user is admin" moodle policy (Sameer Verma) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 25 Jul 2009 11:04:11 -0500 > From: Jerry Vonau <[email protected]> > Subject: Re: [Server-devel] pppd restarting mysteriously > To: Joshua N Pritikin <[email protected]> > Cc: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain > > On Fri, 2009-07-24 at 10:47 +0530, Joshua N Pritikin wrote: >> On Fri, Jul 24, 2009 at 11:32:37AM +1000, James Cameron wrote: >> > The symptom is that your pppd receives an LCP Configuration Request from >> > the modem that attempts to begin authentication all over again. pppd >> > handles this (correctly) by shutting down the link. >> > >> > My analysis of this when I was observing the problem was that it was >> > caused by packets being sent with source IP addresses that the service >> > provider's network did not like. It might take up to 30 seconds between >> > the offending packet and the disconnection. >> >> I feel really dumb: >> >> # iptables -t nat -v -L >> >> Chain POSTROUTING (policy ACCEPT 341 packets, 24402 bytes) >> pkts bytes target prot opt in out source >> destination >> 0 0 MASQUERADE all -- any eth0 anywhere >> anywhere >> >> Where do I change the iptables rule? >> >> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE > > edit: > /etc/sysconfig/olpc-scripts/iptables.principal > > from: > -A POSTROUTING -o eth0 -j MASQUERADE > > to: > -A POSTROUTING -o ppp0 -j MASQUERADE > > Jerry > > > > ------------------------------ > > Message: 2 > Date: Sun, 26 Jul 2009 08:03:53 +0530 > From: Joshua N Pritikin <[email protected]> > Subject: [Server-devel] can I groupinstall 'X Window System'? > To: [email protected] > Message-ID: <20090726023353.gn15...@localhost> > Content-Type: text/plain; charset=us-ascii > > We have an LCD projector. Since we don't have a USB->VGA adapter yet, I > would like to drive projector with the schoolserver (using VNCLauncher & > ssvnc). > > The groupinstall includes dnsmasq and NetworkManager. Is it safe to > install these packages or am I asking for trouble? > > -- > American? Vote on the National Initiative for Democracy, http://votep2.us > > > ------------------------------ > > Message: 3 > Date: Sun, 26 Jul 2009 08:21:33 +0530 > From: Joshua N Pritikin <[email protected]> > Subject: Re: [Server-devel] the "first user is admin" moodle policy > To: Martin Langhoff <[email protected]> > Cc: [email protected] > Message-ID: <20090726024657.go15...@localhost> > Content-Type: text/plain; charset=iso-8859-1 > > On Fri, Jul 24, 2009 at 08:50:22PM +0200, Martin Langhoff wrote: >> On Wed, Jun 17, 2009 at 6:00 PM, Martin >> Langhoff<[email protected]> wrote: >> > ?- add the /etc/moodle/coursecreators support so that >> > ? - if it exists, even if empty, magic "first come is CC" is disabled >> > ? - it reads /etc/moodle/coursecreators looking for matching SNs (one >> > SN per line) > > I must be missing something really obvious. > > I upgraded to the latest stuff using the olpcxs-testing repo. > > I took an XO laptop and registered it with the schoolserver. This is the > first laptop to register. > > I browsed to http://school/. I got the moodle login screen. Isn't there > suppose to be some kind of autologin mechanism? > > I added the XO's serial number to /etc/moodle/coursecreators. I tried > browsing to http://school/ again. I got the some moodle login screen. > > Can somebody give me a clue? > > > ------------------------------ > > Message: 4 > Date: Sat, 25 Jul 2009 21:41:43 -0700 > From: Sameer Verma <[email protected]> > Subject: Re: [Server-devel] the "first user is admin" moodle policy > To: Joshua N Pritikin <[email protected]> > Cc: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > On Sat, Jul 25, 2009 at 7:51 PM, Joshua N Pritikin > <[email protected]>wrote: > >> On Fri, Jul 24, 2009 at 08:50:22PM +0200, Martin Langhoff wrote: >> > On Wed, Jun 17, 2009 at 6:00 PM, Martin Langhoff< >> [email protected]> wrote: >> > > - add the /etc/moodle/coursecreators support so that >> > > - if it exists, even if empty, magic "first come is CC" is disabled >> > > - it reads /etc/moodle/coursecreators looking for matching SNs (one >> > > SN per line) >> >> I must be missing something really obvious. >> >> I upgraded to the latest stuff using the olpcxs-testing repo. >> >> I took an XO laptop and registered it with the schoolserver. This is the >> first laptop to register. >> >> I browsed to http://school/. I got the moodle login screen. Isn't there >> suppose to be some kind of autologin mechanism? >> >> I added the XO's serial number to /etc/moodle/coursecreators. I tried >> browsing to http://school/ again. I got the some moodle login screen. >> >> Can somebody give me a clue? >> _______________________________________________ >> Server-devel mailing list >> [email protected] >> http://lists.laptop.org/listinfo/server-devel >> > > Make sure you update your Browse version to 102. This version has all the > bits needed to do seamless login. Do this via the Control Panel | Software > Update > > Sameer > -- > Dr. Sameer Verma, Ph.D. > Associate Professor of Information Systems > San Francisco State University > San Francisco CA 94132 USA > http://verma.sfsu.edu/ > http://opensource.sfsu.edu/ > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.laptop.org/pipermail/server-devel/attachments/20090725/cfd34c2c/attachment-0001.htm > > ------------------------------ > > Message: 5 > Date: Sun, 26 Jul 2009 11:10:34 +0200 > From: Martin Langhoff <[email protected]> > Subject: Re: [Server-devel] can I groupinstall 'X Window System'? > To: Joshua N Pritikin <[email protected]> > Cc: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > On Sun, Jul 26, 2009 at 4:33 AM, Joshua N Pritikin<[email protected]> > wrote: >> We have an LCD projector. Since we don't have a USB->VGA adapter yet, I >> would like to drive projector with the schoolserver (using VNCLauncher & >> ssvnc). >> >> The groupinstall includes dnsmasq and NetworkManager. Is it safe to >> install these packages or am I asking for trouble? > > Dunno, but just use yum to install X with a simple WM. > > > m > -- > [email protected] > [email protected] -- School Server Architect > - ask interesting questions > - don't get distracted with shiny stuff - working code first > - http://wiki.laptop.org/go/User:Martinlanghoff > > > ------------------------------ > > Message: 6 > Date: Sun, 26 Jul 2009 17:07:36 +0530 > From: Joshua N Pritikin <[email protected]> > Subject: Re: [Server-devel] the "first user is admin" moodle policy > To: Sameer Verma <[email protected]> > Cc: [email protected] > Message-ID: <20090726113736.gr15...@localhost> > Content-Type: text/plain; charset=us-ascii > > On Sat, Jul 25, 2009 at 09:41:43PM -0700, Sameer Verma wrote: >> Make sure you update your Browse version to 102. This version has all the >> bits needed to do seamless login. Do this via the Control Panel | Software >> Update > > I updated to Browse-102 from activities.sugarlabs.org using a > customization key. I am still not getting autologin. This is build 802 > sugar 0.82.1 firmware Q2E41. > > I'm suspicious about Browse because there are only 3 tabs: Activity, > Browse, and View. Where is the Edit tab? > > /home/olpc/Activities/Browse.activity/activity/activity.info reports > version 102. > > Control Panel | Software Update suggested that everything was > up-to-date. > > How do I further debug this? > > > ------------------------------ > > Message: 7 > Date: Sun, 26 Jul 2009 15:49:56 +0200 > From: Martin Langhoff <[email protected]> > Subject: Re: [Server-devel] the "first user is admin" moodle policy > To: Joshua N Pritikin <[email protected]> > Cc: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > On Sun, Jul 26, 2009 at 1:37 PM, Joshua N Pritikin<[email protected]> > wrote: >> How do I further debug this? > > On the client side: > > - find the cookies.sqlite file (which will be in one of the > 'isolation' dirs rainbow makes). Open it with sqlite3 and you should > find it has 1 table, and that table has a some cookies for the FQDN of > the XS, one of them is very obviously the authentication one, and > should have the SN of the XO. > > On the XS side. > > - there is a script -- I think /home/idmgr/list_registrations -- that > will show you who's registered successfully > > - /var/log/moodle/cron.php should show interesting output (like the > creation of the acct in Moodle, but that happens right after > registration so you may have lost that). Any errors there may be > interesting. > > - /var/log/httpd/error_log -- any errors there may be interesting... > > cheers, > > > > m > -- > [email protected] > [email protected] -- School Server Architect > - ask interesting questions > - don't get distracted with shiny stuff - working code first > - http://wiki.laptop.org/go/User:Martinlanghoff > > > ------------------------------ > > Message: 8 > Date: Sun, 26 Jul 2009 08:42:10 -0700 > From: Sameer Verma <[email protected]> > Subject: Re: [Server-devel] the "first user is admin" moodle policy > To: Joshua N Pritikin <[email protected]> > Cc: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > On Sun, Jul 26, 2009 at 4:37 AM, Joshua N Pritikin > <[email protected]>wrote: > >> On Sat, Jul 25, 2009 at 09:41:43PM -0700, Sameer Verma wrote: >> > Make sure you update your Browse version to 102. This version has all >> > the >> > bits needed to do seamless login. Do this via the Control Panel | >> Software >> > Update >> >> I updated to Browse-102 from activities.sugarlabs.org using a >> customization key. I am still not getting autologin. This is build 802 >> sugar 0.82.1 firmware Q2E41. >> > > Hmm. I vaguely remember that there was some confusion as to which copy of > Browse was going to be 102. I hope that was resolved. I use the 102 that > comes via the Control Panel's update process and my control panel update > points to the G1G1 repo. Maybe that makes the difference? > > > >> >> I'm suspicious about Browse because there are only 3 tabs: Activity, >> Browse, and View. Where is the Edit tab? >> > > I have all four tabs. > > Sameer > > >> >> /home/olpc/Activities/Browse.activity/activity/activity.info reports >> version 102. >> >> Control Panel | Software Update suggested that everything was >> up-to-date. >> >> How do I further debug this? >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.laptop.org/pipermail/server-devel/attachments/20090726/05fdae02/attachment-0001.htm > > ------------------------------ > > _______________________________________________ > Server-devel mailing list > [email protected] > http://lists.laptop.org/listinfo/server-devel > > > End of Server-devel Digest, Vol 27, Issue 29 > ******************************************** > _______________________________________________ Server-devel mailing list [email protected] http://lists.laptop.org/listinfo/server-devel
