| Prev |   3     4   5   6     7   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Full linux distros on Sailfish OS (https://talk.maemo.org/showthread.php?t=101080)

spoofykid 2021-05-24 20:08

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1571821)
So I did a clean flash of 4.0, and decided to tinker with Containers for defaultuser, and it's actually pretty simple:
1 - download source
2 - make change to daemon.py file
3 - add %setup line to spec

Then just use rpmbuild to create rpm. Installs and runs normally ...

Did you manage to open up the desktop? I'm running 4.1.0.23 on Xperia 10, and with Kabouik's guide I got harbour-containers running, and two desktops installed - Debian Sid and Kali - however, when I go to run them nothing happens (I start the service, and then pressing 'X session' achieves nothing). Am I doing something wrong? Thanks

levone1 2021-05-24 21:23

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by spoofykid (Post 1571860)
Did you manage to open up the desktop? I'm running 4.1.0.23 on Xperia 10, and with Kabouik's guide I got harbour-containers running, and two desktops installed - Debian Sid and Kali - however, when I go to run them nothing happens (I start the service, and then pressing 'X session' achieves nothing). Am I doing something wrong? Thanks

Does 'attach' work? If so, you can do it manually, (instructions from first post of Containers thread):

1. attach cintainer, (you will get a terminal window with 'root@(container)
2. open a separate terminal window on Sailfish, and type
Code:

/usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"
(a new window will open with "waiting for xwayland"
3. in your first terminal, (attached container), enter
Code:

/mnt/guest/start_desktop.sh 0
Then the desktop will start in your "waiting for xwayland" Window.

As for why it happens, can't say for sure - maybe try chmod fix in post above...

spoofykid 2021-05-25 00:59

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1571861)
Does 'attach' work?...

Thanks for your help - but I'm still not getting anywhere - more than likely me just doing things wrong.

If someone wouldn't mind checking my process over, I'd be very grateful. This is what I did from the very beginning:

In a terminal I ran:
Code:

zypper in nemo-qml-plugin-dbus-qt5 sailfish-polkit-agent python3-base python3-gobject dbus-python3
Then installed lxc-templates-desktop, qxdisplay, and harbour-containers.
I swapped the daemon.py file out and made it executable.
I installed Debian Sid and Kali desktops (with 'Setup desktop' selected).
They wouldn't open so I cried for a bit.

I then attached a container, and ran in a second terminal:
Code:

/usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"
This opened the "waiting for xwayland" screen.

I then tried to run:
Code:

/mnt/guest/start_desktop.sh 0
But it didn't work, so I cried again, this time clutching my childhood teddy bear.
I checked /var/lib/lxc/<container_name>/config and it seemed fine (maybe what I think was fine wasn't)
I then (in an attached container) ran:
Code:

/mnt/guest/setup_desktop.sh
and
Code:

/mnt/guest/setups/debian.sh
It seemed to go through the same process as when first installing the desktops through the GUI.
I then again ran (in another terminal window):
Code:

/usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"
"waiting for xwayland" screen came up, and in a new terminal window I attached a container and ran:
Code:

/mnt/guest/start_desktop.sh 0
But to no avail.

This is what stops me getting any further it seems:
Code:

could not connect to wayland server
(EE)
Fatal server error:
(EE) Couldn't add screen
(EE)
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Any ideas what I'm doing wrong? I'm running 4.1.0.23 on Xperia 10. Thank you.

jellyroll 2021-05-25 02:48

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by spoofykid (Post 1571862)
Thanks for your help - but I'm still not getting anywhere - more than likely me just doing things wrong.

If someone wouldn't mind checking my process over, I'd be very grateful. This is what I did from the very beginning:

In a terminal I ran:
Code:

zypper in nemo-qml-plugin-dbus-qt5 sailfish-polkit-agent python3-base python3-gobject dbus-python3
Then installed lxc-templates-desktop, qxdisplay, and harbour-containers.
I swapped the daemon.py file out and made it executable.
I installed Debian Sid and Kali desktops (with 'Setup desktop' selected).
They wouldn't open so I cried for a bit.

I then attached a container, and ran in a second terminal:
Code:

/usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"
This opened the "waiting for xwayland" screen.
I couldn't run '/mnt/guest/start_desktop.sh 0' as /mnt/guest didn't exist. I tried running '/usr/share/harbour-containers/scripts/guest/start_desktop.sh 0' but that couldn't find the file (dump thing to try?)
I created a guest folder in /mnt and copied everything from /usr/share/harbour-containers/scripts/guest/ into it.

I then tried to run:
Code:

/mnt/guest/start_desktop.sh 0
But it didn't work, so I cried again, this time clutching my childhood teddy bear.
I checked /var/lib/lxc/<container_name>/config and it seemed fine (maybe what I think was fine wasn't)
I then (in an attached container) ran:
Code:

/mnt/guest/setup_desktop.sh
and
Code:

/mnt/guest/setups/debian.sh
It seemed to go through the same process as when first installing the desktops through the GUI.
I then again ran (in another terminal window):
Code:

/usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"
"waiting for xwayland" screen came up, and in a new terminal window I attached a container and ran:
Code:

/mnt/guest/start_desktop.sh 0
But to no avail.

This is what stops me getting any further it seems:
Code:

could not connect to wayland server
(EE)
Fatal server error:
(EE) Couldn't add screen
(EE)
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Any ideas what I'm doing wrong? I'm running 4.1.0.23 on Xperia 10. Thank you.

You need to start and attach the container after the setup. Have you tried?

Code:

/bin/sh /mnt/guest/start_desktop.sh 0 root &

levone1 2021-05-25 03:24

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by spoofykid (Post 1571862)
Thanks for your help - but I'm still not getting anywhere - more than likely me just doing things wrong.

If someone wouldn't mind checking my process over, I'd be very grateful. This is what I did from the very beginning:

In a terminal I ran:
Code:

zypper in nemo-qml-plugin-dbus-qt5 sailfish-polkit-agent python3-base python3-gobject dbus-python3
Then installed lxc-templates-desktop, qxdisplay, and harbour-containers.
I swapped the daemon.py file out and made it executable.
I installed Debian Sid and Kali desktops (with 'Setup desktop' selected).
They wouldn't open so I cried for a bit.

I then attached a container, and ran in a second terminal:
Code:

/usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"
This opened the "waiting for xwayland" screen.
I couldn't run '/mnt/guest/start_desktop.sh 0' as /mnt/guest didn't exist. I tried running '/usr/share/harbour-containers/scripts/guest/start_desktop.sh 0' but that couldn't find the file (dump thing to try?)
I created a guest folder in /mnt and copied everything from /usr/share/harbour-containers/scripts/guest/ into it.

I then tried to run:
Code:

/mnt/guest/start_desktop.sh 0
But it didn't work, so I cried again, this time clutching my childhood teddy bear.
I checked /var/lib/lxc/<container_name>/config and it seemed fine (maybe what I think was fine wasn't)
I then (in an attached container) ran:
Code:

/mnt/guest/setup_desktop.sh
and
Code:

/mnt/guest/setups/debian.sh
It seemed to go through the same process as when first installing the desktops through the GUI.
I then again ran (in another terminal window):
Code:

/usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"
"waiting for xwayland" screen came up, and in a new terminal window I attached a container and ran:
Code:

/mnt/guest/start_desktop.sh 0
But to no avail.

This is what stops me getting any further it seems:
Code:

could not connect to wayland server
(EE)
Fatal server error:
(EE) Couldn't add screen
(EE)
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Any ideas what I'm doing wrong? I'm running 4.1.0.23 on Xperia 10. Thank you.

seems like desktop is not fully set up. Do you have /mnt/guest/setup_desktop.sh? Try running tjat. It's different than debian.sh, which is just the initial container creation script (I think) for rootfs, etc. Desktop setup is pretty extensive. It downloads a few hundred mb and takes 10-15 minutes ...

Also check if you have /opt/bin/xwayland. It's created during desktop setup, so if that's not there, its not going to work...

spoofykid 2021-05-25 10:29

Re: Full linux distros on Sailfish OS
 
Thank you both. Unfortunately I was dumb and assumed my kernel was fine - it wasn't. Sorry for wasting your time.

I have no idea how to recompile a kernal, so I think this is the end for me. Thanks for the help.

Code:

[root@Xperia10 defaultuser]# ls -lha /dev/pts/
total 0
drwxr-xr-x    2 root    root          0 May 25 17:23 .
drwxr-xr-x  23 root    root        7.8K May 25 17:26 ..
c--x--x--x    1 root    tty      136,  0 May 25 17:56 0
crw--w----    1 defaultu tty      136,  1 May 25 22:12 1
c---------    1 root    root        5,  2 May 25 17:23 ptmx

[root@Xperia10 defaultuser]# ls -l /dev/ptmx /dev/pts/ptmx
crw-rw-rw-    1 root    root        5,  2 May 25 22:12 /dev/p
tmx
c---------    1 root    root        5,  2 May 25 17:23 /dev/p
ts/ptmx

[root@Xperia10 defaultuser]#    zcat /proc/config.gz | grep CO
NFIG_DEVPTS_MULTIPLE_INSTANCES
[root@Xperia10 defaultuser]#

[root@Xperia10 defaultuser]# lxc-checkconfig
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
newuidmap is not installed
newgidmap is not installed
Network namespace: enabled

--- Control groups ---
Cgroups: enabled

Cgroup v1 mount points:
/sys/fs/cgroup/systemd
/sys/fs/cgroup/blkio
/sys/fs/cgroup/cpu,cpuacct
/sys/fs/cgroup/net_cls
/sys/fs/cgroup/devices
/sys/fs/cgroup/perf_event
/sys/fs/cgroup/memory
/sys/fs/cgroup/freezer

Cgroup v2 mount points:
/sys/fs/cgroup/unified

Cgroup v1 clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: missing
--- Misc ---
Veth pair device: enabled, not loaded
Macvlan: enabled, not loaded
Vlan: enabled, not loaded
Bridges: enabled, not loaded
Advanced netfilter: enabled, not loaded
CONFIG_NF_NAT_IPV4: enabled, not loaded
CONFIG_NF_NAT_IPV6: enabled, not loaded
CONFIG_IP_NF_TARGET_MASQUERADE: enabled, not loaded
CONFIG_IP6_NF_TARGET_MASQUERADE: missing
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled, not loaded
CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled, not loaded
FUSE (for use with lxcfs): enabled, not loaded

--- Checkpoint/Restore ---
checkpoint restore: enabled
CONFIG_FHANDLE: enabled
CONFIG_EVENTFD: enabled
CONFIG_EPOLL: enabled
CONFIG_UNIX_DIAG: enabled
CONFIG_INET_DIAG: enabled
CONFIG_PACKET_DIAG: enabled
CONFIG_NETLINK_DIAG: enabled
File capabilities:

Note : Before booting a new kernel, you can check its configura
tion
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig


wganis 2021-05-25 11:40

Re: Full linux distros on Sailfish OS
 
Alo i have gemini x27 if i run sailfish can this method run well on my gemini thx a lot

Kabouik 2021-05-25 11:58

Re: Full linux distros on Sailfish OS
 
If all of you have Github accounts, I think it would be easier to troubleshoot, track and discuss on Github. It would also make the solution (if we ever find one) much more discoverable for new users. We can then post here an URL to the fix when we have one.

What device are you using Spookyfid? I may have missed something but I don't see missing requirements in your lxc-checkconfig. [Edit] Oh, except maybe CONFIG_DEVPTS_MULTIPLE_INSTANCES.

ibins 2021-05-25 15:46

Re: Full linux distros on Sailfish OS
 
@spoofykid: eventually your kernel does have these config options not compiled in but they exist as modules? In that case you could load them. For all the netfilter modules: I doubt, you would really need them
You find the available modules in /lib/modules/4.<version_of_kernel>

Strange, that these kernel configs differ so much.
I'm on pro1 firmware 4.0 and namespace "User" is missing! All others are compiled in.

spoofykid 2021-05-25 19:57

Re: Full linux distros on Sailfish OS
 
@Kabouik I'm running an Xperia 10 (Single Sim). I'm missing multiple instances and cpusets when doing the check. However, as @ibins has rightly pointed out, my kernel (4.9.230) doesn't have it compiled in and it shouldn't need it (from what I understand). Looking here lxc-checkconfig only checks for multiple instances on a kernel higher than 4.6:
Code:

if ([ $KVER_MAJOR -lt 4 ]) || ([ $KVER_MAJOR -eq 4 ] && [ $KVER_MINOR -lt 7 ]); then
        echo -n "Multiple /dev/pts instances: " && is_enabled DEVPTS_MULTIPLE_INSTANCES
fi

I'll redo the install. I don't know what's holding it back, but for any further troubleshooting I'll move it to Github. Thanks again.

Kabouik 2021-05-25 23:34

Re: Full linux distros on Sailfish OS
 
Yeah as I initially posted, I don't think the things you're missing are mandatory. It's worth digging further at least!

Another thing to test: @mibry on Discord observed that there has been commits to harbour-containers after the latest .rpm release, including one that has to do with the container installation. From what I see in the commit history, this should only influence XFCE setup and not the issues you're facing, but it doesn't hurt to fix that before we forget.

Can you guys try to install the latest harbour-containers release (as we did before), then replace daemon.py with the one on my fork (same as before too), and then also replace the content of /usr/share/harbour-containers/scripts/guest/setups/debian.sh by that of this version, and only after that try to create a new Debian Sid container? Make sure both daemon.py and debian.sh are executable (devel-su chmod +x /path/to/file). If my fork breaks things and creates new bugs you don't observe with vanilla daemon.py, please report and tell if your user is named nemo or defaultuser, you device and SFOS version, and whether you have an active symlink between /home/nemo and /home/defaultuser.

If your harbour-containers is already showing an empty GUI and you can't interact with it, then destroy your existing Linux containers using lxc-destroy as described in a post above (be sure to backup your rootfs from /home/.lxc and config file from /var/lib/lxc before if your container has worked in the past and has some value to you).

Mir57 2021-05-26 23:41

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by wganis (Post 1571867)
Alo i have gemini x27 if i run sailfish can this method run well on my gemini thx a lot

Yes, it can. :)

Device: Gemini PDA 4G x27
Sailfish OS version: 4.1.0.24
Linux distribution: Debian Sid armhf

Guide to make it work:

I had to do the
Code:

devel-su
ln -s /home/defaultuser /home/nemo

trick. Otherwise, it would not work in clean install of Sailfish OS 4.x. (If you updated from previous 3.x, or you are on older version, you can skip this.)

Then I followed the manual instructions in the first post instead of using GUI.
But one small change was needed - any line containing
Code:

/usr/share/sailfish-containers/guest
in
Code:

/var/lib/lxc/<container_name>/config
was not available, I had to add line
Code:

lxc.mount.entry = /usr/share/harbour-containers/scripts/guest mnt/guest none bind,create=dir 0 0
by myself.

I am using the "debian-mouse-landscape.sh" script to start the Sailfish "part". (Needed to do
Code:

devel-su
chmod +x debian-mouse-landscape.sh

before first launch)

What's not working:
- audio
- writing Fn+key symbols

What's working:
- running steam locomotive in terminal
- seems like everything else I've tried so far

Questions:

1) Is there anything I can do to fix the audio and keys, please? Shows no output hardware. Only dummy virtual output...

2) Also, any chance of running Anbox?

Thank you for any answer and for your great work.

https://i.imgur.com/FMPdAuE.jpg

Kabouik 2021-05-27 08:21

Re: Full linux distros on Sailfish OS
 
What is debian-mouse-landscape.sh and where can we see it? If it's meant to allow using a USB mouse in landscape, then check this out: https://github.com/sailfish-on-fxtec...ment-680788660 It will work for both SFOS and the container and even supports orientation changes.

The symlink between /home/nemo and /home/defaultuser is indeed the current workaround (and is also useful for many outdated apps on Openrepos) but hopefully we can avoid that soon if the forked daemon.py fixes the issue.

Thanks for noticing this issue with the mount entry. I think this is the first time this is reported, this will need some further investigation, as I have no idea where this comes from if it used to work fine on other devices.

Once we figure out the causes and solutions to all these issues, we'll need to work on a PR for harbour-containers and lxc-templates. And ideally, add some documentation too for future users, because LXC can be really great but can be intimidating at first (quirks with the installation we're discussing here, then desktop configuration).

