... | ... | @@ -111,4 +111,69 @@ That will show you your IMSI, among other pieces of information. |
|
|
## Mobile Country Reference Data
|
|
|
|
|
|
* Reference data for APNs (used to access the internet on the mobile network) is stored in the directory `/usr/share/mobile-broadband-provider-info`
|
|
|
* Reference data for international dialling is stored in the locale file, in the LC_TELEPHONE section e.g. `/usr/share/i18n/locales/ll_CC` where `ll` is the language code and `CC` is the country code. |
|
|
\ No newline at end of file |
|
|
* Reference data for international dialling is stored in the locale file, in the LC_TELEPHONE section e.g. `/usr/share/i18n/locales/ll_CC` where `ll` is the language code and `CC` is the country code.
|
|
|
|
|
|
## Tutorials
|
|
|
|
|
|
*Secure Shell (ssh)
|
|
|
Note that using the L5's passcode to log in remotely is relatively weak security. See related tutorials for better authentication solutions.
|
|
|
|
|
|
```
|
|
|
SECURE SHELL
|
|
|
Logging in remotely to the L5’s terminal in order to execute commands
|
|
|
|
|
|
On your computer (the client):
|
|
|
|
|
|
sudo apt update && sudo apt upgrade
|
|
|
sudo apt install openssh-client
|
|
|
|
|
|
On the Librem 5 (the remote device):
|
|
|
sudo apt update && sudo apt upgrade
|
|
|
sudo apt install openssh-server
|
|
|
|
|
|
Confirm that it worked (i.e. is “active”):
|
|
|
|
|
|
sudo systemctl status ssh
|
|
|
|
|
|
If not active:
|
|
|
|
|
|
sudo systemctl enable ssh
|
|
|
|
|
|
If firewall blocks ssh on the remote device:
|
|
|
|
|
|
sudo ufw allow ssh
|
|
|
|
|
|
Other firewall options available:
|
|
|
|
|
|
stop
|
|
|
|
|
|
start
|
|
|
|
|
|
disable
|
|
|
|
|
|
Determine IP address of the remote device (L5):
|
|
|
|
|
|
Available in the What IP app, or via the L5’s terminal:
|
|
|
|
|
|
ip address or ifconfig
|
|
|
|
|
|
or log in to your router to find the L5’s IP address.
|
|
|
|
|
|
To log in over WiFi to the remote device (L5) from your computer:
|
|
|
|
|
|
ssh username@REMOTE.IP.ADDRESS.HERE
|
|
|
|
|
|
Example: ssh purism@192.168.1.xxx
|
|
|
|
|
|
Type the word “yes” at the next terminal question, then provide the password to your L5. The following prompt will appear:
|
|
|
|
|
|
purism@pureos:~$
|
|
|
|
|
|
You are now logged into your L5 from your computer’s terminal, and can easily execute any terminal commands remotely. This also makes it easy to copy terminal output and paste it here in the forum or elsewhere.
|
|
|
|
|
|
You can also connect your L5 to your computer over USB and use ssh without WiFi. You will need to use your computer’s network settings to create a Shared Connection over ethernet (not described here).
|
|
|
|
|
|
In the settings panel of the L5, under Sharing, you should now see that Remote Login is On. At the top of this panel, you can use the toggle to disable or enable remote sharing as you wish.
|
|
|
|
|
|
To exit ssh, use the command exit in the terminal.
|
|
|
``` |
|
|
\ No newline at end of file |