Re: [Server-devel] Moving toward headless install on trimslice

2013-11-17 Thread Jerry Vonau
On Sun, 2013-11-17 at 17:01 -0500, Tim Moody wrote:
 How does the os get onto the trimslice?
 

zcat it onto a SDcard,

 How do you sudo if the only known user is not a sudoer?
 

use su, and the default password setup in the image.

Jerry

 Date: Sat, 16 Nov 2013 12:12:33 -0500
 From: George Hunt georgejh...@gmail.com
 To: XS Devel server-devel@lists.laptop.org
 Subject: [Server-devel] Moving toward headless install on trimslice
 for XSCE
 Message-ID:
 cadfccpv5g3dyxd5mh5qkyxr8hmlzca_dde+yzou73b0njm-...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1
 
 I'm wanting to do the following:
 
- Get rid of the autologon to root at console tty.
- Add a non privileged user (not a sudoer, not wheel), as we had
pre-ansible, (user:admin,pw:12admin), so that the sshd config of
permitrootlogon no can remain in place.
- enable password authentication
- Configure avahi to announce, so that in a trimslice situation, we can
easily determine the remote sshd target ip.
 
 What do people think?
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] aliases for hacking on our XSCE school server

2013-10-27 Thread Jerry Vonau
On Sun, 2013-10-27 at 13:20 -0500, Samuel Greenfeld wrote:
 I know that XSCE currently does some customizations, but personally I
 would prefer to see the normal installation process not modify shell
 aliases or prompts unless explicitly told to.
 

I agree.

 These are more of a user preference than anything necessary for XSCE
 to function. 

+1

 XSCE eventually should not act or install as if it is the sole role
 for a computer even if that is the most common use case.
 

Jerry

 ---
 SJG
 
 On Oct 27, 2013 10:59 AM, George Hunt georgejh...@gmail.com wrote:
 I recently pushed an xs profile to github that will start fine
 tuning the working environment on the XSCE Now I'm thinking
 that I should add and collect some functions and aliases which
 make working with ansible playbooks and github, easier, and
 require fewer keystrokes.
 
 
 So far I've thought of:
 runal = runansible $1 -- runansible-playbook with verbose
 diagnostic ouput to $1 logfile.
 gc $1 $2= git clone github.com/$1/xsce.git --depth=10 $2 --
 for quickly getting our own testing branch down to a unit
 under test
 pullum = git checkout master;git pull upstream master ( might
 need to test whether the first command succeeds before
 executing the second)
 pushob = git push origin $1(branch)
 
 
 The following aliases are currently available - though not
 collected into one place in the profile
 sr = systemctl restart $1
 st = systemctl status $1
 vlm = less /var/log/messages
 du1 = du --max-depth=1 .
 psg = ps -e|grep $1
 
 
 I'm willing to collect everyone's ideas, test them, and update
 the system profile.
 
 
 Send me your suggestions.
 
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel
 
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] [XSCE] Re: XSCE Proposal | Moving to github and notifications

2013-10-13 Thread Jerry Vonau
On Sun, 2013-10-13 at 18:20 -0400, Tim Moody wrote:
 +1 for the move.  I guess you need to be careful with the timing so
 you don’t end up with the repo offline during the sprint, but if you
 feel confident in that then go for it.
  

+1 motion carried, lets proceed. Now the question is working with merge
requests, how are we going to handle that?

Jerry

 ___
 Change of Address
 
 timmo...@sympatico.ca is now t...@timmoody.com
 
 Please change your bookmarks. Thanks.
 ___
 
  
 From: Anish Mangal 
 Sent: Sunday, October 13, 2013 2:11 PM
 To: Martin Dluhos ; xsce-devel 
 Cc: server-devel 
 Subject: [XSCE] Re: [Server-devel] XSCE Proposal | Moving to github
 and notifications
  
 *If* there is consensus on moving to github, should be think about
 making the switch before the hacksprint in SF? It might save us some
 time as then we would have set-up the buildbot, etc.  
  
 On the other hand, if there isn't consensus, maybe the hacksprint
 would be a good opportunity to try github out. 
 
 
 On Wed, Oct 9, 2013 at 8:30 AM, Martin Dluhos mar...@gnu.org wrote:
 On 10/09/2013 11:13 AM, Anish Mangal wrote:
  I think that it would be more appropriate to send
 notifications of merged pull
   requests rather than individual commits to avoid too much
 noise on the channel.
   Those who are interested can always follow the pull
 request link to access
   individual commits.
  
  I would prefer notifications for pull requests *both* when
 they are
  created and when they are merged. The creation of the pull
 request
  will sort of open a review and test window for people
 willing to do
  that, so notifying that event is necessary IMO.
 
 
 Very good point. I agree.
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel
 
  


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


Re: [Server-devel] Fwd: XS-CE Setup Issue

2013-10-07 Thread Jerry Vonau
On Mon, 2013-10-07 at 12:45 -0700, Anish Mangal wrote:
 Hi,
 
 
 I got this email for an error log of a xsce-0.4, 64 bit installation.
 Any ideas?
 
 
 (I've asked the person concerned to join server-devel, so he can ask
 questions directly in the future).
 
 
 Best,
 Anish
 
 -- Forwarded message --
 From: John Lillis johnmichael...@gmail.com
 Date: Fri, Oct 4, 2013 at 12:09 PM
 Subject: XS-CE Setup Issue
 To: Anish Mangal an...@activitycentral.com
 
 
 Hey Anish,
 
 
 I am trying to setup a small testing server for XS-CE 0.4, but I'm
 getting an error after running xs-setup. I am using Fedora 18 XFCE
 64-bit within a VM. The error can be seen
 here: http://pastebin.com/0H2BNAk7.
 
 
 Thanks in advance,
 
 