Audio is working for me on my Pro1, with some limitations, like some sounds cannot be muted from the hardware volume buttons (which control the Sailfish volume): I think it mostly concerns terminal applications as I observed that only with the terminal bell and cmus music player. It's a non-issue for me though since the terminal bell usually is opt-in and configurable, and cmus has its own volume setting that can be set with - and + keys. I don't remember doing anything special to get audio to work, except maybe installing pavucontrol.

Regarding Fn keys, do you observe some output in xev? How keys are handled has never been clear to me on Pro1 either, and I believe it's mostly due to the fact that some keys might be intercepted by Sailfish before LXC sees them. For instance, the F(x) key on my Pro1 shows the SFOS homescreen even when I press it while in LXC, meaning its action is not constrained to the container (and I couldn't set it to Super in LXC). Same with Alt+Tab with Adam's taskswitcher daemon on, it intercepts the keybinding and triggers the SFOS taskswitcher (which is not necessarily a bad thing). The most annoying thing for me is I cannot distinguish Alt and the two yellow arrows, they all act as Right Alt, despite different keycodes in my xkb keymap and in xev output. Even if I try to alter them with Xmodmap and change one to Super for instance, the Xmodmap output will confirm that the change is in effect, but nothing will actually change. Xmodmap being ineffective may be related to using Xwayland. But I'm still desperately trying to distinguish Left Alt from Right Alt and I still haven't succeeded. I think I must have posted about it somewhere on Github or on Sailfish/Fxtec channels on IRC/Telegram/Discord.

