Re: [Server-devel] deregister laptops

2011-05-25 Thread Daniel Drake
Hi David,

On 16 May 2011 01:21, David Leeming  wrote:
> I tried sugar-control-panel -c registration and get this error:
>
> sugar-control-panel: Failed to contact configuration server; some possible
> causes are that you need to enable TCP/IP networking for ORBit, or you have
> stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/
> for information. (Details -  1: Failed to get connection to session: Did not
> receive a reply. Possible causes include: the remote application did not
> send a reply, the message bus security policy blocked the reply, the reply
> timeout expired, or the network connection was broken.)

Can you confirm that you are running this command as the 'olpc' user,
and not as root or someone else?

Please double-check this by running the "whoami" command immediately
before "sugar-control-panel -c registration"

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


Re: [Server-devel] deregister laptops

2011-05-16 Thread James Cameron
I think removing the gconf values is the most effective workaround, but
really, include sugar-devel@ since it's a Sugar question.

-- 
James Cameron
http://quozl.linux.org.au/
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] deregister laptops

2011-05-16 Thread Tony Anderson
Hi,

I have had the same problem. An ugly but effective solution is to rm 
/home/olpc/.gconf/desktop/sugar/user/%gconf.xml

This forces the intial login screen so that the nick and color scheme 
are re-entered. A byproduct is that the register option is restored to 
the menu.

Incidentally, Roshan Karki (ros...@olenepal.org) or Abhishek Singh 
(abhishek.si...@olenepal.org) could explain how Nepal has modified Sugar 
to register the laptop on every connection (to eliminate confusing 
children with one more option). It turns out that registration when a 
laptop is already registered doesn't change anything.

Yours,

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


Re: [Server-devel] deregister laptops

2011-05-15 Thread David Leeming
HI, what I am trying to do is restore an XO-1 running build
860/0.84.31/Q2E45 that has been registered on one XS to a condition where it
can be registered on another XS. When you register, the "register" option
disappears from the options on the home page when you point at the icon in
the middle. We want that back again so it can be used with another XS. On
previous versions you would use Terminal and
/rm/home/olpc/.sugar/default/config

I tried sugar-control-panel -c registration and get this error:

sugar-control-panel: Failed to contact configuration server; some possible
causes are that you need to enable TCP/IP networking for ORBit, or you have
stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/
for information. (Details -  1: Failed to get connection to session: Did not
receive a reply. Possible causes include: the remote application did not
send a reply, the message bus security policy blocked the reply, the reply
timeout expired, or the network connection was broken.)

I must be missing something obvious? Of course we can always reinstall but
would prefer more elegant solution ...

David Leeming

-Original Message-
From: Sridhar Dhanapalan [mailto:srid...@laptop.org.au] 
Sent: Sunday, 15 May 2011 11:21 p.m.
To: David Leeming
Cc: James Cameron; Richard A. Smith; XS Devel
Subject: Re: [Server-devel] deregister laptops

I believe the command is now:

  $ sugar-control-panel -c registration

Sridhar


On 14 May 2011 18:34, David Leeming  wrote:
> I am seeking a way to de-register XO-1s (10.1.3) that have been registered
> on one server to allow them to be registered on another. Previously we
used
>
> rm /home/olpc/.sugar/default/config
>
> this no longer applies as per the thread below...
>
> David Leeming
> Solomon Islands
>
>
> -Original Message-
> From: qu...@us.netrek.org [mailto:qu...@us.netrek.org] On Behalf Of James
> Cameron
> Sent: Wednesday, 8 December 2010 1:33 p.m.
> To: David Leeming
> Cc: 'XS Devel'; 'Richard A. Smith'
> Subject: Re: deregister laptops
>
> On Wed, Dec 08, 2010 at 01:03:07PM +1100, David Leeming wrote:
>> Terminal Activity was used, yes, version 31
>> # cat /boot/olpc_build
>> 852
>> # rpm -q sugar
>> sugar-0.84.22-1.fc11.i586
>> All above are results from the same XO
>
> Thanks.  I've no further ideas.  It seems to work for me.  I've raised a
> ticket #10520 in the hope that those working on 10.1.3 can have a look
> at it.
>
> http://dev.laptop.org/ticket/10520
>
> --
> 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 mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] deregister laptops

2011-05-15 Thread Sridhar Dhanapalan
I believe the command is now:

  $ sugar-control-panel -c registration

Sridhar


