In Wheezy and Waldorf network manager does not connect 3G mobile broadband automatically after login like it did in Squeeze and Statler. Setting "Enable Mobile Broadband" is unticked after reboot. The best workaround I've found so far is in an Ubuntu bug report.
12.04/Huawei e367.
First make Startup-menu in terminal:
sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop
Now it is under Stop-button.
Make txt-file and save it in Home with these commands:
sleep 4s; nmcli nm wwan on
sleep 5s; nmcli nm wwan on
sleep 6s; nmcli nm wwan on
sleep 7s; nmcli nm wwan on
sleep 8s; nmcli nm wwan on
sleep 9s; nmcli nm wwan on
sleep 10s; nmcl
Sometimes I need to do some operational work in text mode
and I need to setup internet connection from command line (without any networkmanager applet).
(Please note: that when I run Window Manager, I have network connection immediately, thanks to NetworkManager applet.)
When I list my connections and look for wired one:
# nmcli con | grep Wired
New Wired Connection b15ffacf-a5c58-44af-b75
After last upgrade of 12.04 my network manager applet disappeared.
I installed sudo apt-get install network-manager-pptp and set up a vpn profile configured to connect to my schools vpn but when I Click on it under my network icon, "VPN Connections." nothing happens. When looking back the vpn connection gets a check mark but that is it. Making other profiles leads to the same result. Also more then one can be checked at a time.
After switching to systemd, I started to use NetworkManager.service, I got connected to WIFI automatically at boot, but I got the following message when I run nmcli con:
** (process:4433): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: Method "GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties" doesn't exist
Error: nmcli (0.9.6.4) and NetworkMana
To my knowledge, basically have two options to connect via 3G: NetworkManager and connman.NetworkManager needs Modemmanager to be installed too and can then be controlled via command line by using nmcli. However, there used to be a bug in the current version of NM that prevented nmcli to work with NM.
I am trying to set up my Mythbuntu computer to connect to a VPN service when it starts up.
如果你刚刚接触 Linux 的话,或许你知道这些命令。