My latest attempt was to compile kmonad (which went really smooth on ARM, the dev didn't know if it would work) since this is a really powerful tool for keyboard customization (supports multitaps, holds, layers, commands, macros, etc.) and I got it to run, but unfortunately I'm getting an error when trying to load my keyboard device into it (I did add a mount entry for /dev/input in my LXC config, but maybe I still have permissions issues to access it from LXC?). If we get this to work, I'm sure Fn keys could be supported too. However I still don't understand if Sailfish intercepting keys and changing their effect despite different keycodes is something we can work around (and if so, probably from Sailfish and not the container) or if it cannot be solved.

levone1 2021-05-27 10:53

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1571891)
What is debian-mouse-landscape.sh and where can we see it? If it's meant to allow using a USB mouse in landscape, then check this out: https://github.com/sailfish-on-fxtec...ment-680788660 It will work for both SFOS and the container and even supports orientation changes.

The symlink between /home/nemo and /home/defaultuser is indeed the current workaround (and is also useful for many outdated apps on Openrepos) but hopefully we can avoid that soon if the forked daemon.py fixes the issue.

Thanks for noticing this issue with the mount entry. I think this is the first time this is reported, this will need some further investigation, as I have no idea where this comes from if it used to work fine on other devices.

Once we figure out the causes and solutions to all these issues, we'll need to work on a PR for harbour-containers and lxc-templates. And ideally, add some documentation too for future users, because LXC can be really great but can be intimidating at first (quirks with the installation we're discussing here, then desktop configuration).

