Difference between revisions of "Cosmo Linux Mobile Data"
From Planet Computers
(→No summary) |
|||
Line 37: | Line 37: | ||
− | [[File:22_46.jpg|800x600px | + | [[File:22_46.jpg|center|800x600px|border]] |
Line 43: | Line 43: | ||
<code>/usr/share/ofono/scripts/activate-context 1</code> | <code>/usr/share/ofono/scripts/activate-context 1</code> | ||
+ | |||
+ | The command should produce no output and yout connection should now be active. | ||
+ | |||
+ | |||
Your mobile connection should now be active. You can use the connman system tray application (cmst) to check the status of the network connection (see the important bit - AccessPointName = three.co.uk). | Your mobile connection should now be active. You can use the connman system tray application (cmst) to check the status of the network connection (see the important bit - AccessPointName = three.co.uk). |
Revision as of 16:57, 22 July 2020
The following guide will help you setting up mobile data for your Cosmo Communicator under Debian Linux.
This guide assumes that you have already installed Linux on your Cosmo using the Linux for Cosmo guide.
The current Debian/KDE image uses NetworkManager to handle WIFI and mobile data connections, but mobile data is not working correctly when using it under Cosmo. In order to enable mobile data we have to remove NetworkManager and use connman instead. Connman is an alternative connection manager software, which will be used to handle both mobile data and WIFI connection. As connman integration in KDE is not as seemless as NetworkManager it is suggested to proceed only if you need mobile data under Linux.
Please note that Linux expects the SIM to be inserted in slot 0.
1 - Install connman
On your Cosmo, open a terminal (Menu -> Applications -> System -> Terminal)
Type the following commands to install connman:
sudo apt install connman cmst mobile-broadband-provider-info ofono-scripts
sudo apt remove network-manager plasma-nm
sudo reboot
2 - Enable Roaming
Roaming needs to be explicitly enabled beforehand if needed. To enable roaming type this command in a terminal:
/usr/share/ofono/scripts/set-roaming-allowed
3 - Configure APN
The next step is to configure the APN for your specific network operator, which can usually be found online or by contacting your operator.
Usually, this will simply involve setting up the network's access point name through the set-context-property. For example, for the Three UK network we have to setup the access point name "three.co.uk":
/usr/share/ofono/scripts/set-context-property 0 AccessPointName three.co.uk
For Telenor Hungary, the access point name is simply "online", so the command would be:
/usr/share/ofono/scripts/set-context-property 0 AccessPointName online
To double check that the information has been set properly you can use the list-contexts command:
/usr/share/ofono/scripts/list-contexts
The output of list-contexts should be similar to the output of the screenshot below (see the important bit - AccessPointName = three.co.uk):
Finally, we need to activate the connection using the following command:
/usr/share/ofono/scripts/activate-context 1
The command should produce no output and yout connection should now be active.
Your mobile connection should now be active. You can use the connman system tray application (cmst) to check the status of the network connection (see the important bit - AccessPointName = three.co.uk).
You can also run cstm at startup by...
What about SIM1/SIM2?
Note that in some cases a working namserver might not be populated automatically. In this case you can set one using the following command:
sudo echo "nameserver 8.8.8.8" > /etc/resolv.conf