I've just finished to install my gemini with DEBIAN. (only one partition / no android or other os)I have past many days to do it.The 4G is working but it was not easy.So i publish all the step that i used to have a complete gemini working on debian.I think it could be helpful for new people who want to have a complete working gemini.Have a great reading.

Steph

[1] FLASHING GEMINI[1.1] INSTALL DEBIAN ONLY (only one partition (no other os))[1.1.1] INSTALL FLASHTOOL-go here : http://support.planetcom.co.uk/index.php/L..._Flashing_GuideThe first step to install FlashTool on a Windows PC is to install the flash tool drivers. The drivers are needed for your Windows PC to communicate with your Gemini, the minimum requirement is to have a 64bit Windows operating system (Windows 7 or later supported).You can find the latest drivers here: Windows Flash Tool DriversOnce downloaded, unzip the archive. You will find a folder called FlashToolDrivers, open the folder and double click on the Install (install.bat) file. Allow the installation to complete by clicking Yes when asked to make changes.Now that the drivers have been installed, you can download the latest Windows flash tool: Windows Flash ToolOnce downloaded the Windows FlashTool, please unzip it to reveal the FlashToolWindows folder. Next, run the flash tool by double clicking on flash_tool (flash_tool.exe) file in the FlashToolWindows folder.

download Notepad++ (or something like this and make sure the file Line ending is set to Unix (LF))

-go inside created folder-open scatter file with notepad++-search for ALL sailfishos_boot.img and replace it with debian_boot.img. Save the file

-open flashtool-go to « download » tab-download-Agent : should be set to the file MTK_AllInOne_DA.bin (which is located in the FlashToolWindows or FlashToolLinux folder).-scatter loading file : choose the scatter file that you have modifyed just before

all the files in colums must be checked and location not empty

[1.1.3] BACKUP NVRAM-go to « readback » tab-click « add » button. A row will appear in the table under.-click « Read Back » button connect your PC to the left end USB-C port on your Gemini and restart the Gemini. Once booted, the flash tool will detect the unit and will write the NVRAM partition on a file on your hard disk called NVRAM0. It’s a good idea to keep this file as a backup, together with the customised Scatter file.

[1.1.4] FLASHING FIRMWARE-click « Download » tab. -drop-down list : select « Firmware Upgrade » option from the drop down menu -click big « download » button-connect your PC to the left end USB-C port on your Gemini and restart the Gemini. Once booting, the flash tool will detect the unit and will start flashing the device with the selected firmware. -wait the end of flashing-deconnect gemini of pc

[2] LAUCH DEBIAN-press esc button a long time, and wainting for the login page-on login page, select your country in « layout » drop-down list and enter password « gemini » under the username

[3.3] WIFI-go to menu -> internet. Drag and drop « connman ui setup » in the top panel in the « drop application zone ». Click on the new icon in the panel. In « status » tab, click on the wifi button « OFF ». The button goes to green. Go to « wireless » tab, ans select the name of your wifi by clicking on it. Click on « connect » button. A new window open. Enter passphrase of wifi. Click « ok » . You are connected to wifi.

[3.5] UPDATE VERY important -> do not make apt update & upgrade before THIS. If not, you will break all the file system.[3.5.1] ADD REPOSITORY ARCHIVE KEY -open qTerminal-go to admin :enter : sudo -s gemini (it is the password)wget http://gemian.thinkglobally.org/archive-key.ascapt-key add archive-key.asc apt updateapt-upgrade

if system is brocken :enter :$ cd /var/cache/apt/archives/$ dpkg -i --force-overwrite libreoffice*$ apt install -f apt updateapt upgradeyour system is up to go.

[3.5.2] LOCALE if there is this messages when you made « apt upgrade » :locale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_ALL to default locale: No such file or directoryOR LANGUAGE = (unset),LC_ALL = (unset),

[3.6.2] MENU CONFIG-go to « /usr/share/applications »-all application configuration files are here. Name are all like this « name_of_application.desktop « .if you want to change menu order, you have to open the file of the application you want to change in the menu. *For example to move « data » from «accessories » to «office» :-open «data.desktop » in nano or vi (enter « nano data.desktop »)-search « categories », change « Utility » into « office », and save file.The menu has been changed.

[3.12.3.2] COPY FILES .SH on the DESKcopy the .sh files on the screen, with the file manager-go to : menu -> accessoriesopen file manager PCManFMgo to 4G directorydrag and drop 4G directory on the desk

[3.12.3.3] 4G ON / OFFclick on file « 4G-enable.sh » to initialize the modem (click on « execute » button in the window pop-up). (just one time on new session)click on file « 4G-on.sh » to make 4G ON (click on « execute » button in the window pop-up)click on file « 4G-off.sh » to make 4G OFF (click on « execute » button in the window pop-up)

Thanks for this. Nice to have it all in one place.Do you know whether the 4G support requires an up-to-date Android installation? I've not updated the Android side of my Gemini since I bought it almost 2 years ago (only booted into Android once)...

Thanks for this. Nice to have it all in one place.Do you know whether the 4G support requires an up-to-date Android installation? I've not updated the Android side of my Gemini since I bought it almost 2 years ago (only booted into Android once)...

No need to have an updated android.

Look at the first part (flashing gemini), i have only install one partition with DEBIAN. No other partition. So i do not have android on my gemini.So you only need to install 4G on Debian with ofono has i made (if it not work at start) with the terminal.I have made some script to an easy use of 4G. Only click on the script, and 4G is ON. Click on other script, and 4G is OFF.

Thanks for the Tutorial, works great. Apart from KDE is there another desktop that works with the gemini?

The desktop is LXQT.It is a very lightweight Desktop. So i think it is a good Desktop.The only thing i would to change, it is the menu. I would like to use a menu like "Whisker menu" but seems that it is not possible under LXQT. If someone know...

But you can change the window manager (as i made).You cans see that in [3.2] section of tutorial. I have choose « xfwm4 » but you could add another one i think.