Audio is working for me on my Pro1, with some limitations, like some sounds cannot be muted from the hardware volume buttons (which control the Sailfish volume): I think it mostly concerns terminal applications as I observed that only with the terminal bell and cmus music player. It's a non-issue for me though since the terminal bell usually is opt-in and configurable, and cmus has its own volume setting that can be set with - and + keys. I don't remember doing anything special to get audio to work, except maybe installing pavucontrol.

Regarding Fn keys, do you observe some output in xev? How keys are handled has never been clear to me on Pro1 either, and I believe it's mostly due to the fact that some keys might be intercepted by Sailfish before LXC sees them. For instance, the F(x) key on my Pro1 shows the SFOS homescreen even when I press it while in LXC, meaning its action is not constrained to the container (and I couldn't set it to Super in LXC). Same with Alt+Tab with Adam's taskswitcher daemon on, it intercepts the keybinding and triggers the SFOS taskswitcher (which is not necessarily a bad thing). The most annoying thing for me is I cannot distinguish Alt and the two yellow arrows, they all act as Right Alt, despite different keycodes in my xkb keymap and in xev output. Even if I try to alter them with Xmodmap and change one to Super for instance, the Xmodmap output will confirm that the change is in effect, but nothing will actually change. Xmodmap being ineffective may be related to using Xwayland. But I'm still desperately trying to distinguish Left Alt from Right Alt and I still haven't succeeded. I think I must have posted about it somewhere on Github or on Sailfish/Fxtec channels on IRC/Telegram/Discord.

My latest attempt was to compile kmonad (which went really smooth on ARM, the dev didn't know if it would work) since this is a really powerful tool for keyboard customization (supports multitaps, holds, layers, commands, macros, etc.) and I got it to run, but unfortunately I'm getting an error when trying to load my keyboard device into it (I did add a mount entry for /dev/input in my LXC config, but maybe I still have permissions issues to access it from LXC?). If we get this to work, I'm sure Fn keys could be supported too. However I still don't understand if Sailfish intercepting keys and changing their effect despite different keycodes is something we can work around (and if so, probably from Sailfish and not the container) or if it cannot be solved.

Scripts are from op here...

Kabouik 2021-05-27 11:11

Re: Full linux distros on Sailfish OS
 
Oh, right, thanks for reminding me. I never used those scripts so I can't comment, but it should no longer be necessary to use different scripts to start the container in landscape or portrait mode (the GUI should be able to do it once we find what breaks it), and no script is needed to enable or disable mouse support either (elros34's patch and qt5 plugin, see the URL I posted above, take care of it automatically, detect when a mouse is connected or not, and adapt to the orientation dynamically).

I wouldn't recommend using those custom scripts if edp17 can confirm that they no longer provide additional functionality compared to elros34's patch, at least not while debugging the other issues, since the scripts seem to use qxcompositor instead of qxdisplay.

Mir57 2021-05-27 17:12

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1571891)
What is debian-mouse-landscape.sh and where can we see it? If it's meant to allow using a USB mouse in landscape, then check this out: https://github.com/sailfish-on-fxtec...ment-680788660 It will work for both SFOS and the container and even supports orientation changes.

It is the script you provided in the first post, used after installing qxcompositor. Did not try mouse yet, did not all of the additional configuration you provided in this recent link.

Quote:

Originally Posted by Kabouik (Post 1571891)
Once we figure out the causes and solutions to all these issues, we'll need to work on a PR for harbour-containers and lxc-templates. And ideally, add some documentation too for future users, because LXC can be really great but can be intimidating at first (quirks with the installation we're discussing here, then desktop configuration).

"LXC can be really great" - indeed it is.

Quote:

Originally Posted by Kabouik (Post 1571891)
Audio is working for me on my Pro1, with some limitations, like some sounds cannot be muted from the hardware volume buttons (which control the Sailfish volume): I think it mostly concerns terminal applications as I observed that only with the terminal bell and cmus music player. It's a non-issue for me though since the terminal bell usually is opt-in and configurable, and cmus has its own volume setting that can be set with - and + keys. I don't remember doing anything special to get audio to work, except maybe installing pavucontrol.

This is what actually holds me from using it as a normal device... As was previously stated, it also breaks any audio in Sailfish OS meanwhile.

Quote:

Originally Posted by Kabouik (Post 1571891)
Regarding Fn keys, do you observe some output in xev? How keys are handled has never been clear to me on Pro1 either, and I believe it's mostly due to the fact that some keys might be intercepted by Sailfish before LXC sees them. For instance, the F(x) key on my Pro1 shows the SFOS homescreen even when I press it while in LXC, meaning its action is not constrained to the container (and I couldn't set it to Super in LXC). Same with Alt+Tab with Adam's taskswitcher daemon on, it intercepts the keybinding and triggers the SFOS taskswitcher (which is not necessarily a bad thing). The most annoying thing for me is I cannot distinguish Alt and the two yellow arrows, they all act as Right Alt, despite different keycodes in my xkb keymap and in xev output. Even if I try to alter them with Xmodmap and change one to Super for instance, the Xmodmap output will confirm that the change is in effect, but nothing will actually change. Xmodmap being ineffective may be related to using Xwayland. But I'm still desperately trying to distinguish Left Alt from Right Alt and I still haven't succeeded. I think I must have posted about it somewhere on Github or on Sailfish/Fxtec channels on IRC/Telegram/Discord.

How could I do this test? Do you have any guide, how to launch xev and see the output?

Quote:

Originally Posted by Kabouik (Post 1571891)
My latest attempt was to compile kmonad (which went really smooth on ARM, the dev didn't know if it would work) since this is a really powerful tool for keyboard customization (supports multitaps, holds, layers, commands, macros, etc.) and I got it to run, but unfortunately I'm getting an error when trying to load my keyboard device into it (I did add a mount entry for /dev/input in my LXC config, but maybe I still have permissions issues to access it from LXC?). If we get this to work, I'm sure Fn keys could be supported too. However I still don't understand if Sailfish intercepting keys and changing their effect despite different keycodes is something we can work around (and if so, probably from Sailfish and not the container) or if it cannot be solved.

Would be cool. :)

spoofykid 2021-05-27 20:34

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1571874)
Can you guys try to install the latest harbour-containers release (as we did before), then replace daemon.py with the one on my fork (same as before too), and then also replace the content of /usr/share/harbour-containers/scripts/guest/setups/debian.sh by that of this version, and only after that try to create a new Debian Sid container?

I gave this a go, but I'm getting the same error as always when I run
Code:

[defaultuser@Xperia10 ~]$ /usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"
which is
Code:

[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Specified Desktop file does not exist "/usr/sha
re/applications/qxdisplay.desktop"
[W] unknown:0 - Theme dir "/usr/share/themes/jolla/meegotouch/z
1.5/" does not exist
[W] unknown:0 - Theme dir "/usr/share/themes/jolla/meegotouch/z
1.5/" does not exist

So, I'm sure what I'm doing wrong - Maybe I'll try destroy the containers, delete all files from /home/.lxc, and try again. This is Xperia 10 on 4.1.0.24 with defaultuser.

levone1 2021-05-27 21:26

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by spoofykid (Post 1571899)
I gave this a go, but I'm getting the same error as always when I run
Code:

[defaultuser@Xperia10 ~]$ /usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"
which is
Code:

[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Specified Desktop file does not exist "/usr/sha
re/applications/qxdisplay.desktop"
[W] unknown:0 - Theme dir "/usr/share/themes/jolla/meegotouch/z
1.5/" does not exist
[W] unknown:0 - Theme dir "/usr/share/themes/jolla/meegotouch/z
1.5/" does not exist

So, I'm sure what I'm doing wrong - Maybe I'll try destroy the containers, delete all files from /home/.lxc, and try again. This is Xperia 10 on 4.1.0.24 with defaultuser.

Did you install all packages from op?
Code:

Downloads:

    harbour-containers
    lxc-templates-desktop
    qxdisplay


spoofykid 2021-05-27 21:52

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1571900)
Did you install all packages from op?
Code:

Downloads:

    harbour-containers
    lxc-templates-desktop
    qxdisplay


Yes. Multiple times. Installed Debian Sid - armhf and arm64 - multiple times, as well as Kali current - armhf and arm64. I installed both through the manual way and the GUI way. The "waiting for xwayland" screen does display afterward, which I imagine wouldn't happen if qxdisplay wasn't installed?

I did double check by running this in the folder where those rpm files were downloaded:
Code:

devel-su zypper install lxc-templates-desktop-1.1-4.noarch.rpm  qxdisplay-0.1-2.armv7hl.rpm harbour-containers-0.4-1.armv7hl.rpm
It said they were already installed and there was 'nothing to do'.

levone1 2021-05-28 02:42

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by spoofykid (Post 1571901)
Yes. Multiple times. Installed Debian Sid - armhf and arm64 - multiple times, as well as Kali current - armhf and arm64. I installed both through the manual way and the GUI way. The "waiting for xwayland" screen does display afterward, which I imagine wouldn't happen if qxdisplay wasn't installed?

I did double check by running this in the folder where those rpm files were downloaded:
Code:

devel-su zypper install lxc-templates-desktop-1.1-4.noarch.rpm  qxdisplay-0.1-2.armv7hl.rpm harbour-containers-0.4-1.armv7hl.rpm
It said they were already installed and there was 'nothing to do'.

For the errors about .../usr/share/themes..., you could try
Code:

devel-su pkcon install --allow-reinstall -y sailfish-content-graphics-default-z1.0-base sailfish-content-graphics-default-z1.25-base sailfish-content-graphics-default-z1.5-base sailfish-content-graphics-default-z1.75-base sailfish-content-graphics-default-z2.0-base sailfish-content-graphics-closed-z1.0 sailfish-content-graphics-closed-z1.25 sailfish-content-graphics-closed-z1.5 sailfish-content-graphics-closed-z1.75 sailfish-content-graphics-closed-z2.0
I don't know why it's looking for a qxdisplay desktop file in .../applications. I don't have that ...

spoofykid 2021-05-28 03:27

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1571903)
For the errors about .../usr/share/themes..., you could try
Code:

devel-su pkcon install --allow-reinstall -y sailfish-content-graphics-default-z1.0-base sailfish-content-graphics-default-z1.25-base sailfish-content-graphics-default-z1.5-base sailfish-content-graphics-default-z1.75-base sailfish-content-graphics-default-z2.0-base sailfish-content-graphics-closed-z1.0 sailfish-content-graphics-closed-z1.25 sailfish-content-graphics-closed-z1.5 sailfish-content-graphics-closed-z1.75 sailfish-content-graphics-closed-z2.0
I don't know why it's looking for a qxdisplay desktop file in .../applications. I don't have that ...

