RE: scripting settings



I was using 
gconftool-2 --set .....
to set the values. Thank you for the suggestion it works easily on my
Ubuntu setup,
that I am using to debug my script base.

However on my target device, a Gumstix Overo, I cannot seem to get the
connection
info to load. It is like I have no system settings service. I can see my
modem being
recognised by dbus-monitor, I just cannot activate a connection.
"Connection was not provided by any settings service"

On this device I have no Gui and currently no qdbus on the system. I do
have nmcli.
I am finding debug tricky at present. Any debug suggestions would be
much appreciated.

For reference I am using a 3 modem, made by ZTE, model MF112. Works
perfectly on Ubuntu
Linux op-ubuntu 2.6.31-22-generic #67-Ubuntu SMP Sat Oct 16 19:10:07 UTC
2010 i686 GNU/Linux
The Overo system,
Linux overo 2.6.32 #1 Sun Nov 21 16:22:56 GMT 2010 armv7l unknown

-----Original Message-----
From: Jirka Klimes [mailto:jklimes redhat com] 
Sent: 13 December 2010 09:45
To: networkmanager-list gnome org
Cc: Andy Maginnis
Subject: Re: scripting settings

On Friday 10 of December 2010 15:32:54 Andy Maginnis wrote:
> Hi,
> I am trying to script a setup for NetworkManager for 3G modems. I can
> successfully
> populate /home/op/.gconf/system/networking/connections with additional
> GSM configurations using dbus-send i.e. 2,3,4,5 etc but I cannot get
> network
> manager to read these configurations.
> I am guess that I need to register these somehow so that when I open
> the nm-connections-editor they are visible.
> Any pointers much appreciated.
> 

How do you edit the configuration files? If you edit them directly,
that's a 
problem since GConf manages configuration via its daemon and can discard
your 
changes. You should consider using gconftool-2 to edit the
configuration.

You can simply dump a connection to a file:
gconftool-2 --dump /system/networking/connections/1 > myconnnection.conf

edit the file and then load it as a new configuration:
gconftool-2 --load myconnnection.conf

If there is an error in a configuration, nm-connection-editor should
complain 
when reading it (see .xsession-errors or output on terminal).

Useful links:
http://library.gnome.org/admin/system-admin-guide/stable/gconf-8.html.en
http://markmail.org/message/wridmhuk73cq44ft
http://superuser.com/questions/189849/gnome-terminal-overwriting-ignorin
g-
manual-file-changes-to-gconf-xml-profiles

Jirka


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]