On 14 May 2011 18:34, David Leeming  wrote:
> I am seeking a way to de-register XO-1s (10.1.3) that have been registered
> on one server to allow them to be registered on another. Previously we used
>
> rm /home/olpc/.sugar/default/config
>
> this no longer applies as per the thread below...
>
> David Leeming
> Solomon Islands
>
>
> -Original Message-
> From: qu...@us.netrek.org [mailto:qu...@us.netrek.org] On Behalf Of James
> Cameron
> Sent: Wednesday, 8 December 2010 1:33 p.m.
> To: David Leeming
> Cc: 'XS Devel'; 'Richard A. Smith'
> Subject: Re: deregister laptops
>
> On Wed, Dec 08, 2010 at 01:03:07PM +1100, David Leeming wrote:
>> Terminal Activity was used, yes, version 31
>> # cat /boot/olpc_build
>> 852
>> # rpm -q sugar
>> sugar-0.84.22-1.fc11.i586
>> All above are results from the same XO
>
> Thanks.  I've no further ideas.  It seems to work for me.  I've raised a
> ticket #10520 in the hope that those working on 10.1.3 can have a look
> at it.
>
> http://dev.laptop.org/ticket/10520
>
> --
> 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 mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] deregister laptops

2011-05-14 Thread David Leeming
I am seeking a way to de-register XO-1s (10.1.3) that have been registered
on one server to allow them to be registered on another. Previously we used

rm /home/olpc/.sugar/default/config

this no longer applies as per the thread below...  

David Leeming
Solomon Islands 


-Original Message-
From: qu...@us.netrek.org [mailto:qu...@us.netrek.org] On Behalf Of James
Cameron
Sent: Wednesday, 8 December 2010 1:33 p.m.
To: David Leeming
Cc: 'XS Devel'; 'Richard A. Smith'
Subject: Re: deregister laptops

On Wed, Dec 08, 2010 at 01:03:07PM +1100, David Leeming wrote:
> Terminal Activity was used, yes, version 31
> # cat /boot/olpc_build
> 852
> # rpm -q sugar
> sugar-0.84.22-1.fc11.i586
> All above are results from the same XO 

Thanks.  I've no further ideas.  It seems to work for me.  I've raised a
ticket #10520 in the hope that those working on 10.1.3 can have a look
at it.

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

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


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


Re: [Server-devel] deregister laptops

2010-12-07 Thread James Cameron
On Wed, Dec 08, 2010 at 01:03:07PM +1100, David Leeming wrote:
> Terminal Activity was used, yes, version 31
> # cat /boot/olpc_build
> 852
> # rpm -q sugar
> sugar-0.84.22-1.fc11.i586
> All above are results from the same XO 

Thanks.  I've no further ideas.  It seems to work for me.  I've raised a
ticket #10520 in the hope that those working on 10.1.3 can have a look
at it.

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

-- 
James Cameron
http://quozl.linux.org.au/
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] deregister laptops

2010-12-07 Thread David Leeming

On Tue, Dec 07, 2010 at 06:34:05PM +1100, David Leeming wrote:
> James wrote:
> > David wrote:
> > > James wrote:
> > > > G'day David,
> > > > XO-1 software release 10.1.2 is based on Sugar 0.84, which moved
> > > > to using gconf for storing this setting.  What should work is:
> > > > 1.  start Terminal activity,
> > > > 2.  type
> > > > sugar-control-panel -c registration
> > > > 3.  use ctrl-alt-erase to restart Sugar.
> > > > If that doesn't work, please let me know, as I'd like to track
> > > > it.
> > >
> > > Sorry it has taken me a while to get round to testing this. Well
> > > it does not work. In terminal, the command above gives a lot of
> > > text feedback, referring to a configuration server.
> >
> > Good, please provide the text feedback, it is critical for
> > understanding the problem.  You can capture that with a screenshot,
> > Alt/1, or use the Linux script command.
> 
> sugar-control-panel: Failed to contact configuration server; some
> possible causes are that you need to enable TCP/IP networking for
> ORBit, or you have stale NFS locks due to a system crash. See
> http://projects.gnome.org/gconf/ for information. (Details -  1:
> Failed to get connection to session: Did not receive a reply. Possible
> causes include: the remote application did not send a reply, the
> message bus security policy blocked the reply, the reply timeout
> expired, or the network connection was broken.)

> This happens for me on 10.1.2 only if I try it at a virtual terminal
> console (ctrl-alt-f1), but it doesn't happen for me if I do it in the
> Terminal activity.  I checked that I mentioned using the Terminal
> activity.  Please confirm this is where you typed it?  Certain
> environment variables are needed from the running Sugar session, and
> these are available by default to Terminal.

