The Following 24 Users Say Thank You to edp17 For This Useful Post: | ||
Bundyo, DA5, elvarr, Fellfrosch, J4ZZ, Jordi, juiceme, Kabouik, Kalatti, klinglerware, lal, levone1, max_power, meemorph, mosen, mscion, nonsuch, olf, peterleinchen, preflex, rcolistete, reinob, robthebold, xman |
|
2020-07-29
, 18:51
|
|
Community Council |
Posts: 1,669 |
Thanked: 10,225 times |
Joined on Nov 2014
@ Lower Rhine
|
#3
|
It is possible to check if your kernel support containers with: ls -lha /dev/pts/ LXC enabled devices should see a /dev/pts/ptmx entry.
|
2020-07-29
, 19:02
|
Posts: 1,873 |
Thanked: 4,529 times |
Joined on Mar 2010
@ North Potomac MD
|
#4
|
copied from the lxc instructions:
On Jolla 1, memory might be a little few.Code:It is possible to check if your kernel support containers with: ls -lha /dev/pts/ LXC enabled devices should see a /dev/pts/ptmx entry.
|
2020-07-30
, 07:02
|
|
Posts: 600 |
Thanked: 713 times |
Joined on Jul 2019
@ UK
|
#5
|
The Following 5 Users Say Thank You to edp17 For This Useful Post: | ||
|
2020-07-30
, 07:04
|
|
Posts: 600 |
Thanked: 713 times |
Joined on Jul 2019
@ UK
|
#6
|
|
2020-07-30
, 08:38
|
|
Posts: 600 |
Thanked: 713 times |
Joined on Jul 2019
@ UK
|
#8
|
As an alternative, is there a way to boot up a Linux distribution from a sd card?
|
2020-07-30
, 09:19
|
|
Posts: 600 |
Thanked: 713 times |
Joined on Jul 2019
@ UK
|
#9
|
|
2020-07-30
, 10:50
|
Posts: 2 |
Thanked: 19 times |
Joined on Jul 2020
|
#10
|
The Following 19 Users Say Thank You to illyria For This Useful Post: | ||
Bundyo, edp17, elvarr, Fellfrosch, Jordi, juiceme, Kabouik, klinglerware, lal, linuxunux, meemorph, mosen, mscion, nonsuch, olf, peterleinchen, reinob, robthebold, vaskas |
Tags |
application, development, linux |
|
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:
- harbour-containers
- lxc-templates-desktop
(Note: Once the container is started you can close the command line, and the container will stay running.)Requirements:
CONFIG_DEVPTS_MULTIPLE_INSTANCES
CONFIG_NAMESPACES
CONFIG_UTS_NS
CONFIG_IPC_NS
CONFIG_PID_NS
CONFIG_NET_NS
CONFIG_CGROUPS
CONFIG_CGROUP_DEVICE
CONFIG_CPUSETS
(You can double-check these on the device. e.g. zcat /proc/config.gz | grep CONFIG_DEVPTS_MULTIPLE_INSTANCES)
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:
- download the latest build (Xwayland.xxx.libc-2.29.bin) from here: Xwayland for armhf(32) or Xwayland for aarch64
- rename it to Xwayland
- set it to be executable
Code:
- then copy into /home/.lxc/<container_name>/opt/bin/
If the window starts but there is an error message "Unable to contact settings server" "Failed to execute child process "dbus-launch" (No such file or directory)", then you need to attach the container and install the dbus-x11 packageSome useful scripts:
(You can download and edit as you wish. )
- Start LXC and desktop in landscape/portrait/auto-rotation mode with mouse support: debian-mouse.sh
- Start LXC and desktop without mouse support: debian.sh
(Note: Once the container is started with one of the scripts above, you can close the command line, and the container will remain running.)(two parameters:
$1 - container name;
$2 - p or l or a for portrait/landscape/auto-rotate mode
Please note: if it is called WITHOUT the second parameter, it starts with auto-rotate)
(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:
then within the container:
/usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"
(or to start with mouse cursor support use this:
/usr/bin/qxcompositor -o portrait --wayland-socket-name "../../display/wayland-container-0")
/mnt/guest/start_desktop.sh 0
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:
===========================================
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!
- LXC containers are now working in the Sailfish OS demo:
- Desktop Linux (xfce & i3) on Pro1 qwerty slider without sacrificing telephony:
They're rather long so check the description to jump to any chapter that might be more interesting to you.- First demo
- LBRY for good connections (big file)
- Youtube for slower connections
Porting SailfishOS to some devices:
Last edited by edp17; 2024-10-06 at 20:22. Reason: Added link to Xwayland binary