./startup.sh: line 233: [: sysadmin:x:1000:1000:System: unary operator
expected
chown: invalid user: ‘admin:admin’

line 233: 
# make a non privileged user, and give her remote access
if [ ! `grep $DEFAULTUSER /etc/passwd` ]; then
adduser $DEFAULTUSER
echo $DEFAULTPASSWORD | passwd $DEFAULTUSER --stdin

The code needs to be re-done to prevent a string being returned when the
test is expecting a number to be returned.

This doesn't address the fact that you can have a 'sysadmin' user and a
'admin' user at the same time. Maybe a better test would be to see if
the 'admin' user has a home directory created already before creating
the 'admin' user account.

Jerry


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


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


Re: [Server-devel] [support-gang] Problems with the School Server and IIAB

2013-09-05 Thread Jerry Vonau
On Thu, 2013-09-05 at 06:49 -0700, Braddock wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 School Server Experts,
 
 We are trying to deploy an Internet-in-a-Box (IIAB) network appliance
 to an OLPC and XS school in Pakistan. (http://internet-in-a-box.org)
 
 I need help getting them instructions so they can access the device
 using their School Server XS 0.7
 
 The IIAB appliance gets an DHCP lease on startup from their XS 0.7 server.
 
 The IIAB appliance registers its name with the DHCP server as know.
 
 In THEORY, on the XS, dhcpd should register the name know with the
 named DNS server (ddns-update-style is set in /etc/dhcpd-xs.conf on my
 own XS installation).  Then students can access the IIAB appliance at
 http://know
 
 - From their reports, this appears to work initially, but after some
 time (DHCP lease expires?) it stops working.
 
 I'm looking for a simple solution to communicate to them to assign the
 IIAB appliance a fixed IP address.  It is currently not (safely)
 possible to configure the IIAB appliance for a static IP.  Then they
 can just refer to it by IP.
 
 I assume it should look something like:
 host know {
  hardware ethernet 00:03:6D:00:83:CF;
  fixed-address 172.18.97.10;
 }
 added to /etc/dhcpd.conf
 

Add that to the template file /etc/dhcpd-xs.conf.in 

xs-domain-config this replaces the domain name marker in the template
while copying the file to /etc/dhcpd-xs.conf
 
reload/restart dhcpd

Jerry

 But with my very limited School Server experience I don't want to lead
 them astray.
 
 Any help appreciated.
 
 - -braddock
 
 
 
 On 08/31/2013 04:03 AM, Kishwer.Aziz wrote:
  Tony,
  
  Since my return from Pakistan in early August, the local support
  team has been struggling with getting the school server and IIAB to
  work on the network they have created using 8 routers (one for
  every class of 20 students)
  
  
  
  I have asked them to explain to me what the problem is and not
  being technical I cannot understand what they are telling me. Given
  below is their technical explanation for what is happening.
  Verbally I have been told that sometimes some children can connect
  while others cannot. When they turn the whole system on and off,
  look for the IP allocated to the IIAB by the Server, give it to the
  children they can connect to it but next day this changes.
  
  
  
  Can you find us a solution for us? Tell us what we are doing
  wrong?
  
  
  
  Regards
  
  
  
  Kishwer
  
  
  
  *From:*Younus Zafar [mailto:younusza...@gmail.com] *Sent:* Friday,
  August 30, 2013 11:45 AM *To:* Kishwer.Aziz *Subject:*
  
  
  
  salam madam
  
  (1)School server is assigning IP of two pools for clients( i-e 
  172.18.96.X  172.18.97.X
  
  (2) it creates problem for Xo's to connect with IIAB server  they 
  cannot  use DNS resolver for domain name “know”
  
  -- */
  
  /*
  
  *Muhammad Younus Zafar* *_S_*_enior *S*ystem *S*upport *E*ngineer_ 
  BR News Room   Aaj News
  
  
  
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
 iQEcBAEBAgAGBQJSKIv7AAoJEHWLR/DQzlZuFrkH/RZDNNvnm6qVhgOdyf/Xhmod
 z0uz0+h1Bwt3FHYWbEz8598Kxp1oDFrunJXf+ozNW6WY0S4rZpKkY7ZLYuu8Ko4a
 J/ONNYx/RIHQn3AG7MrF32yMErLuemnkW3hpzqJZ3/zSN281gytqmyWj/m25RNSy
 x7ImKg0rOee12WNU7hUkT26XosN3FRkyFX/8y6eNBxQ6gjvA2TT+ZsrAClxzelZg
 Ozyirlx3b9whyBdXDFnYZoyxa6Bt9tKE9zXQzMDk/UE5bGf8dOhBJMls69fvuwps
 jlUHHCgF+fR6svgXTHVyrj8kFpmYVxq4nHDh8JUd5cGVucDquG1Z2aV0mUnLKtM=
 =CtwJ
 -END PGP SIGNATURE-
 ___
 support-gang mailing list
 support-g...@lists.laptop.org
 http://lists.laptop.org/listinfo/support-gang


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


Re: [Server-devel] rc.local stall on reboot

2013-08-31 Thread Jerry Vonau
Hi George,

On Sat, 2013-08-31 at 21:32 -0400, George Hunt wrote:
 I'm in Haiti, with limited internet access.  Adam reports that the
 reboot at Silar's orphanage is stalling, and when he hits escape, we
 sees a red star traveling left and right, and an error message, which
 talks about a stop script.
 
 
 
 I am using rc.local to start up wvdial , which in turn stimulates
 the 3g ZTE USB modem, and opens up a vpn connection.
 

Hey George, disable that script, lets check 
/etc/NetworkManager/system-connections for any weird looking connections

next go to run level 5 (telinit 5), open My Computer and go to the Modem
Configuration and configure the connection there. 

Once the connection is active I'd would look at how it was configured by
Sugar. Open terminal and type nm-connection-editor, you might have 2
modem connections pick the one with the long UUID appended to the named
and on click edit and ensure both connect automatically and available
to all users are ticked. Reboot

Once rebooted check if the connection is now active with ifconfig and
route -n, if they are not present we need to do some further debugging.

If you have a default gateway present run xs-setup-network to detect the
gateway, this should setup the iptables' rules needed and with a little
luck when you reboot every just works.  

Jerry



 
 What is the protocol so that it does not try to run the script also
 for shutdown?
 
 
 Any suggestions.
 
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] Server-devel Digest, Vol 76, Issue 21

2013-08-17 Thread Jerry Vonau
On Sat, 2013-08-17 at 07:40 +0200, Tony Anderson wrote:
 Hi,
 
 My point about the UPS is that an off-grid setup doesn't need one which
 somewhat offsets the additional cost of supporting a hard drive.

Yea the cost savings can go towards a proper 12v deep cycle battery. 

 Currently the two schools in Lesotho are using MSI Nettop as school 
 servers. In the context of charging 30-100 XOs, the additional power 
 consumed by the school server is negligible.
 
 However, at the second school which charges the laptops using individual 
 solar panels, the school server takes a dedicated solar panel charging a 
 pair of car batteries.
 
 The big surprise was that the MSI does not boot on 12vdc. This required
 adding an inverter (designed to charge laptops from a car battery).
 

Good to know, thanks.

 I was hoping the Trim-Slice H would be suitable. I am concerned with its 
 fixed 1GB memory. The Utilite looked like a promising alternative, but 
 supports only SSD. We may have to wait for nettops based on the new
 Atom technology for a one-box solution. In the meantime, the current 
 Atom based systems are doable in an off-grid deployment.
 
 By the way, the need for the school server is closer to 50 hours per 
 week than 24/7. Normally it needs to be booted only during the hours 
 when children are in school.
 

Valid point, that should be taken into account when calculating total
power requirements.

Jerry

 Tony
 
 On 08/17/2013 06:21 AM, Jerry Vonau wrote:
  On Sat, 2013-08-17 at 05:49 +0200, Tony Anderson wrote:
  Hi,
  
  What is the disk capacity required by internet-in-a-box?
  
  600-700 gigs
 
  The purpose of the server is to deliver the information not available
  from the internet.
  
  Yup, or when your offline.
 
  The cost of a UPS which is required for a system on the grid is $80-100.
  
  Think the issue is mainly about off-grid systems, those are usually 12v.
  What would be neat is if there was a power supply that you could replace
  in your standard PC that used 12v as the supply voltage. Anybody know of
  a manufacture that supplies one? I'd hate to see what the size of the
  battery pack and the recharging requirements needed of the
  solar/wind/insert others recharging system that would be needed to run
  such a beast.
 
  In my experience, there is need for one school server at a school
  supporting 30-200 XOs.
  Know of any low power devices that you might recommend for off-grid use?
 
  Jerry
 
 


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


Re: [Server-devel] Server-devel Digest, Vol 76, Issue 21

2013-08-16 Thread Jerry Vonau
On Sat, 2013-08-17 at 05:49 +0200, Tony Anderson wrote:
 Hi,
 
 What is the disk capacity required by internet-in-a-box?
 

600-700 gigs

 The purpose of the server is to deliver the information not available 
 from the internet.
 

Yup, or when your offline.

 The cost of a UPS which is required for a system on the grid is $80-100.
 

Think the issue is mainly about off-grid systems, those are usually 12v.
What would be neat is if there was a power supply that you could replace
in your standard PC that used 12v as the supply voltage. Anybody know of
a manufacture that supplies one? I'd hate to see what the size of the
battery pack and the recharging requirements needed of the
solar/wind/insert others recharging system that would be needed to run
such a beast.

 In my experience, there is need for one school server at a school 
 supporting 30-200 XOs.

Know of any low power devices that you might recommend for off-grid use?

Jerry

 
 Tony
 
 On 08/17/2013 03:02 AM, server-devel-requ...@lists.laptop.org wrote:
 The average difference between power consumption of an SSD and a HDD is
 about 4W. [1][2]
 
 Now considering the environments we're gonna head into we're looking at
 typically 1-3 days of power backup for the server (lets average out at 2).
 
 That means, the battery backup needed is:
 4 * 24 * 2 = 192 W-hr
 
 *That comes out to roughly $25-35 in battery costs*  (again based on quick
 google searches for battery costs). *If you want a longer life from
 you're battery, you're looking at about $50-60 in battery costs.*
 
 Now if we're also giving solar backup, based on the calculator here
 [3] we're going to need about a 25-30W solar panel (for just those 4 extra
 watts). Again, google tells me that *such panels retail for about $65-80.*
 *
 *
 *So, on average we'll save $100-$130 on TCO (total cost of ownership), if
 we intend to provide an SSD as opposed to an HDD, considering the server
 runs 24x7 and 2 days of backup is needed.*
 *
 *
 On top of that, you're looking at less failures, a better operating
 temperature range, and more durability.
 
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] XS to become XSCE???

2013-08-06 Thread Jerry Vonau
On Tue, 2013-08-06 at 15:33 +1000, James Cameron wrote:
 On Tue, Aug 06, 2013 at 12:19:30AM -0500, Jerry Vonau wrote:
  On Mon, 2013-08-05 at 09:51 -0700, Sameer Verma wrote:
   On Mon, Aug 5, 2013 at 1:16 AM, James Cameron qu...@laptop.org wrote:
On Sun, Aug 04, 2013 at 10:13:25PM -0700, Sameer Verma wrote:
Just noticed that on
http://wiki.laptop.org/go/XS_Installing_Software_0.7 it says that
stable version is XS 0.7 and unstable is XSCE 0.3
   
Is this correct?
   
What you see is from the template page Latest Releases and occurs on
every Wiki page that includes that template.  So the fact that it is
on XS_Installing_Software_0.7 is not unusual, because that page
includes the template.
   
The template edits that led to this are here:
   
http://wiki.laptop.org/index.php?title=Template:Latest_Releases/XS-develdiff=287052oldid=266082
http://wiki.laptop.org/index.php?title=Template:Latest_Releases/XS-develdiff=287053oldid=287052
http://wiki.laptop.org/index.php?title=Template:Latest_Releases/XS-develdiff=287329oldid=287053
   
   
   Thanks for the links. Makes it clearer.
   
Is XSCE to become XS 0.8? I am all in favor of the two projects
merging, but as I understand it, XS and XSCE are two very
*different* projects as of now. Some clarification would be great!
   
I don't see any indication on the template to suggest that XSCE will
become XS, but I do see Server software now includes xs-0.7 as
stable, and XSCE 0.3 as unstable.
   
I don't see any unstable version of xs-, and I don't see any stable
version of XSCE.  I'd like to see both.  The former would indicate
ongoing development of xs- and the latter would indicate finalisation
of XSCE.
   
   
   Correct, but as it is represented now, XS will become XSCE, which is
   incorrect. As a customer, I consider XS and XSCE to be two different
   products. The XS is a product from OLPC. XSCE is a product (not
   production ready, but still a product) from the community (double
   quotes intended). Although the XSCE may very well be a fork of the XS,
   it has its own specs and a set of developers working on it. I am one
   of the few who use XSCE on a 1.75 in one of my projects. I also use XS
   0.7 in three other projects. My reasonings for choosing one over the
   other are distinct. So, I do not appreciate the confusion.
   
   Mixing the two is misleading. XS 0.7 may very well be end of the line,
   or there may be a 0.8, but that's up to OLPC to decide, and not for
   XSCE to usurp. After all, AU has a server. 
  
  As the developer of that AU version, lots of my code and ideas when on
  to become what is XS-0.7 thanks to dsd. Still think imitation is the
  highest form of flattery.
 
 Indeed.
 
  
So does Nepal. So does
   Uruguay. So does Activity Central. We don't see those listed on the
   template now, do we? If this was out of a misunderstanding, it needs
   to be corrected. If this injection was deliberate, then it was foolish
   at best.
   
   It's a shame how much obfuscation has creeped into this space. Let's
   be clear about what the XS is and what the XSCE is and move on.
   
  
  Yes, lets be clear here, is OLPC going to maintain 0.7 going forward? I
  asking if OLPC is going to maintain their forked ejabberd rpm and not
  rely on exclude=ejabberd in the yum repo files?
 
 There are no plans at the moment for OLPC to develop and release
 xs-0.8, but this may change if a deployment comes to us with a need.
 

That doesn't answer the question is OLPC going to maintain their already
forked rpm going forward? It's blocking a EPEL update[1], not that it's
a security update but should one come down the pipe, as a system
administrator I'd like re-assurance that I can run the latest fixed
code. Hate to think that no new updates are available until some other
deployment needs something. This is also blocking XS on CentOS-6.4[2] as
the wrong version of ejabberd gets installed.

 That there is a deployment contributing to XSCE is certainly good to
 keep in mind and recognise.  There may be more versions of XSCE
 released than XS, but that's not a technical problem.
 

No a problem at all, shows the XSCE crew are actively working towards
their goals and listening to future potential users and reacting.

Jerry

  This there going to be a 0.8? When? and by who? We don't need to
  duplicate efforts here.
  
  Jerry  
  

1. https://bugzilla.redhat.com/show_bug.cgi?id=846856
2. http://people.sugarlabs.org/Tgillard/XS_Install-1.txt


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


Re: [Server-devel] Server-devel Digest, Vol 75, Issue 25

2013-08-06 Thread Jerry Vonau
On Tue, 2013-08-06 at 08:23 +0200, Tony Anderson wrote:
 On 08/06/2013 05:40 AM, Jerry Vonau wrote:
  I'd be interested in the contents of the xs-moodle files or is that an
  example? Sounds like 20-xc-generic looks for xc-* directories and files
  in those directories to execute, need to see the code to be sure on what
  you require.
 The install file for Moodle is
 
   cd $UM_MOUNTPOINT/XC
 if [ -f xc-moodle/xc-moodle-install ]; then
  log notice Installing moodle
  cd xc-moodle
  if bash xc-moodle-install; then
  log notice moodle installed successfully
  else
  log notice moodle install failed with code $?
  error_beep
  fi
 else
  log notice 'moodle not found'
  error_beep
 
 fi
 
 The xc-moodle-install file is:
 
 #!/bin/bash
 
 #take backup from existing moodle
 #su - postgres
 #pg_dump moodle-xs  moodle-xs.sql
 
 #stop httpd
 /etc/init.d/httpd stop
 
 #copy the moodle folder to /library
 rm -rf /library/moodle
 cp -r moodle /library/moodle
 chown -R apache:apache /library/moodle
 
 #restore the moodle-xs.sql backup of the database
 psql -d moodle-xs -f moodle-xs.sql
 #replace config.php file in /var/www/moodle/web and update 
 /etc/httpd/conf.d/moodle.conf (if necessary)
 cp config.php /var/www/moodle/web
 cp moodle.conf /etc/httpd/conf.d
 
 #start httpd
 /etc/init.d/httpd start
 
 Naturally, Moodle itself is installed as part of XS-0.7. This installs a 
 PostgreSQL backup of Moodle content (courses). It also moved the Moodle 
 data to /library.
 This was a mistake in the XS implementation. Data directories which can 
 grow
 with use should be in /library not in the root partition. This is the 
 change in
 config.php.
 

yup, good catch. Got a copy of that also?

 The essence of this technique is that 20-xc-generic needs to be 
 installed by xo-custom, xs-setup, or in the build. Once that is 
 installed, a deployment can
 perform any additional installations of content or packages via xc-install.
 
 It would probably be useful to have a library of these optional 
 installations.
 

Yes it would then I could stop asking for source code for an open source
project.

 Currently, I am using this technique to install the courseware for the 
 Learn
 activity, Django, the library, wiki4schools, mediawiki, wiktionary, the 
 beginnings of a learning management system, and the beginnings of an 
 itembank of questions. I hope to have an install script for IIAB 
 (probably one for the front end and one or more for the content).
 

XSCE is working towards the same goals.

 Tony
 
 

Jerry


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


Re: [Server-devel] XS to become XSCE???

2013-08-06 Thread Jerry Vonau
On Tue, 2013-08-06 at 16:43 +1000, James Cameron wrote:
 On Tue, Aug 06, 2013 at 01:17:23AM -0500, Jerry Vonau wrote:
  On Tue, 2013-08-06 at 15:33 +1000, James Cameron wrote:
   On Tue, Aug 06, 2013 at 12:19:30AM -0500, Jerry Vonau wrote:
On Mon, 2013-08-05 at 09:51 -0700, Sameer Verma wrote:
 On Mon, Aug 5, 2013 at 1:16 AM, James Cameron qu...@laptop.org 
 wrote:
  On Sun, Aug 04, 2013 at 10:13:25PM -0700, Sameer Verma wrote:
  Just noticed that on
  http://wiki.laptop.org/go/XS_Installing_Software_0.7 it says that
  stable version is XS 0.7 and unstable is XSCE 0.3
 
  Is this correct?
 
  What you see is from the template page Latest Releases and occurs on
  every Wiki page that includes that template.  So the fact that it is
  on XS_Installing_Software_0.7 is not unusual, because that page
  includes the template.
 
  The template edits that led to this are here:
 
  http://wiki.laptop.org/index.php?title=Template:Latest_Releases/XS-develdiff=287052oldid=266082
  http://wiki.laptop.org/index.php?title=Template:Latest_Releases/XS-develdiff=287053oldid=287052
  http://wiki.laptop.org/index.php?title=Template:Latest_Releases/XS-develdiff=287329oldid=287053
 
 
 Thanks for the links. Makes it clearer.
 
  Is XSCE to become XS 0.8? I am all in favor of the two projects
  merging, but as I understand it, XS and XSCE are two very
  *different* projects as of now. Some clarification would be great!
 
  I don't see any indication on the template to suggest that XSCE will
  become XS, but I do see Server software now includes xs-0.7 as
  stable, and XSCE 0.3 as unstable.
 
  I don't see any unstable version of xs-, and I don't see any stable
  version of XSCE.  I'd like to see both.  The former would indicate
  ongoing development of xs- and the latter would indicate 
  finalisation
  of XSCE.
 
 
 Correct, but as it is represented now, XS will become XSCE, which is
 incorrect. As a customer, I consider XS and XSCE to be two different
 products. The XS is a product from OLPC. XSCE is a product (not
 production ready, but still a product) from the community (double
 quotes intended). Although the XSCE may very well be a fork of the XS,
 it has its own specs and a set of developers working on it. I am one
 of the few who use XSCE on a 1.75 in one of my projects. I also use XS
 0.7 in three other projects. My reasonings for choosing one over the
 other are distinct. So, I do not appreciate the confusion.
 
 Mixing the two is misleading. XS 0.7 may very well be end of the line,
 or there may be a 0.8, but that's up to OLPC to decide, and not for
 XSCE to usurp. After all, AU has a server. 

As the developer of that AU version, lots of my code and ideas when on
to become what is XS-0.7 thanks to dsd. Still think imitation is the
highest form of flattery.
   
   Indeed.
   

  So does Nepal. So does
 Uruguay. So does Activity Central. We don't see those listed on the
 template now, do we? If this was out of a misunderstanding, it needs
 to be corrected. If this injection was deliberate, then it was foolish
 at best.
 
 It's a shame how much obfuscation has creeped into this space. Let's
 be clear about what the XS is and what the XSCE is and move on.
 

Yes, lets be clear here, is OLPC going to maintain 0.7 going forward? I
asking if OLPC is going to maintain their forked ejabberd rpm and not
rely on exclude=ejabberd in the yum repo files?
   
   There are no plans at the moment for OLPC to develop and release
   xs-0.8, but this may change if a deployment comes to us with a need.
   
  
  That doesn't answer the question is OLPC going to maintain their already
  forked rpm going forward? It's blocking a EPEL update[1], not that it's
  a security update but should one come down the pipe, as a system
  administrator I'd like re-assurance that I can run the latest fixed
  code. Hate to think that no new updates are available until some other
  deployment needs something. This is also blocking XS on CentOS-6.4[2] as
  the wrong version of ejabberd gets installed.
 
 I can't find any ticket on dev.laptop.org that mentions this, can you?
 

Just discovered while reviewing the CentOS-6.4 install[2] after the
groupinstall issue was fixed. You want to file this bug or shall I?

Jerry

  
   That there is a deployment contributing to XSCE is certainly good to
   keep in mind and recognise.  There may be more versions of XSCE
   released than XS, but that's not a technical problem.
   
  
  No a problem at all, shows the XSCE crew are actively working towards
  their goals and listening to future potential users and reacting.
  
  Jerry
  
This there going to be a 0.8? When? and by who? We don't need to
duplicate efforts here.

Jerry

[Server-devel] Fwd: [XSCE] Re: Client side Moodle transparent auth broken in 13.2.0 stable

2013-08-06 Thread Jerry Vonau
Great piece of deductive testing Anna, way to go. Forwarding for further
investigation.

Jerry

-- Forwarded message --
From: Anna ascho...@gmail.com
Date: 5 August 2013 15:02
Subject: [XSCE] Re: Client side Moodle transparent auth broken in 13.2.0
stable
To: xsce-devel xsce-de...@googlegroups.com


I just realized that someone will probably ask what's the most recent build
where Moodle transparent auth did work.  Lucky for me, I just had to test
one older.  Moodle transparent auth DOES work in 13.2.0-12.

So whatever broke client side Moodle transparent auth should be confined to
13.2.0-13.


On Mon, Aug 5, 2013 at 2:19 PM, Anna ascho...@gmail.com wrote:

 I very recently upgraded my little herd of XOs to the latest stable build
 13.2.0-13.  Unfortunately, something in that build has broken Moodle's
 transparent authentication.  When a registered client goes to
 http://schoolserver/moodle, all it gets is the login page.

 Now, that's not unheard of, you can usually just click the Home button
 and get automatically logged in.  But when I've seen that before, the XO's
 SN is filled out in the Username field on the login page.  The 13.2.0-13 XO
 doesn't show that.  No matter what you click on in the Moodle login page,
 it never logs in.

 To verify it was a client side issue, I flashed an XO-1 with 13.1.0
 stable, and registered first to be admin.  I also registered a 13.2.0-13 as
 the second client.  On the 13.1.0, I can go to the Moodle homepage and it
 automatically logged me in.  I tried again to access the Moodle homepage on
 the 13.2.0-13 XO-1, but yep, still just got the login page.  On the admin
 XO, I went to Site Administration - Users - Accounts - Browse list of
 users and saw both XOs listed.  It indicated that the 13.2.0-13 client had
 never logged in.

 So, the user account is being created on the server for the 13.2.0-13 XO
 upon registration, but client side transparent authentication is not
 working.

 To verify the 13.2.0-13 XO's Browse Activity is accepting cookies, I went
 to
 http://www.bu.edu/htbin/computing/browsers/troubleshooting/cookietest.pland 
 the test was successful.

 Now, I have successfully tested Moodle transparent auth with previous
 iterations of 13.2.0, perhaps 8 or 9?  So whatever change on 13.2.0 that
 broke transparent auth must have been relatively recent.

 I took a look at the Browse Activity version between the two clients:
 13.1.0 = Browse 149
 13.2.0-13 = Browse 149.3

 I knew it wouldn't make a difference, but I also tested the 13.2.0-13 as
 first registration and it doesn't care that its the admin user.  And also
 tested with a fresh flash to make sure there wasn't something sticky in
 there from a previous registration gumming things up.

 I've tested this with the XSCE installed a couple days ago
 (xs-config-0.8.4.123.gda5e8e3-1) and the latest DXS from this morning.  I
 also remembered I have an XS 0.6 (duh, Anna) and the results were the same.
  I don't have an XS 0.7 installation, but I would expect the same results.

 Since this is a client side issue, I'm not sure where to go from here as
 far as troubleshooting.

 Anna

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


Re: [Server-devel] Questions for today

2013-08-06 Thread Jerry Vonau
On Tue, 2013-08-06 at 15:33 +0200, Tony Anderson wrote:
 On 08/06/2013 03:06 PM, server-devel-requ...@lists.laptop.org wrote:
  On Mon, Aug 5, 2013 at 12:13 AM, Sameer Vermasve...@sfsu.edu  wrote:
  Just noticed that on
  http://wiki.laptop.org/go/XS_Installing_Software_0.7  it says that
  stable version is XS 0.7 and unstable is XSCE 0.3
  
  Is this correct?
  
  Is XSCE to become XS 0.8? I am all in favor of the two projects
  merging, but as I understand it, XS and XSCE are two very*different*
  projects as of now. Some clarification would be great!
  This question has many interesting implications! While I don't know
  the answer to your question I do have some more specific follow on
  questions.
 
  Questions about today:
 
  If I am a deployment, large or small, looking to deploy a school
  server, which should I choose? and Why?
 If a deployment has the power for an Atom-based server, then XS-0.7 is 
 the choice today. According the 0.3 release notes, XSCE is only 
 supported on an XO.
 

Tony, that would be your choice to use XS-0.7, please don't put words in
my mouth, I would use the soon to be released XSCE-0.4 on the same
hardware. 

  If I am a deployment, large or small, looking to make customizations
  to my school server, which 'base' should I choose? Should I upstream
  my customizations or should hold on to them?
 Customization has to used carefully. There is not a system administrator 
 alive who has built a custom server configuration. None of that has any 
 impact on server software development.

I have, XS on F11/F14 and I disagree, it sure does as the underlying OS
evolves, your customisations have to keep up, rpms may need to be
re-compiled and the general adapting to the changes in the OS. 

 For example, adding CUPS to support an attached printer is something 
 that a deployment can do if desired.

or adding Django, content, or anything else someone wanted to pay for. 

 
  If I a contributor looking to help ICT4E move forward, which school
  server should I work on and why?
 
 I am not sure what ICT4E means (ICT seems to be used in education to 
 mean studying computers as a subject, not using computers to learn).
 
 There are a number of important items still on the wish list. Adding
 the IIAB content is probably at the top of the list. Providing a way for 
 a deployment to be 'librarian', e.g. with Calibre is another. Finding a 
 way for teachers to make assignments, receive student submissions, mark 
 them, and return annotated copies (digital copybook) is high on the 
 list. Providing an email capability with client software on the XO and 
 an XS facility (e.g. pop3 and smtp) which is capable of
 interface to Internet via removable device. Implementing Wikipedia in a 
 child-safe form with fast full-text search. Providing an effective 
 'badge' mechanism to honor children who have demonstrated learning.
 There is no lack of things to do.

That is kind of blurring the line between features and system
administration functions.  

  Questions about the future:
 
  Is the XS feature complete? Does it do everything it can to add value
  to deployments? If there are ways to add more value, is there a plan
  or funding model to support that development?
 
 XS-0.7 is a baseline install. The question should be what can 
 deployments usefully install on XS-0.7. If we view every change as
 requiring a new build, deployments are looking at huge expense. In 
 Nepal, Abhishek and I had to download over 10GB of repositories to build 
 XO-0.7 offline. 

I think re-spinning the install iso is not that hard but you may need
more than one CD or switch to the DVD format to fit all the needed rpms.

 That would take a decade at most of the schools I 
 service (average download speed is 5kb/sec - with tens of restarts per
 gigabyte -not to mention loss of sleep restarting).

I agree a fully offline install method is needed.

  Is the XSCE feature complete? Does it do everything it can to add
  value to deployments? If there are ways to add more value, is there a
  plan or funding model to support that development?
 
  Questions for OLCP:
 
  Are there steps OLPC can do to encourage deployments to fund further
  development of XS by OLPC developers? Are there steps OLPC can do to
  encourage direct development of XS by deployments?
 
 As mentioned, there are server developments at many deployments. What 
 would be great is a co-operative team that would work to provide 
 capabilities in a way that can be distributed widely. I am sure that 
 Peru is working on a method to deliver email via usb drive (and internet 
 cafes). I just don't have any visibility in the method taken, the 
 technology employed, or whether the development can be applicable 
 outside of Peru.

You better have your ducks in a row when it comes to internet email, you
can become subject to rbls and other such anti-spam measures by the isp
or hosting service of the people you might what to email. The email
subject needs to be 

Re: [Server-devel] [Sugar-devel] Fwd: [XSCE] Re: Client side Moodle transparent auth broken in 13.2.0 stable

2013-08-06 Thread Jerry Vonau
Think it's more of a question of looking for confirmation. Is anybody else
seeing this behavior on 13.2.0-13 on XO-1s when used with any version of
school-servers? I'm at a loss trying to explain why this is occurring to
Anna. With the noted behavior where would you file the bug report? OLPC is
what I'm thinking but looking if someone else might be impacted also or can
confirm this.

Jerry

On 6 August 2013 05:12, Gonzalo Odiard gonz...@laptop.org wrote:

 There are a ticket filled?

 Gonzalo


 On Tue, Aug 6, 2013 at 4:27 AM, Jerry Vonau je...@laptop.org.au wrote:

 Great piece of deductive testing Anna, way to go. Forwarding for further
 investigation.

 Jerry

 -- Forwarded message --
 From: Anna ascho...@gmail.com
 Date: 5 August 2013 15:02
 Subject: [XSCE] Re: Client side Moodle transparent auth broken in 13.2.0
 stable
 To: xsce-devel xsce-de...@googlegroups.com


 I just realized that someone will probably ask what's the most recent
 build where Moodle transparent auth did work.  Lucky for me, I just had to
 test one older.  Moodle transparent auth DOES work in 13.2.0-12.

 So whatever broke client side Moodle transparent auth should be confined
 to 13.2.0-13.


 On Mon, Aug 5, 2013 at 2:19 PM, Anna ascho...@gmail.com wrote:

 I very recently upgraded my little herd of XOs to the latest stable
 build 13.2.0-13.  Unfortunately, something in that build has broken
 Moodle's transparent authentication.  When a registered client goes to
 http://schoolserver/moodle, all it gets is the login page.

 Now, that's not unheard of, you can usually just click the Home button
 and get automatically logged in.  But when I've seen that before, the XO's
 SN is filled out in the Username field on the login page.  The 13.2.0-13 XO
 doesn't show that.  No matter what you click on in the Moodle login page,
 it never logs in.

 To verify it was a client side issue, I flashed an XO-1 with 13.1.0
 stable, and registered first to be admin.  I also registered a 13.2.0-13 as
 the second client.  On the 13.1.0, I can go to the Moodle homepage and it
 automatically logged me in.  I tried again to access the Moodle homepage on
 the 13.2.0-13 XO-1, but yep, still just got the login page.  On the admin
 XO, I went to Site Administration - Users - Accounts - Browse list of
 users and saw both XOs listed.  It indicated that the 13.2.0-13 client had
 never logged in.

 So, the user account is being created on the server for the 13.2.0-13 XO
 upon registration, but client side transparent authentication is not
 working.

 To verify the 13.2.0-13 XO's Browse Activity is accepting cookies, I
 went to
 http://www.bu.edu/htbin/computing/browsers/troubleshooting/cookietest.pland 
 the test was successful.

 Now, I have successfully tested Moodle transparent auth with previous
 iterations of 13.2.0, perhaps 8 or 9?  So whatever change on 13.2.0 that
 broke transparent auth must have been relatively recent.

 I took a look at the Browse Activity version between the two clients:
 13.1.0 = Browse 149
 13.2.0-13 = Browse 149.3

 I knew it wouldn't make a difference, but I also tested the 13.2.0-13 as
 first registration and it doesn't care that its the admin user.  And also
 tested with a fresh flash to make sure there wasn't something sticky in
 there from a previous registration gumming things up.

 I've tested this with the XSCE installed a couple days ago
 (xs-config-0.8.4.123.gda5e8e3-1) and the latest DXS from this morning.  I
 also remembered I have an XS 0.6 (duh, Anna) and the results were the same.
  I don't have an XS 0.7 installation, but I would expect the same results.

 Since this is a client side issue, I'm not sure where to go from here as
 far as troubleshooting.

 Anna




 ___
 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


Re: [Server-devel] Questions for today

2013-08-06 Thread Jerry Vonau
On Tue, 2013-08-06 at 16:46 +0200, Tony Anderson wrote:
 On 08/06/2013 04:22 PM, Jerry Vonau wrote:
  I agree a fully offline install method is needed.
 I think we are in substantial agreement.
 
 My model is that the deployment has someone with technical skills 
 available who
 prepares the server for installation. However, at the deployment, the 
 server should
 be stable enough to operate through a school year without hands-on system
 administration (except when the server hardware fails).
 

Full agreement with that, except for perhaps performance tuning that
might crop up with user demands. 

 The community can provide the, probably volunteer, system administrator 
 with
 a base system and a pantry of appropriate ingredients to tailor for a 
 specific
 deployment without requiring the admin to give up his day job.
 
 It is perfectly feasible to install the school server from a usb drive.

Yes, I'm one of original driving forces behind that. 

  
 It is the build that
 currently requires internet access. 

Yup I agree, that is where the repos live unless you have created a
local mirror for pungi to use offline. The pungi tool has been
updated/replaced by lorax in the newer Fedora versions.

 The install at the moment requires a 
 monitor,
 usb wired keyboard, and a usb wired mouse. 

Think a vnc based anaconda(the installer) install might be do-able also,
to access the target machine not to retrieve rpms.

 These are not required after the
 install. By the way, the repositories need for an XS-0.7 build don't 
 come close to
 fitting on a DVD.
 

Just need access to the internet or local mirror to let pungi do its
magic gathering the needed rpms and creating the anaconda installer.

Jerry


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


Re: [Server-devel] XS to become XSCE???

2013-08-06 Thread Jerry Vonau
On Tue, 2013-08-06 at 18:19 -0700, Sameer Verma wrote:
 On Tue, Aug 6, 2013 at 6:06 AM, David Farning
 dfarn...@activitycentral.com wrote:
  On Mon, Aug 5, 2013 at 12:13 AM, Sameer Verma sve...@sfsu.edu wrote:
snip
 
 It's not that complicated. My original assertion was to be clear about
 the roadmap for XS and XSCE. It is now clear that the XSCE project is
 not going to be the next XS. Both projects are very different, and
 convergence may not be in the best interests of all parties involved.
 So be it. Move along. Nothing to see here.
 

So when does the work on XS-0.8 begin? Might look un-maintained to lots
of potential deployments.

 From my perspective, XS is designed by OLPC to service their projects,
 which tend to be larger than microdeployments. XSCE, on the other hand
 seems to be driven by smaller LAN size, such as the classroom scenario
 promoted by AU, or my India project.
 
 We use XS 0.7 in Jamaica because it was the only game in town back
 then, it runs atop CentOS, and it uses Moodle, which we are not averse
 to. It is also tried and tested in many other deployments much larger
 than ours, so that's comforting.
 

No, not really, that was your choice. 

 I also use XSCE in India, but for entirely different reasons. I needed
 something that was extremely low power. XS 0.6 that ran on a FitPC was
 ok, but it pulled 8W. I couldn't move up to XS 0.7, because of a PAE
 issue, and didn't have the resources to wrangle with it. The XO 1.75
 as XS running XSCE fits the bill for very low power, although running
 atop Fedora does not give me clear upgrade paths. We'll see how
 quickly that install gets old. In fact, XS 0.6 was on F9, and suffered
 the same fate. Personally, I would prefer the stability of CentOS over
 the newness of Fedora.
 
 Can XS 0.7 serve the features of XSCE? 

Already done, moodle et all.

 With a bit of work, sure. Can
 XSCE serve the stability of XS 0.7? 

I recall Chris, Adam, and yourself having loads of issues in Jamaica
with the XS-0.7 or was that just an end user mis-configuration? By the
way who got that resolved for you?

 With a little bit of work, sure.
 The difference in design is based on a difference in the needs of
 various projects. I suspect it is also fueled by a not invented here
 sentiment.
 

yup, been on the receiving end of that since 2008.

 While the XS continues to live in the colored box on the wiki as an
 official offering from OLPC, as I expect it to be, along with the
 OLPC images for the XOs (and I hope we hear about the roadmap from the
 powers-that-be), I think XSCE needs to grow up and live in its own
 space on the wiki as a proper page, and not live in Adam Holt's user
 page. 

Cool, so the XSCE can have space on the wiki? 

 It is a community project and it should be treated as such. Let
 the deployment pick and choose what they'd like. If living under the
 same wiki becomes too contentious, space is cheap! Move some place
 else, and while you are at it, please keep the mailing lists open. 

Well us mere mortals don't get to see the private OLPC mailing lists,
those are private dealings behind closed doors right?

 I
 shouldn't have to write a paragraph to Adam and ask permission to be
 added to the mailing list. 

Our IRC channel is open, come hangout there are others from OLPC hanging
around, join the party.

 That stifles communication, and if you all
 haven't caught on as yet, we are *not* dealing with a technology
 problem! This business of building a dozen different server projects
 is a people problem.
 

Brought on by a lack of leadership IMHO.

 I look forward to more communication on this and other lists and I
 sincerely hope we can continue to work together as one community.
 
 Oh, and I hope to see you all in October. http://www.olpcsf.org/node/133
 

Even if my passport is not ready I will present, count on that.

Jerry


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


Re: [Server-devel] Server-devel Digest, Vol 75, Issue 25

2013-08-05 Thread Jerry Vonau
Thank you Tony, I'll see if I can intergrade this into the XSCE as a
optional module. More below.

On Fri, 2013-08-02 at 12:02 +0200, Tony Anderson wrote:
 On 08/01/2013 06:33 PM, Sameer Verma wrote:
  On Mon, Jul 29, 2013 at 11:33 PM, Tony Andersont...@olenepal.org  wrote:
  Hi,
  
  As I have unsuccessfully tried to explain many times. OLE Nepal, with help
  from Daniel Drake, an effective and proven means to add selected
  capabilities
  to the base server. Since this capability takes advantage of the running
  base
  server, all of its normal system administration capabilities are available
  (ssh,
  yum, etc.).
  
  This is true, but not documented well and not known. For instance, we
  use munin and openvpn on the XS 0.7 in Jamaica, and those are
  add-ons. It would be good to document this and discuss approaches
  for installing complementary services.
 
 The process is straightforward.
 
 At install time, the script xs-custom is executed.
 
 #!/bin/bash
 cp 20-xc-generic /etc/usbmount/mount.d
 cp path.py /usr/lib/python2.6/site-packages
 python fixssh.py
 adduser -padmin admin
 xs-setup domain
 poweroff
 
 It installs a modified version of Daniel Drake's script 20-xc-generic 
 which will be executed when a removable drive is mounted.
 It puts path.py (a utility I use in many python cgi-scripts).
 It executes a script fixssh.py which enables password authentication.
 Finally, it adds user admin with password admin.
 The xs-setup script is executed to complete the process.
 The poweroff is a clear signal when the script is finished and forces a 
 reboot.
 
 The 20-xc-generic script is attached. 

Think the attachment got scrubbed in digest mode. Can you reply to this
tread with the contents of 20-xc-generic script please?

 It checks the removable device for 
 a root folder
 XC. If this exists, it checks for a script in that folder 'xc-install'. 
 If so, it is executed. This allows a usb drive or hard drive to be used 
 for this install or for other purposes by renaming the XC folder (e.g. 
 xc) so that it is ignored.
 
 The fixsh.py scripts enables password authentication:
 
 #!/usr/bin/python
 
 test = 'PasswordAuthentication'
 
 fin=open('/etc/ssh/sshd_config.in','r')
 txt = fin.read()
 fin.close()
 lines = txt.split('\n')
 txtout = ''
 fout = open('/etc/ssh/sshd_config.in','w')
 for line in lines:
  if test in line and not '#' in line:
  print  fout, test + ' yes'
  else:
  print  fout, line
 fout.close()
 
 
 This is another reason for poweroff and reboot so that 
 /etc/ssh/sshd_config is also
 updated.
 

Think a sshd restart might suffice.

 This enables login from an XO or other PC via ssh admin@schoolserver for
 system administration.
 

That is part of the stock XSCE build.

The below needs the 20-xc-generic file to be present on the XS correct?

 The xc-install script in XC looks like this:
 
 #!/bin/bash
 # Author: Daniel Drake d...@laptop.org
 # XS auto-usbmount import script for code parts of the e-library
 #modified for Rwanda configuration tony_ander...@usa.net
 
 set -e
 
 VERBOSE=No
 
 # Log a string via the syslog facility.
 log()
 {
  if test $1 != debug || expr $VERBOSE : [yY]  /dev/null; then
  logger -p user.$1 -t xc-code[$$] -- $2
  echo $(date +%F %T) xc-code: $2
  fi
 }
 
 error_beep()
 {
  echo -en '\033[10;1000]\033[11;100]\007'  /dev/console
  sleep 0.2
  echo -en '\033[10;1000]\033[11;100]\007'  /dev/console
  sleep 0.2
  echo -en '\033[10]\033[11]'  /dev/console
  return 0
 }
 
 UM_MOUNTPOINT=/media/usb0
 
 cd $UM_MOUNTPOINT/XC
 if [ -f xc-wiki/xc-wiki4schools-install ]; then
  log notice Installing Wiki4Schools
  cd xc-wiki
  if bash xc-wiki4schools-install; then
  log notice wiki4schools installed successfully
  else
  log notice wiki4schools install failed with code $?
  error beep
  fi
 else
  log notice 'xc-wiki not found'
 
 It normally has several of these install sections. The install section 
 looks for a
 folder: xc-wiki and in that folder for an install script: 
 xc-wiki4schools-install.
 The contents of the folder are:
 
 wiki.conf
 xc-wiki4schools-install
 xc-wiki4schools.tar.gz
 xc-wiki4schools.tar.gz.sha1
 
 The xc-wiki4schools-install is:
 
 #!/bin/bash
 
 wktar=xc-wiki4schools.tar.gz
 
 log() {
  logger -p user.notice -t nexc-wiktionary-inst -s -- $1
 }
 
 cp wiki.conf /etc/httpd/conf.d
 
 rm -rf /library/wiki
 mkdir -p /library/wiki
 
 cp $wktar /library/wiki
 cd /library/wiki
 
 if ! tar -xzf $wktar; then
  log could not extract $wktar
  exit 1
 fi
 
 rm -rf /library/wiki/$wktar
 
 chown -R apache:apache /library/wiki
 chmod -R 755 /library/wiki
 
 This script installs wiki.conf in /etc/httpd/conf.d, makes a folder 
 /library/wiki,
 copies the tarball to this folder and extracts it there. The tarball is 
 removed and
 permissions 

Re: [Server-devel] XS to become XSCE???

2013-08-05 Thread Jerry Vonau
On Mon, 2013-08-05 at 09:51 -0700, Sameer Verma wrote:
 On Mon, Aug 5, 2013 at 1:16 AM, James Cameron qu...@laptop.org wrote:
  On Sun, Aug 04, 2013 at 10:13:25PM -0700, Sameer Verma wrote:
  Just noticed that on
  http://wiki.laptop.org/go/XS_Installing_Software_0.7 it says that
  stable version is XS 0.7 and unstable is XSCE 0.3
 
  Is this correct?
 
  What you see is from the template page Latest Releases and occurs on
  every Wiki page that includes that template.  So the fact that it is
  on XS_Installing_Software_0.7 is not unusual, because that page
  includes the template.
 
  The template edits that led to this are here:
 
  http://wiki.laptop.org/index.php?title=Template:Latest_Releases/XS-develdiff=287052oldid=266082
  http://wiki.laptop.org/index.php?title=Template:Latest_Releases/XS-develdiff=287053oldid=287052
  http://wiki.laptop.org/index.php?title=Template:Latest_Releases/XS-develdiff=287329oldid=287053
 
 
 Thanks for the links. Makes it clearer.
 
  Is XSCE to become XS 0.8? I am all in favor of the two projects
  merging, but as I understand it, XS and XSCE are two very
  *different* projects as of now. Some clarification would be great!
 
  I don't see any indication on the template to suggest that XSCE will
  become XS, but I do see Server software now includes xs-0.7 as
  stable, and XSCE 0.3 as unstable.
 
  I don't see any unstable version of xs-, and I don't see any stable
  version of XSCE.  I'd like to see both.  The former would indicate
  ongoing development of xs- and the latter would indicate finalisation
  of XSCE.
 
 
 Correct, but as it is represented now, XS will become XSCE, which is
 incorrect. As a customer, I consider XS and XSCE to be two different
 products. The XS is a product from OLPC. XSCE is a product (not
 production ready, but still a product) from the community (double
 quotes intended). Although the XSCE may very well be a fork of the XS,
 it has its own specs and a set of developers working on it. I am one
 of the few who use XSCE on a 1.75 in one of my projects. I also use XS
 0.7 in three other projects. My reasonings for choosing one over the
 other are distinct. So, I do not appreciate the confusion.
 
 Mixing the two is misleading. XS 0.7 may very well be end of the line,
 or there may be a 0.8, but that's up to OLPC to decide, and not for
 XSCE to usurp. After all, AU has a server. 

As the developer of that AU version, lots of my code and ideas when on
to become what is XS-0.7 thanks to dsd. Still think imitation is the
highest form of flattery.

  So does Nepal. So does
 Uruguay. So does Activity Central. We don't see those listed on the
 template now, do we? If this was out of a misunderstanding, it needs
 to be corrected. If this injection was deliberate, then it was foolish
 at best.
 
 It's a shame how much obfuscation has creeped into this space. Let's
 be clear about what the XS is and what the XSCE is and move on.
 

Yes, lets be clear here, is OLPC going to maintain 0.7 going forward? I
asking if OLPC is going to maintain their forked ejabberd rpm and not
rely on exclude=ejabberd in the yum repo files?

This there going to be a 0.8? When? and by who? We don't need to
duplicate efforts here.

Jerry  



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


[Server-devel] yum groupinstall

2013-07-31 Thread Jerry Vonau
Hi All,

While helping someone install XS-0.7 on a pre-existing install using the
instructions Installing on top of existing OS installation[1]. After
installing the release rpm the next step results in: 


root@localhost Test_XS]# yum groupinstall OLPC XS
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink|  14 kB
00:00
 * base: centos.tcpdiag.net
 * epel: mirror.pnl.gov
 * extras: centos.tcpdiag.net
 * updates: centos.mirrors.hoobly.com
epel | 4.2 kB
00:00
epel/primary_db  | 4.5 MB
00:01
olpcxs   | 1.9 kB
00:00
olpcxs/primary_db|  29 kB
00:00
Setting up Group Process
Checking for new repos for mirrors
epel/group_gz| 237 kB
00:00
Warning: Group OLPC XS does not exist.
No packages in any requested group available to install or update

What I think may of occurred is when a rpm was updated on June 5 in the
repo, createrepo wasn't called with -g to use the group definition, so
the group no longer exists. I believe this to be true as the date on
repodata/comps.xml [2] was not updated like the rest of the files
in /repodata

Jerry


1. http://wiki.laptop.org/index.php?title=XS_Installing_Software_0.7/
2. http://dev.laptop.org/xs/repos/stable/olpc/xs-0.7/i386/repodata/




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


Re: [Server-devel] yum groupinstall

2013-07-31 Thread Jerry Vonau
On Thu, 2013-08-01 at 11:33 +1000, James Cameron wrote:

 
 In Daniel's happy absence, how would I fix this?
 
 quozl@crank:/var/www/xs/repos/stable/olpc/xs-0.7/i386$ pwd
 /var/www/xs/repos/stable/olpc/xs-0.7/i386
 quozl@crank:/var/www/xs/repos/stable/olpc/xs-0.7/i386$ ls -actl| head -9
 total 86748
 drwxr-xr-x 3 dsd dsd 4096 2013-06-05 11:42 .
 drwxr-xr-x 2 dsd dsd 4096 2013-06-05 11:42 repodata
 -rw-r--r-- 1 dsd dsd28016 2013-06-05 11:41 
 xs-activity-server-0.3.6-1.el6.noarch.rpm
 -rw-r--r-- 1 dsd dsd31672 2012-02-20 11:37 
 xs-activation-0.3.14.gd2a3727-1.el6.noarch.rpm
 -rw-r--r-- 1 dsd dsd82029 2012-02-16 18:03 
 xs-config-0.7.0.46.g9b886c8-1.noarch.rpm
 -rw-r--r-- 1 dsd dsd44000 2012-02-14 15:37 
 xs-tools-0.5.5.g49ddc07-1.el6.noarch.rpm
 -rw-r--r-- 1 dsd dsd 10060900 2012-02-14 12:54 
 moodle-xs-1.9.5.xs1.15.g7c6a865-1.el6.noarch.rpm
 drwxr-xr-x 4 dsd dsd 4096 2012-02-10 12:19 ..
 quozl@crank:/var/www/xs/repos/stable/olpc/xs-0.7/i386$ 
 

cd repos/stable/olpc/xs-0.7/i386/
createrepo -g comps.xml .

Jerry


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


Re: [Server-devel] Firmware install

2013-07-20 Thread Jerry Vonau
On Sat, 2013-07-20 at 07:33 +0200, Tony Anderson wrote:
 Hi,
 
 We had this experience in Lesotho where we were rarely working directly 
 from the mains. However, if the firmware is not installed, the message 
 will appear on each subsequent boot. I am not sure that the battery 
 charge is an issue. The firmware installs when the laptop detects that 
 it is running from an AC adapter.
 
 Tony
 

I have a olpc.fth file that defeats the mains AC check provided the
battery has 50% charge or more and installs the newer firmware when
present on the usbkey. Only works on unlocked XOs, hit me up if your
interested.

Jerry


 
 On 07/20/2013 05:13 AM, server-devel-requ...@lists.laptop.org wrote:
 When reflashing to one of the newer builds; i.e., 12.1.0 or newer, be sure 
 to
 use a fully charged battery and a plugged in power adapter when reflashing. 
 The
 new builds will upgrade the firmware automatically if the battery is fully
 charged. If it is not, during the end of the reflash process it will say
 something like cannot get new firmware continuing to update with old
 firmware. If you are not watching the screen you might not see this.
 
 And, I always check the system date and reset it (from the root terminal per
 instructions on the Fix ClockWiki page) before reflashing. That has solved 
 the
 stuck on the grey dots problem.
 
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] Best XSCE strategy for us in Pacific with XO-1.5 2GB Testing XSCE 3 on XO 1.5 2GB os855

2013-06-28 Thread Jerry Vonau
Hi James,

On 17 June 2013 21:55, James Cameron qu...@laptop.org wrote:

 On Mon, Jun 17, 2013 at 09:20:20PM -0400, George Hunt wrote:
  I ordered a 64GB SD, and have it in hand. It is formatted with exfat
  disk format, apparently a Microsoft proprietary standard.  There is
  a driver for exfat, but it is not shipped with the XO, so there was
  some truth to the hearsay that 64GB SD cards do not work on the
  XO. BUT . . .
 
  I was able to read exfat formatted out of the box transcend 64GB
  drive on a XO1.5, with a downloaded driver, so I expect that
  electrical compatibility is already established.

 It is the protocol compatibility that causes us problems.  There's
 this tiny computer inside the card which has to interoperate with our
 computer.  And from what you describe above, you haven't yet tested
 the protocol compatibility with Open Firmware.  You have to boot from
 it to test that.

  I think you will want it to be formatted with ext4, because the OS
  doesn't run on a FAT formated drive. I should caution that I have
  read that SD cards have an erase block size that makes it important
  to preserve the partition location and sizing, as the disk format is
  being erased and reformatted.

 If you use the drive for the operating system, there's no need to
 partition or format, because the fs-update of 13.1.0 .zd file will
 create all that is required.  Just make sure you use the devalias
 fsdisk ext:0 trick to persuade fs-update to use the external slot.

 During boot, the operating system may expand the filesystem to cover
 the rest of the device.


I just tried the devalias trick using 13.2.0 as the OS on a XO-4. On
initial boot it drops me into dracut appearing to complain about a
read-only filesystem while attempting resize. Any thoughts on how to debug
this?

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


Re: [Server-devel] Best XSCE strategy for us in Pacific with XO-1.5 2GB Testing XSCE 3 on XO 1.5 2GB os855

2013-06-28 Thread Jerry Vonau
Thanks James,

On 18 June 2013 00:00, James Cameron qu...@laptop.org wrote:

 On Mon, Jun 17, 2013 at 11:14:23PM -0500, Jerry Vonau wrote:
  I just tried the devalias trick using 13.2.0 as the OS on a XO-4. On
  initial boot it drops me into dracut appearing to complain about a
  read-only filesystem while attempting resize. Any thoughts on how to
  debug this?

 Sure.

 Check the write protect tab on the card.


This was the issue, no matter how careful I was inserting the SD-card the
tab would move to locked. I used a dab of instant glue, that was enough to
prevent the tab from moving.

Thanks a bunch,

Jerry



 Check with another XO-4 in case the socket write protect switch is
 faulty.

 Boot into Linux from another boot device, such as the internal eMMC or
 a Tiny Core Linux on USB drive, then check that you can mount the
 external SD card for write, and write to it.

 fs-update does not honour the write protect on an SD card; it is
 purely an advisory write protect, and Open Firmware doesn't take this
 advice ... which is an optional feature of the SD specification. [1]

 (I'm running an XO-4 as a builder with swap on external SD, and it
 seems to work fine for that.)

 [1]
 http://en.wikipedia.org/wiki/Secure_Digital#Card_security
 Write-protect notch

 --
 James Cameron
 http://quozl.linux.org.au/

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


[Server-devel] HOWTO.xs-custom

2013-06-28 Thread Jerry Vonau
Hi All:

With the recent acceptance of my port of the python's customization routine
over to TinyCore I'm attempting document the process and I need some help
with that. Here is what I have so far.




Build tinycore with --xo-custom, this will enable 4 optional routines

When booting the usbkey you will enter a chroot on the target XO and the
usbkey will be mounted at /media for all operations below.

1. You will be able to populate /bundles on the usbkey with activities,
they will automatically install.

2. If you provide /scripts/asroot you can run commands contained in the
file as the root user.

3. If you provide /scripts/asolpc you can run commands contained in the
file as the root user.

4. If you provide /scripts/yum.conf, /scripts/yum.cmd, and a configured yum
repo then yum gets executed with -y -c pointing to /scripts/yum.conf and
/scripts/yum.cmd as the arguments. The yum.conf file would use
file:///media/path/to/repo

Examples:

asroot:
-
#!/bin/bash
cp /media/file /path/on/xo
cp /usr/share/zoneinfo/Canada/Central /etc/localtime
-

asolpc:
-
#!/bin/bash
cp /media/file ~/Documents/
sed -i -e '/replacethis/withthis/' /some/file

cat  EOF  ~/.i18n
LANG=en_AU.UTF-8
LC_ALL=en_AU.UTF-8
LANGUAGE=en_GB.utf8:en_US.utf8
EOF
-

yum.cmd:
-
install xs-config-xo
-

yum.conf:
-
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
exactarch=1
obsoletes=1
gpgcheck=0
plugins=0
installonly_limit=3

# disables /etc/yum.repos.d
reposdir=/tmp
# keep the log file
logfile=/home/olpc/.sugar/default/yum.log

#  This is the default, if you make this bigger yum won't see if the
metadata
# is newer on the remote and so you'll gain the bandwidth of not having to
# download the new metadata and pay for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this
checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

[media.repo]
name=flash
baseurl=file:///media/xs-repo/armhfp/18/
enabled=1
gpgcheck=0
gpgkey=
-

Happy Hacking




Any thoughts on how to improve this are welcome.

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


Re: [Server-devel] XSCE links to filesfrom Moodle

2013-06-26 Thread Jerry Vonau
On Wed, 2013-06-26 at 14:36 +1000, David Leeming wrote:
 Hi,
 
  
 
 With the XS 0.7 we add links to Moodle pages that map to locations in
 the storage folder /library using aliases and html.conf file
 
  
 
 I have gone through the exact process as we used to use with the XSCE
 and all good in the set up, but when I try to access those resources
 with a connected laptop or authenticated moodle account t it tells me
 that I don’t have permission to view the folder.
 
  
 
 A missing step I think...
 
  

Sounds like you ran into the Access Control Require all granted
upgrade issue: https://httpd.apache.org/docs/2.4/upgrading.html

Jerry

 
 David Leeming
 
 Solomon Islands 
 
 24419 (h)
 
 www.rurallink.com.sb
 
  
 
 
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] ANNOUNCEMENT XSCE 0.3 Final Release

2013-06-12 Thread Jerry Vonau
On Wed, 2013-06-12 at 21:16 +1000, James Cameron wrote:
 On Wed, Jun 12, 2013 at 05:26:37AM -0400, George Hunt wrote:
  It's my understanding that 32GB cards work, but that 64GB cards do not
  (hearsay, and not direct personal experience).
 

Think you ran across this issue before:

http://lists.laptop.org/pipermail/devel/2012-October/036017.html


 I'm interested in working with anyone who has one, in order to
 diagnose and fix this.  Let me know.
 

Think this has been corrected:

http://dev.laptop.org/ticket/12216

Jerry


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


Re: [Server-devel] 12 Volt power system for School Servers.

2013-05-29 Thread Jerry Vonau
On Wed, 2013-05-29 at 15:03 -0500, David Farning wrote:
 Tony could you share more information about your work on 12 Volt power
 supplies for School Servers?
 
 
 Whenever I see a School Server setup containing a 12V Battery, an
 inverter, a power strip, and a couple of 120V to 12V power supplies to
 provide power for the server and the AP... my eyes start to tear up:(
 
 

Is the inverter really needed for a XO? The step-down transformer used
on the XO puts out 13.5v but the XOs only need 11 volts to charge[1].
Therefore I believe you could run and/or charge the XOs directly from a
12v source like a storage battery, perhaps though a regulator. I just
don't want to cut the cord off of a working power supply to find out. 

 The situation I am looking at has power part of the day so we can
 recharge the battery. To keep things simple we would like to use a
 Trimslice or XO-4 and off the shelf AP.
 
 

Most of the networking devices use a transformer also but with perhaps a
different voltage rating, with a regulator that takes 12 DC in we can
output the voltage needed for the lower (12v) voltage DC devices. If
they run on usb power or  12v dc this should be do-able.

 Ideally we would like to have 'kit' that contained everything except
 that battery that can be set up and tested before arriving at the
 deployment.
 
 
 Thanks
 

Recharging the storage battery is limited by the means that are
available to recharge the storage battery perhaps via solar or wind, and
is the related to the issue of how many XOs are in use that need
charging.

Jerry

1. http://wiki.laptop.org/index.php?title=Battery_and_power

 
 -- 
 David Farning
 Activity Central: http://www.activitycentral.com
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] 12 Volt power system for School Servers.

2013-05-29 Thread Jerry Vonau
On Wed, 2013-05-29 at 15:42 -0500, David Farning wrote:
 The piece I am looking at is reducing the losses between the battery
 and the server/AP.
 

See my earlier response.

 
 Several systems have a 12V Battery which is inverted to 120AC which is
 then transformed back to low voltage DC for input to the server/AP.
 That doesn't seem very efficient.
 

+1

Jerry

 
 Dave
 
 
 On Wed, May 29, 2013 at 3:29 PM, Sameer Verma sve...@sfsu.edu wrote:
 On Wed, May 29, 2013 at 1:03 PM, David Farning
 dfarn...@activitycentral.com wrote:
  Tony could you share more information about your work on 12
 Volt power
  supplies for School Servers?
 
  Whenever I see a School Server setup containing a 12V
 Battery, an inverter,
  a power strip, and a couple of 120V to 12V power supplies to
 provide power
  for the server and the AP... my eyes start to tear up:(
 
  The situation I am looking at has power part of the day so
 we can recharge
  the battery. To keep things simple we would like to use a
 Trimslice or XO-4
  and off the shelf AP.
 
  Ideally we would like to have 'kit' that contained
 everything except that
  battery that can be set up and tested before arriving at the
 deployment.
 
  Thanks
 
  --
  David Farning
  Activity Central: http://www.activitycentral.com
 
 
  ___
  Server-devel mailing list
  Server-devel@lists.laptop.org
  http://lists.laptop.org/listinfo/server-devel
 
 
 What about an off-the-shelf SoHo UPS unit?
 
 cheers,
 Sameer
 
 
 
 
 -- 
 David Farning
 Activity Central: http://www.activitycentral.com
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] XSCE 0.2 - Network problems running xs-setup

2013-03-22 Thread Jerry Vonau
On Fri, 2013-03-22 at 09:22 -0300, Rodolfo D. Arce S. wrote:
 Hello:
 
 I ran into a few problems when trying to install the XSCE 0.2. I
 downloaded the repo and installed, during the installation process i
 got this messages, but apparently everything was installed correctly.
 
 http://pastebin.com/srwDn6wX

That's part of the rpm, the %post scriptlet is calling xs-setup
--upgrade-only and the xs-setup exits at that point.

 
 I'm running in a HP DV4 laptop with Fedora 17 (security spin, i'm
 downloading the std version), it's connected to the internet with the
 wi-fi, and during xs-setup, connection is lost for some time (20-30
 secs aprox), it stops and starts Networkmanager apparently, but is
 long enough for the script to fail at downloading the required
 software, and installation fails. I think is during xs-setup-network
 

That time to restart NM seems excessive, but we need to cover that
situation. What would you time is a safe amount of time to wait before
bailing out of the install? I'm thinking 2 minutes.  


 http://pastebin.com/7YTFHLL7
 
 I'll be poking around to see if I can connect to internet with a
 cable, or pehaps give it a sleep to the script before downloading,
 if you could point me into wich file should i change.
 
 cheers
 

I have some revisions related to that in the testing repo, could you
start the next install with the testing repo enabled:

http://build.activitycentral.com/xsce.repo
 
Jerry



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


Re: [Server-devel] XSCE 0.2 - Network problems running xs-setup

2013-03-22 Thread Jerry Vonau
On Fri, 2013-03-22 at 10:24 -0300, Rodolfo D. Arce S. wrote:
  That time to restart NM seems excessive, but we need to cover that
  situation. What would you time is a safe amount of time to wait before
  bailing out of the install? I'm thinking 2 minutes.
 
 
 
 It takes some time because the conection is wi-fi and it takes a long
 time to negotiate the conection, the is restored a couple seconds
 before the scripts exists. The ideal would be to check if connection
 is up and then continue, with a simple ping to the previously found
 gateway should work and timeout after 2 minutes or so. DHCP servers on
 most routers are fast enough for that window of time with cable
 connections, but wireless could take a while. 2 minutes is more than
 enough.
 
  I have some revisions related to that in the testing repo, could you
  start the next install with the testing repo enabled:
 
 I have to enable testing and upgrade the xs-cofig package? or is there
 a specific package that needs to be downloaded?
 

We haven't updated the stable repo yet, the latest testing rpm is at:

http://build.activitycentral.com/xs-repo/RPMS/noarch/?C=M;O=D

You can then install the latest by hand with rpm if you wish. You will
still need to have the repo file present to be able to install other
packages. 

Jerry
 


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


Re: [Server-devel] XSCE 0.2 - Network problems running xs-setup

2013-03-22 Thread Jerry Vonau
On Fri, 2013-03-22 at 11:05 -0300, Rodolfo D. Arce S. wrote:
 I downloaded the RPM, installed using yum and didn' t ask for any 
 dependencies.
 
 ran xs-setup and it failed, it did restarted the Network and waited
 for a bit, but later it just failed, didn' t try to download anything
 
 http://pastebin.com/vdgfuHtY
 

Think we have an undeclared dependency on the rpm package 'hostname',
which may not be installed, can you check for that rpm package with
'rpm -q hostname' please. 

Jerry

 
 2013/3/22 Jerry Vonau jvo...@shaw.ca:
  On Fri, 2013-03-22 at 10:24 -0300, Rodolfo D. Arce S. wrote:
   That time to restart NM seems excessive, but we need to cover that
   situation. What would you time is a safe amount of time to wait before
   bailing out of the install? I'm thinking 2 minutes.
  
  
 
  It takes some time because the conection is wi-fi and it takes a long
  time to negotiate the conection, the is restored a couple seconds
  before the scripts exists. The ideal would be to check if connection
  is up and then continue, with a simple ping to the previously found
  gateway should work and timeout after 2 minutes or so. DHCP servers on
  most routers are fast enough for that window of time with cable
  connections, but wireless could take a while. 2 minutes is more than
  enough.
 
   I have some revisions related to that in the testing repo, could you
   start the next install with the testing repo enabled:
 
  I have to enable testing and upgrade the xs-cofig package? or is there
  a specific package that needs to be downloaded?
 
 
  We haven't updated the stable repo yet, the latest testing rpm is at:
 
  http://build.activitycentral.com/xs-repo/RPMS/noarch/?C=M;O=D
 
  You can then install the latest by hand with rpm if you wish. You will
  still need to have the repo file present to be able to install other
  packages.
 
  Jerry
 
 
 
 
 
 


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


Re: [Server-devel] XSCE 0.2 - Network problems running xs-setup

2013-03-22 Thread Jerry Vonau
On Fri, 2013-03-22 at 11:47 -0300, Rodolfo D. Arce S. wrote:
 It's installed
 
 hostname-3.10-1.fc17.i686
 

The only difference I can see is you are using sudo while I used su
before running xs-setup but I don't think that is an issue but might be.

Now that is strange, why would your installation not find the
executable, wait it does but the value returned is bad. Is the
file /etc/hostname present if so what is the contents?

Jerry


 

 2013/3/22 Jerry Vonau jvo...@shaw.ca:
  On Fri, 2013-03-22 at 11:05 -0300, Rodolfo D. Arce S. wrote:
  I downloaded the RPM, installed using yum and didn' t ask for any 
  dependencies.
 
  ran xs-setup and it failed, it did restarted the Network and waited
  for a bit, but later it just failed, didn' t try to download anything
 
  http://pastebin.com/vdgfuHtY
 
 
  Think we have an undeclared dependency on the rpm package 'hostname',
  which may not be installed, can you check for that rpm package with
  'rpm -q hostname' please.
 
  Jerry
 
 
  2013/3/22 Jerry Vonau jvo...@shaw.ca:
   On Fri, 2013-03-22 at 10:24 -0300, Rodolfo D. Arce S. wrote:
That time to restart NM seems excessive, but we need to cover that
situation. What would you time is a safe amount of time to wait before
bailing out of the install? I'm thinking 2 minutes.
   
   
  
   It takes some time because the conection is wi-fi and it takes a long
   time to negotiate the conection, the is restored a couple seconds
   before the scripts exists. The ideal would be to check if connection
   is up and then continue, with a simple ping to the previously found
   gateway should work and timeout after 2 minutes or so. DHCP servers on
   most routers are fast enough for that window of time with cable
   connections, but wireless could take a while. 2 minutes is more than
   enough.
  
I have some revisions related to that in the testing repo, could you
start the next install with the testing repo enabled:
  
   I have to enable testing and upgrade the xs-cofig package? or is there
   a specific package that needs to be downloaded?
  
  
   We haven't updated the stable repo yet, the latest testing rpm is at:
  
   http://build.activitycentral.com/xs-repo/RPMS/noarch/?C=M;O=D
  
   You can then install the latest by hand with rpm if you wish. You will
   still need to have the repo file present to be able to install other
   packages.
  
   Jerry
  
  
  
 
 
 
 
 
 
 
 


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


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-21 Thread Jerry Vonau
On Thu, 2013-03-21 at 14:33 -0400, Richard Smith wrote:
 On Thu, Mar 21, 2013 at 6:30 AM,  tkk...@nurturingasia.com wrote:
 
  I used the testing repo. Installation, registration and access went well on 
  my XO 1.75.
 
 Interesting.  So I wonder whats up with my setup.  I'm slightly
 different in that I'm not using a AP rather I have a USB network
 adapter in the client XO and I'm connecting directly to the USB
 adapter on the XS.  

That places 2 network adaptors on the client XO and might interfere with
name resolution, just want to be sure what is the contents
of /etc/resolv.conf are. Can you post that info and maybe the output of
route -n from the XO client please?

 The network functions fine it just won't register.

We saw this once while testing, and has come up on the mailing list
before, it appears that registration fails if the XS doesn't have a live
internet connection(even with the XS-0.7). Does this new XS really have
internet access?

  Same setup works if I connect to a 0.7 XS and if I nmap the 0.7 XS I
 see that port 8080 is open.
 

I can see via netstat -nat that 8080 is open on the XS

 On the client XO please install nmap sudo yum -y install nmap and
 then sudo nmap schoolserver (assuming you took the default domain)
 and post the results.  I'm curious if you have something on 8080.
 

My XO's using the build-in wifi for access to the XS can register
without any issues. Lets see what's up with the add-on network adaptor
setup.

Jerry



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


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-20 Thread Jerry Vonau
On Wed, 2013-03-20 at 12:54 -0400, Richard Smith wrote:
 On Tue, Mar 19, 2013 at 7:16 PM, Richard Smith rich...@laptop.org wrote:
  Dunno.  Where do I look for the version?
 
  rpm -q xs-config
 
  0.8.2.100.18.g8895685-1
 

Thanks for the great feedback.

 I tried a 2nd install on a XO-1.5 I had and received exactly the same
 results.  (Without the MN tag problem).  The install appeared to go
 smoothly.  ejabberd claimed it could not start up. 

There is an issue with ejabberd for XO-1.0/1.5s, I patched ejabberd with
dsd's pubsub patch but rolled the rpm on ARM only, just need to find
time to re-compile the source rpm on i386 and x86-64 and make it
available in the yum repo.
 

 Reboot and the same
 httpd problem with pathagar exists.  

This is should now be fixed.

 Fixing that still does not
 correct the registration problem.
 

There was a strange issue when parsing /domain_config.d/, I wrongly
assumed that dhclient, where the hostname is being set, would run first
based on the filename. This has been resolved.


 Running tcpdump on the exchange shows that the request to the webcache
 port is responded to with a RST.  Nmap the sever and there's nothing
 running on port 8080.  

That most likely was a result of the above hostname failure.

 So whatever is supposed to be servicing that
 didn't happen.  Other services look ok.  ssh, dns, http are up, squid
 is up on 3128,  xmpp on 5222 and 5280 and presence is on 5298.
 Identical behavior on the 1.75 server install.
 
 So I'd say either all my machines are broken somehow or there's been a
 regression.  I'm going to bail and use XS .7 for my dev purposes as
 this yak is starting to get hairy.  I can still run some diagnostics
 on the machines if you find you can't duplicate the failure and want
 more info.
 

If you would be so brave to try the latest rpm, please start with the
testing enabled repo[1].

 I've also discovered that the terminal command prompt appears to have
 broken line wrapping.  If you type really long lines in the terminal
 activity it will wrap back to the beginning of the same line rather
 than the next line.  The command still works but it makes it difficult
 to review things when you look at history.
 

This alteration has been removed.

 Hope this helps.
 

It does, thanks.

Jerry

1. http://build.activitycentral.com/xsce.repo





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


Re: [Server-devel] Puppet

2013-03-19 Thread Jerry Vonau
On Tue, 2013-03-19 at 12:20 -0400, Tony Anderson wrote:
 Hi,
 
 Daniel Drake implemented Puppet for XS-0.7 (it is included in the 
 services.).
 
 Tony
 

I believe the rpm is installed but the service is left disabled as there
would need to be some configuration needed to be preformed before
rolling out.

Jerry



 
 On 03/19/2013 12:00 PM, server-devel-requ...@lists.laptop.org wrote:
  Send Server-devel mailing list submissions to
  server-devel@lists.laptop.org
 
  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
  server-devel-requ...@lists.laptop.org
 
  You can reach the person managing the list at
  server-devel-ow...@lists.laptop.org
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of Server-devel digest...
 
 
  Today's Topics:
 
  1. puppet (Tim Moody)
 
 
  --
 
  Message: 1
  Date: Mon, 18 Mar 2013 21:17:49 -0400
  From: Tim Moody timmo...@sympatico.ca
  To: server-devel@lists.laptop.org
  Subject: [Server-devel] puppet
  Message-ID: blu0-smtp101a74e0dcd71752749e23cb1...@phx.gbl
  Content-Type: text/plain; format=flowed; charset=iso-8859-1;
  reply-type=original
 
  Over the years there have been a number of expressions of interest in
  puppet.  Are there any modules out there for actual XS services?
 
  I know about http://dev.laptop.org/git/users/martin/puppet-example/tree/,
  which has some manifests.
 
 
 
  --
 
  ___
  Server-devel mailing list
  Server-devel@lists.laptop.org
  http://lists.laptop.org/listinfo/server-devel
 
 
  End of Server-devel Digest, Vol 71, Issue 14
  
  .
 
 
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-19 Thread Jerry Vonau
On Tue, 2013-03-19 at 14:33 -0400, Richard Smith wrote:
 I want to try and make some tweaks to the ds_backup so I need a
 working school server.
 
 I grabbed a random XO 1.75 I had with 12.1.0-21 installed and tried to
 install XSCE 0.2.1 but I was not successful in getting a working
 config.
 
 After installing xs-config-xo and runnign bootstrap-xo I received the message
 Not an XO pleasea run 'xs-config' So I did. xs-config: command not found.
 
 Searching for xs-config in the xs-config-xo package with rpm -ql I find that
 xs-config is not in that that package so I took a look at bootstrap-xo
 to see why it was unhappy.
 
 It was unhappy because I have a bastard machine and I have no MN
 manufacturing tag.  :)
 

Yea, that would cause the script to exit with a warning.

 However, looking at script I would recommnd that rather than read the
 mfg tags directly you try to source
 /usr/share/olpc-utils/olpc-utils-functions and use the facilties of
 that script.  There are functions that will let you read mfg tags in
 an XO generation independent way and functions that will let you
 determine what
 XO generation you are using.
 

Thanks for the tip, I'll have a look at what is available.

 I noticed several occurrences of error messages the debug output of
 xs-setup a message of:
 
  /usr/bin/xs-setup-functions: line 242: [: missing ']'
 
 You may want to start using [[ ]] rather than [ ] for tests as [[ ]]
 is much more tolerant and supports several enhancements over [ ]
 

Nice to know thanks for the pointer.

 The rest of the installation appears to have gone ok except that
 ejabberd didn't seem to start up.  The message was
 
 Failed RPC connection to the note ejabberd@schoolserver: nodedown
 

That might be a result of bootstrap-x0 not running, we change the host
name there to be schoolserver.

 On reboot various ejabber things seems to be running so perhaps that
 was expected.
 

I'd think ejabberd would be running with the hostname that was
configured at install time. 

 If I go to a root shell I don't get an expected # in my prompt.  The
 difference between olpc@ and root@ is hard to notice.  I'd like to see
 a # added when you are root.
 

That can be doable.

 Because I don't have a full deployment infra setup I ran into this
 http://sugardextrose.org/issues/2685 . Also nothing in the
 instructions indicate that when you set up a local AP for the XO lan
 you have to disable any dhcpd server that might be running on the AP.
 Obvious to me but perhaps not obvious to others and multiple dhcp
 servers can be a bitch to debug.
 

Think we'll need to have a general howto on setting up the whole local
lan in the future.


 Trying to register the XSCE with itself fails.  Can't connect to the server
 

Can't find schoolserver, related to the above failure to change the
hostname.

 Trying to register a client XO to the schoolsever fails as well.  The
 IP the the client received looks good. I can ping schoolserver and
 schoolserver.local and browsing the Internet works. Trying to browse
 to http://schoolserver or schoolserver.local dosen't work.  Nmaping
 the server with my laptop shows that nothing is
 running on port 80.
 
 There's nothing in /var/log/httpd but systemctrl status httpd.service
 indicates there were startup errors and looking
 in /var/log/messages I find that httpd is choking on line 9 of
 /etc/httpd/conf.d/pathagar.conf which is:
 

Odd that should of been disabled in the base install, which version of
xs-config is installed? 

 PythonHandler django.core.handlers.modpython
 
 rpm -q django shows its not installed so I tried yum -y install django
 but no dice.  Still won't start up.
 Ideas? I've run out of time for now to try and sort this out.
 

I'd just rename /etc/httpd/conf.d/pathagar.conf and retrying to restart
apache as a quick fix.

Jerry

 Cheers.


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


Re: [Server-devel] My Observations and experiences with XSCE 0.2.1

2013-03-19 Thread Jerry Vonau
On Tue, 2013-03-19 at 19:10 -0400, Richard Smith wrote:
 
  Odd that should of been disabled in the base install, which version of
  xs-config is installed?
 
 Dunno.  Where do I look for the version?
 

rpm -q xs-config

  PythonHandler django.core.handlers.modpython
 
  rpm -q django shows its not installed so I tried yum -y install django
  but no dice.  Still won't start up.
  Ideas? I've run out of time for now to try and sort this out.
 
 
  I'd just rename /etc/httpd/conf.d/pathagar.conf and retrying to restart
  apache as a quick fix.
 
 Worked. Thanks.
 

your welcome,

Jerry

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


Re: [Server-devel] XSCE 0.2 on XO-1

2013-03-08 Thread Jerry Vonau
On Fri, 2013-03-08 at 10:52 -0800, Sameer Verma wrote:
 For what it's worth (and me not giving a rodent's behind) contrary to
 popular consensus, I ran the XSCE instructions
 (http://wiki.laptop.org/go/User:Holt/XS_Community_Edition/0.2/Installing)
 on a XO-1. A couple of attempts ran out of space, so I restarted with
 a 12.1.0 image and removed /home/olpc/Library and emptied
 /home/olpc/Activities, except for Browse and Terminal (Browse for the
 cloud, and Terminal for everything else).
 
 On the third run, it ran all the way, and now manages to provide me
 with network activities. erlang/ejabberd is running. So are squid,
 avahi, dhcpd, named, and dhclient. httpd isn't so I'll peek in and see
 why. Not quite sure what else to do/check to see how it works. Does it
 have a web UI? If so, didn't spot that in the instructions.
 
 df -h tells me that rootfs mounted on / has 155M available. Perhaps
 getting rid of GNOME etc. will free up more space.
 
 Why did I do it? Short answer: Because I can. Longish answer: I would
 like to see a common methodology of installation and provisioning of
 services on all platforms, irrespective of form factor or CPU arch. So
 far, it's promising.
 
 cheers,
 Sameer

Maybe you can install a SD-card in the external slot and run the OS from
there, that should take care of the space constringent.

Jerry



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


Re: [Server-devel] XS Community Edition: XO 1.75 installtion

2013-03-02 Thread Jerry Vonau
On Sat, 2013-03-02 at 17:31 +, tkk...@nurturingasia.com wrote:
 Yes it is a 12.1.0 (build 10) as I cannot flash the new build 21 since the 
 image I have is customised.
 

Is your 1.75 locked?

 For the 1st installation I did not have the USB-Ethernet-AP connection plugin.
 

Your best bet is to have all your interfaces plugging in before booting
the XO, otherwise when we detect the number of interfaces we will miss
installing some components that is vital to using the XS as a router. We
prompt if we detect less than what is required for a router, but I
prefer to have the interfaces appear in the same order as what the
kernel will find if just rebooted. This is more of an issue when your
using 2 usb based interfaces and not using the XO's internal wifi.

 Maybe I should use another XO to start all over again!
 

I would prefer if you could use 12.1.0-21 as a starting point as that is
what we are testing with. If you can't do that, please ensure your
network adaptor is inserted before booting then run the install.


 Thanks for the detail step by step. Hope I have better luck the next time.
 

see:

http://wiki.laptop.org/go/User:Holt/XS_Community_Edition/0.2/Hacking 
Installing.


 Does Moodle, registration, etc work as usual with a complete install?
 
 

Moodle is left uninstalled, but can be added later if wanted/needed,
instructions to follow.

Thanks for the valuable feedback, 

Jerry


 Cheers
 -Original Message-
 From: Anna [mailto:ascho...@gmail.com]
 Sent: Sunday, March 3, 2013 12:42 AM
 To: tkk...@nurturingasia.com
 Cc: server-devel@lists.laptop.org
 Subject: Re: [Server-devel] XS Community Edition: XO 1.75 installtion
 
 Just to clarify, you're on a 1.75 running 12.1.0?  And before you started
 doing anything in the instructions, did you plug in a USB wifi dongle
 connected to a powered up AP?
 
 My usual process for getting ready to install is:
 
 1.  Flash 12.1.0 on a 1.75
 2.  It reboots itself, I set the buddy name
 3.  In NH, I connect to my home wifi
 4.  Turn off power management in the Sugar Control Panel
 5.  Plug in the ethernet cable that connects the usb wifi dongle to the AP
 6.  Plug the AP's power into the wall outlet
 7.  Insert the usb wifi dongle into the 1.75
 8.  Open the terminal activity and start following the install instructions
 
 On Sat, Mar 2, 2013 at 10:23 AM, tkk...@nurturingasia.com wrote:
 
 
  Must I use an external AP or there is more magic if the XO wirless can
  function as this ?
 
 
 As far as I know, the XO's wifi chip doesn't support AP mode, so
 unfortunately no.
 
 Anna Schoolfield
 Birmingham
 
 
 
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] Re-register an XO on XS schoolserver

2012-12-07 Thread Jerry Vonau
On Fri, 2012-12-07 at 13:10 +0100, vanessa ramos da cruz wrote:
 Halo,
 
 
 I am Vanessa, I am working in Angola with this project and have a
 little concern:
 
 I had a server with XS 0.6, I registered on it some XO’s just for
 tests.
 Now I have a new machine on witch I installed the XS 0.7. I want to
 register the XO's in the new Machine, but the right click register
 option disappears when a register the XO's at the first time.   
 
 Can you please help me? 
 
 
 I tried this on terminal to restore the right click register option:
 gconftool-2 --get /desktop/sugar/show_register
 
 
 Returned the following message:
 no value defined for:  /desktop/sugar/show_register
 
 
 Then i tried this:
 gconftool-2 --toggle /desktop/sugar/show_register
 
 
 Returned: no value found for key  /desktop/sugar/show_register 
 
 
 What else can i do?
 

Hi Vanessa

Can you try:

gconftool-2 -s -t string /desktop/sugar/backup_url ''

gconftool-2 -s -t string /desktop/sugar/collaboration/jabber_server ''

then reboot the XO.


This appears to for me here with sugar 0.84 base installs.

Jerry








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


Re: [Server-devel] Re-register an XO on XS schoolserver

2012-12-07 Thread Jerry Vonau
Not with my testing it took both gconf keys to make register come back
just tried the ui only and it doesn't work on 0.84.31
 

On Fri, 2012-12-07 at 11:37 -0500, Samuel Greenfeld wrote:
 Older OS builds may not be able to re-register by default, but I think
 resorting to the command line may be overdoing it.
 
 I seem to recall that deleting the schoolserver name from the Network
 control panel and pressing the OK (checkmark) button was enough to
 get the Register item to appear again (possibly after a reboot).
 
 
 On Fri, Dec 7, 2012 at 11:35 AM, Jerry Vonau jvo...@shaw.ca wrote:
 On Fri, 2012-12-07 at 13:10 +0100, vanessa ramos da cruz
 wrote:
  Halo,
 
 
  I am Vanessa, I am working in Angola with this project and
 have a
  little concern:
 
  I had a server with XS 0.6, I registered on it some XO’s
 just for
  tests.
  Now I have a new machine on witch I installed the XS 0.7. I
 want to
  register the XO's in the new Machine, but the right click
 register
  option disappears when a register the XO's at the first
 time.
 
  Can you please help me?
 
 
  I tried this on terminal to restore the right click register
 option:
  gconftool-2 --get /desktop/sugar/show_register
 
 
  Returned the following message:
  no value defined for:  /desktop/sugar/show_register
 
 
  Then i tried this:
  gconftool-2 --toggle /desktop/sugar/show_register
 
 
  Returned: no value found for key
  /desktop/sugar/show_register
 
 
  What else can i do?
 
 
 
 Hi Vanessa
 
 Can you try:
 
 gconftool-2 -s -t string /desktop/sugar/backup_url ''
 
 gconftool-2 -s -t
 string /desktop/sugar/collaboration/jabber_server ''
 
 then reboot the XO.
 
 
 This appears to for me here with sugar 0.84 base installs.
 
 Jerry
 
 
 
 
 
 
 
 
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel
 
 


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


Re: [Server-devel] usbmount alternatives

2012-11-26 Thread Jerry Vonau
On Mon, 2012-11-26 at 11:24 -0600, Daniel Drake wrote:
 On Mon, Nov 26, 2012 at 11:22 AM, Jerry Vonau jvo...@shaw.ca wrote:
  On Mon, 2012-11-26 at 08:23 -0600, Daniel Drake wrote:

  Think the issue might be that a list (sda sda1) of character files is
  passed by udev but usbmount doesn't test if it's a block device before
  trying to mount, then failing and bailing if the first device in the
  list doesn't mount.
 
 sda and sda1 will never be character devices, always block. It may try
 sda first, but I don't think that is something new.
 

OK a list of files found in /dev then, why would anybody try to mount
sda if sda1 is present? I can see trying to mount sda if there was no
partition table present, but if there is a table why try? It's going to
fail. 

Doesn't matter, there are acceptable replacements for that
functionality, just another package that's not part of Fedora that won't
need to be maintained going forward. 

Jerry




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


Re: [Server-devel] Server-devel Digest, Vol 67, Issue 12

2012-11-26 Thread Jerry Vonau
On Tue, 2012-11-27 at 08:46 +0200, Tony Anderson wrote:
 Hi,
 
 I placed the activities in the library on the school server -Django app.
 Browse downloads a selected activity. Users can erase unneeded 
 activities to manage storage (they can always be installed again).
 The updater is not really needed since the model is that the deployment 
 updates the server annually before school starts. This seems reasonable 
 since most activity updates relate to changes in the Sugar environment 
 which also would be updated annually.
 

Any reason your not using the XS's built-in activity server?[1] Seems
like a better way of using the built-in[2] software on the XO which
looks for the schoolserver for activities to be updated by default
without adding anything new to the XS except for the newer activities. 


 It was reported at one time that the underlying model (Firefox add-ons) 
 was moving to Django and that ASLO would do so also. If that happens, it 
 would be easy to remount on a SS.
 
 Tony
 

Not knocking your implementation just wondering why use Django as you
could still browse to the activities at: http://schoolserver/activities/

Jerry

1. http://dev.laptop.org/git/users/martin/xs-activity-server/
2. http://git.sugarlabs.org/sugar-update-control



 On 11/26/2012 07:00 PM, server-devel-requ...@lists.laptop.org wrote:
  Message: 3
  Date: Sun, 25 Nov 2012 22:39:52 -0600
  From: Jerry Vonaujvo...@shaw.ca
  To: Sameer Vermasve...@sfsu.edu
  Cc: XS Develserver-devel@lists.laptop.org,Sugar-dev Devel
  sugar-de...@lists.sugarlabs.org
  Subject: Re: [Server-devel] offline a.sl.o
  Message-ID:1353904792.1818.2.ca...@f14jerry.home.vonau.ca
  Content-Type: text/plain; charset=UTF-8
 
  On Sun, 2012-11-25 at 20:04 -0800, Sameer Verma wrote:
  Has anyone looked into running an offline copy of
  activities.sugarlabs.org on a server that isn't on the Internet (a la
  XS)?
  
  What would be do-able except sugar's activity updater on the XO would
  select every activity for installation by default[1].
 
  Jerry
 
  1.http://lists.laptop.org/pipermail/devel/2011-December/034022.html
 
 
  cheers,
  Sameer
  --
  Sameer Verma, Ph.D.
  Professor, Information Systems
  San Francisco State University
  http://verma.sfsu.edu/
  http://commons.sfsu.edu/
  http://olpcsf.org/
  http://olpcjamaica.org.jm/
  ___
  Server-devel mailing list
  Server-devel@lists.laptop.org
  http://lists.laptop.org/listinfo/server-devel
 
 
 
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] offline a.sl.o

2012-11-25 Thread Jerry Vonau
On Sun, 2012-11-25 at 20:04 -0800, Sameer Verma wrote:
 Has anyone looked into running an offline copy of
 activities.sugarlabs.org on a server that isn't on the Internet (a la
 XS)?
 

What would be do-able except sugar's activity updater on the XO would
select every activity for installation by default[1].

Jerry

1. http://lists.laptop.org/pipermail/devel/2011-December/034022.html


 cheers,
 Sameer
 -- 
 Sameer Verma, Ph.D.
 Professor, Information Systems
 San Francisco State University
 http://verma.sfsu.edu/
 http://commons.sfsu.edu/
 http://olpcsf.org/
 http://olpcjamaica.org.jm/
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel


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


Re: [Server-devel] Moodle conection

2012-11-07 Thread Jerry Vonau
On Wed, 2012-11-07 at 14:17 +0100, vanessa ramos da cruz wrote:
 Halo all!
 
 
 I am trying to connect Moodle and i get the following message:
 
 
 Error: Database connection failed.
 
 
 It is possible that the database is overloaded or otherwise not
 running properly.
 
 
 The site administrator should also check that the database details
 have been correctly specified in config.php
  
 I am using XS 0.7.
 
 
 Can some one help me?
 

You might of missed a configuration detail, can you tell me the steps
you did to install the XS?

Jerry


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


Re: [Server-devel] trouble accessing HTTP server when using manual network configuration

2012-10-15 Thread Jerry Vonau
On Mon, 2012-10-15 at 20:37 -0500, David Kanenwisher wrote:
 Hello,
 
 I'm trying to get the 0.7 of the school server to work on a laptop
 that needs to be taken to different schools which already have an
 existing network. I don't want to run the network setup tool since I'm
 concerned enabling DHCP and DNS will cause trouble on the school's
 network. Sadly, though not running the setup seems to have made the
 HTTP server unreachable and I'm stumped as to why.
 
 I set the hostname of the server to the IP address assigned to the
 server by the router via DHCP and configured Apache to listen on all
 interfaces. When I run netstat I can see Apache is listening on all
 interfaces on port 80, as configured. I can use wget on the server to
 retrieve the webpage at localhost, 127.0.0.1 and the IP address given
 by DHCP. When I try to wget or telnet to the server from another PC I
 get a message that the host is unreachable even though, using tcpdump,
 I can see packets arriving on the server. Also, I can ssh to the
 server from another PC.
 
 I feel like I'm missing something obvious and was reluctant for quite
 a while to message the list. I figured I must be close! The solution
 just around the corner, but I realize now that I'm stumped.
 
 Any help would be much appreciated or if you need anymore info I'd be
 glad to get it.
 

Some DNS server on the school's network will have to resolve
schoolserver for the clients. To fix this without relying on an
outside server that is not under our control I think the clients
should use nss-mdns to locate the schoolserver in the future. In the
here and now you will have to contact the DNS server's admins and ask
them to make an entry in the DNS for your schoolserver. Hope nothing
else is already called schoolserver.

Jerry

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


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


[Server-devel] units of measure for REGISTER_TIMEOUT in schoolserver.py

2012-10-05 Thread Jerry Vonau
Hi All:

I wondering what unit of measure is used for REGISTER_TIMEOUT in
schoolserver.py. Think this variable may be a good candidate to store in
gconf to allow alteration in the field as a means of resolving the
timeout issues that have been reported. While working on the XS port to
F17 we ran across this issue and found that doubling the original value
eliminated this problem.


Jerry

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


Re: [Server-devel] pushing activities to XOs

2012-09-05 Thread Jerry Vonau
On Wed, 2012-09-05 at 10:28 -0600, Daniel Drake wrote:
 On Wed, Sep 5, 2012 at 9:46 AM, Sameer Verma sve...@sfsu.edu wrote:
  Jerry,
 
  I had to manually add http://schoolserver/activities; to the Group
  under Software Update in the Control Panel. Then, when I run the
  update, it pings the XS and grabs new activities. Is this expected
  behavior?
 
 Yes. For a deployment you would use olpc-os-builder to preset that address.
 

Think if you use OOB to install system-wide you disable the
auto-detection of schoolserver in sugar-update-control. 

Jerry


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


Re: [Server-devel] pushing activities to XOs

2012-09-05 Thread Jerry Vonau
On Wed, 2012-09-05 at 10:28 -0600, Daniel Drake wrote: 
 On Wed, Sep 5, 2012 at 9:46 AM, Sameer Verma sve...@sfsu.edu wrote:
  Jerry,
 
  I had to manually add http://schoolserver/activities; to the Group
  under Software Update in the Control Panel. Then, when I run the
  update, it pings the XS and grabs new activities. Is this expected
  behavior?
 
 Yes. For a deployment you would use olpc-os-builder to preset that address.
 
 And yes, there is a missing link in that this currently must be
 user-invoked; theres no fully automated way of pushing activities yet.
 I hope to be a part of solving that in a future release cycle.
 
 Daniel

Hi All:

I've cc'd other that may have some interest in this and may be able to
chime in on the subject.

I'd prefer to call Software Update in the Control Panel Activity
Updater from OLPC. You're able to call Activity Updater from OLPC
from the cli in a terminal with ./model.py and get a listing but need
something the equivalent to view.py for use from the cli to be useful
for blind installation. 

We've in OLPCAU have been using sugar-client[1] to run yum in the
background, so I've been thinking that we could maybe extend
sugar-client to run Activity Updater in the same way. Think the
additions to sugar-client and sugar-update-control might be of some
interest to those who use sugar-client to push updates to the XO's. 

This is also related to patches[2] sent to the mailing-list altering the
behaviour in that only pre-existing activities would be selected for
updates, here is the use case for improvements suggested. This has
opened up an avenue in which we can offer bundles that are not installed
on the image but can be user installed on demand[3]. This requires a
minor change to OOB to use a different url[4] for the update. We have
deployed this in the field and have received positive feed.

Jerry

1. http://wiki.sugarlabs.org/go/Platform_Team/Server_Kit/sugar-client
2. http://lists.laptop.org/pipermail/devel/2011-December/034022.html
3. https://sugardextrose.org/issues/383
4. http://wiki.laptop.org/go/Activities/OLPCAU/11.3.1/Addons




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


Re: [Server-devel] pushing activities to XOs

2012-09-03 Thread Jerry Vonau
On Mon, 2012-09-03 at 14:51 -0700, Sameer Verma wrote:
 Is there a way to push activities (new or upgrades) or activity
 bundles to XOs seamlessly via the XS? Been looking at the
 documentation on the wiki, but no luck as yet...
 

http://dev.laptop.org/git/users/dbagnall/xs-activity-server.git/tree/README

Think sugar-update-control supports looking for
http://schoolserver/activities by default.

Jerry

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


Re: [Server-devel] registering an xo for second time

2012-08-27 Thread Jerry Vonau
On Mon, 2012-08-27 at 15:48 +0100, vanessa ramos da cruz wrote:
  Halo!
 
 
 I am Vanessa; I am working in Angola with this project. I am new on
 the project so I have a little concern:
 
 I had a server with XS 0.6, I registered on it some XO’s just for
 tests. Now I have a new machine on witch I installed
 
 the XS 0.7. I would like to register the XO‘s on this new Machine. How
 ca I registered the few XO’s I already registered before?
 

Try entering this from sugar's terminal activity:

gconftool-2 --get /desktop/sugar/show_register

If false is returned, you could try toggling that setting with:

gconftool-2 --toggle /desktop/sugar/show_register

Hope that restores the right-click register option to the home view for
you.

Jerry



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


Re: [Server-devel] Networking issue with XS 0.7 on EPC-AT270

2012-07-31 Thread Jerry Vonau
On Wed, 2012-08-01 at 09:57 +1000, David Leeming wrote:
 Hello,
 
  
 
 I am training some teachers in PNG to set up school servers. We are
 using the EPC-AT270 (brochure attached, specs on page 7) and
 previously have installed X_-v0.6 with no problems at all.
 
  
 
 This time I am trying XS-0.7 but we have a networking issue. It does
 not configure either of the two Ethernet ports. 
 
  
 
 The EPC-AT270 has two Ethernet ports. 
 
  
 
 The installation is completely default as per the wiki 0.7
 installation guide, from CD, starting with an unformatted HDD. No
 errors are displayed on the screen during installation (but there is
 some scrolling of data).
 
  
 
 After installing, the first symptom is that when plugging in a
 computer or AP to either eth0 or eth1, the port LEDs do not light up
 and no network is seen by the connecting device.
 
  
 
 When querying ifconfig –a I can see eth0 and eth1 but they have no IP
 configuration.
 
  
 
 Any next steps? Meanwhile we are reverting to 0.6 which is OK on the
 EPC

To late to run mii-tool now, or check which kernel modules were loaded.
Or check if HWADDR was set in ifcfg-eth0|1 while having 2 nics with the
same kernel module: http://dev.laptop.org/ticket/11678


Jerry


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


Re: [Server-devel] Error Installing XS 0.7 from USB: can't find image #1 on disk

2012-07-27 Thread Jerry Vonau
On Fri, 2012-07-27 at 21:51 -0700, Brian wrote:
 On Jul 27, 2012, at 9:04 PM, Jerry Vonau jvo...@shaw.ca wrote:
  
  Using the windows tool is not recommended, use mkusbinstall[1] from the
  XS-repo, and you would need livecd-tools from Fedora 16 or greater
  installed. Which version of the windows tool are are you using? Maybe we
  can work with what was created, can you show me the layout that was
  created on the  
 
 I don't have another Linux box available here to run mkusbinstall. I tried 
 unetbootin but it wouldnt make it bootable so tried another app called Rufus 
 iirc which is like DD for windows to move the ISO to USB. 
 
 I booted into rescue mode and mounted /dev/sdb1 and here are the contents of 
 /:
 
 Packages/
 TRANS.TBL
 autorun.ico
 Autorun.inf
 images/
 isolinux/
 ldlinux.sys
 media.repo
 olpcxs.ks
 repodata/
 syslinux.cfg
 
 In images/ are install.img, updates.img. 
 
 Brian
 
 

Based on the updates.img[1] think the installer is looking for the iso
image of the cdrom, can you try copying the whole XS iso image to the
root of the usbdrive, rename repodata, packages, and media.repo.
Try that first, if that fails you might have to revert the changes to
isolinux.cfg and try again.

Jerry  

1.http://dev.laptop.org/git/projects/olpc-xs-builder/tree/xs-0.7/anaconda/usbinstall.patch

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


[Server-devel] Moodle broken with 0.94 datastore?

2012-06-07 Thread Jerry Vonau
Hi All:

Just wondering if anybody else is having problems viewing backups
created from sugar 0.94 or greater clients? Drilling down though the
menus in moodle to view the status results in an error Datastore is
corrupt or has an unknown format when trying to view a XO-1.75's
current backups. I haven't tried with XO-1.5 yet. I see that there are
current entries in /library/user/SN.  Any thoughts on how to proceed?

Jerry

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


Re: [Server-devel] failed to register

2012-06-05 Thread Jerry Vonau
On Tue, 2012-06-05 at 07:22 -0400, Holt wrote:
 On 6/4/2012 9:16 PM, Sameer Verma wrote:
  On Mon, Jun 4, 2012 at 6:11 PM, Jerry Vonaujvo...@shaw.ca  wrote:
  OK, let's check if the XS has the serial numbers, what is the output of
  /usr/bin/xs-list-registration? If that shows as correct the XOs timed
  out like in ticket 11056. Can you use the register again option from
  the home view? If that option is not available you'll have to manually
  add schoolserver.providence.uwimona.edu.jm to network-control-panel's
  server field and you should be good to go.
 
  Jerry
 
  [sverma@schoolserver ~]$ /usr/bin/xs-list-registration
  Listing students from  /home/idmgr/identity.db
  roshaun  marchall   SHC03801C2E 
  userSHC03801C74 
  userSHC03801C78 
  userSHC03801C65 
  xo  SHC03801C40 
  Ti-Annah Grant  SHC03801C31 
  userSHC03801C4F 
  xo  SHC03801C33 
  dadrique hamilton  cianna   SHC03801C6B 
  xo  SHC03801C77 
  malikha Algeca  BradnockSHC03801C32 
  user jahleel foster SHC03801C51 
  makada  SHC03801C7F 
  userSHC03801C34 
  shanell  moss   SHC03801C57 
  userSHC03801C18 
 
 
  I'm logging in remotely from San Francisco. Adam can give you the
  answer on the register again option
 
  cheers,
  Sameer
 
 XO-1.5s do not show a Register Again option, except on that 1 single 
 machine that registered successfully back on Saturday.
 
 That single XO-1.5 registered successfully (back on Saturday) regardless 
 whether its My Settings - Network - Server was set to 
 schoolserver.providence.uwimona.edu.jm or was not set to anything at all.
 
 As of Monday/now however, XO-1.5s cannot similarly register, no matter 
 if My Settings - Network - Server is set or not, even with 
 schoolserver.providence.uwimona.edu.jm remaining pingable.
 
 Anything else I can try?
 

Is idmgr running? Should show as running on port 8080 with netstat. 

Jerry


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


Re: [Server-devel] failed to register

2012-06-04 Thread Jerry Vonau
On Mon, 2012-06-04 at 20:04 -0400, Holt wrote:
 On 6/4/2012 7:32 PM, John Watlington wrote:
  On Jun 4, 2012, at 7:30 PM, John Watlington wrote:
 
  Adam, something is wrong with those addresses.
  The 18.nn.nn.nn subnet is owned by MIT.   You shouldn't be
  using any of them.Perhaps you meant 172.18.nn.nn ?
 
 Wad's exactly right -- I spent too many years at MIT and so typed 18.* 
 without thinking.  The correct IPs for the XS (no idea why there are 2) 
 are in fact:
  172.18.0.1  (pingable, ssh, etc)
  172.18.196.1  (schoolserver?)
 

Still don't think that is right, mine is using 172.18.96.1, what's in
the ifcfg-eth0 and ifcfg-eth1 filea in /etc/sysconfig/network-scripts/?

 I remain very concerned that 172.18.196.1 is not pingable from the 
 XO-1.5s, even when this IP's names {schoolserver, 
 schoolserver.providence.uwimona.edu.jm} are pingable, responding with 
 172.18.196.1
 

Have a look in the /var/run/named-xs/school.internal.zone.db file think
there might be an error there, but mine has 172.18.96.1.

What is in /etc/dhcpd-xs-conf?

 In Response to DSD:
 There is no server set in My Settings  Network  Server on any of the 
 XO-1.5s
 
 Hopefully Sameer who helped with the original XS networking config 2 
 months ago can respond to Wad's WAN/LAN request below??
 

DSD, any way to quickly restore the stock settings?

Jerry

  And I never got around to the second part of the comment.
  eth0 (the WAN port) on the XS should be in a different subnet
  than the laptops (the LAN ports).If for some reason it is not,
  difficulties will ensue as the routing tables will be screwed up.
 
  Cheers,
  wad
 
 
  On Jun 4, 2012, at 6:19 PM, Holt wrote:
 
  On 6/4/2012 3:27 PM, Sameer Verma wrote:
  On Sun, Jun 3, 2012 at 3:24 PM, Jerry Vonaujvo...@shaw.ca   wrote:
  On Sat, 2012-06-02 at 13:15 -0700, Sameer Verma wrote:
  On Sat, Jun 2, 2012 at 10:10 AM, Sameer Vermasve...@sfsu.edu   wrote:
  XS 0.7
  OLPC build 874
  Sugar 0.92.2
 
  The XO fails to register, but a folder is created for the XO on the XS
  under /library/users/
 
  The XO shows no collaboration server under Control Panel | Network
 
  Any ideas? Pointers?
 
  cheers,
  Sameer
  On the XS I see the machine as registered via /var/log/messages
  (schoolserver olpc_idmgr: Registered user abcdefgh with serial
  SHC03345845)
 
  So, looks like the server end is doing what it should, but the XO end 
  is not?
  Think you bumped into this: https://dev.laptop.org/ticket/11056
 
  Jerry
 
  Thx. Will investigate. Copying Adam Holt and the Jamaica team on it
  (the trouble in in a school there).
 
  Sameer
  One XO-1.5 successfully registered back on Saturday.  It successfully 
  then pushed 36MB to the XS' /library/users/SHC03801C2E (after running 
  /usr/bin/ds-backup.sh on the XO-1.5 and waiting ~30min).  So we went home 
  Saturday night with a false sense of confidence!
 
  But no XO-1.5s will fully register today (all ~50 of the school's XOs are 
  XO-1.5s).
  Clearly, Jamaica's change from XS 0.6 to XS 0.7 two months ago destroyed 
  reliable registration?
 
  Frustrating as all XO-1.5s do connect to XS, whose /library/users become 
  populated with each XO's serial number, when they 1st attempt to 
  register.  EG. directory /library/users/SHC03801C18 on XS is just 1 of 
  many examples of an XO-1.5 incompletely registering -- all similar 
  directories contain:
 
 .bash_logout
 .bash_profile
 .bashrc
 .ssh
 
  Is it normal that XO-1.5s can ping the schoolserver in these 3 ways:
 
 ping 18.172.0.1
 ping schoolserver(responds as 18.172.196.1)
 ping schoolserver.providence.uwimona.edu.jm(responds as 
  18.172.196.1)
 
  But yet CANNOT ping the schoolserver's eth0 IP address:
 
 ping 18.172.196.1(its inet addr according to ifconfig etho 
  anyway)
 
  If it matters, a failng-to-register XO-1.5's /etc/resolv.conf reads as 
  follows:
 
 # Generated by NetworkManager
 domain providence.uwimona.edu.jm
 search providence.uwimona.edu.jm localdomain
 nameserver 172.18.196.1
 
  What should I be trying?? :)
 
  --
  Help kids everywhere map their world, at http://olpcMAP.net !
 
  ___
  Server-devel mailing list
  Server-devel@lists.laptop.org
  http://lists.laptop.org/listinfo/server-devel
 
 


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


Re: [Server-devel] failed to register

2012-06-04 Thread Jerry Vonau
On Mon, 2012-06-04 at 17:49 -0700, Sameer Verma wrote:
 On Mon, Jun 4, 2012 at 5:44 PM, Jerry Vonau jvo...@shaw.ca wrote:
  On Mon, 2012-06-04 at 20:04 -0400, Holt wrote:
  On 6/4/2012 7:32 PM, John Watlington wrote:
   On Jun 4, 2012, at 7:30 PM, John Watlington wrote:
  
   Adam, something is wrong with those addresses.
   The 18.nn.nn.nn subnet is owned by MIT.   You shouldn't be
   using any of them.Perhaps you meant 172.18.nn.nn ?
 
  Wad's exactly right -- I spent too many years at MIT and so typed 18.*
  without thinking.  The correct IPs for the XS (no idea why there are 2)
  are in fact:
   172.18.0.1  (pingable, ssh, etc)
   172.18.196.1  (schoolserver?)
 
 
  Still don't think that is right, mine is using 172.18.96.1, what's in
  the ifcfg-eth0 and ifcfg-eth1 filea in /etc/sysconfig/network-scripts/?
 
  I remain very concerned that 172.18.196.1 is not pingable from the
  XO-1.5s, even when this IP's names {schoolserver,
  schoolserver.providence.uwimona.edu.jm} are pingable, responding with
  172.18.196.1
 
 
  Have a look in the /var/run/named-xs/school.internal.zone.db file think
  there might be an error there, but mine has 172.18.96.1.
 
  What is in /etc/dhcpd-xs-conf?
 
  In Response to DSD:
  There is no server set in My Settings  Network  Server on any of the
  XO-1.5s
 
  Hopefully Sameer who helped with the original XS networking config 2
  months ago can respond to Wad's WAN/LAN request below??
 
 
  DSD, any way to quickly restore the stock settings?
 
 Settings are stock. Adam confused 172.18.96.1 as 172.18.196.1
 
 Sameer
 

Adam:

OK, let's check if the XS has the serial numbers, what is the output of 
/usr/bin/xs-list-registration? If that shows as correct the XOs timed
out like in ticket 11056. Can you use the register again option from
the home view? If that option is not available you'll have to manually
add schoolserver.providence.uwimona.edu.jm to network-control-panel's
server field and you should be good to go.  

Jerry

 
  Jerry
 
   And I never got around to the second part of the comment.
   eth0 (the WAN port) on the XS should be in a different subnet
   than the laptops (the LAN ports).If for some reason it is not,
   difficulties will ensue as the routing tables will be screwed up.
  
   Cheers,
   wad
  
  
   On Jun 4, 2012, at 6:19 PM, Holt wrote:
  
   On 6/4/2012 3:27 PM, Sameer Verma wrote:
   On Sun, Jun 3, 2012 at 3:24 PM, Jerry Vonaujvo...@shaw.ca   wrote:
   On Sat, 2012-06-02 at 13:15 -0700, Sameer Verma wrote:
   On Sat, Jun 2, 2012 at 10:10 AM, Sameer Vermasve...@sfsu.edu   
   wrote:
   XS 0.7
   OLPC build 874
   Sugar 0.92.2
  
   The XO fails to register, but a folder is created for the XO on 
   the XS
   under /library/users/
  
   The XO shows no collaboration server under Control Panel | Network
  
   Any ideas? Pointers?
  
   cheers,
   Sameer
   On the XS I see the machine as registered via /var/log/messages
   (schoolserver olpc_idmgr: Registered user abcdefgh with serial
   SHC03345845)
  
   So, looks like the server end is doing what it should, but the XO 
   end is not?
   Think you bumped into this: https://dev.laptop.org/ticket/11056
  
   Jerry
  
   Thx. Will investigate. Copying Adam Holt and the Jamaica team on it
   (the trouble in in a school there).
  
   Sameer
   One XO-1.5 successfully registered back on Saturday.  It successfully 
   then pushed 36MB to the XS' /library/users/SHC03801C2E (after running 
   /usr/bin/ds-backup.sh on the XO-1.5 and waiting ~30min).  So we went 
   home Saturday night with a false sense of confidence!
  
   But no XO-1.5s will fully register today (all ~50 of the school's XOs 
   are XO-1.5s).
   Clearly, Jamaica's change from XS 0.6 to XS 0.7 two months ago 
   destroyed reliable registration?
  
   Frustrating as all XO-1.5s do connect to XS, whose /library/users 
   become populated with each XO's serial number, when they 1st attempt 
   to register.  EG. directory /library/users/SHC03801C18 on XS is just 1 
   of many examples of an XO-1.5 incompletely registering -- all 
   similar directories contain:
  
  .bash_logout
  .bash_profile
  .bashrc
  .ssh
  
   Is it normal that XO-1.5s can ping the schoolserver in these 3 ways:
  
  ping 18.172.0.1
  ping schoolserver(responds as 18.172.196.1)
  ping schoolserver.providence.uwimona.edu.jm(responds as 
   18.172.196.1)
  
   But yet CANNOT ping the schoolserver's eth0 IP address:
  
  ping 18.172.196.1(its inet addr according to ifconfig etho 
   anyway)
  
   If it matters, a failng-to-register XO-1.5's /etc/resolv.conf reads as 
   follows:
  
  # Generated by NetworkManager
  domain providence.uwimona.edu.jm
  search providence.uwimona.edu.jm localdomain
  nameserver 172.18.196.1
  
   What should I be trying?? :)
  
   --
   Help kids everywhere map their world, at http://olpcMAP.net !
  
   ___
   Server-devel mailing

Re: [Server-devel] failed to register

2012-06-04 Thread Jerry Vonau
On Mon, 2012-06-04 at 18:16 -0700, Sameer Verma wrote:
 On Mon, Jun 4, 2012 at 6:11 PM, Jerry Vonau jvo...@shaw.ca wrote:
snip
 
  Adam:
 
  OK, let's check if the XS has the serial numbers, what is the output of
  /usr/bin/xs-list-registration? If that shows as correct the XOs timed
  out like in ticket 11056. Can you use the register again option from
  the home view? If that option is not available you'll have to manually
  add schoolserver.providence.uwimona.edu.jm to network-control-panel's
  server field and you should be good to go.
 
  Jerry
 
 
 [sverma@schoolserver ~]$ /usr/bin/xs-list-registration
 Listing students from  /home/idmgr/identity.db
 roshaun  marchall SHC03801C2E 
 user  SHC03801C74 
 user  SHC03801C78 
 user  SHC03801C65 
 xoSHC03801C40 
 Ti-Annah GrantSHC03801C31 
 user  SHC03801C4F 
 xoSHC03801C33 
 dadrique hamilton  cianna SHC03801C6B 
 xoSHC03801C77 
 malikha Algeca  Bradnock  SHC03801C32 
 user jahleel foster   SHC03801C51 
 makadaSHC03801C7F 
 user  SHC03801C34 
 shanell  moss SHC03801C57 
 user  SHC03801C18 
 
 
 I'm logging in remotely from San Francisco. Adam can give you the
 answer on the register again option
 
 cheers,
 Sameer
 

Never tried with having the same user-name for more than one XO, not
sure on how well that will go.

Jerry  



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


Re: [Server-devel] failed to register

2012-06-03 Thread Jerry Vonau
On Sat, 2012-06-02 at 13:15 -0700, Sameer Verma wrote:
 On Sat, Jun 2, 2012 at 10:10 AM, Sameer Verma sve...@sfsu.edu wrote:
  XS 0.7
  OLPC build 874
  Sugar 0.92.2
 
  The XO fails to register, but a folder is created for the XO on the XS
  under /library/users/
 
  The XO shows no collaboration server under Control Panel | Network
 
  Any ideas? Pointers?
 
  cheers,
  Sameer
 
 On the XS I see the machine as registered via /var/log/messages
 (schoolserver olpc_idmgr: Registered user abcdefgh with serial
 SHC03345845)
 
 So, looks like the server end is doing what it should, but the XO end is not?

Think you bumped into this: https://dev.laptop.org/ticket/11056 

Jerry

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


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


[Server-devel] How-to make the XS appear in the neighbourhood view of the XOs

2012-06-03 Thread Jerry Vonau
Hi All:

I was thinking that since the XOs uses two different methods to display
what is seen in the neighbourhood view, how can I make the XS appear
when using salut? I'm thinking if that can occur then maybe we could
advertise that this is an XS. We then could have the register to
schoolserver menu occur at that point, in place of using hard-coded
names that depend on dns to work. Any thoughts on the subject?

Jerry

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


Re: [Server-devel] xs-pkgs

2012-03-31 Thread Jerry Vonau
On Fri, 2012-03-30 at 16:23 -0400, Tim Moody wrote:
 
  That is not a package, the @ makes it a group definition in the
  *comps.xml file in /repodata on the XS iso image. You must loopback
  mount the iso to view the file, then have a look for that string.
 
 
 Well, you're right as usual.  (also I said xs-pkgs remembering 0.6, when I 
 should have said olpc-xs).
 
 I found a file 
 '83aa5dc6a7d65fb600d12d70ec102379a719c6bad8b6acc5c0276a8439ad251f-OLPC 
 School Server-0.7-comps.xml'
snip
 
 Still don't know why this didn't install.  The  anaconda-ks.cfg after the 
 install only shows the following.  Does the XS need to be able to reach the 
 internet in order for the install to succeed?
 

All the packages to be installed should be on the cd and should not
require a connection to the internet. Was a network connection available
during the install? Were you using cobbler for the install? 

 %packages
 @Base
 @Core
 
 %end
 
 so it looks like these didn't install
 
 @system-admin-tools
 @olpc-xs
 xs-release
 epel-release
 

Can you send me the anaconda.ks file please.

 yum groupinstall OLPC XS only succeeded after I deleted everything in 
 /etc/yum.repos.d/ except my local repo.  This included external mirrors for 
 Centos and olpcxs.  How do they get into this directory?

The files that reside in /etc/yum.repos.d/ are placed there by the
*-release files that get installed. Sounds like yum is ignoring the
groups that are not part of the primary CentOS repo. Mind sending me
the /etc/yum.conf file and the stock *.repo files from the XS please.

Jerry

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


Re: [Server-devel] xs-pkgs

2012-03-29 Thread Jerry Vonau
On Thu, 2012-03-29 at 17:52 -0400, Tim Moody wrote:
 I tried to do an install from OLPC-School-Server-0.7-i386.iso using cobbler.

Sorry haven't tried cobbler yet, I'm no help there.

 The olpcxs.ks looks for @olpc-xs, but I don't see it in the Packages 
 directory.  All I see are:
 
 idmgr-0.6.36.ge93529d-1.el6.noarch.rpm
 olpc-bios-crypto-0.5.26.g1972d11-1.xs11.i586.rpm
 xs-activation-0.3.14.gd2a3727-1.el6.noarch.rpm
 xs-activity-server-0.3.5.g3b1d13b-1.el6.noarch.rpm
 xs-config-0.7.0.46.g9b886c8-1.noarch.rpm
 xs-release-6-1.noarch.rpm
 xs-rsync-0.6.12.gabc8f49-1.el6.noarch.rpm
 xs-tools-0.5.5.g49ddc07-1.el6.noarch.rpm
 
 what should I do?
 

That is not a package, the @ makes it a group definition in the
*comps.xml file in /repodata on the XS iso image. You must loopback
mount the iso to view the file, then have a look for that string.

 (btw installing straight from cd never worked for me as it failed on the 
 disk partitioning regardless of the options I chose) 
 

From a kickstart file or by hand in the installer?

Jerry

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


Re: [Server-devel] named problem resolved-but not understood

2012-03-06 Thread Jerry Vonau
On Tue, 2012-03-06 at 13:26 -0500, George Hunt wrote:
 Hi again,
 
 Please disregard my previous question. . .
 
 Trial and error indicates that if the two option elements
 query-source port 53 and query-source-v6 port 53 are commented
 out, caching, ping, and default contents of resolv.conf function
 according to plan.
 
 Why did it work before? Maybe CentOS does something different?

Change in name's default behaviour.

Jerry 

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


Re: [Server-devel] XS on XO

2012-02-22 Thread Jerry Vonau
On Wed, 2012-02-22 at 18:08 -0800, Sameer Verma wrote:
 So, to start looking into XS on XO (1 or 1.5) using the CentOS6.2 or
 compatible + EPEL + OLPC XS repo is 11.3.0 a good place to start, or
 12.1.0 or I shouldn't waste my time as yet?
 
 Sameer

I'm going to try that with 11.3.1 XS + fedora repos. When I get a
chance.

Jerry

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


Re: [Server-devel] XS on XO

2012-02-22 Thread Jerry Vonau
On Wed, 2012-02-22 at 22:08 -0500, Martin Langhoff wrote:
 I'd recommend, on XO-1.5
 
 - take a 11.x.y buid
 - use the yum repos dsd prepared for XS, groupinstall the right group
 (OLPC School Server?)
Think I know how group install works. remember. ;) Just have to install
the release rpm first.

 - disable the prefdm service (remove/rename /etc/init/prefdm)
 - disable NM service, enable the 'network' service (using chkconfig) 
 
Think I'd prefer to use NM, but run the network as a system-service not
user service. 

 F14 and RHEL/CentOS6.2 are very close, the only incompat I am aware of
 is the Erlang runtime, so you probably need to rebuild ejabberd... 
 
 Let us know what you find!
 
Will do,

Jerry


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


Re: [Server-devel] XS-0.7 beta 1 released

2012-02-14 Thread Jerry Vonau
On Tue, 2012-02-14 at 16:39 -0600, Daniel Drake wrote:
 Hi,
 
 http://wiki.laptop.org/go/XS_Installing_Software_0.7 now includes
 instructions and a working link for a XS-0.7 beta install CD.
 
 You can also create USB install media easier than before, and this works 
 great.
 
 Also, a couple of packages in the repo have been updated since last
 week (yum update should work fine for existing installs to pull them
 in) fixing a couple of minor bugs.
 
 This version will be deployed in 6 test schools on Thursday/Friday
 here in Managua. I hope to label this version as 0.7 final (if Martin
 approves) on Monday morning, to be installed that day on 13 servers
 sent to the island of Ometepe the day after. Any last-minute testing
 appreciated.
 
 Thanks,
 Daniel

Hi Daniel:

Just downloaded the install iso, before I burn this to cd should 
/isolinux/initrd.img and /images/pxeboot/vmlinuz be 0 bytes in the iso?
In /isolinux/isolinux.cfg, upgradeany is used with full install
options, think that will force anaconda into upgrade mode.

Jerry

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


Re: [Server-devel] Who wrote http://wiki.laptop.org/go/XS_Install_Server?

2012-01-30 Thread Jerry Vonau
On Mon, 2012-01-30 at 13:05 -0600, Jerry Vonau wrote:
 On Mon, 2012-01-30 at 12:40 -0500, George Hunt wrote:
  Hi everyone,
  
  I'm new to this list. 
  
 
 Hi George:
 
 I'm the author of the XSAU-F11 based rework of the XS that Sridhar is
 referring to.
 
  I met Tony Anderson in Haiti, and again at the San Francisco OLPC
  Summit in late 2011. He prevailed upon me to spend some time trying to
  figure out how to rebase XS on a more recent Fedora Core.
  
  I just recently used pungi to gather together FC16 rpms into an iso
  using the kickstart file that came with XS-0.6.  What was 550MB in FC9
  has grown to 775MB in FC16.  My initial goal was to create a CD image,
  that can be installed in the traditional way. But going forward, even
  if we can pare things down and fit in 690MB this time, perhaps we need
  a better strategy.
  
 
 Think some of the issue is most likely that X is being dragged in or
 some extra files on the image. What is the file layout of the resulting
 iso image?
 

http://dev.laptop.org/git/projects/olpc-xs-builder 
is the new way of using pungi for the XS, my local version is at: 
https://dev.laptop.org.au/projects/xs-au/repository/revisions/master/show/olpc-xs-builder/xsau-F11

The key is to use the olpcxs-pungi.ks file to gather the rpms and
exclude what is not wanted before rolling the iso. Please have a look at
build.sh for the whole routine used. 

Jerry


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


Re: [Server-devel] Who wrote http://wiki.laptop.org/go/XS_Install_Server?

2012-01-30 Thread Jerry Vonau
On Mon, 2012-01-30 at 21:28 -0500, George Hunt wrote:
 Thanks Jerry,
 
 You've done what I wanted to discuss -- split apart the xs from a bare
 bones Fedora Core, and defer XS install until after firstboot.  

Well no, not really, the install is kickstart driven, usb-based with the
XS packages installed and configured at installation time. This release
is targeted for a single network interface, all the XS pieces are
installed but service such as iptables and squid are left
un-configured.

 So I'll spin a FC16 iso, and try to get it ready to do a phase 2
 install via usbmount, and maybe tftp across the network.
 

Once you have the rpms ported over it F16, having a repo on a usbkey or
elsewhere on the net is trivial.

 Do you know if there is a script that automates the rpm generation
 from sources at dev.laptop.org? 
 

Sorry I don't think there is such a beast. Martin, any input here?


 It'll take a few days, since I'm relocating  from Calif to NYC
 Wednesday, and have  other priority tasks.
 
 George
 

Let me know what you what to do, I could most likely save you a bunch of
time.

Jerry


 On Mon, Jan 30, 2012 at 2:24 PM, Jerry Vonau jvo...@shaw.ca wrote:
 On Mon, 2012-01-30 at 13:05 -0600, Jerry Vonau wrote:
  On Mon, 2012-01-30 at 12:40 -0500, George Hunt wrote:
   Hi everyone,
  
   I'm new to this list.
  
 
  Hi George:
 
  I'm the author of the XSAU-F11 based rework of the XS that
 Sridhar is
  referring to.
 
   I met Tony Anderson in Haiti, and again at the San
 Francisco OLPC
   Summit in late 2011. He prevailed upon me to spend some
 time trying to
   figure out how to rebase XS on a more recent Fedora Core.
  
   I just recently used pungi to gather together FC16 rpms
 into an iso
   using the kickstart file that came with XS-0.6.  What was
 550MB in FC9
   has grown to 775MB in FC16.  My initial goal was to create
 a CD image,
   that can be installed in the traditional way. But going
 forward, even
   if we can pare things down and fit in 690MB this time,
 perhaps we need
   a better strategy.
  
 
  Think some of the issue is most likely that X is being
 dragged in or
  some extra files on the image. What is the file layout of
 the resulting
  iso image?
 
 
 
 http://dev.laptop.org/git/projects/olpc-xs-builder
 is the new way of using pungi for the XS, my local version is
 at:
 
 https://dev.laptop.org.au/projects/xs-au/repository/revisions/master/show/olpc-xs-builder/xsau-F11
 
 The key is to use the olpcxs-pungi.ks file to gather the rpms
 and
 exclude what is not wanted before rolling the iso. Please have
 a look at
 build.sh for the whole routine used.
 
 Jerry
 
 
 


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


Re: [Server-devel] mesh and newer builds

2011-10-12 Thread Jerry Vonau
On Tue, 2011-10-11 at 20:53 -0700, Sameer Verma wrote:
 Seeing an interesting behavior with XS 0.6 and newer 11.2 XO-1 builds.
 
 1) I have a XS-on-XO-1 which shows up in the Neighborhood as
 school-mesh-0 but when I connect the XO client, I get a
 169.254.xxx.xxx address and the XO won't register. If I connect to
 mesh1, I get a 172.18.xxx.xxx address, and the XO registers.

Just checking... Where is the ssid mesh1 coming from? Are you changing
the ssid in ifcfg-wmesh0? Or are both active on the XS-on-XO at the same
time? Are you using an AA?

 2) I am seeing similar behavior with a mesh antenna (prototype black
 box with screw-on antenna) in Bhagmalpur
 (http://bhagmalpur.wordpress.com/)
 
 I take it that this change of behavior is due to dropping support for
 mesh in newer builds? Any way to change this on the server to gain
 expected behavior ?

More or less, yes. What is happening is when sugar detects an adhoc
network it assumes that the network is link-local and never tries to use
dhcp to gain a network address. If you can switch over gnome and connect
to school-mesh-0 you should see the network info has been supplied by
the dhcp server on the XS-XO. Once in sugar your back to using
169.254

Jerry



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


Re: [Server-devel] XS on the XO 1.5

2011-08-15 Thread Jerry Vonau
On Mon, 2011-08-15 at 19:10 -0700, Sameer Verma wrote:
 I was thinking (once again) about the possibility of running XS on a
 XO 1.5. On the XO-1 the built-in radio runs in the 802.11s mesh mode
 and serves out IPs via DHCP. Given that the 1.5 does not do 802.11s
 mesh, can't the radio instead simply work in adhoc mode and serve the
 same purpose?
  

In short yes, you need to switch over to gnome to configure the network,
and in IPv4 Settings switch the Method over to Link-Local Only
This XO is then seen as an AP on the other XO's in sugar, connect up and
test.  
 

 I am not sure what the limitations would be of adhoc vs
 mesh mode in terms of number of clients.
 
 Thoughts?
 

Not sure on that one..

Jerry

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


Re: [Server-devel] XS server struggles

2011-06-18 Thread Jerry Vonau
On Sat, 2011-06-18 at 18:34 +0930, Tom Daly wrote:
 G'Day  all,
 
 I am trying to setup up an XS server to support a deployment we 
 have of XO 1.5's in Timor Leste. I have setup a USB boot and have 
 worked through David Leeming's XS installation instructions and 
 I appear to have a working XS server, I can ping and access the 
 yum repos via eth0 (I used xsau-testing for my update).
 
 I am not using a wireless access point, I was figuring I could 
 just use the wireless of the small netbook to communicate with the
 XOs (although I note that the wireless port of the XS server has 
 no IP allocated).  Is this a bad assumption ?
 

Well, kind of, I don't have a quick how-to on how to do that, and not
all wifi card can act as an AP. Your in uncharted waters here but you
would need to have in your wifi card's ifcfg-device file:

DEVICE=device  edit this to be the same as ifcfg-device
ONBOOT=yes
TYPE=Wireless
MODE=ad-hoc
CHANNEL=1change to suit
ESSID=school-mesh-0  change to suit
MASTER=lanbond0
SLAVE=yes
NM_CONTROLLED=no
HOTPLUG=yes

This will place your wifi device as a slave of lanbond0 and should be
bonded to it, picking up the ip info from it.

 - is there something I should be reading about how get the XOs using the XS
The XS model assumes 2 network cards, not nic card and one wifi. 

 - I want to be able to use the XS mainly for software distribution, so as to 
 avoid the folks in 
 Timor having to insert a flash drive into each XO ..is this possible if so 
 how and what do I read 
 to find out how to do this ?
 
Once the XO's can use the XS's dhcp server everything should just work.

 thanks for any pointers/help
 
 regards
 Tom Daly 
 

Good luck,

Jerry


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


Re: [Server-devel] OLPC Australia XS concerns

2011-06-16 Thread Jerry Vonau
On Thu, 2011-06-16 at 10:41 -0400, Tim Moody wrote:
 http://wiki.laptop.org/go/XS_Techniques_and_Configuration#Installing_from_USB 
 has a download for the script, but it seems broken.  Where did you get it? 
 Is it something simple like needing to issue ./mkusbinstall or use sudo?
 
 If you google mkusbinstall there are several versions
 
 http://dev.laptop.org.au/search?q=mkusbinstall has some info.
 
 There is a link to the scrip in this email, but in might not be the latest 
 version.
 
 Jerry Vonau jvo...@shaw.ca 1220119632Saturday, August 30, 2008 2:07:12 PM
 Link Here
 Print view
 
 Hi All:
 
 Here is a quick howto:
 
   Grab a usb flash drive, I chose a superstore core micro 2gb cost $11.19
 cdn, no endorsement just the closest to my house.
 
   Insert the drive in to the usb port, mine became usb0 on the desktop,
 which is sdb1 in /dev. umount it, umount /dev/sdb1.
 
   toggle the bootable flag with fdisk, umount again.
 
   grab: http://members.shaw.ca/jvonau/pub/mkusbinstal...
 
   run my mkusbinstall with: mkusbinstall path/to/iso /dev/path
 

This is the latest version, should be run on a post F12 host.

http://download.laptop.org.au/XS/F9/XS-AU/tools/

I wrote mkusbinstall before functionally to use a install iso as a
source was added to livecd-tools. I should write up a how to use
livecd-tools to achieve the same thing with a little hand editing. 

Jerry 







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


Re: [Server-devel] Regarding my OLPC XS Wishlist

2011-06-02 Thread Jerry Vonau
On Thu, 2011-06-02 at 09:37 +, Aleksey Lim wrote:
 On Thu, Jun 02, 2011 at 09:20:55AM +, Aleksey Lim wrote:
  On Thu, Jun 02, 2011 at 06:29:51PM +1000, Sridhar Dhanapalan wrote:
   (completed over a year ago)
  If I got it right, it is still the same OLPC XS code base but w/ tweaks?
  sugar-server in that case is a new project w/ more tough and localized
  design.
 
 btw whats the clon url for
 http://dev.laptop.org.au/projects/xs-au/repository
 reading sources from web pages is not too useful
 


git.laptop.org.au/xo-au/
git.laptop.org.au/xs-au/

Jerry




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


Re: [Server-devel] Regarding my OLPC XS Wishlist

2011-06-02 Thread Jerry Vonau
On Thu, 2011-06-02 at 09:20 +, Aleksey Lim wrote:
 On Thu, Jun 02, 2011 at 06:29:51PM +1000, Sridhar Dhanapalan wrote:
  On 28 May 2011 08:31, Aleksey Lim alsr...@activitycentral.org wrote:
   On Fri, May 27, 2011 at 11:39:54AM -0400, Bernie Innocenti wrote:
   On Fri, 2011-05-27 at 21:14 +0545, Abhishek Singh wrote:
Dear All,
I've put down my OLPC XS wishlist at
http://asingh.com.np/blog/olpc-xs-my-wishlist/ . Please comment upon 
it.
   
Thank You.
  
   Thank you! Forwarding this to the Dextrose list as well.
  
   I've also CCed guys who do XS work in .au
  
   Abhishek: thanks for sharing your wishlist.
  
   From my side, I see the whole picture in case of school server like 
   having:
  
   * sugar-server[1], the base of any school server. it doesn't provide
stuff like moodle (too complicated to be basic) or puppet (useless on
this level, since configuring sugar-server should be just install
packages/iso and do some automatic work, the higher levels might user
puppet or so)
   * any additional services that might be useful in some deployments but
are not basic, eg, moodle or wiki.
sugar-server should provide needed info via reliable API for these
services.
in my mind, such services might be formed as separate projects (like
sugar-server-moodle) to make it possible to attach it on purpose
(there might be useful configuration tool that is being used in
sugar-server, mace[2]).
   * final products that include components on purpose (but sugar-server is
a required one). It is entirely depends on local needs.
  
  We are looking to make our XS-AU[0] more modular to suit different use
  cases. Our initial goal
 
  (completed over a year ago)
 If I got it right, it is still the same OLPC XS code base but w/ tweaks?

more or less, yes. [1]

 sugar-server in that case is a new project w/ more tough and localized
 design.
 

As long as it can offer the all the same core services as the XS, I'm
game, as dextrose is where we want to go anyway. 

  work on a single interface to integrate well into existing networks.
  Installation is via USB and fully scriptable via kickstart files.
 

With the usb race fixed with a revised anaconda rpm [1] headless in now
possible, you get need to tweak the kickstart files to your liking.


  The current XS is very monolithic and bureaucratic. It requires
  moderate sysadmin skills to install and maintain. Maintaining the
  presence service is cumbersome and impractical in our schools. The
  turnover of teachers and students is far too high to ensure that
  anything gets managed properly.
 
  We're looking to slim down the XS-AU such that we can have a simple
  collaboration server (which we currently call XS Lite) that is
  installable in a classroom as a drop-in appliance.
 
 ie, just having jabber server and somehow let students know where it is?
 

Populating a single field in sugar control panel is trivial, OK class
right click - My Settings - network - add needed info to the
Server: field. click check. That can be a first day in class routine
IMHO.  

  is an ejabberd.
 
 btw, I'm planing to use Prosody instead of ejabberd. I have really bad
 experiance w/ ejabberd - on jabber.sugarlabs.org it eats too many
 resources for regular 10-30 online users. Prosody is slim and light app
 and it alsready works fine w/ sugar-0.88.
 
  Registration, Moodle, Squid, backups and so on are
  unnecessary. Each teacher can run their own server for their own
  class. Conveniently, this could easily run on an XO (XS-on-XO).
 
 in other workds there is no need in sugar specific stuff at all - just
 install jabber server from packages (maybe w/ sugar specific patches) and
 write its url on studensts' boxes.
 

see above. As an offshoot of this you could turn this XO into an updates
server quickly with the mini-server idea of mine. [3]
  
Jerry

1. http://dev.laptop.org.au/projects/xs-au/wiki
2. http://download.laptop.org.au/XS/F11/XS-AU/bleeding/RPMS/
3. http://dev.laptop.org.au/projects/mini-server/wiki/Using


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


Re: [Server-devel] How to forward http requests from XO through XS to remote Proxy ?

2011-05-30 Thread Jerry Vonau
On Mon, 2011-05-30 at 12:42 +0300, AL-ASTAL, Ahmad wrote:
 Hi
 
 How to forward  http requests from XO through XS to remote Proxy ?
 
 I used iptables command
 
 iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 
 PROXY-IP:PORT
 
 But it doesn't work.

What is the output of sudo iptables -L You can capture the output by
doing  sudo iptables -L  /tmp/iptables.txt and forwarding the file
for further study.

Jerry  

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


Re: [Server-devel] pointers on USING a school server

2011-05-11 Thread Jerry Vonau
On Wed, 2011-05-11 at 20:09 +0930, Tom Daly wrote:
 G'Day all,
 
 I am working with a friend to setup a school server for a small OLPC 
 deployment we have done in Timor Leste.
 I have the server running using David Leemings and OLPC Oceania's Guide to 
 installing the pacific school server
 
 However what I was hoping was for some sort of users guide.
 The 2 things I am hoping to achieve with the school server are 
 a) backup of the kids individual work from each XO (1.5) and

Backup are automatic once the XO is registered with the schoolserver:

http://wiki.laptop.org/go/School_Identity_Manager
http://wiki.laptop.org/go/XS_Blueprints:Datastore_Simple_Backup_and_Restore


 b) Distribution of a lot of XO (sugar + Linux) software from the server via 
 wifi to each XO (to save using memory sticks)
 

http://wiki.laptop.org/go/XS-activity-server
http://wiki.laptop.org/go/XS-rsync

Hope this helps,

Jerry 


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


Re: [Server-devel] rpm installation via customization stick

2011-05-04 Thread Jerry Vonau
On Wed, 2011-05-04 at 20:00 -0400, Chris Ball wrote:
 Hi Jerry,
 
 On Wed, May 04 2011, Jerry Vonau wrote:
  This there any interest in the ability to install rpms with a
  customization stick? I have a POC patch that does that with just a
  small patch to dracut's 30olpc-customization routine.
 
 There's interest, but it's more complicated than you think.  As I
 understand it, customization sticks can be signed and run in secure mode
 because they perform no side-effects outside of /home.  However, an RPM
 can have a %post section which lists commands to be run *as root* during
 the installation.
 
 So, offering the ability to install RPMs via signed customization stick
 is equivalent to letting anyone run any series of commands as root.

How is different from using sudo rpm/yum? You still have to have trust
in the rpms.

 There may be ways to mitigate this risk, such as refusing to run any
 %post scripts (some of which are necessary for proper function of
 packages).  Working out what the safe set of actions a hostile RPM
 can perform on a system is a research project, as far as I know.
 

I'd say just let the deployments sign their own kernel and initrd.img,
OLPC doesn't have to offer the stick for public use. 

Jerry   


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


[Server-devel] What rpm packages would you include for the XS?

2011-04-08 Thread Jerry Vonau
Hello All:

I have put together a running F11 based XS-server package. This soon to
be released version has some room on the install iso after ditching the
gnome rpms. There are 419 rpms with a total iso size of  500 MB, list
at: http://dev.laptop.org.au/attachments/162/rpms.txt

What would you like to see on the install iso that you would find
useful? 

Jerry 

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


Re: [Server-devel] What rpm packages would you include for the XS?

2011-04-08 Thread Jerry Vonau
On Fri, 2011-04-08 at 17:56 -0400, Martin Langhoff wrote:
 On Fri, Apr 8, 2011 at 12:24 PM, Jerry Vonau jvo...@shaw.ca wrote:
  I have put together a running F11 based XS-server package. This soon to
 
 Nice.
 
  What would you like to see on the install iso that you would find
  useful?
 
 Puppet
 wwwoffle
 opendns client
 
 
 m

Hehe, I removed squid and dhcpd, as this was intended to support a
single interface. I'll add those plus puppet, ddclient to the build. 
I'll d/l wwwoffle to a private repo, don't want to open up pungi to the
whole atrpms repo.

This build has none of the gnome rpms present, I can add those rpms back
in to support upgrades from F9. All that is needed is a re-compile of
the latest XS source rpms [1], would there be any interest in supporting
that?

A long as nothing touches xs-config this should be a straight forward
upgrade, the networking layout isn't changing. I'd have to figure out
the what rpms need to be present on the media and test it out. 

Martin: When I created the XS-server group definition for yum [2], I
excluded xs-release and xs-config. This implies that 2 versions can
share the same underling rpms but have different configurations of the
underling services.

Jerry
   
[1] http://download.laptop.org.au/XS/F11/XS-AU/bleeding/RPMS/
[2] http://download.laptop.org.au/XS/F11/repo/

 

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


Re: [Server-devel] Hidden SSID and Proxy settings

2011-03-06 Thread Jerry Vonau
On Fri, 2011-03-04 at 15:34 +1100, James Cameron wrote:
 On Thu, Mar 03, 2011 at 09:55:26PM -0600, Jerry Vonau wrote:
  On Thu, 2011-03-03 at 14:47 +1100, James Cameron wrote:
   On Wed, Mar 02, 2011 at 10:38:07PM -0500, Dr. Gerald Ardito wrote:
Both methods work within a session.
In GNOME, I can connect to the hidden network. And, if I change back
to Sugar, the connection is intact.
   
   Yes.  NetworkManager still has knowledge of the hidden network
   connection request in memory, having been told about it by the GNOME
   nm-applet.
   
   (Restarting NetworkManager at this point causes the connection to drop
   and not be re-established.)
   
  
  Well sort of, if you restart MN in a terminal in GNOME, ...
 
 I was specifically talking about when the user has switched back to
 Sugar.  That was the context.
 
  the connection is re-established, switch over to sugar the AP icon has
  the ESSID populated. This works if Available to all users was ticked
  as NM sees this as a system connection under root's control. Now open
  terminal in SUGAR and restart NM, now the ESSID is set to None.
  While un-ticked you will be prompted for the info, which is saved in
  connections.cfg.  The difference might be that in GNOME you have
  gnome-keyring running while in SUGAR it's not. There is the question
  of who owns the connection while setup as an ifcfg file, root or olpc? 
 
 I don't see where you are going with this, and I don't see how it is
 relevant to Gerald.  So I'll try explaining things in the hope that our
 mutual cognitive disconnect will eventually show up.
 
 Some D-Bus service must provide the NetworkManagerSettings interface
 from which NetworkManager obtains the list of connections or a new
 connection.  The interface specification shows this:
 
 http://projects.gnome.org/NetworkManager/developers/spec.html#org.freedesktop.NetworkManagerSettings
 
 When GNOME is active, this is done by the panel applet.
 
 When Sugar is active, this is done by the Sugar shell, in the source
 file jarabe/model/network.py
 
 Upon restart, without a settings service, NetworkManager will not know
 about the user request to join the hidden network.  This also happens on
 boot.
 
 Once Sugar is started, NetworkManager is informed (through the settings
 service in Sugar), of the user's request to connect.
 
When I reboot, however, while the Wireless Connections UI (iin either
GNOME or Sugar using nm) shows the connection properly, it does not
actually connect to the hidden ssid.
   
   Yes, I agree.  After reboot, NetworkManager is restarted, and therefore
   no longer knows about the hidden network connection request.
   
  
  Agreed, I'll look for how Connect to Hidden Wireless network runs its
  re-scan for the hidden network in the code. 
 
 It doesn't do a wireless scan for hidden networks.  It only offers a
 hidden network in the Connect to Hidden Wireless network if one was
 created by the user.  If that network is deleted from the settings
 service using Edit Connections..., then Connect to Hidden Wireless
 network does not offer it.  Tested.
 
   The ONBOOT setting doesn't appear to work either.
   
  
  On an un-hidden network it does, or at least loaded as the UI becomes
  usable.
 
 Why should it wait for the UI to become usable?  That sounds like it is
 waiting for the settings service to register with D-Bus.  Therefore it
 is not using ifcfg as such.


That is part of the problem, ifcfg-rh plugin, nm-applet knows how to use
the info while sugar does not. What is needed it to use NM keyfile
plugin so there is a common method of storing system level info between
sugar and gnome. Here is what I did, get into gnome, stop the NM
service, edit /etc/NetworkManager/nm-system-settings.conf using keyfile
in place of ifcfg-rh, restart NM. Now go configure your hidden network
ticking both of the boxes. That will create system level config file
in /etc/NetworkManager/system-connections/name that will be used by NM
upon boot. Reboot back into gnome, the settings should stick bringing
the network up and not ask for a password. Switch over sugar, the icon
for the AP should be connected. Reboot, while in sugar, when sugar
returns you should be auto connected to your hidden network. 
  

  Gerald, does your AP have any security or is it just hidden?   
 
 For what it is worth, my test AP on which ONBOOT did not work, has no
 security, it is just hidden.
 
 I agree with Gerald, the issue is now one of persistence.
 

Think we should ditch the ifcfg-rh plug-in in favor of using NM native
system support. This would mean tweeking network.py to write out the
needed NM config file. 

Jerry 



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


Re: [Server-devel] Hidden SSID and Proxy settings

2011-03-03 Thread Jerry Vonau
On Thu, 2011-03-03 at 14:47 +1100, James Cameron wrote:
 On Wed, Mar 02, 2011 at 10:38:07PM -0500, Dr. Gerald Ardito wrote:
  Both methods work within a session.
  In GNOME, I can connect to the hidden network. And, if I change back
  to Sugar, the connection is intact.
 
 Yes.  NetworkManager still has knowledge of the hidden network
 connection request in memory, having been told about it by the GNOME
 nm-applet.
 
 (Restarting NetworkManager at this point causes the connection to drop
 and not be re-established.)
 

Well sort of, if you restart MN in a terminal in GNOME, the connection
is re-established, switch over to sugar the AP icon has the ESSID
populated. This works if Available to all users was ticked as NM sees
this as a system connection under root's control. Now open terminal in
SUGAR and restart NM, now the ESSID is set to None. While un-ticked
you will be prompted for the info, which is saved in connections.cfg.
The difference might be that in GNOME you have gnome-keyring running
while in SUGAR it's not. There is the question of who owns the
connection while setup as an ifcfg file, root or olpc? 


  When I reboot, however, while the Wireless Connections UI (iin either
  GNOME or Sugar using nm) shows the connection properly, it does not
  actually connect to the hidden ssid.
 
 Yes, I agree.  After reboot, NetworkManager is restarted, and therefore
 no longer knows about the hidden network connection request.
 

Agreed, I'll look for how Connect to Hidden Wireless network runs its
re-scan for the hidden network in the code. 

 The ONBOOT setting doesn't appear to work either.
 

On an un-hidden network it does, or at least loaded as the UI becomes
usable.

Gerald, does your AP have any security or is it just hidden?   

Jerry

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


Re: [Server-devel] Question on number of iptables rules

2011-02-02 Thread Jerry Vonau
On Wed, 2011-02-02 at 08:24 -0700, Martin Langhoff wrote:
 On Tue, Feb 1, 2011 at 6:28 PM, Anna ascho...@gmail.com wrote:
  My test XS at home has a FQDN and is open to the outside.  Therefore this is
  probably a pretty rare issue in XS land, but I thought I'd ask.
 
 In general, I'd keep it closed. It's not designed as a full internet server.
 
  Getting them into /etc/sysconfig/olpc-scripts/iptables-xs is easy enough.  I
  pasted the IP data into a file named banned_ips.txt and ran this little
  script:
 
  #!/bin/bash
  for i in $( banned_ips.txt); do
  iptables -A INPUT -s $i -j DROP
  done
 
 You could do the same from the init script even.
 
  Here's my question - is the XS networking going to get wonky with 894 extra
  iptables rules?
 
 Short answer - no.
 
 Slightly longer: no, but if the list grows and starts to cost you in
 network perf, might be worth looking at ipset
 http://www.netfilter.org/projects/ipset/index.html
 
 cheers,

Not easy with Fedora, you need to patch the kernel and iptables to get
ipsets. https://bugzilla.redhat.com/show_bug.cgi?id=196234

Jerry




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


Re: [Server-devel] Hidden SSID and Proxy settings

2011-02-01 Thread Jerry Vonau
On Mon, 2011-01-31 at 15:15 -0500, Dr. Gerald Ardito wrote:
 I am trying to connect XOs in a school which as a wireless network
 with a hidden SSID. Additionally, the school requires proxy settings
 to establish internet connections.
 
 
 Can someone help me with this?

Can you tell us what os version is installed on the XOs? 

Jerry


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


Re: [Server-devel] Hidden SSID and Proxy settings

2011-02-01 Thread Jerry Vonau
On Tue, 2011-02-01 at 09:11 -0500, Dr. Gerald Ardito wrote:
 Jerry,
 
 
 I am not sure. It is whatever version they were shipped with. They are
 XO 1.5s, and they arrived in October. 
 I am not where they are, so I can't check the version.

I'd upgrade the os to the latest version (os860) before you try
configuring anything on the XO.

Jerry






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


Re: [Server-devel] xs-activity-server dotted versions

2011-01-26 Thread Jerry Vonau
On Wed, 2011-01-26 at 17:55 -0500, Martin Langhoff wrote:
 On Wed, Jan 26, 2011 at 4:59 PM, Jerry Vonau jvo...@shaw.ca wrote:
  Yea thanks, just was looking at the git repo. Having 2 versions of the
  activity still rendered showing as link to the older version under the
  latest version, thought that was enough.
 
 I don't fully understand. With my latest commit  rpm on f9, do you
 get the desired behaviour?

I have not tested your rpm yet. With the one line change I got the
attached webpage source. The acid test would be to have more than the
KEEP_OLD_VERSIONS around to see if the pruning is done correctly.
I'll report back in a bit.

Jerry   
html
body
h1 id=olpc-activity-group-nameLocally available activities/h1
p id=olpc-activity-group-descThese activities are stored on the school 
server./p
div class=olpc-activity-info
h2Backup/h2

ul
 liIdentifier: span class=olpc-activity-idorg.sugarlabs.Backup/span/li
 liVersion: span class=olpc-activity-version4/span/li

 liURL: span class=olpc-activity-urla 
href=backup-4.xobackup-4.xo/a/span/li
 li style=display: noneOlder versions: /li
/ul
/div

div class=olpc-activity-info
h2Browse/h2

ul
 liIdentifier: span 
class=olpc-activity-idorg.laptop.WebActivity/span/li

 liVersion: span class=olpc-activity-version108.4/span/li
 liURL: span class=olpc-activity-urla 
href=Browse-108.4.xoBrowse-108.4.xo/a/span/li
 li style=display: inlineOlder versions: a 
href=Browse-108.2.xo108.2/a/li
/ul
/div

div class=olpc-activity-info
h2IRC/h2

ul
 liIdentifier: span class=olpc-activity-idorg.sugarlabs.IRC/span/li
 liVersion: span class=olpc-activity-version8/span/li
 liURL: span class=olpc-activity-urla 
href=irc-8.xoirc-8.xo/a/span/li
 li style=display: noneOlder versions: /li

/ul
/div

div class=olpc-activity-info
h2Restore/h2

ul
 liIdentifier: span 
class=olpc-activity-idorg.sugarlabs.Restore/span/li
 liVersion: span class=olpc-activity-version3/span/li
 liURL: span class=olpc-activity-urla 
href=restore-3.xorestore-3.xo/a/span/li

 li style=display: noneOlder versions: /li
/ul
/div

/body
/html

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


Re: [Server-devel] The old xs-livecd is the new olpc-xs-builder

2011-01-21 Thread Jerry Vonau
On Fri, 2011-01-21 at 17:24 -0500, Martin Langhoff wrote:
 On Thu, Jan 20, 2011 at 3:45 PM, Martin Langhoff
 martin.langh...@gmail.com wrote:
  While not as modular and elegant as olpc-os-builder, we do have a
  collection of tools and configs that, operated correctly, build XS
  isos for installation. This can be useful to prepare a custom
  auto-intalling iso with preconfigured settings.
 
   http://dev.laptop.org/git/projects/olpc-xs-builder
 
 The current scripts (just committed) are based on pungi and a comps
 file. This is _trivial_ compared to the overcomplicated mess we had
 before.
 
It wasn't that bad.

 Perhaps it's experience in wrestling with revisor and earlier versions
 of pungi. Maybe it's Jerry's better-way-to-do-it recommendations that
 have finally reached an active neuron in my skull.
 
Yea, the comps file is far easier to play with.

 The key trick is splitting the Pungi process; stop it before it makes
 the ISO -- edit/overwrite the bits we want, and then make the ISO. See
 http://dev.laptop.org/git/projects/olpc-xs-builder/commit/?id=9093a4c380d0394c957f547c593a28db68f5b512
 
Better take upgradeany out of the install part of the isolinux.cfg file.

 The package definition on both ks files is going to get slimmed down
 to @OLPC-XS methinks.
 
 Jerry,
 
  - is there anything else we should whack before ISOing the ISO? I
 just reviewed the mkslim script but it's unclear to me what was
 getting cut out.
I was just using stage2/install.img file and leaving the rest.

  - is there anything we want to include so that turning that ISO into
 a bootable/installable USB is easier?
 

I was using --driveorder=sda,sdb with F9, that seemed to fix the issue,
there might of been some confusion on which mbr to write to. It can't be
the boot drive that started the install. When playing with F11 I left
the auto partitioning out.   

 cheers,
 
 
 m

I'll give it a spin on the weekend,

Jerry



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


Re: [Server-devel] XS-0.7 plans -- your thoughts please...

2011-01-18 Thread Jerry Vonau
On Tue, 2011-01-18 at 14:29 -0500, Martin Langhoff wrote:
 Ay ay ay!
 
 This last 12 months have been frantic, as I've ended up biting off a
 ton more than common sense would recommend to chew. And then chewing,
 slowly, awkwardly. Good things have come out of the hard work of this
 year, but the XS has been delayed.
 
 One good piece of news is that I've helped deploy more XSs in the
 field, both in person and through this list. So I think we have good
 feedback on what to streamline and make easier.
 
 And I have a window of time to hack on it. So... the plan is roughly
 the same as it was in
 http://lists.laptop.org/pipermail/server-devel/2009-October/004139.html
 - except that I'll start drafting the build on top of F14.
 
Anaconda will not automatically find the old install if its older than
release-2, you will need to pass upgradeany at the boot prompt if you go
with F14.  

 My actual plan is to have the packages for RHEL6 / CentOS6, which will
 give us a more stable platform. With less churn, I get to spend more
 of my limited time on interesting work :-)
 
So your going to port to F14 then RHEL6/CentOS6 and maintain the rpms
for all three?

 So -- going back on the traffic we've see in the last 24 months, what
 would you highlight? What have people asked for (that wasn't
 easy/trivial/possible)? What problems have we heard that were hard to
 diagnose...?

Think the biggest issue I've seen is trying to configure an XS for a
pre-existing lan using a single interface. The stock network layout is a
bit much for a novice, and can get confusing quickly.

Jerry


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


Re: [Server-devel] XS-0.7 plans -- your thoughts please...

2011-01-18 Thread Jerry Vonau
On Tue, 2011-01-18 at 20:28 +, Daniel Drake wrote:
 On 18 January 2011 19:29, Martin Langhoff martin.langh...@gmail.com wrote:
  So -- going back on the traffic we've see in the last 24 months, what
  would you highlight? What have people asked for (that wasn't
  easy/trivial/possible)? What problems have we heard that were hard to
  diagnose...?
 
 Some items that spring to mind:
 
 1. activity-server support for dotted activities
 
That sucks the dotted versions don't display when you regenerate the
html page. Is there a patch I can test by any chance?

 2. can't register if your name includes a :
 
 3. automatic olpc-update via OATS (code was posted, but we never
 finished deciding exactly how to integrate it)

add:

xs-rsync support for XO-1.5 with the change to lzma

Jerry

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


Re: [Server-devel] IP Address Pools for XOs, known clients, and unknown clients on XS 0.6

2011-01-12 Thread Jerry Vonau
On Wed, 2011-01-12 at 10:03 -0600, Anna wrote:
 I like to leave the AP open on my test XS 0.6 at home, but ran into an
 issue with that yesterday.  I noticed the lights on my router blinking
 like crazy, so I did a live tail on the squid access log to see what
 was going on.
 
 tail -f /var/log/squid/access.log
 
snip
 And because I'm ticked off, and inspired by
 http://www.ex-parrot.com/pete/upside-down-ternet.html, it's time for
 some fun with iptables.  In /etc/sysconfig/olpc-scripts/iptables-xs.in
 I add a couple of lines like so:
 
So I'm not the only one who likes fun with iptables, wish I could see
the expression on their face when I tried something like that. 

 *nat
 :PREROUTING ACCEPT [0:0]
 :POSTROUTING ACCEPT [0:0]
 :OUTPUT ACCEPT [0:0]
 -A PREROUTING -s 172.18.124.0/24 -p tcp --dport 80 -j DNAT --to
 205.196.209.62
 @@SQUID@@
 -A POSTROUTING -o @@WAN@@ -j MASQUERADE
 COMMIT
 *filter
 :INPUT ACCEPT [0:0]
 :FORWARD ACCEPT [0:0]
 :OUTPUT ACCEPT [0:0]
 -A FORWARD -s 172.18.124.0/24 -p tcp --dport 443 -j DROP

This should take care of the rest of the outgoing connections..
change to: 
-A FORWARD -s 172.18.124.0/24 -p tcp ! --dport 80 -j DROP

add:
-A FORWARD -s 172.18.124.0/24 -j DROP

 COMMIT
 
 Restart dhcpd and iptables:
 service dhcpd restart
 service iptables restart
 
 Now all unknown clients will have http traffic redirected to
 http://kittenwar.com and their https traffic is dropped.
 
 Obviously this isn't a deterrent to someone who can use an ssh proxy
 for browsing, and it doesn't block traffic on other ports or
 protocols, but most of my neighbors aren't of the networking savvy
 sort (particularly the grotesque rednecks) and will likely conclude
 this darn internet ain't workin' no more.  If I lived near MIT, this
 would not be an acceptable solution.  But I'm not terribly concerned
 many folks around here know much about packet sniffing or MAC
 spoofing.
 

His machine might be owned/spam-bot... Try the trivial change above.

 When guests come over and want to look at something other than
 pictures of kittens, all I have to do is add the MAC to the list of
 known clients, restart dhcpd, and tell them to renew their IP.
 
 At the very least, now I know how to keep XOs and non-XO clients on
 different IP ranges.
 
 Anna Schoolfield
 Birmingham

Jerry

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


Re: [Server-devel] Cloning and hardware addresses

2010-12-02 Thread Jerry Vonau
On Thu, 2010-12-02 at 20:38 +1100, David Leeming wrote:
 I have been cloning a “master” XS hard drive onto a number of copies,
 to be used in different computers (of the exact same type). I used the
 following simple way of cloning
 
  
 
 dd bs=8192 if=/dev/sda of=/dev/sdb 
 
  
 
 where sda is the master and sdb is connected via USB. This done using
 a live CD to boot it up.
 
  
 
 The clones work fine in the same PC as was used with the master.
 However, on booting a cloned HDD in another machine it does not detect
 the NICs (the computer has 2). I assume I have to delete the “HWADDR=”
 line somewhere, for both eth0 and eth1.
 
  

/etc/udev/rules.d/70-persistent-net.rules
Delete the lines that refer to all the eth devices and reboot

Jerry


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


Re: [Server-devel] Jabber presence under NAT named under DMZ issues

2010-11-07 Thread Jerry Vonau
On Fri, 2010-11-05 at 21:19 -0500, Anna wrote:

 Eventually, after many hours of troubleshooting, I put the XSXO into
 the DMZ in my router and the presence service quit resetting us every
 hour.
 
 Of course, I deleted /etc/sysconfig/network-scripts/ifcfg-eth0-local
 once I set XSXO in the DMZ.
 
 I edited /etc/hosts for:
 
 67.195.160.76schoolserver.random.net random.net
 
Don't think you want to have the router's external address in the XSXO's
hosts file. I'd stick with localhost here.

 I put the OpenDNS IPs in named-xs.conf.in and then make -f
 xs-config.make named-xs.conf

Think that is prior to 0.6.0 try domain_config

 I actually use OpenDNS DNS IPs in my router instead of my ISP's DNS
 IPs.
 

Should be no problem with that.

 Here's /var/named-xs/school.external.zone.db
 
 @ in soa localhost. root 1 3H 15M 1W 1D
   ns localhost.
 
 schoolserverINA67.195.160.76
 schoolINCNAMEschoolserver
 wwwINCNAMEschoolserver
 ntpINCNAME   schoolserver
 timeINCNAMEschoolserver
 presenceINCNAMEschoolserver
 xsINCNAMEschoolserver
 libraryINCNAMEschoolserver
 conference.schoolserverINCNAMEschoolserver
 
 But then named never comes back up:
 
 Starting named: 
 Error in named configuration:
 zone localdomain/IN: loaded serial 42
 zone localhost/IN: loaded serial 42
 zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
 zone
 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: 
 loaded serial 1997022700
 zone 255.in-addr.arpa/IN: loaded serial 42
 zone 0.in-addr.arpa/IN: loaded serial 42
 dns_rdata_fromtext: school.internal.zone.db:1: near 'root': bad name
 (check-names)
 school.internal.zone.db:2: no TTL specified; zone rejected
 school.internal.zone.db:4: schoolserver...@\@basednsna...@\@: bad
 owner name (check-names)
 school.internal.zone.db:4: no TTL specified; zone rejected
 school.internal.zone.db:5: schoolserver...@\@basednsna...@\@: bad
 owner name (check-names)
 school.internal.zone.db:5: no TTL specified; zone rejected
 school.internal.zone.db:6: schoolserver...@\@basednsna...@\@: bad
 owner name (check-names)
 school.internal.zone.db:6: no TTL specified; zone rejected
 school.internal.zone.db:7: schoolserver...@\@basednsna...@\@: bad
 owner name (check-names)
 school.internal.zone.db:7: no TTL specified; zone rejected
 school.internal.zone.db:8: schoolserver...@\@basednsna...@\@: bad
 owner name (check-names)
 school.internal.zone.db:8: no TTL specified; zone rejected
 school.internal.zone.db:9: schoolserver...@\@basednsna...@\@: bad
 owner name (check-names)
 school.internal.zone.db:9: no TTL specified; zone rejected
 school.internal.zone.db:10: schoolserver...@\@basednsna...@\@: bad
 owner name (check-names)
 school.internal.zone.db:10: no TTL specified; zone rejected
 school.internal.zone.db:11: schoolserver...@\@basednsna...@\@: bad
 owner name (check-names)
 school.internal.zone.db:11: no TTL specified; zone rejected
 school.internal.zone.db:13: schoolserve...@\@basednsna...@\@: bad
 owner name (check-names)
 school.internal.zone.db:13: no TTL specified; zone rejected
 school.internal.zone.db:14: schoo...@\@basednsna...@\@: bad owner name
 (check-names)
 school.internal.zone.db:14: no TTL specified; zone rejected
 school.internal.zone.db:15: ww...@\@basednsna...@\@: bad owner name
 (check-names)
 school.internal.zone.db:15: no TTL specified; zone rejected
 school.internal.zone.db:16: nt...@\@basednsna...@\@: bad owner name
 (check-names)
 school.internal.zone.db:16: no TTL specified; zone rejected
 school.internal.zone.db:17: tim...@\@basednsna...@\@: bad owner name
 (check-names)
 school.internal.zone.db:17: no TTL specified; zone rejected
 school.internal.zone.db:18: presenc...@\@basednsna...@\@: bad owner
 name (check-names)
 school.internal.zone.db:18: no TTL specified; zone rejected
 school.internal.zone.db:19: x...@\@basednsna...@\@: bad owner name
 (check-names)
 school.internal.zone.db:19: no TTL specified; zone rejected
 school.internal.zone.db:20: librar...@\@basednsna...@\@: bad owner
 name (check-names)
 school.internal.zone.db:20: no TTL specified; zone rejected
 school.internal.zone.db:22: conference.schoolserve...@\@BASEDNSNAME\@
 \@: bad owner name (check-names)
 school.internal.zone.db:22: no TTL specified; zone rejected
 school.internal.zone.db:29: no TTL specified; zone rejected
 school.internal.zone.db:32: no TTL specified; zone rejected
 zone \...@\@basednsna...@\@/IN: loading from master file
 school.internal.zone.db failed: bad name (check-names)
 localhost_resolver/@@BASEDNSNAME@@/in: bad name (check-names)
 dns_rdata_fromtext: school.internal.zone.db:1: near 'root': bad name
 (check-names)
 school.internal.zone.db:2: no TTL specified; zone rejected
 school.internal.zone.db:4: schoolserver...@\@basednsna...@\@: bad
 owner name (check-names)
 school.internal.zone.db:4: no TTL specified; zone rejected
 

Re: [Server-devel] Bridging XS to another network

2010-11-02 Thread Jerry Vonau
On Tue, 2010-11-02 at 19:21 +1100, David Leeming wrote:
 OK thanks Jerry. I have decided to test this out on a safe replicated 
 environment rather than risk breaking something, 
 as I'd then not be able to fix it in the short time left on site. You gave me 
 the second option, for the few fixed Windows
 PCs that will be involved in the initial part of this project, on those I 
 will edit the hosts file. I will be back here next
 month and will have then bring a second machine with me to br about 
 with at no risk!
 
 Many thanks, you've really been a tremendous help, also Anna and other, cheers
 
 David Leeming
 Solomon Islands Rural Link 
 

David:

If you want to use a single interface XS and can boot from USB, then I
suggest that you look at using what I wrote for olpc-au. The iso from:
http://download.laptop.org.au/XS/F9/XS-AU/iso/ has all the F9 updates
and XS-updates rolled up in it. What make the single interface XS is the
kickstart files that are provided when you use (tested on F12): 

http://download.laptop.org.au/XS/F9/XS-AU/tools/mkusbinstall-F12forXSAU

mkusbinstall-F12forXSAU --reset-mbr --getkickstart isopath usbstick \
device 

That will setup the flashdisk as an installer, grab the kickstart files
that customize the XS to a single interface version. You then just have
to use Sridhar's mini-howto, but use mkusbinstall-f12forXSAU as above.
You can skip copying the kickstart files and start at 2. open local.cfg
in a text editor.

http://lists.laptop.org/pipermail/server-devel/2010-May/004926.html
 
Think that might be easier, it works out of the box.

Jerry









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


Re: [Server-devel] Bridging XS to another network

2010-11-01 Thread Jerry Vonau
On Mon, 2010-11-01 at 20:35 +1100, David Leeming wrote:
 Hi Jerry
 
 That sorted it out - almost...
 
 I added the gateway and the server can now ping through the router.
 
 I added port forwarding for HTTP and success  partially
 

Good that's progress.

 From the outside I can enter the router WAN IP (which is now 192.168.0.210) 
 and mixed results...
 
 http://192.168.0.210 gives the Firefox error Server not found, Firefox can't 
 find the server at schoolserver.patukae.org 
 (showing that it has found something at least). Same with 
 http://192.168.0.210/moodle/ 
 
 However, the MediaWiki installed on the XS is fine (http://192.168.0.210/wiki 
 is fully accessible).
 

How much tinkering did you have to do installing the wiki? I'm wondering
which file is supplying the config info for apache..

 The difference is that moodle lives in /var/www/moodle but the wiki lives in 
 /var/www/html/wiki
 
 Would be sincerely grateful for the last piece in the puzzle  so would 
 all the teachers here, 
 as this firefighting is going on in parallel with the XS/wiki deployment!
 
 

is that the xs-httpd.conf file or your own version that you posted? 
from your posted httpd.conf: 

#Listen 12.34.56.78:80
Listen 80
Listen 172.18.0.88:80

don't change that to be the gateway, change that back to:
Listen 172.18.0.1:80

moodle and friends expect to find schoolserver resolving to 172.18.0.1
on the XS, while wiki doesn't really care.. don't fight that...  

Jerry



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


Re: [Server-devel] Bridging XS to another network

2010-11-01 Thread Jerry Vonau
On Mon, 2010-11-01 at 05:43 -0500, Jerry Vonau wrote:
 On Mon, 2010-11-01 at 20:35 +1100, David Leeming wrote:
  Hi Jerry
  
  That sorted it out - almost...
  
  I added the gateway and the server can now ping through the router.
  
  I added port forwarding for HTTP and success  partially
  
 
 Good that's progress.
 
  From the outside I can enter the router WAN IP (which is now 
  192.168.0.210) and mixed results...
  
  http://192.168.0.210 gives the Firefox error Server not found, Firefox 
  can't find the server at schoolserver.patukae.org 
  (showing that it has found something at least). Same with 
  http://192.168.0.210/moodle/ 
  

Shoot, the client can't resolve the name, add to /etc/hosts:
 
192.168.0.210 schoolserver.patukae.org schoolserver

Jerry



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


Re: [Server-devel] Bridging XS to another network

2010-11-01 Thread Jerry Vonau
On Tue, 2010-11-02 at 09:00 +1100, David Leeming wrote:
 On Mon, 2010-11-01 at 05:43 -0500, Jerry Vonau wrote:
  On Mon, 2010-11-01 at 20:35 +1100, David Leeming wrote:
   Hi Jerry
   
   That sorted it out - almost...
   
   I added the gateway and the server can now ping through the router.
   
   I added port forwarding for HTTP and success  partially
   
  
  Good that's progress.
  
   From the outside I can enter the router WAN IP (which is now 
   192.168.0.210) and mixed results...
   
   http://192.168.0.210 gives the Firefox error Server not found, Firefox 
   can't find the server at schoolserver.patukae.org 
   (showing that it has found something at least). Same with 
   http://192.168.0.210/moodle/ 
   
 
   Shoot, the client can't resolve the name, add to /etc/hosts:
  
   192.168.0.210 schoolserver.patukae.org schoolserver
 
   Jerry
 
 

That needs to be on the client PC/XOs that are on the 192.168.0.XXX lan,
those clients can't resolve schoolserver.patukae.org. What dns server
are the 192.168.0.XXX clients pointed too? Need to know where they're
pointed too can you do a cat /etc/resolv.conf  


I'm going to say either your isp's servers, or the ADSL modem is caching
the requests. Is this modem configurable? That would open up many more
options. You can add an entry there for schoolserver.patukae.org
pointing to 192.168.0.210, that would fix up the issue cleanly, else
your forced to use the hosts file.


 Tried but no different. I don't think the mediawiki installation has changed 
 anything fundamental with the networking.

No, not likely.

 The server functions normally when XOs and PCs connect wirelessly or wired to 
 the eth1. 

That is because they can resolve schoolserver correctly, while the
clients on 192.168.0.xxx are failing to resolve schoolserver.patukae.org

 I was wondering if the public folders 
 part might be an issue... because the only difference I can think between the 
 wiki and moodle is that Moodle exists at 
 /var/www/moodle/ but the wiki at /var/www/html/wiki/ (i.e. one level down). 
 Please note these observations:
 
 These results I get when browsing with a PC on the external network
 
 1.http://192.168.0.210/wiki   fully accessible!
 2.http://192.168.0.210 gives “Server not found, Firefox can’t find the 
 server at schoolserver.patukae.org” 
 3.http://192.168.0.210/moodle gives same as (2) above
 4.http://192.168.0.210/gibberish gives a prompt apache error the URL 
 /gibberish not found. Thus it does find something (i.e. compare with 2 and 
 3). 
  
 My /etc/hosts file now
 127.0.0.1   schoolserver.@@BASEDNSNAME@@ localhost.localdomain 
 localhost
 ::1 localhost6.localdomain6 localhost6
 192.168.0.210   schoolserver.patukae.org schoolserver
 

Stop, right there, don't add 192.168.0.210 to the XS hosts file, that
needs to be on the *clients* only. I'm curious why @@BASEDNSNAME@@ is
present, you have run domain_config patukae.org right? I'm going to
say yes as the client that are on 172.18.96.XXX are ok. Is this the
hosts.in file? 

 Route:
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse Iface
 172.18.16.0 *   255.255.255.0   U 0  00 
 mshbond0
 172.18.0.0  *   255.255.255.0   U 0  00 
 lanbond0
 172.18.1.0  *   255.255.255.0   U 0  00 
 lanbond0
 172.18.14.0 *   255.255.254.0   U 0  00 
 mshbond2
 172.18.12.0 *   255.255.254.0   U 0  00 
 mshbond1
 172.18.10.0 *   255.255.254.0   U 0  00 
 mshbond0
 172.18.64.0 172.18.1.7  255.255.248.0   UG0  00 
 lanbond0
 172.18.72.0 172.18.1.8  255.255.248.0   UG0  00 
 lanbond0
 172.18.8.0  172.18.1.1  255.255.248.0   UG0  00 
 lanbond0
 172.18.16.0 172.18.1.1  255.255.248.0   UG0  00 
 lanbond0
 172.18.24.0 172.18.1.2  255.255.248.0   UG0  00 
 lanbond0
 172.18.32.0 172.18.1.3  255.255.248.0   UG0  00 
 lanbond0
 172.18.40.0 172.18.1.4  255.255.248.0   UG0  00 
 lanbond0
 172.18.48.0 172.18.1.5  255.255.248.0   UG0  00 
 lanbond0
 172.18.56.0 172.18.1.6  255.255.248.0   UG0  00 
 lanbond0
 172.18.96.0 *   255.255.224.0   U 0  00 
 lanbond0
 link-local  *   255.255.0.0 U 0  00 
 mshbond2
 default 172.18.0.88 0.0.0.0 UG0  00 
 lanbond0

Good, that's fixed..

Jerry

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


Re: [Server-devel] Bridging XS to another network

2010-11-01 Thread Jerry Vonau
On Mon, 2010-11-01 at 20:35 -0500, Jerry Vonau wrote:

Sorry forgot to reply-all... 

 On Mon, 2010-11-01 at 19:21 -0500, Jerry Vonau wrote:
  On Tue, 2010-11-02 at 10:43 +1100, David Leeming wrote:
   Jerry,
   
   The computers wishing to access the server are Windows laptops that get 
   their DNS from the ISP (actually the gateway router 
   points to Google DNS).
  
  This gateway router is handing out the dhcp addresses and the nameserver
  is pointing to google's dns servers? That would be the place to hijack
  the dns for schoolserver, do you have access to this router? Is this
  the second linksys that you refer to below? 
  
  On one of these Windows boxes can you add an entries to
  winpath\system32\drivers\etc\hosts file:
  
  192.168.0.210 schoolserver
  192.168.0.210 schoolserver.patukae.org
  
  and then test with ping:
  
  ping schoolserver
  ping schoolserver.patukae.org
  
  If that is successful, you should be able to see moodle in the browser.
  
  
   The 192.168.0.0/24 network is actually a schoolnet linking several 
   village schools with Wi-Fi bridges 
   and access points, and it has Internet gateway (VSAT). We want all those 
   schools to access the XS moodle and my added wiki.
   
   QUESTION: Yes, I can access the gateway router (it is also a Linksys 
   WRT54G2). Would you know how to add the enter pointing 
   schoolserver.patukae.org to 192.168.0.210, where (in the router admin) 
   would I add that entry? It is not obvious to me, sorry...
   
  
  Give me a bit on that one, I have to check. 
  
 
 Just so were looking at the same thing, Figure 6-13 on:
 http://www.scribd.com/doc/21144997/Linksys-WRT54G-router-manual
 
 I don't see a way of adding any entries, just boxes in the dhcp part for
 the upstream static dns servers, this info is being passed to the
 clients, at a windows cmd prompt, what does ipconfig /all show?
 
 What you need is a nameserver on 192.168.0.XXX to handle the name
 resolution. Think I can rig that up with just the XS, give me a bit.
 
 Jerry

  
The first order of business would be to have named use the forwarders
that are configured in the linksys, because the XS can't resolve
anything outside of its own domain. You can ping google's ip address but
google.com will fail. You need use these directions to add them, you can
skip the service named restart part:

http://wiki.laptop.org/index.php?title=XS_Techniques_and_Configurationsection=15#Use_ISP-provided_DNS_servers

Next edit /var/named-xs/school.external.zone.db changing 18.85.46.29 to
be, in your case, 192.168.0.210

Now restart named:

service named restart

You should now be able to ping from the XS(and the client XOs as well if
you have iptables enabled) to anywhere on the web. 

Don't go any farther unless this works.

Ensure that the linksys that is between the XS and the main router is
acting as a DMZ host for the schoolserver or ensure that both port 80
tcp and port 53 tcp/udp are forwarded to the XS.

Boot your Ubuntu Live CD and edit the /etc/resolv.conf file, change the
nameserver to be 192.168.0.210

now the ping test:

ping schoolserver.patukae.org 
ping schoolserver

Try out moodle.

Don't go any farther unless this works.

On the main router, in the dhcp config page move the other ip addresses
down to the 2  3 slots and fill in the first slot to be 192.168.0.210
and save the changes. The clients will pick up the changes as their dhcp
leases expire, or you can do ipconfig /release, ipconfig /renew to force
the change quicker. We're now handing out the linksys' ip address as the
first nameserver to be used, where it will be forwarded to the XS to
handle. This should result is less traffic up the isp's pipe as the XS
will cache dns requests made to it. The second  third entries on this
linksys would be just backup for if the first nameserver(the XS)failed
to resolve.

Jerry


 

















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


Re: [Server-devel] Bridging XS to another network

2010-10-31 Thread Jerry Vonau
On Sun, 2010-10-31 at 18:13 -0500, Jerry Vonau wrote:
 On Mon, 2010-11-01 at 08:55 +1100, David Leeming wrote:
  Still no luck here. What it boils down to, is that when placing the XS
  (eth1 - LAN) behind a router with NAT, in order to allow the XS web
  service to be visible on the external WAN side of the router, what are
  the required LAN IP settings including netmask and firewall settings,
  including port forwarding or DMZ Host or other. Anna, you seem to have
  been able to do that but I can’t replicate without more info on your
  router/firewall settings.
  
   
  
  I have tried everything I can think of and the XS is not visible from
  the external network.  Only need to be able to see Moodle, etc, (not
  interested in registering XOs on the external network) 
  
   
  
  David Leeming
  
  Solomon Islands Rural Link 
  P.O.Box 652 Honiara, Solomon Islands
  
  +677 7476396 (m) +677 24419 (h)
  
  www.leeming-consulting.com
  
  
   
  
  From: server-devel-boun...@lists.laptop.org
  [mailto:server-devel-boun...@lists.laptop.org] On Behalf Of David
  Leeming
  Sent: Sunday, 31 October 2010 11:38 a.m.
  To: 'Anna'
  Cc: 'XS Devel'
  Subject: Re: [Server-devel] Bridging XS to another network
  
  
   
  
  Anna,
  
   
  
  What you describe below is what I am trying to do (see the net diagram
  in my other email). I only want apache/Moodle/wiki to be available to
  the external network (your “regular LAN”). You’ll see that I have a
  simple WRT54G router bridging but no matter what I try, I can’t see
  the apache service through the router. Can you say what Wan and LAN
  settings you used for your router? 
  
  I used
  
  WAN – fixed 192.168.1.88 / 255.255.255.0
  
  LAN – fixed 172.18.0.88 / 255.255.255.0
  
  Port 80 forwarded from WAN to 172.18.0.1 (or DMZ host with 171.18.0.1)
  
  In this set up: 
  
  If I try to ping from the XS to 172.18.0.88 it is OK, if I try to
  192.168.0.88 it says network unreachable.
  
 
 
 You have a single interface in use, in order for the XS to see past
 anything other than what routes that are present(these are local to the
 lan), what your missing is the default gateway. 
 
 
  But if I use a PC hooked up on the eth1 network, with fixed IP
  172.18.0.89 / 255.255.255.0 (for example) I can ping the WAN address
  and beyond. This is what leads me to think it needs one extra step
  with route, or it may be something to do with the WRT LAN setting and
  XS having different netmasks. You can see I am reaching at straws a
  little L  
 
 
 No, you need to have a default gateway present, how are you configuring
 172.18.0.88 on the XS?
 
 Jerry

OK, I have that backwards your running the XS as is and you have added
the linksys with the ip address 172.18.0.88. The linksys is providing
the route to 192.168... The XS can't respond to anything from 192.168...
as there is no route back to 192.168. You can either add a route to
192.168... via 172.18.0.88, or add 172.18.0.88 as the default gateway,
on the XS. 

Jerry





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


Re: [Server-devel] Bridging XS to another network

2010-10-31 Thread Jerry Vonau
On Mon, 2010-11-01 at 11:35 +1100, David Leeming wrote:
 Hi thanks jerry,
 
 Almost there, just need clarification...
 
 On the router, what should I use for the LAN network, like this or different?
 172.18.0.88
 255.255.255.0 
 (is that correct? It means the network does not include the higher ranges 
 172.18.96.xxx etc)
 
That should work, then only the XS has a direct route, while the XOs on
172.18.96.xxx don't.  

 Should the router firewall settings be virtual server port 80 to 
 172.18.0.1??? or 172.18.???.??? 
 What is the main IP address of the XS, I thought is was 172.18.0.1
 

use 172.18.0.1 as the target of the port forwarding, that should work
once the default route is set as below.

 To add a route on the XS, do you mean (and what are the ??/):
 
 route add default gw 172.18.0.88 netmask 255.255.???.??? landbond0??? 
 

Yea that is the idea, but you would need to re-add that upon reboots.
Lets try to get this to auto configure, edit ifcfg-lanbond0:2 from:

if [ $XS_SERVER_NUM = 1 ] ;then
ONBOOT=yes
IPADDR=$XS_LANBOND_MAINXS_IPADDR
NETMASK=255.255.255.0

BOOTPROTO=static
#BONDING_OPTS=
IPV6INIT=no
else
 
To be:

if [ $XS_SERVER_NUM = 1 ] ;then
ONBOOT=yes
IPADDR=$XS_LANBOND_MAINXS_IPADDR
NETMASK=255.255.255.0
GATEWAY=172.18.0.88 
BOOTPROTO=static
#BONDING_OPTS=
IPV6INIT=no
else

That should create the default route via 172.18.0.88, when the network comes up.

restart the network service and retest

service network restart
ping 172.18.0.88
ping 192.168.1.88 

This that fails, can you capture the output of:

ip route ls

Jerry


















 David Leeming
 Solomon Islands Rural Link 
 
 -Original Message-
 From: Jerry Vonau [mailto:jvo...@shaw.ca] 
 Sent: Monday, 1 November 2010 10:41 a.m.
 To: David Leeming
 Cc: 'XS Devel'
 Subject: Re: [Server-devel] Bridging XS to another network
 
 On Sun, 2010-10-31 at 18:13 -0500, Jerry Vonau wrote:
  On Mon, 2010-11-01 at 08:55 +1100, David Leeming wrote:
   Still no luck here. What it boils down to, is that when placing the XS
   (eth1 - LAN) behind a router with NAT, in order to allow the XS web
   service to be visible on the external WAN side of the router, what are
   the required LAN IP settings including netmask and firewall settings,
   including port forwarding or DMZ Host or other. Anna, you seem to have
   been able to do that but I can’t replicate without more info on your
   router/firewall settings.
   

   
   I have tried everything I can think of and the XS is not visible from
   the external network.  Only need to be able to see Moodle, etc, (not
   interested in registering XOs on the external network) 
   

   
   David Leeming
   
   Solomon Islands Rural Link 
   P.O.Box 652 Honiara, Solomon Islands
   
   +677 7476396 (m) +677 24419 (h)
   
   www.leeming-consulting.com
   
   

   
   From: server-devel-boun...@lists.laptop.org
   [mailto:server-devel-boun...@lists.laptop.org] On Behalf Of David
   Leeming
   Sent: Sunday, 31 October 2010 11:38 a.m.
   To: 'Anna'
   Cc: 'XS Devel'
   Subject: Re: [Server-devel] Bridging XS to another network
   
   

   
   Anna,
   

   
   What you describe below is what I am trying to do (see the net diagram
   in my other email). I only want apache/Moodle/wiki to be available to
   the external network (your “regular LAN”). You’ll see that I have a
   simple WRT54G router bridging but no matter what I try, I can’t see
   the apache service through the router. Can you say what Wan and LAN
   settings you used for your router? 
   
   I used
   
   WAN – fixed 192.168.1.88 / 255.255.255.0
   
   LAN – fixed 172.18.0.88 / 255.255.255.0
   
   Port 80 forwarded from WAN to 172.18.0.1 (or DMZ host with 171.18.0.1)
   
   In this set up: 
   
   If I try to ping from the XS to 172.18.0.88 it is OK, if I try to
   192.168.0.88 it says network unreachable.
   
  
  
  You have a single interface in use, in order for the XS to see past
  anything other than what routes that are present(these are local to the
  lan), what your missing is the default gateway. 
  
  
   But if I use a PC hooked up on the eth1 network, with fixed IP
   172.18.0.89 / 255.255.255.0 (for example) I can ping the WAN address
   and beyond. This is what leads me to think it needs one extra step
   with route, or it may be something to do with the WRT LAN setting and
   XS having different netmasks. You can see I am reaching at straws a
   little L  
  
  
  No, you need to have a default gateway present, how are you configuring
  172.18.0.88 on the XS?
  
  Jerry
 
 OK, I have that backwards your running the XS as is and you have added
 the linksys with the ip address 172.18.0.88. The linksys is providing
 the route to 192.168... The XS can't respond to anything from 192.168...
 as there is no route back to 192.168. You can either add a route to
 192.168... via 172.18.0.88, or add 172.18.0.88 as the default gateway,
 on the XS. 
 
 Jerry

Re: [Server-devel] How to configure XS with only one Ethernet port

2010-10-27 Thread Jerry Vonau
On Wed, 2010-10-27 at 16:26 +1100, David Leeming wrote:
 Thanks Jerry
 
 Would that leave the machine with all the normal services running on that 
 single Ethernet port, and otherwise function exactly as the eth1 network on a 
 machine with two NICs? I guess I'll find out soon enough...
 
Yes, eth1 then becomes part of lanbond0  friends

 My second question, is if there are any instructions on setting up a second 
 interface using a USB Ethernet adapter.
 
Depends on what the kernel ends up calling the device, you may have to
edit /etc/sysconfig/xs_wan_device to reflect that your new device has
the network gateway, not eth0. 

Jerry 


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


Re: [Server-devel] How to configure XS with only one Ethernet port

2010-10-26 Thread Jerry Vonau
On Wed, 2010-10-27 at 15:07 +1100, David Leeming wrote:
 Just received a small mini PC machine for an application at last
 minute, to my horror only one Ethernet port not two as specified.
 
  
 
 In this location WAN not needed (for the time being) as no Internet
 access.
 
  
 
 Can I configure it to work with the single port working normally as
 the LAN (i.e. functioning as the eth1 interface in default case)?
 
  

If all you need to do is rename eth0 to eth1 just run as root:
xs-swapnics
 
and then reboot.

Jerry

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


  1   2   3   >