Thanks. What's funny is that I already had installed them to get a lower pixel ratio on my screen. They're located in '/usr/share/themes/sailfish-default/meegotouch/...' rather than the ...themes/Jolla... folder. I reset it to standard pixel ratio, and it got rid of those errors, but nothing else got fixed. The qxdisplay.desktop part is still there and seems odd to me - I don't have that file anywhere either.

Kabouik 2021-05-28 14:44

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Mir57 (Post 1571894)
It is the script you provided in the first post, used after installing qxcompositor. Did not try mouse yet, did not all of the additional configuration you provided in this recent link.

I'm not the OP!

Quote:

This is what actually holds me from using it as a normal device... As was previously stated, it also breaks any audio in Sailfish OS meanwhile.
Someone mentioned on Github that it breaks sound in SFOS too, but that really is not my case. Have you tried installing pactl? I don't know if this is device-related, or depends on what I configured in my container. Do other Pro1 owners observe sound broken in SFOS once LXC is running, and do they have sound in their LXC container?

Quote:

How could I do this test? Do you have any guide, how to launch xev and see the output?
This is a real rabbit hole but you can start by just installing xev with "sudo apt install xev", then execute xev in terminal, focus the white window, and type on keys. You'll see some (very) verbose output in the terminal. There are xev alternatives that might be a little less verbose or show different information. From there, since I haven't found a solution, I can't really give any instructions, but tools that might allow customizing how keys are handled in LXC include setxkbmap (which operates on xkb layouts), xmodmap (which I think is ignored in LXC due to the fact that we use Xwayland and not just X), kmonad (which I could compile successfully, but couldn't make it read my /dev/input/by-path/keyboard-kbd that I manually mounted in my /var/lib/lxc/debian-sid/config; probably a permission issue).

Kabouik 2021-05-28 15:15

Re: Full linux distros on Sailfish OS
 
I have no idea where the qxdisplay.desktop error comes from, I can't see a qxdisplay.desktop file being called anywhere in the lxc-templates or harbour-containers source files. I suspect it's some other UNIX tool getting in the way somewhere and automatically expecting a desktop file?

Was the container started with the LXC-attach button when you ran the following command?

Code:

/usr/bin/qxdisplay -o landscape --wayland-socket-name "../../display/wayland-container-0
Can you try that one instead where I change the display?

Code:

qxdisplay -o landscape -d ../../display/wayland-container-1
In case you haven't, you should start the container first, attach to it using LXC-attach, and then in a different terminal window, as defaultuser, use that above command.

If your containers are not configured yet, I would indeed start fresh after destroying them and creating a new Debian Sid container. Sometimes things can break with Debian Sid because packages change fast and this version is not made to be stable (at some point the Xwayland compilation was broken for instance). However we tested a few days ago with Mosen on Pro1 and he could install Debian Sid (from CLI only using the instruction in the lxc-templates wiki for now, still issues with creating containers from GUI) and then setup the X desktop using the harbour-containers button at the bottm, and then start X with the above command.

I updated the daemon.py fork, be sure to use the latest version before next attempts.

spoofykid 2021-05-29 10:15

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1571915)
I have no idea where the qxdisplay.desktop error comes from, I can't see a qxdisplay.desktop file being called anywhere in the lxc-templates or harbour-containers source files. I suspect it's some other UNIX tool getting in the way somewhere and automatically expecting a desktop file?

Was the container started with the LXC-attach button when you ran the following command?

Code:

/usr/bin/qxdisplay -o landscape --wayland-socket-name "../../display/wayland-container-0
Can you try that one instead where I change the display?

Code:

qxdisplay -o landscape -d ../../display/wayland-container-1
In case you haven't, you should start the container first, attach to it using LXC-attach, and then in a different terminal window, as defaultuser, use that above command.

....

