Containers (harbour-containers
) is a SailfishOS application to create, download, manage and run Linux containers (LXC) from a convenient GUI. It relies on Xwayland
to run the associated desktop environment inside a new SailifshOS window:
Note
|
Before proceeding, make sure LXC kernel requirements are satisfied. |
Install Chum from here, then search for "Containers" in its app list.
-
Install dependencies:
devel-su pkcon install zypper # If you don't have it installed already zypper install nemo-qml-plugin-dbus-qt5 sailfish-polkit-agent python3-base python3-gobject dbus-python3 xz
-
Manually download here the latest version of
lxc-templates-desktop
("noarch" folder), andqxcompositor
andharbour-containers
(in the folder that corresponds to your device architecture). -
Install them either from your Sailfish file manager or using:
cd /path/to/directory/where/you/downloaded/the/three/rpms devel-su zypper install lxc-templates-dekstop-<VERSION>.rpm zypper install qxcompositor-<VERSION>.rpm zypper install harbour-containers-<VERSION>.rpm
The GUI of harbour-containers
should be straightforward, but see lxc-templates-desktop’s wiki for more details and CLI usage.
If unfortunately you checked "Setup desktop" when creating a new container but just saw the new container icon appear and then stop witnout a terminal prompting your for a user password, then the desktop was not configured. Go into that container in the GUI, press "init container config", and then "setup xsession".
See the TMO thread.
-
Debian with i3 WM on a Pro1x running SailfishOS, with dynamic rotation (and rotation lock with keyboard opening):
-
Kali with XFCE4 alongside SailfishOS:
-
You can run any Linux desktop application that has been compiled for your architecture. See for instance
rofi
andDarktable
below: -
While LXC containers of desktop Linux distributions are most convenient with a hardware keyboard phone like the F(x)tec Pro1 and Pro1x,
Onboard
is also preinstalled for compatibility with other smartphones: -
More pics:
-
A video showcasing what LXC containers can do on SailfishOS is available here. Moar videos here.
-
No sound in aarch64 devices (or please tell us)
-
No hardware acceleration
-
Only prebuilt binaries of Xwayland can be used at the moment inside containers (this is automated when setting up xsession from the GUI), because latest sources don’t support the XDG_WM_Base protocol that we need
Many thanks to all contributors and testers: