![]() |
Full linux distros on Sailfish OS
https://thumbs.gfycat.com/PoliticalD...restricted.gif
This topic is created to discuss any questions and thoughts regarding the harbour-containers. This app makes it possible to easily install full Linux distributions onto Sailfish OS and use that distro as any other Sailfish app. The harbour-containers and lxc-templates-desktop are Illyria's project and he was inspired by the work of Preflex' and Elros34 on chroot. More info (requirements, downloads and install instructions) is available here:(Note: Once the container is started you can close the command line, and the container will stay running.) Requirements:
Downloads:
=========================================== Mouse and cursor support: Important!: From SFOS4.4 qxcompositor with mouse cursor is not available. (The cursor support is in an experimental stage, however, that works fine in portrait mode) Add the -plugin evdevmouse parameter into "/var/lib/environment/compositor/droid-hal-device.conf" Then install the qxcompositor package. (An older build can be downloaded from here: qxcompositor-0.0.5+cursor_test2.20200817210502 but I do recommend to install it from the proper repo.) For SFOS4.4, the qxcompositor can be installed from Elros's repo. As root do the following:
Unfortunately, if you install Debian Sid fresh under SFOS4.4, the installation cannot build the Xwayland binary. If no window appears and on the console, you get this error: "/etc/X11/xinit/xserverrc: 4: exec: /opt/bin/Xwayland: not found", do the following:
Some useful scripts: (You can download and edit as you wish. :))
(Note2 03/11/2021: I've amended the scripts to handle if waydroid is also installed on the device. I also incorporated the landscape/portrait/auto-rotate modes into one script.) =========================================== If the GUI doesn't work (for some unofficial ports, this is the case), this can be done manually from a command line. Here are the steps:
Note: If you don't have the /mnt/guest/ folder within the container, try to use this content in the /var/lib/lxc/<container_name>/config: config In this config, there are some container-specific lines so we would like to copy them among the containers, we need to adjust these two lines accordingly: Code:
# Container specific configuration =========================================== V I D E O S: Kabouik has created some very useful and impressive videos on how to use LXC with desktop Linux distributions on Sailfish OS. Many thanks for him! :)
|
Re: Full linux distos on Sailfish OS
Will this work on the original jolla phone?
|
Re: Full linux distos on Sailfish OS
copied from the lxc instructions:
Code:
It is possible to check if your kernel support containers with: |
Re: Full linux distos on Sailfish OS
Quote:
https://itsfoss.com/lightweight-linux-beginners/ |
Re: Full linux distos on Sailfish OS
Quote:
So, it worth a try. |
Re: Full linux distos on Sailfish OS
I have updated the main post with adding a video to watch it in action.
|
Re: Full linux distos on Sailfish OS
As an alternative, is there a way to boot up a Linux distribution from a sd card?
|
Re: Full linux distos on Sailfish OS
Quote:
|
Re: Full linux distos on Sailfish OS
My question is how can I mount/attach folders outside of the container e.g. the phone's internal and external sd card, network drive, etc...?
|
Re: Full linux distos on Sailfish OS
hello guys,
i'm the app's developer, and a long time TMO lurker. I'm a bit surprised to see a topic here so early :D First of all, i'd like to point out that this project is heavily inspired on previous works done by preflex on "XWayland Victory!" and elros34 "sailfish_linux_chroot". As edp17 already stated, LXC and harbour-containers usually works out-of-the-box on XA2's generation devices (android base >=9), since AlienDalvik works within a container as well. Probably the wiki's requirements page needs some updates since community ports seems to require more than just "CONFIG_DEVPTS_MULTIPLE_INSTANCES" on kernel's defconfig, as i excepted. Unfortunately i don't own other sailfishos devices than my Pro1 to work on, i'm happy anyway to help porters to bring containers on community ports. :) |
All times are GMT. The time now is 20:48. |
vBulletin® Version 3.8.8