I'm not really sure what happened but I got it going - Kali and Debian desktops opened. I placed in your daemon.py and debian.sh files, and then Iinstalled everything through GUI.
What was probably going wrong was I was running the below code as root - as when you select 'attach' in the Container GUI, and then open a new window (from that terminal window) it automatically opens the new window as root (I didn't think this would cause issues, but it obviously did).
Code:

qxdisplay -o landscape -d ../../display/wayland-container-1
Initially I wondered whether it was working because I would run the above code, then select 'X session' in the GUI, and then run the below code in the attached terminal. I think it was the silly root thing.
Code:

/mnt/guest/start_desktop.sh 0
Below are the resulting errors/info after running the scripts, if anything is useful to know.

Code:

[defaultuser@Xperia10 ~]$ /usr/bin/qxdisplay -o landscape --way
land-socket-name "../../display/wayland-container-0"
[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Specified Desktop file does not exist "/usr/sha
re/applications/qxdisplay.desktop"
[W] unknown:0 - Theme dir "/usr/share/themes/jolla/meegotouch/z
1.5/" does not exist
[W] unknown:0 - Theme dir "/usr/share/themes/jolla/meegotouch/z
1.5/" does not exist
[W] unknown:65 - file:///usr/share/qxdisplay/qml/compositor/XWa
ylandContainer.qml:65: TypeError: Cannot read property 'surface
' of null

qxdisplay.desktop seemed to actually cause no issues, so apologies about that !!

Code:

root@Kali:/# /mnt/guest/start_desktop.sh 0
xauth:  file /home/user/.Xauthority does not exist

glamor: 'wl_drm' not supported
Missing Wayland requirements for glamor GBM backend
Failed to initialize glamor, falling back to sw
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
The XKEYBOARD keymap compiler (xkbcomp) reports:
Warning:          Unsupported maximum keycode 774, clipping.
                  X11 cannot support keycodes above 255.
Internal error:  Could not resolve keysym Invalid
Internal error:  Could not resolve keysym Invalid
Internal error:  Could not resolve keysym Invalid
Internal error:  Could not resolve keysym Invalid
Internal error:  Could not resolve keysym Invalid
Internal error:  Could not resolve keysym Invalid
Internal error:  Could not resolve keysym Invalid

Errors from xkbcomp are not fatal to the X server

FYI, running this code gave the below error when starting the desktop:
Code:

qxdisplay -o landscape -d ../../display/wayland-container-1
Code:

root@Debian:/# /mnt/guest/start_desktop.sh 0

could not connect to wayland server
(EE)
Fatal server error:
(EE) Couldn't add screen
(EE)
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Thank you again for your patience, and apologies for the ignorance !!

spoofykid 2021-05-29 10:21

Re: Full linux distros on Sailfish OS
 
Just curious - I'm sure many have heard of the PinePhone - it has Mobian as a choice of operating system - can Mobian be installed as a container? Mobian operates well as a mobile desktop environment, and it would be great if it could be run within sailfish - Mobian is a bit easier to operate on a small screen compared to the normal desktop environment.

mosen 2021-05-29 13:04

Re: Full linux distros on Sailfish OS
 
@spoofykid
when you have the x-wayland/qxdisplay window up.
Do you then attach to the container at all from another terminal as root and execute the start_desktop.sh within the container?

Code:

devel-su
lxc-attach -n <containername> /mnt/guest/start_desktop.sh 1

Sorry if i am captain obvious and you did all along. Just reading the backlog i found no mention.

Edit, yeah, you did. Sorry again.

spoofykid 2021-05-30 02:44

Re: Full linux distros on Sailfish OS
 
@mosen

Yes, I did that multiple times. I think it was attempting to open x-wayland as root that failed for me. Though running /mnt/guest/start_desktop.sh 1 didn't work for me either - I have to run it with a '0' at the end instead of the '1' for the desktop to start.

Edit: I just realised what the 1 or 0 represent, and either work for me.

levone1 2021-05-30 03:30

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by spoofykid (Post 1571944)
@mosen

Yes, I did that multiple times. I think it was attempting to open x-wayland as root that failed for me. Though running /mnt/guest/start_desktop.sh 1 didn't work for me either - I have to run it with a '0' at the end instead of the '1' for the desktop to start.

Specifies in op to run command as nemo. That was likely your issue...

Kabouik 2021-05-30 12:51

Re: Full linux distros on Sailfish OS
 
Glad you got it working, you can have fun configuring your container now!

There's still something broken with the GUI for installing containers, setting up desktop and starting X, that we'll need to investigate, but there are multiple factors that may have confounding effects so that's not going to be trivial (OS version, device model, Sid is always changing…).

spoofykid 2021-06-02 20:26

Re: Full linux distros on Sailfish OS
 
In case it's useful to anyone:

I install the desktop via the Containers GUI, run 'setup xsession' within the GUI, attach the container within the GUI, open a new terminal window, because it's root I run su defaultuser or if your user is nemo su nemo to get out of root, I run /usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0" from that window, minimise that and the "waiting for xwayland' windows, in the terminal window with the attached container run /mnt/guest/start_desktop.sh 0, and then finally minimise it and change to the "waiting for xwayland" window which should have the desktop running.

Obviously this has all been documented, but the big one for me was exiting root using su defaultuser before running the wayland code.

Kabouik 2021-06-03 18:33

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by spoofykid (Post 1571986)
In case it's useful to anyone:

I install the desktop via the Containers GUI, run 'setup xsession' within the GUI, attach the container within the GUI, open a new terminal window, because it's root I run su defaultuser or if your user is nano su nano to get out of root, I run /usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0" from that window, minimise that and the "waiting for xwayland' windows, in the terminal window with the attached container run /mnt/guest/start_desktop.sh 0, and then finally minimise it and change to the "waiting for xwayland" window which should have the desktop running.

Obviously this has all been documented, but the big one for me was exiting root using su defaultuser before running the wayland code.

I think you meant "nemo" instead of "nano".

Good to know the container setup and Xsession setup still work from the GUI, I misunderstood from tests with Mosen that they didn't. That means the only issue might be starting X from the GUI, which for the time being can be worked around from CLI. There's something weird though because it still works for me on SFOS 3.3 ported to the Pro1.

Mir57 2021-06-04 22:52

Re: Full linux distros on Sailfish OS
 
Oh yeah, looks like I managed to solve the sound issue on Gemini PDA, SFOS 4.1.0.24:

First I did this:
Code:

$ devel-su
# mkdir -p /odm/etc/
# cd /odm/etc/
# ln -s /vendor/etc/audio_param .
# exit

Then I did this everytime the sound stopped to work:
Code:

$ systemctl --user restart pulseaudio.service
$ systemctl --user status pulseaudio.service

The last line is optional, just a quick check, if everything works.

At last, I played some sound in SFOS and voillá! It also worked in the running instance of Debian!

More information here:
https://forum.sailfishos.org/t/4-1-0...r-upgrade/6530

About the keyboard issue, xev seems to not recognize Fn. It gives blank bytes received, or something like that. After pressing Fn+o, it just writes this
Code:

'' (blank symbol received, key pushed)
'o' (key pushed)
'o' (key pulled)
'' (blank symbol received, key pulled)

or something like that, if I understand the log correctly.

edp17 2021-07-07 15:04

Re: Full linux distros on Sailfish OS
 
Hi all,

This post is for clearing out the misunderstanding around the 'debian-mouse-landscape.sh' and 'debian-mouse-portrait.sh' scripts.
I have created these for my Note4 (treltexx) because on that device the LXC app doesn't work. I can only start the container manually in the command line and where I needed two fingerterm windows to be able to start the container and enter into the desktop distro. With those scripts, one fingerterm window was enough to do everything, plus I didn't need to type all commands each time.
If you look into the scripts you'll see that both do the following:
- checks whether the container is started and if not, starts it
- then starts the qxdisplay as not root
- then attaches the container and starts the desktop within

The only difference between the two is that the xx-portrait.sh script calls the qxcompositor with the '-o portrait' parameter. This means it doesn't change the layout when you turn the phone from portrait to landscape and vice versa.

Oh, and the word "mouse" in their name is related to they both use qxcompositor instead of qxdisplay when starting the display.

This is all those scripts are doing. :)

levone1 2021-09-28 11:03

Re: Full linux distros on Sailfish OS
 
@edp17 (or anyone ) - I'm getting error trying to open xwindow on latest SF update, (4.2):

"/usr/bin/qxdisplay: symbol lookup error: /usr/
bin/qxdisplay: undefined symbol: _ZN18QWayland
Compositor7openUrlEPvRK4QUrl, version Qt_5"

Any ideas?
Thanks

levone1 2021-09-30 02:24

Re: Full linux distros on Sailfish OS
 
Well, I got it working by attaching container and running "startx -- /opt/bin/Xwayland"...
Run "su user" first to start non-root...

update - not consistent ... Worked one time, then, after reboot, wouldn't work, (server error - couldn't add screen...). Also got it to work one time simply by typing "/opt/bin/Xwayland" ... Not sure what makes the difference .