> Please confirm the OLPC OS build number, and the version number of the
> Sugar RPM package:


Terminal Activity was used, yes, version 31


# cat /boot/olpc_build
852
# rpm -q sugar
sugar-0.84.22-1.fc11.i586
All above are results from the same XO 

David


> > Did either of these alternate methods work?
> 
> - gconftool method gave same output as the first (as above)

> That also happens in a shell that is missing the required context.

> - rm -rf .gconf gave no errors but after reboot there is no "Register"
> option present in the home view shutdown menu, only Shutdown and My
> Settings. So I guess no.

> Interesting, thanks.

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



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


Re: [Server-devel] deregister laptops

2010-12-07 Thread James Cameron
On Tue, Dec 07, 2010 at 06:34:05PM +1100, David Leeming wrote:
> James wrote:
> > David wrote:
> > > James wrote:
> > > > G'day David,
> > > > XO-1 software release 10.1.2 is based on Sugar 0.84, which moved
> > > > to using gconf for storing this setting.  What should work is:
> > > > 1.  start Terminal activity,
> > > > 2.  type
> > > > sugar-control-panel -c registration
> > > > 3.  use ctrl-alt-erase to restart Sugar.
> > > > If that doesn't work, please let me know, as I'd like to track
> > > > it.
> > >
> > > Sorry it has taken me a while to get round to testing this. Well
> > > it does not work. In terminal, the command above gives a lot of
> > > text feedback, referring to a configuration server.
> >
> > Good, please provide the text feedback, it is critical for
> > understanding the problem.  You can capture that with a screenshot,
> > Alt/1, or use the Linux script command.
> 
> sugar-control-panel: Failed to contact configuration server; some
> possible causes are that you need to enable TCP/IP networking for
> ORBit, or you have stale NFS locks due to a system crash. See
> http://projects.gnome.org/gconf/ for information. (Details -  1:
> Failed to get connection to session: Did not receive a reply. Possible
> causes include: the remote application did not send a reply, the
> message bus security policy blocked the reply, the reply timeout
> expired, or the network connection was broken.)

This happens for me on 10.1.2 only if I try it at a virtual terminal
console (ctrl-alt-f1), but it doesn't happen for me if I do it in the
Terminal activity.  I checked that I mentioned using the Terminal
activity.  Please confirm this is where you typed it?  Certain
environment variables are needed from the running Sugar session, and
these are available by default to Terminal.

Please confirm the OLPC OS build number, and the version number of the
Sugar RPM package:

# cat /boot/olpc_build
852
# rpm -q sugar
sugar-0.84.22-1.fc11.i586

> > Did either of these alternate methods work?
> 
> - gconftool method gave same output as the first (as above)

That also happens in a shell that is missing the required context.

> - rm -rf .gconf gave no errors but after reboot there is no "Register"
> option present in the home view shutdown menu, only Shutdown and My
> Settings. So I guess no.

Interesting, thanks.

-- 
James Cameron
http://quozl.linux.org.au/
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] deregister laptops

2010-12-06 Thread David Leeming
On Tue, Dec 07, 2010 at 03:19:40PM +1100, David Leeming wrote:
> > G'day David,
> > XO-1 software release 10.1.2 is based on Sugar 0.84, which moved to
> > using gconf for storing this setting.
> > What should work is:
> > 1.  start Terminal activity,
> > 2.  type
> > sugar-control-panel -c registration
> >3.  use ctrl-alt-erase to restart Sugar.
> >If that doesn't work, please let me know, as I'd like to track it.
> 
> Sorry it has taken me a while to get round to testing this. Well it does
not
> work. In terminal, the command above gives a lot of text feedback,
referring
> to a configuration server.

>> Good, please provide the text feedback, it is critical for understanding
>> the problem.  You can capture that with a screenshot, Alt/1, or use the
>> Linux script command.


Hi James, thanks for responding so quickly. Actually we can set up accounts
on the XS manually of course. But we need to know how to do this. The text
output is below

sugar-control-panel -c registration

sugar-control-panel: Failed to contact configuration server; some possible
causes are that you need to enable TCP/IP networking for ORBit, or you have
stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/
for information. (Details -  1: Failed to get connection to session: Did not
receive a reply. Possible causes include: the remote application did not
send a reply, the message bus security policy blocked the reply, the reply
timeout expired, or the network connection was broken.)


