Changes

Linux for Cosmo

2,287 bytes added, 13:18, 24 July 2020
no edit summary
==Linux News==
The latest Linux Debian firmware is now available! The latest Linux firmware has numerous bug fixes and supports the following new features: * Phone Calls* SMS support* 4G Mobile data support using connman* Open/Close power save support  Many thanks for the Cosmo Communicator open source community that provided an initial version of for supporting Linux for on Cosmo Communicator!
==Linux installation==
The first step to install Linux on your Cosmo is to make sure that you are running the latest Android firmware, currently v19'''V23'''. You can check the Android version by tapping Settings -> System -> Advanced -> About Phone and scrolling to the end of the page as (see Build number detail, in the following screenshotbelow).
[[File:3624_43.jpg|center|640x320px800x400px|border]]
Next you will have to download the Linux firmware, which will need to be installed into the microSD card on your Cosmo. Insert a microSD card on your Cosmo and make sure it is formatted as MS-DOS(FAT32).
The Linux firmware is part of an archive that also contains TWRP and rooted Android.
You can download the latest archive at this addressURL:
* [http://support.planetcom.co.uk/download/cosmo-customos-installer-v2.zip http://support.planetcom.co.uk/download/cosmo-customos-installer-v2.zip] (MD5: ba7f88924eb4254ac4c2aeb1c59ce6d6)* The older v1 version is available here: [http://support.planetcom.co.uk/download/cosmo-customos-installer-v1.zip http://support.planetcom.co.uk/download/cosmo-customos-installer-v1.zip] (MD5: 554e8ec1f1c57b0fc3a6140b1ecad3ea)
Alternatively, you can also purchase a Linux Media Installation Card with the firmware already preloaded onto the micro SD card. This can be purchased from [https://store.planetcom.co.uk/collections/media-books https://store.planetcom.co.uk/collections/media-books/]
<span style="color: #ff0000;">The main requirement when installing Linux is to reserve space for it. In order to do this you will have to re-partition your device, which will lead to the loss of all your data. </span> Once you reserve some space for Linux you can update Android or Linux independently, without loosing your data again. To change the partition table of your Cosmo use the option "Change the partition table of your COSMO", as in the picture below.
[[File:Screenshot_2020-02-12_at_15.12.52.png|center|640x330px|border]]
[[File:Screenshot_2020-02-12_at_15.15.52.png|center|640x412px|border]]
Note that in recent firmwares you will also have the option to keep all the storage for Android while allowing the installation of TWRP and rooted Android, which is useful if you want to have a rooted Android without using Linux.
Note that in recent firmwares you will also have the option to keep all the storage for Android while allowing the installation of TWRP and rooted Android. If you select to reserve some space for install Linux, 4 additional partitions will be created:
# EMPTY_RECOVERY_BOOT_2 - This partition can be used to store an image that runs in recovery mode, such as TWRP
Follow the installation steps above and just remember that TWRP can only installed in the EMPTY_RECOVERY_BOOT_2 partition.
==Debian/KDE installation==
Simply follow the installation steps above. The Debian/KDE installer will automatically install the boot image into the selected partition and it will also install the rootfs image into the Linux partition.
====Keyboard Layout Configuration====
The default keyboard layout is American English. To configure a different keyboard layout, click on the menu icon and select System Settings. Inside System Settings select "Input Devices" and set the Keyboard Model under Hardware to "Planet | Planet Computers Cosmo Communicator" as in the screenshot below. '''Tap the Apply button'''.
[[File:55.jpg|center|640x480px|border]]  Next, go to the Layouts tab where you can select your own Cosmo keyboard layout. For example, to select the British UK keyboard layout, tap on "Configure layouts" and specify the English (GB) keyboard layout, as in the following screenshot. [[File:23_04.jpg|center|800x600px|border]]   You can also use command line to set the keyboard hardware model and layout. The following command can be used to set the keyboard layout to English (GB): <code>setxkbmap -model planetgemini -layout gb</code> To restore the layout to English (US), use the following command: <code>setxkbmap -model planetgemini -layout us</code> ====WIFI Configuration==Debian/KDE installation==Simply follow To setup the WIFI connection tap on the installation steps above. The Debian/KDE installer will automatically install NetworkManager icon on the boot image into bottom right, select the selected partition WIFI network you want to connect to and it will also install the rootfs image into the Linux partitiontap Connect.
[[File:10.jpg|center|800x600px|border]]
After entering the password, the system will ask you how to store the password. If you want to store it without entering a password, then select the first option "Classic, blowfish encrypted file" and when asked to enter a password just leave it empty and tap OK. The system will then popup a warning that the password has a low strength, just tap on the Yes button.
===Tips===* There is a default user named 'cosmo'. The password for the 'cosmo' user is 'cosmo'* To update your Linux installation, make sure you configure a WIFI connection and then[[File:*# Become root by typing 'sudo bash' followed by the 'cosmo' password*# type 'apt-get update'*# type 'apt-get upgrade'21.* ESC key now sends escape command on Linux. To send the power command, use Fn+ESC.* The default keyboard layout is English. To configure a different keyboard layout, click on the menu icon and select System Settings. Inside System Settings select "Input Devices" and set the Keyboard Model under Hardware to "Planet jpg|center|800x600px| Planet Computers Cosmo Communicator" as in the screenshot below. Tap the Apply button.border]]
[[File:55===Phone and Message apps===The latest Linux update comes with a phone dialler and an SMS message app.jpg|center|640x480px|border]]They are available under the Phone application category
[[File:23_33.jpg|center|800x600px|border]]
Under layout you Both applications are quite simple and work as expected. Both apps have a special button at the botton that can now select your own Cosmo keyboard layoutbe swiped up to reveal more information. For example the Phone Dialler app will show recent and missed calls as in the picture below.
[[File:23_28.jpg|center|800x600px|border]]
===Enbling Mobile Data===
Please note that WIFI, Phone calls and SMS work straight away.
* WIFI - To setup the WIFI connection tap on the WIFI icon on the bottom rightThe default NetworkManager application also supports mobile data, select the WIFI network you want to connect to and tap Connectbut it does not work well with Cosmo.
To activate mobile data [[File:26.jpg|center|640x480pxMobile Data In Linux Cosmo|borderplease follow this link]].
===Known bugsTips===* Opening/Closing There is a default user named 'cosmo'. The password for the unit does not suspend/resume 'cosmo' user is 'cosmo'* To update your Linux installation, make sure you configure a WIFI connection and then:*# Become root by typing 'sudo bash' followed by the unit at this time'cosmo' password*# type 'apt update'*# type 'apt upgrade'. You will have to manually shutdown * On Linux, the ESC key sends the unit via software when you want to terminate your Escape command on Linux session. To send the power command, use Fn+ESC.
==Rooted Android installation==