update - found a method that works, using Containers app, and tips from here - https://talk.maemo.org/showthread.php?t=98882

- open Containers app, and select container, and tap "start Xsession", (nothing happens visibly, but won't work if I don't do it), then tap "attach ". Terminal will open asking for root password, then show Linux root prompt.
- enter "mkdir /run/user/0" then "export $(dbus-launch)" then "export XDG_RUNTIME_DIR=/run/user/0" then "startx"

Desktop opens...

levone1 2021-10-10 13:27

Re: Full linux distros on Sailfish OS
 
@edp17 (or anyone) Wondering if you could help with something -

Since recent SF versions, gui for Containers hasn't functioned the same as before, and need to use terminal to open Linux desktop. I have figured out how to do that, but now there is one difference - certain applications don't open in the same screen, when launched from the Linux desktop, but instead, a new Sailfish app window opens with the Linux app, (I guess it's a new Wayland window, or?). This would be fine with me, except for 1) there's no keyboard, and I can't figure out how to get one to open with the app, and 2) the new window gets automatically closed as soon as another app is brought to the foreground, (it will stay open when minimized to card view, but closes if a different card is selected).

Anyone have any ideas why certain (not all) apps aee opening this way, and how to get them to open in the cureent window instead?

The only hint I can get from termonal output is a message about "...wayland not providing any supported shell interface".

Thanks

edp17 2021-10-15 15:11

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1572733)
@edp17 (or anyone) Wondering if you could help with something -

Since recent SF versions, gui for Containers hasn't functioned the same as before, and need to use terminal to open Linux desktop. I have figured out how to do that, but now there is one difference - certain applications don't open in the same screen, when launched from the Linux desktop, but instead, a new Sailfish app window opens with the Linux app, (I guess it's a new Wayland window, or?). This would be fine with me, except for 1) there's no keyboard, and I can't figure out how to get one to open with the app, and 2) the new window gets automatically closed as soon as another app is brought to the foreground, (it will stay open when minimized to card view, but closes if a different card is selected).

Anyone have any ideas why certain (not all) apps aee opening this way, and how to get them to open in the cureent window instead?

The only hint I can get from termonal output is a message about "...wayland not providing any supported shell interface".

Thanks

On my Galaxy Note4 port the Container app never worked. I always use the terminal and the scripts I created (attached to the main post). I currently use SFOS4.1 on my Note4. I'll take a look how the debian works on it and let you know. Will think about your issue too.

edp17 2021-10-15 19:21

Re: Full linux distros on Sailfish OS
 
@levone1
I've checked my install on the device and still can start the desktop distro. (SFOS 4.1)
I slightly needed to amend the script that I wrote to start it because the installed Waydroid interferes with the Debian container.

If you run the following commands in a terminal, you should be able to start the Desktop distro: (my container name is Debian, so I use this in the example, you can replace it with your container name)

Before you do this, please ensure the container is not running!

1. Start the container:
sudo lxc-start -n Debian -d &
(or start it with devel-su if you don't have sudo installed)
2. Start the compositor in landscape mode:
/usr/bin/qxcompositor --wayland-socket-name "../../display/wayland-container-0" &
or in portrait:
/usr/bin/qxcompositor -o portrait --wayland-socket-name "../../display/wayland-container-0" &
3. finally attach the container and start the distro:
sudo lxc-attach -n Debian -- /mnt/guest/start_desktop.sh 0 &

(I've made a script that is doing all in one go, so that can be used as an icon on the app drawer.)

jellyroll 2021-10-20 08:24

Re: Full linux distros on Sailfish OS
 
Qxdisplay and qxcompositor does work properly on SailfishOS 4.1.0.24 but not on 4.2.0.21.
Tested on a Pinephone.

levone1 2021-10-20 12:29

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1572793)
@levone1
I've checked my install on the device and still can start the desktop distro. (SFOS 4.1)
I slightly needed to amend the script that I wrote to start it because the installed Waydroid interferes with the Debian container.

If you run the following commands in a terminal, you should be able to start the Desktop distro: (my container name is Debian, so I use this in the example, you can replace it with your container name)

Before you do this, please ensure the container is not running!

1. Start the container:
sudo lxc-start -n Debian -d &
(or start it with devel-su if you don't have sudo installed)
2. Start the compositor in landscape mode:
/usr/bin/qxcompositor --wayland-socket-name "../../display/wayland-container-0" &
or in portrait:
/usr/bin/qxcompositor -o portrait --wayland-socket-name "../../display/wayland-container-0" &
3. finally attach the container and start the distro:
sudo lxc-attach -n Debian -- /mnt/guest/start_desktop.sh 0 &

(I've made a script that is doing all in one go, so that can be used as an icon on the app drawer.)

We're using qxdisplay now, not qxcompositor ... still symbol lookup error...

I can get desktop to open and run fine using other steps. I was more curious about why some applications open in a separate window. I think the line in start_desktop script,

"export QT_QPA_PLATFORM=xcb # force qt applications backend to Xwayland
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/sbin:/sbin"

maybe has something to do with it...


| Prev |   3     4   5   6     7   | Next
All times are GMT. The time now is 13:01.

vBulletin® Version 3.8.8