[Server-devel] create_user and re-registration
Hi, If an XO re-registers with the XS, its key is once again appended to .ssh/authorized_keys. Since introducing automatic registration in nepal we end up with many duplicate copies of the keys... any chance this small patch could be added? or that we could overwrite instead of append to the authorized_keys file? Thanks, Daniel create_user_keys.patch Description: Binary data ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] fresh XS 0.6 install
I am having problem with SoAS registration. I get can't connect error to server I check.. and idmgr (pid 3484) is running.. Not able to confirm if it is listening to 8080 with netstat --listen -pe --inet Am I missing something? -Original Message- From: Tim Moody [mailto:timmo...@sympatico.ca] Sent: Monday, October 12, 2009 12:29 PM To: 'Martin Langhoff' Cc: server-devel@lists.laptop.org Subject: Re: [Server-devel] fresh XS 0.6 install sorry. I was looking for it under httpd.conf. I guess it must be the 'webcache' service. Anyway, applying the schoolserver.py patch from http://dev.sugarlabs.org/ticket/916 allowed my soas to register successfully. - Original Message - From: Martin Langhoff martin.langh...@gmail.com To: Tim Moody timmo...@sympatico.ca Cc: server-devel@lists.laptop.org Sent: Sunday, October 11, 2009 4:15 AM Subject: Re: [Server-devel] fresh XS 0.6 install XS does listen on 8080, netstat --listen -pe --inet should show it. It is the 'idmgr' service. m On Sun, Oct 11, 2009 at 5:48 AM, Tim Moody timmo...@sympatico.ca wrote: So I abandoned qemu and moved to soas under vbox with bridged networking. Now soas gets an ip from the xs and I can reach the moodle login page (and also the external internet) But, I can not register the soas. I get 'can not obtain data needed to register'. I read http://dev.sugarlabs.org/ticket/916, but I'm not clear if this is already in soas and anyway the patch seems to expect the xs to listen on 8080, which I don't think it does. Help appreciated. - Original Message - From: Martin Langhoff martin.langh...@gmail.com To: Tim Moody timmo...@sympatico.ca Cc: server-devel@lists.laptop.org Sent: Saturday, October 10, 2009 4:52 AM Subject: Re: [Server-devel] fresh XS 0.6 install On Sat, Oct 10, 2009 at 1:06 AM, Tim Moody timmo...@sympatico.ca wrote: OK, so the message is don't worry about first boot. /var/log/moodle-instupg.log ends in success. Good! the next problem is that when I try to register the qemu emulated xo 8.2.0 it fails, probably because qemu has a built in dhcp server and nat firewall, so the xo never gets it address, dns, and domain from the xs and therefore can't find the xs. Very likely correct. Maybe you can run qemu without dhcp nat? m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] create_user and re-registration
2009/10/12 Martin Langhoff martin.langh...@gmail.com: Hi Daniel, Reasonable request... I reviewed the patch, expecting you'd be running `sort -u` over a tmp copy of authorized_keys, but it does nothing like that. How does it help, then? What does sort -u do? The man page doesn't make it very clear. The awk command I inserted simply removes all lines from a file that are a duplicate of another. Or at least I hope it does - I don't really know awk but have used this command in a handful of projects now! So if there are 3 copies of the key in the file, 2 of them will get removed. Daniel ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] create_user and re-registration
On Mon, Oct 12, 2009 at 10:25 AM, Daniel Drake d...@laptop.org wrote: What does sort -u do? The man page doesn't make it very clear. Same as sort|uniq, but... The awk command I inserted simply removes all lines from a file that are a duplicate of another. Or at least I hope it does - I don't So that's the issue. I think you sent the wrong patch. No awk line in the patch, at least that I can see... m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] create_user and re-registration
Now that makes more sense :-) m On Mon, Oct 12, 2009 at 10:53 AM, Daniel Drake d...@laptop.org wrote: 2009/10/12 Martin Langhoff martin.langh...@gmail.com: So that's the issue. I think you sent the wrong patch. No awk line in the patch, at least that I can see... Odd, lets try again. -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Problemas con el Internet con el XS
2009/10/12 Kevin Mauricio Benavides Castro kbenavi...@americancollege.edu.ni: Hola como estas martin tengo un problema con el XS con lo que es el internet Hola Kevin! que en uno de los servidores lo configuro normal a como estan configurado el resto pero parece que este no transmite internet a travez del Acces Point Desde el servidor en sí diagnosticando la conexión a internet - 1 - eth0 ve la connexión? (usa ethtool, que dice?) 2 - puedes conectarte al ISP? (por ejemplo, intenta un traceroute -n al servidor de dns del ISP, que pasa?) 3 - puedes resolver dns? (prueba dig google, que pasa?) 4 - puedes conectarte via http, por ejemplo a google? (puedes usar wget, curl o elinks) diagnosticando la LAN 5 - Que dice ethtool sobre eth1? Ve la conexión al AP? 6 - Si desde un XO te intentas conectar al AP... 6.1 - en el XS, aparecen mensajes en /var/log/messages sobre DHCPD recibiendo los pedidos y respondiendo? 6.2 - en el XO, que mensajes de NetworkManager aparecen en /var/log/messages? saludos, m ps: Con enviarlo a server-devel@ alcanza :-) -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] fresh XS 0.6 install
would it make sense to modify /etc/services so 8080 is named idmgr? that would make netstat --listen -pe --inet a little more meaningful. - Original Message - From: Martin Langhoff martin.langh...@gmail.com To: Tim Moody timmo...@sympatico.ca Cc: server-devel@lists.laptop.org Sent: Monday, October 12, 2009 3:33 AM Subject: Re: [Server-devel] fresh XS 0.6 install On Mon, Oct 12, 2009 at 6:29 AM, Tim Moody timmo...@sympatico.ca wrote: sorry. I was looking for it under httpd.conf. I guess it must be the 'webcache' service. Actually, it's not webcache (though the port is conventionally used for an http proxy). It is a python program listening on port 8080, controlled by /etc/init.d/idmgr (aka service idmgr) Anyway, applying the schoolserver.py patch from http://dev.sugarlabs.org/ticket/916 allowed my soas to register successfully. Good to hear -- I think Hamilton also has patches to make sure ds-backup-client works properly from SoaS. Can you help chase Hamilton, Tomeu Sebastian so that those patches are applied, merged, whatever so that they _do_ appear on SoaS? Without them, the XS is useless for a SoaS deployment. m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] fresh XS 0.6 install
There's probably a better way to do this, but I don't know the xo very well yet. Here's what I did on soas: (assuming that networking is working, i.e. you can type schoolserver in the browse address and reach the moodle login screen on the xs) from home access the setup menu and take networking (sorry I don't remember the exact name) change the name of the jabberd server to schoolserver.your domain start terminal activity (it may not be visible at first if it's not a favorite and I don't remember how I found it) su - (become the root user; there was no password on my install) yum install wget (use this to get the patch; it's not alread there) cd /usr/lib/python2.6/site-packages/jarabe/desktop (this is where the python script that registers the xo goes) mv schoolserver.py schoolserver.py.ORIG (keep a copy in case) wget http://dev.sugarlabs.org/raw-attachment/ticket/916/schoolserver.py reboot registration should now work - Original Message - From: tkk...@nurturingasia.com To: Tim Moody timmo...@sympatico.ca; Martin Langhoff martin.langh...@gmail.com Cc: server-devel@lists.laptop.org Sent: Monday, October 12, 2009 4:08 AM Subject: Re: [Server-devel] fresh XS 0.6 install I am having problem with SoAS registration. I get can't connect error to server I check.. and idmgr (pid 3484) is running.. Not able to confirm if it is listening to 8080 with netstat --listen -pe --inet Am I missing something? -Original Message- From: Tim Moody [mailto:timmo...@sympatico.ca] Sent: Monday, October 12, 2009 12:29 PM To: 'Martin Langhoff' Cc: server-devel@lists.laptop.org Subject: Re: [Server-devel] fresh XS 0.6 install sorry. I was looking for it under httpd.conf. I guess it must be the 'webcache' service. Anyway, applying the schoolserver.py patch from http://dev.sugarlabs.org/ticket/916 allowed my soas to register successfully. - Original Message - From: Martin Langhoff martin.langh...@gmail.com To: Tim Moody timmo...@sympatico.ca Cc: server-devel@lists.laptop.org Sent: Sunday, October 11, 2009 4:15 AM Subject: Re: [Server-devel] fresh XS 0.6 install XS does listen on 8080, netstat --listen -pe --inet should show it. It is the 'idmgr' service. m On Sun, Oct 11, 2009 at 5:48 AM, Tim Moody timmo...@sympatico.ca wrote: So I abandoned qemu and moved to soas under vbox with bridged networking. Now soas gets an ip from the xs and I can reach the moodle login page (and also the external internet) But, I can not register the soas. I get 'can not obtain data needed to register'. I read http://dev.sugarlabs.org/ticket/916, but I'm not clear if this is already in soas and anyway the patch seems to expect the xs to listen on 8080, which I don't think it does. Help appreciated. - Original Message - From: Martin Langhoff martin.langh...@gmail.com To: Tim Moody timmo...@sympatico.ca Cc: server-devel@lists.laptop.org Sent: Saturday, October 10, 2009 4:52 AM Subject: Re: [Server-devel] fresh XS 0.6 install On Sat, Oct 10, 2009 at 1:06 AM, Tim Moody timmo...@sympatico.ca wrote: OK, so the message is don't worry about first boot. /var/log/moodle-instupg.log ends in success. Good! the next problem is that when I try to register the qemu emulated xo 8.2.0 it fails, probably because qemu has a built in dhcp server and nat firewall, so the xo never gets it address, dns, and domain from the xs and therefore can't find the xs. Very likely correct. Maybe you can run qemu without dhcp nat? m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] fresh XS 0.6 install
Thanks. As I read the threads I figured out that I need to make some change to the idmgr.conf so that it listen to specific IP of my XS. Timely help from Dave Hamilton save my day - added BIND_ADDRESS=192.168.1.22 (my XS IP) and the registration is now working. Cheers -Original Message- From: Tim Moody [mailto:timmo...@sympatico.ca] Sent: Monday, October 12, 2009 11:45 PM To: tkk...@nurturingasia.com, 'Martin Langhoff' Cc: server-devel@lists.laptop.org Subject: Re: [Server-devel] fresh XS 0.6 install There's probably a better way to do this, but I don't know the xo very well yet. Here's what I did on soas: (assuming that networking is working, i.e. you can type schoolserver in the browse address and reach the moodle login screen on the xs) from home access the setup menu and take networking (sorry I don't remember the exact name) change the name of the jabberd server to schoolserver.your domain start terminal activity (it may not be visible at first if it's not a favorite and I don't remember how I found it) su - (become the root user; there was no password on my install) yum install wget (use this to get the patch; it's not alread there) cd /usr/lib/python2.6/site-packages/jarabe/desktop (this is where the python script that registers the xo goes) mv schoolserver.py schoolserver.py.ORIG (keep a copy in case) wget http://dev.sugarlabs.org/raw-attachment/ticket/916/schoolserver.py reboot registration should now work - Original Message - From: tkk...@nurturingasia.com To: Tim Moody timmo...@sympatico.ca; Martin Langhoff martin.langh...@gmail.com Cc: server-devel@lists.laptop.org Sent: Monday, October 12, 2009 4:08 AM Subject: Re: [Server-devel] fresh XS 0.6 install I am having problem with SoAS registration. I get can't connect error to server I check.. and idmgr (pid 3484) is running.. Not able to confirm if it is listening to 8080 with netstat --listen -pe --inet Am I missing something? ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] fresh XS 0.6 install
On Mon, Oct 12, 2009 at 6:13 PM, tkk...@nurturingasia.com wrote: Thanks. As I read the threads I figured out that I need to make some change to the idmgr.conf so that it listen to specific IP of my XS. Timely help from Dave Hamilton save my day - added BIND_ADDRESS=192.168.1.22 (my XS IP) and the registration is now working. That doesn't sound right. idmgr must only listen on the LAN address, and the LAN address has a hardcoded IP address. m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] fresh XS 0.6 install
On Mon, 2009-10-12 at 18:20 +0200, Martin Langhoff wrote: On Mon, Oct 12, 2009 at 6:13 PM, tkk...@nurturingasia.com wrote: Thanks. As I read the threads I figured out that I need to make some change to the idmgr.conf so that it listen to specific IP of my XS. Timely help from Dave Hamilton save my day - added BIND_ADDRESS=192.168.1.22 (my XS IP) and the registration is now working. That doesn't sound right. idmgr must only listen on the LAN address, and the LAN address has a hardcoded IP address. m Sounds like a virtual machine networking layout to me. Jerry ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel