Difference between revisions of "Cosmo Linux Mobile Data"

From Planet Computers

Jump to: navigation, search
(Created page with "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 Cosm...")
 
Line 3: Line 3:
 
This guide assumes that you have already installed Linux on your Cosmo using the [[Linux for Cosmo]] guide.
 
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  with 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.
 +
 +
====Install connman====
 
On your Cosmo, open a terminal (Menu -> Applications -> System -> Terminal)
 
On your Cosmo, open a terminal (Menu -> Applications -> System -> Terminal)
 
Mobile data does not work correctly using NetworkManager. To enable mobile data we have to remove NetworkManager and use connman instead. Connman will also be used to handle WIFI connection after this.
 
  
 
Type the following commands to install connman:
 
Type the following commands to install connman:
Line 11: Line 12:
 
<code>sudo apt install connman cmst mobile-broadband-provider-info ofono-scripts</code><code></code><br /><code>sudo apt remove network-manager plasma-nm</code><br /><code>sudo reboot</code>
 
<code>sudo apt install connman cmst mobile-broadband-provider-info ofono-scripts</code><code></code><br /><code>sudo apt remove network-manager plasma-nm</code><br /><code>sudo reboot</code>
  
 +
====Enable Roaming====
 +
Roaming needs to be explicitly enabled beforehand if needed. To enable roaming type this command in a terminal:
 +
 +
<code>/usr/share/ofono/scripts/set-roaming-allowed</code>
 +
 +
 +
====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":
 +
 +
<code> /usr/share/ofono/scripts/set-context-property 0 AccessPointName three.co.uk</code>
 +
 +
For Telenor Hungary, the access point name is simply "online", so the command would be:
 +
 +
<code>/usr/share/ofono/scripts/set-context-property 0 AccessPointName online</code>
 +
 +
Finally, we need to activate the connection using the following command:
 +
 +
<code>/usr/share/ofono/scripts/activate-context 1</code>
 +
 +
Your mobile connection should now be active. You can use the connman system tray application (cstm) to check the status of the network connection.
 +
 +
 +
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:
  
Now switch to the root user:
+
<code>sudo echo "nameserver 8.8.8.8" > /etc/resolv.conf</code>

Revision as of 12:01, 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  with 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.

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

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


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

Finally, we need to activate the connection using the following command:

/usr/share/ofono/scripts/activate-context 1

Your mobile connection should now be active. You can use the connman system tray application (cstm) to check the status of the network connection.


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