> >There's an alternate method using the gconftool-2 program that is
> somewhat more complex.
> 
> gconftool-2 --set --type=string \
> /desktop/sugar/backup_url \
> ''
> 
> And finally a brute force method "rm -rf .gconf" but this destroys other
> settings, most of which may not be important.

>> Did either of these alternate methods work?

- gconftool method gave same output as the first (as above)
- rm -rf .gconf gave no errors but after reboot there is no "Register"
option present in the home view shutdown menu, only Shutdown and My
Settings. So I guess no.

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



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


Re: [Server-devel] deregister laptops

2010-12-06 Thread James Cameron
On Tue, Dec 07, 2010 at 03:19:40PM +1100, David Leeming wrote:
> > G'day David,
> > XO-1 software release 10.1.2 is based on Sugar 0.84, which moved to
> > using gconf for storing this setting.
> > What should work is:
> > 1.  start Terminal activity,
> > 2.  type
> > sugar-control-panel -c registration
> >3.  use ctrl-alt-erase to restart Sugar.
> >If that doesn't work, please let me know, as I'd like to track it.
> 
> Sorry it has taken me a while to get round to testing this. Well it does not
> work. In terminal, the command above gives a lot of text feedback, referring
> to a configuration server.

Good, please provide the text feedback, it is critical for understanding
the problem.  You can capture that with a screenshot, Alt/1, or use the
Linux script command.

> Not sure what it is trying to do, but what I am
> trying to achieve is to get the "Register" to appear on the XO home page
> when you hover over the middle, under "Shutdown" and "My settings"; i.e. to
> have the Register option available again in the shutdown dropdown menu so
> that I can register the XO on another XS.

Yes, that is what I understand you need.

> We have to do this quite often, for instance right now we have 25 teachers
> from 3 schools with OLPC projects visiting one school for training. They all
> need to access the XS server at that school, using their own laptops.

I've no issue with the need for the task.

> Hence we need to deregister them. I am not sure if this question is for the
> Sugar dev or server dev list, but is certainly server related.

It is Sugar related, but I'm happy to answer here.

> Any help appreciated! We are stuck at the moment. We are otherwise stuck; we
> upgrade them XOs to 10.1.2 and now don't have access to the server without a
> lot of time consuming work.
> 
> (it is a pity as the rm /home/olpc/.sugar/default/config method was well
> understood here)

This changed in Sugar.

> >There's an alternate method using the gconftool-2 program that is
> somewhat more complex.
> 
> gconftool-2 --set --type=string \
> /desktop/sugar/backup_url \
> ''
> 
> And finally a brute force method "rm -rf .gconf" but this destroys other
> settings, most of which may not be important.

Did either of these alternate methods work?

-- 
James Cameron
http://quozl.linux.org.au/
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] deregister laptops

2010-12-06 Thread David Leeming
> G'day David,
> XO-1 software release 10.1.2 is based on Sugar 0.84, which moved to
> using gconf for storing this setting.
> What should work is:
> 1.  start Terminal activity,
> 2.  type
>   sugar-control-panel -c registration
>3.  use ctrl-alt-erase to restart Sugar.
>If that doesn't work, please let me know, as I'd like to track it.

Sorry it has taken me a while to get round to testing this. Well it does not
work. In terminal, the command above gives a lot of text feedback, referring
to a configuration server. Not sure what it is trying to do, but what I am
trying to achieve is to get the "Register" to appear on the XO home page
when you hover over the middle, under "Shutdown" and "My settings"; i.e. to
have the Register option available again in the shutdown dropdown menu so
that I can register the XO on another XS.

We have to do this quite often, for instance right now we have 25 teachers
from 3 schools with OLPC projects visiting one school for training. They all
need to access the XS server at that school, using their own laptops.

Hence we need to deregister them. I am not sure if this question is for the
Sugar dev or server dev list, but is certainly server related.

Any help appreciated! We are stuck at the moment. We are otherwise stuck; we
upgrade them XOs to 10.1.2 and now don't have access to the server without a
lot of time consuming work.

(it is a pity as the rm /home/olpc/.sugar/default/config method was well
understood here)






>There's an alternate method using the gconftool-2 program that is
somewhat more complex.





gconftool-2 --set --type=string \
/desktop/sugar/backup_url \
''

And finally a brute force method "rm -rf .gconf" but this destroys other
settings, most of which may not be important.

References:

http://dev.laptop.org/ticket/10261
http://dev.laptop.org/ticket/7765
http://dev.laptop.org/ticket/7764
http://dev.laptop.org/ticket/6857
http://dev.laptop.org/ticket/5380

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



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