Re: scripting settings



On Tuesday 14 of December 2010 19:02:22 Andy Maginnis wrote:
> Thanks, my modem is working now and I can upload data. I put the
> following  in /etc/NetworkManager/system-connections/amGsm.ini
> [connection]
> id=pbGsmConnection
> uuid=016b60fb-8c37-4d75-be33-142d2a0fd849
> type=gsm
> autoconnect=true
> timestamp=0
> managed=true
> 
> [gsm]
> apn=3internet
> band=0
> name=gsm
> number=*99#
> 
> [serial]
> baud=115200
> name=serial
> 
That's great.

> And activated the connection with
> 
> dbus-send --system --print-reply --type=method_call
> --dest="org.freedesktop.NetworkManager" /org/freedesktop/NetworkManager
> "org.freedesktop.NetworkManager.ActivateConnection"
> string:"org.freedesktop.NetworkManagerSystemSettings"
> objpath:"/org/freedesktop/NetworkManagerSettings/0"
> objpath:"/org/freedesktop/NetworkManager/Devices/1" objpath:"/"
> 
You can also use nmcli to activate the connection:
nmcli con up uuid 016b60fb-8c37-4d75-be33-142d2a0fd849
or 
nmcli con up id "pbGsmConnection"

> I was wondering what to do with the uuid and how to ensure this is
> unique?
> Interestingly when I try and use this setting on Ubuntu I reset my Auto
> eth0 connection.
> 
uuid should be a unique string that identifies the connection. The best way to 
ensure uniqueness is to use uuidgen from util-linux-ng package.

> I also noticed that when using the 3G modem and trying to login to my
> website
> for the data transfer the hostname could only occasionally be resolved.
> If I
> used the IP address there was not an issue & I connected every time.

Check your hostname is configured in keyfile plugin:
[keyfile]
hostname=myhostname
See http://live.gnome.org/NetworkManager/SystemSettings

Jirka


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