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)

levone1 2020-08-14 17:24

Re: Full linux distos on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1568659)
Yes, of course, you need the source. There is no other way, I am afraid.

Anybody know where I can get kernel sources for Xperia X, 3.3.0.16?

edp17 2020-08-14 21:08

Re: Full linux distos on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1568759)
Anybody know where I can get kernel sources for Xperia X, 3.3.0.16?

Try to search on the internet. The code names of Sony Xperia X are loire or suzu.
I found this link where you can find a link to the kernel and device repos for the loire.

Zeta 2020-08-17 21:34

Re: Full linux distros on Sailfish OS
 
Hello to all ! I am joining the discussion, after getting my Pro1.

I have still a lot to learn about LXC, so need to dig into in my spare time.

So for now I have only a quick question about the status of what I should expect to work/not work.

I have seen on the first page command line instructions, for the ports where the UI doesn't work. illyria seems to be developing on the Pro1, so I assume the UI should work on the Pro1 ?

Then, about the distributions. The templates provides a lot of distros and versions. It looks like Kabouik used a Debian Sid in his videos. Are there some versions that works easily than others ? Some that should be avoided ?

Thanks !


So far, I didn't have much success with the UI. It can see the containers I created manually, but I can't make a new one with it. I can see the status of the containers if started from command line, and can start/stop with the pulley menu. I didn't get to launch a window from the UI.
On the command line side, I could get a Debian Buster (I didn't think Sid was a good idea before seeing it in Kabouik's video) to run, and display in a window with qxdisplay, but only correctly in portait (only half left of the screen in landscape). I Need to do some graphical configuration as fonts sizes seems all over the place.
Also tried an Ubuntu 18.04, without getting to a working display.

By the way, the "new" LXC config files are a bit different, and the first post instructions may need to be updated the following way, if that can help anyone :
Code:

3. Manually add this line in /var/lib/lxc/< container name >/config:

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


Kabouik 2020-08-17 22:51

Re: Full linux distros on Sailfish OS
 
The UI works on the Proš, yes. I believe the distribution I show in the video was entirely installed form the UI.

The installation of the X session is based on scripts, and theoretically could be made working on all distributions, but for now they only work on Debian or Debian based distributions (I personally tested Debian Sid and Kali, both work fine), more work would be needed to make them work on other distributions. Attach (terminal) works for all distributions I think.

If you want to use another distribution with XWayland, just have a look at the scripts here, which are also available in /mnt/guest of the installed distribution. Distributions which are recognized as based on Debian will use setups/debian.sh, but you could make other scripts for other distribution types, and maybe run them manually if they are not automatically called I suppose. I haven't investigated but is not necessarily much work, probably mainly systemd and package lines to change to comply with the package manager and services the target distribution is using, possibly some different dependency names too. Illyria didn't start working on other distributions yet because he first wants to improve the base script, and then try to extend it to other distros.

Did you use the "init container config" and "setup xsession" buttons at the bottom of the container view in harbour-containers, advanced controls? Theoretically they should build Xwayland which should take about 10 minutes, then setup DE/WM, and after that you should be able to start the Xsession from the button above.

For i3 (which I think is a lot more convenient to use on the Proš since it reduces the need to tap accurately on the screen for basic actions), there are other things to do but they are more specific to i3 in general, not LXC, like ~/.Xresources, ~/.xinitrc, and a good base configuration. I plan on contributing to the harbour-containers' wiki to put the instructions together but haven't found the motivation yet, in the mean time I think any i3 wiki would do and then perhaps some tries and errors to adjust font size and such.

Zeta 2020-08-18 20:04

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1568810)
The UI works on the Proš, yes.

Ok, good ! Now I know I am doing something wrong, and need to find out how to do it correctly !

Quote:

Originally Posted by Kabouik (Post 1568810)
If you want to use another distribution with XWayland

So far, any distro is ok for me. I am still trying to make it work and understand enough of it. So Debian Sid is perfect.
Being a long time Fedora user, I may try to use it later on and help port the scripts to red-hat base distros (Fedora, CentOS), but it is still too early for me given that almost everything in LXC is new to me !

Quote:

Originally Posted by Kabouik (Post 1568810)
Did you use the "init contianer config" and "setup xsession" buttons at the bottom of the container view in harbour-containers, advanced controls? Theoretically they should build Xwayland which should take about 10 minutes, then setup DE/WM, and after that you should be able to start the Xsession from the button above.

I didn't succeed in creating the container from the app, so I launched all the scripts from the command line so far (and yes, 10minutes seems like what I seen from the command line).
I will try again from the UI, maybe launching it from the command line to see the trace if something is wrong with my install.


Thanks again for your comments Kabouik, I now know what to expect. It may take me some time, but I will keep you updated if I still fail miserably, succeed, or seen some bug that I could help fix.

Zeta 2020-08-18 21:20

Re: Full linux distros on Sailfish OS
 
Silly me, I missed an already existing bug report... :mad:
https://github.com/sailfish-containe...iners/issues/5 aka "Container cannot be created without a device lock"...

I added a setup lock, and after some tries (needed to reboot, to launch containers from icon and not from command line to try to get debug info...), it now allows to create a new container !

Will probably not finish today (already late there), but the UI seems to work so far, launching terminal for the setup scripts like configuring Xsession.

Looking good !

Kabouik 2020-08-18 22:30

Re: Full linux distros on Sailfish OS
 
Excellent, keep us posted!

edp17 2020-08-19 23:14

Re: Full linux distros on Sailfish OS
 
I have updated the main post with some useful info about mouse and cursor support and included some useful script to start the LXC container and desktop with one terminal.

Zeta 2020-08-21 21:34

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1568820)
Excellent, keep us posted!

I got an XFCE desktop, and could run chromium on it !
Still a lot to configure to make it easier to use (fonts size mostly), I will probably try i3 but I need to learn it again, I only tested it once a while ago.

I didn't succeed with Debian Sid. It looks like the Xwayland compilation failed due to some dependancies. Not sure if it is due to mistakes on my part, or changes made in it (it is Sid after all, so changes can break things). I have seen the error by running every command of the script one by one from a terminal, as when running from the UI I didn't get a grasp of errors if any. Is there a log somewhere that can be checked after the UI run the script and the terminal disappeared ?

I tried again with Debian Buster, and I got to the end. I think I had to run some scripts manually, but didn't really take notes, I am still trying to understand what everything does.

For fun, I also try Fedora 32. It installed quickly, and command line works as expected. Seeing now a bit more how the scripts works on Debian, I think it is in my reach to port those to Fedora/CentOS. I will keep you updated if I try that and have some success.

malibu1106 2020-08-30 13:32

Re: Full linux distros on Sailfish OS
 
Hello guys.
I'm not really good with these stuffs.
I just created a debian sid chroot with the GUI.
But it stucks on "Waiting Xwayland window ..." when i lauch Xsession.
Can someone help me to investigate it ?
Thanks a lot.
(Running 3.3.0.16 on XA2)

Step 5 in CLI :
https://i.ibb.co/vBLCTgh/2020-08-30-...-home-nemo.png
-
https://i.ibb.co/Dp0d4q6/2020-08-30-...-home-nemo.png

Kabouik 2020-08-31 07:50

Re: Full linux distros on Sailfish OS
 
I think the script is named start_desktop.sh not just start_desktop. But other than that, there seems to be an issue with Sid now, as xf86vidmodeproto is a required package but is now missing from the unstable repository, which was not the case when we set up our Sid containers here. It should work if you can find a way to install it on Sid (unless there are other issues downstream), or alternatively you could try installing Buster instead, but you'll lose the benefit of having a rolling distributions. You can try Debian Testing too, I'm not sure if it's rolling or discontinuous releases.

malibu1106 2020-08-31 10:39

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1569009)
I think the script is named start_desktop.sh not just start_desktop. But other than that, there seems to be an issue with Sid now, as xf86vidmodeproto is a required package but is now missing from the unstable repository, which was not the case when we set up our Sid containers here. It should work if you can find a way to install it on Sid (unless there are other issues downstream), or alternatively you could try installing Buster instead, but you'll lose the benefit of having a rolling distributions. You can try Debian Testing too, I'm not sure if it's rolling or discontinuous releases.

Thanks for your anwser. I noticed the script name, and tried to change it before, with no success.
But you're right; it's working with Buster, I was almost sure it was my fault and that I had missed something, with a simple "missing file error".
Thanks a lot :)

EDIT : run really smooth. But i have 4 littles questions :D

1 : Is there some tricks about enlarging the UI to be more easy to use with fingers ?
2 : How to right click ? I didn't installed mouse/cursor support, is this related ?
3 : Auto-show when editing text doesn't work with Onboard.
And i tried to export and edit with dconf but i get an empty file.
4 : I have no sound. Tried to install pavucontrol but already installed. Have someone an idea ?

Thanks a lot.

Kabouik 2020-08-31 14:46

Re: Full linux distros on Sailfish OS
 
1. There is a xfce4 setting hidden somewhere in Appearance settings, together with Font size, but I heard UI scaling might not be included in Buster, just in more recent releases of xfce4 (it is in Sid). You can check in xsettings too I think. This might be a significant issue if there is no way to do that in Buster, let us know.

In i3, I customized the DPI value in ~/.Xresources as follows (you can see the scale in the video in the first page):

~/.Xresources

Code:

Xft.dpi: 180
xterm*font: *-font-*-*-*-20-*

And then I source ~/.Xresources in ~/.xinitrc with:

~/.xinitrc
Code:

xrdb -merge ~/.Xresources
And ~/.xinitrc itself is sourced in my i3 configuration file like this:

~/.config/i3/config

Code:

exec_always --no-startup-id source ~/.xinitrc
2. I believe it depends on the application. On the xfce4 desktop, it might be shift+click, not sure anymore. I don't remember how to do it nemo/nautilus, maybe I didn't find a way and just used Alt to open the menu items. In Firefox, it'll be long press. For Firefox, you'll have to enable touch scrolling too by the way, see here: https://askubuntu.com/questions/8539.../994483#994483

Mouse/cursor support is not a requirement, but works really well if you intend to use a USB or BT mouse at some point, see instructions temporarily written here: https://github.com/sailfish-on-fxtec...ment-680788660

3. I just scratched the surface for Onboard to get a working solution for touch-only devices, and it turned out to work okay, but I didn't try auto-show. You can always autostart Onboard and select the option to show an button on screen (in addition to the system tray icon), that's not automatic but worked very well for me. The issue, if confirmed, would not be specific to LXC though I think, try to check if someone else has had this issue on superuser/askubuntu/stackoverflow?

I think someone else reported getting an empty file with dconf dump. Can you install the dconf editor GUI and browse manually to make sure the path to Onboard settings is correct? It works for me with the path I posted here, but I'm on Sid, so maybe there are differences.

4. What does pavucontrol show? And pactl list sinks? Have you tried to reboot, just in case?

Sorry I can't help with more accurate answers. I wanted to put some info in the wiki but I pushed it back as much as I could, still today, I'm very bad at finding the motivation to write proper definitive documentation. :< Hopefully this topic will help gather some information already, that can then just be summarized in the wiki. But we are still in a testing phase with few users, it would be good to have a better idea of what works and doesn't work on various devices. Also, Illyria has been busy with other exciting projects lately.

edp17 2020-09-02 00:20

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by malibu1106 (Post 1569010)
1 : Is there some tricks about enlarging the UI to be more easy to use with fingers ?
2 : How to right click ? I didn't installed mouse/cursor support, is this related ?
3 : Auto-show when editing text doesn't work with Onboard.
And i tried to export and edit with dconf but i get an empty file.
4 : I have no sound. Tried to install pavucontrol but already installed. Have someone an idea ?

Thanks a lot.

1. If you install the mouse support it is easier to set up. However, you can do it with your fingers too. Go to "Start menu" :D then "Settings" then:
  • "Appearance" - under "Fonts" set the font size (for me: Default font: 26, Default Monospace font: 18
  • "Desktop" - under "Icons" set the icon size (for me File/launcher icons: 76)
  • "File manager preferences" - under "Side Pane" set the icon size within the file manager (for me both icon size: 64px)
  • "Onboard preferences" - set the preferred onboard style, layout and other stuff
  • "Panel" - under "Display" set the size of the panels (for me "Panel1 aka. Start menu" Row size: 76, "Panel2 aka Docker" Row size: 128) - Under "Items" you can set what apps/elements you would like to see on the panel.
  • "Window manager" - under "Style" set the "Title font" (for me is 26)
Some pictures:
Desktop & keyboard
Telegram Web
Starting Windows XP :)

2.
I only use the mouse to right-click. I recommend that as that is consistent everywhere, otherwise this might not be available in apps.

3.
Try to play with the "Onboard preferences". For me, it works, however, I think it required to start the onboard first. (When I start it doesn't appear straight away, but when I go into an input field, it appears automatically. You can start automatically in "Settings"/"Session and startup"/"Application startup"

4.
Yep. if you managed to get sound, please let me know. :)

edp17 2020-09-02 00:22

Re: Full linux distros on Sailfish OS
 
What I spotted on my XA2. If I run the container, the incoming calls do not have sound. I have missed a few calls because it didn't ring because the LXC was running.
Has anyone experienced this?

Kabouik 2020-09-02 07:52

Re: Full linux distros on Sailfish OS
 
Not at all, but my containers were installed months ago and I don't remember if I had to do anything to fix sound. However, while I don't remember if sound was working right away in LXC, I'm almost positive that sound on the SFOS side was not broken.

Have you tried toying around with Audio Output Chooser? I don't believe this would solve your issues, but it is worth investigating.

On the Proš, Pavucontrol shows I'm using "Droid sink deep_buffer" in the "Playback device" tab. In the "Output devices" tab, I have "Droid sink primary_output" and "Droid sink deep_buffer", both with "Port: Output to speaker (plugged in)".

Quote:

1. If you install the mouse support it is easier to set up. However, you can do it with your fingers too. Go to "Start menu" then "Settings" then:

"Appearance" - under "Fonts" set the font size (for me: Default font: 26, Default Monospace font: 18
"Desktop" - under "Icons" set the icon size (for me File/launcher icons: 76)
"File manager preferences" - under "Side Pane" set the icon size within the file manager (for me both icon size: 64px)
"Onboard preferences" - set the preferred onboard style, layout and other stuff
"Panel" - under "Display" set the size of the panels (for me "Panel1 aka. Start menu" Row size: 76, "Panel2 aka Docker" Row size: 128) - Under "Items" you can set what apps/elements you would like to see on the panel.
"Window manager" - under "Style" set the "Title font" (for me is 26)
Beware that if you find the UI scaling setting (but I think it may not be available in xfce4 shipped with Buster, as said above), and set it to something too large, it won't be able to display the bottom of the windows, including that one. That means you cannot change this setting back to another value to fix it.

Don't reinstall though, there are workarounds: you may be able to scroll down this window if you use an external mouse (with the instructions above), or you can find a window called "Xsettings" (if I remember correctly, as I don't use xfce4 anymore) in Menu > Settings, and it should list all settings including the UI scaling at the bottom, with a handy scroll bar on the right. There is also a configuration file somewhere in /home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml or /home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml.

In the xsettings.xml fle, the UI scaling setting is the following by the way, so maybe you could try adding it and change the value even if your version of xfce4 doesn't offer it in the GUI, never know:

Code:

<property name="Gdk" type="empty">
  <property name="WindowScalingFactor" type="int" value="1">
</property>

Quote:

3.
Try to play with the "Onboard preferences". For me, it works, however, I think it required to start the onboard first. (When I start it doesn't appear straight away, but when I go into an input field, it appears automatically. You can start automatically in "Settings"/"Session and startup"/"Application startup"
Yes that makes sense, I think Onboard has to be autostarted in any case. Maybe just add its .desktop file in ~/.config/autostart.

levone1 2020-09-02 10:25

Re: Full linux distos on Sailfish OS
 
1 Attachment(s)
Quote:

Originally Posted by edp17 (Post 1568517)
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: sudo lxc-create -t sfos-download -n <container-name> sudo lxc-start -n <container-name> Manually change the the /usr/share/sailfish-containers/guest to /usr/share/harbour-containers/scripts/guest in the /var/lib/lxc/< container name >/config sudo lxc-attach -n <container-name> then within the container: /mnt/guest/setup_desktop.sh /mnt/guest/setups/debian.sh Start 2! command lines and in one of them issue this as nemo: /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") In the other command-line attach the container, then: /mnt/guest/start_desktop 0 Done.

I'm using XZ2c port. Everything working fine with installation and gui, as well as containers creation, x-session setup, attach, etc. When I tap 'start x-session', though, I get a perpetual "Waiting for x-window" message. When I try to do it manually, as quoted above, the output of the last command, run inside of attached, (which Ithink has a typo in your post - should be '/mnt/guest/start_desktop.sh 0', right?), is shown in tje screenshot ...
any ideas? Thanks

edp17 2020-09-02 11:16

Re: Full linux distos on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1569045)
I'm using XZ2c port. Everything working fine with installation and gui, as well as containers creation, x-session setup, attach, etc. When I tap 'start x-session', though, I get a perpetual "Waiting for x-window" message. When I try to do it manually, as quoted above, the output of the last command, run inside of attached, (which Ithink has a typo in your post - should be '/mnt/guest/start_desktop.sh 0', right?), is shown in tje screenshot ...
any ideas? Thanks

Yes, you were right there was a typo in the command. I have fixed that. Thanks, for the heads up.

When you start manually, first you need to start the container, then you need to enter into it in a command line:
Code:

sudo lxc-attach -n <container_name>
then within there run the command:
Code:

/mnt/guest/start_desktop.sh 0
or

with one command:
Code:

sudo lxc-attach -n <container_name> -- /mnt/guest/start_desktop.sh 0 &
Please check the scripts (Some useful scripts: section) that I provided for manual start from the command line.
Those scripts do start the container if they are not running then issuing the command above to start the desktop.
When you see the message "Waiting for x-window" wait for a while, then after a while, your desktop will appear. For me, I need to wait for around a half or a minute to get the desktop screen.

levone1 2020-09-02 13:01

Re: Full linux distos on Sailfish OS
 
1 Attachment(s)
Quote:

Originally Posted by edp17 (Post 1569046)
Yes, you were right there was a typo in the command. I have fixed that. Thanks, for the heads up.

When you start manually, first you need to start the container, then you need to enter into it in a command line:
Code:

sudo lxc-attach -n <container_name>
then within there run the command:
Code:

/mnt/guest/start_desktop.sh 0
or

with one command:
Code:

sudo lxc-attach -n <container_name> -- /mnt/guest/start_desktop.sh 0 &
Please check the scripts (Some useful scripts: section) that I provided for manual start from the command line.
Those scripts do start the container if they are not running then issuing the command above to start the desktop.
When you see the message "Waiting for x-window" wait for a while, then after a while, your desktop will appear. For me, I need to wait for around a half or a minute to get the desktop screen.

I tried again, as you said, with the same result. As I said, starting the container, and attaching to gain shell, as well as every other function I've tried, works fine from the gui. Container starts, shows 'running', and root@Linux shell appears when tapping "attach", with full fs intact. But attempting to open x-session shows, "...xwayland not found". I've waited for up to 10 mins...
Thanks

levone1 2020-09-02 13:24

Re: Full linux distos on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1569046)
Yes, you were right there was a typo in the command. I have fixed that. Thanks, for the heads up.

When you start manually, first you need to start the container, then you need to enter into it in a command line:
Code:

sudo lxc-attach -n <container_name>
then within there run the command:
Code:

/mnt/guest/start_desktop.sh 0
or

with one command:
Code:

sudo lxc-attach -n <container_name> -- /mnt/guest/start_desktop.sh 0 &
Please check the scripts (Some useful scripts: section) that I provided for manual start from the command line.
Those scripts do start the container if they are not running then issuing the command above to start the desktop.
When you see the message "Waiting for x-window" wait for a while, then after a while, your desktop will appear. For me, I need to wait for around a half or a minute to get the desktop screen.

(edit - nevermind this post - I realized the problem... I'm starting over with a new container now...)

edp17 2020-09-02 13:29

Re: Full linux distos on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1569047)
I tried again, as you said, with the same result. As I said, starting the container, and attaching to gain shell, as well as every other function I've tried, works fine from the gui. Container starts, shows 'running', and root@Linux shell appears when tapping "attach", with full fs intact. But attempting to open x-session shows, "...xwayland not found". I've waited for up to 10 mins...
Thanks

Interesting. Silly question, did you install/set up the desktop gui (/mnt/guest/setup_desktop.sh then /mnt/guest/setups/debian.sh from command line within the container or the 'setup xsession' in the app under the 'advanced controls')? From what you describe it looks like there is no GUI installed in the container, only command line.

Edit1:
In your host under /home/.lxc/<container_name>/opt/bin there should be some files:
Code:

-rwxr-xr-x    1 root    root      13318156 Jul 28 16:46 Xwayland
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 kill_xwayland.sh -> /mnt/guest/kill_xwayland.sh
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 setup_desktop.sh -> /mnt/guest/setup_desktop.sh
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 start_desktop.sh -> /mnt/guest/start_desktop.sh
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 start_onboard.sh -> /mnt/guest/start_onboard.sh

Edit2:
What was the problem? I guess you haven't installed the gui in your desktop distro. :D

levone1 2020-09-02 13:41

Re: Full linux distos on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1569049)
Interesting. Silly question, did you install/set up the desktop gui (/mnt/guest/setup_desktop.sh then /mnt/guest/setups/debian.sh from command line within the container or the 'setup xsession' in the app under the 'advanced controls')? From what you describe it looks like there is no GUI installed in the container, only command line.

Edit1:
In your host under /home/.lxc/<container_name>/opt/bin there should be some files:
Code:

-rwxr-xr-x    1 root    root      13318156 Jul 28 16:46 Xwayland
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 kill_xwayland.sh -> /mnt/guest/kill_xwayland.sh
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 setup_desktop.sh -> /mnt/guest/setup_desktop.sh
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 start_desktop.sh -> /mnt/guest/start_desktop.sh
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 start_onboard.sh -> /mnt/guest/start_onboard.sh

Edit2:
What was the problem? I guess you haven't installed the gui in your desktop distro. :D

Well, I'm still in the midst of creating new container, I'll let you know ... I realized what the problem was with what I originally posted in my last post, so I changed it to the edited one. Still not sure abou my original problem ... Thanks

edp17 2020-09-02 13:45

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1569044)
On the Proš, Pavucontrol shows I'm using "Droid sink deep_buffer" in the "Playback device" tab. In the "Output devices" tab, I have "Droid sink primary_output" and "Droid sink deep_buffer", both with "Port: Output to speaker (plugged in)".

I do not have those options.
On "Playback" tab, I have "All streams", "Applications" and "Virtual streams"
On "Output device" tab, I have "All Output Devices", "Hardware Output Devices" and "Virtual Output Devices"

I guess need to install some patches, plugins or extensions, although I don't know what.

levone1 2020-09-02 13:59

Re: Full linux distos on Sailfish OS
 
1 Attachment(s)
Quote:

Originally Posted by edp17 (Post 1569049)
Interesting. Silly question, did you install/set up the desktop gui (/mnt/guest/setup_desktop.sh then /mnt/guest/setups/debian.sh from command line within the container or the 'setup xsession' in the app under the 'advanced controls')? From what you describe it looks like there is no GUI installed in the container, only command line.

Edit1:
In your host under /home/.lxc/<container_name>/opt/bin there should be some files:
Code:

-rwxr-xr-x    1 root    root      13318156 Jul 28 16:46 Xwayland
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 kill_xwayland.sh -> /mnt/guest/kill_xwayland.sh
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 setup_desktop.sh -> /mnt/guest/setup_desktop.sh
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 start_desktop.sh -> /mnt/guest/start_desktop.sh
lrwxrwxrwx    1 root    root            27 Jul 28 16:23 start_onboard.sh -> /mnt/guest/start_onboard.sh

Edit2:
What was the problem? I guess you haven't installed the gui in your desktop distro. :D

New container, new error...


Yes I set up desktop gui, trying both with cmd line and with app gui. Both instances were successful, and ended with "...x-session is ready"
Thanks

edp17 2020-09-02 14:34

Re: Full linux distos on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1569052)
New container, new error...


Yes I set up desktop gui, trying both with cmd line and with app gui. Both instances were successful, and ended with "...x-session is ready"
Thanks

I think know now what the problem could be. I just have replicated your scenario.
So, please do the following.
1. Start the container with the gui or manually with sudo lxc-start -n <container_name>
2. Then you need two terminal window (comman-line).
2.a. In one of them issue the following command (watch out for back tick!):
Code:

`/usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"` &
2.b. Then in the other command-line, run this:
Code:

sudo lxc-attach -n <container_name> -- /mnt/guest/start_desktop.sh 0

Kabouik 2020-09-02 15:09

Re: Full linux distros on Sailfish OS
 
Levone1, can you tell which distribution and release you are trying to install? If Debian Sid, then there is a known issue with the latest updates because a package is no longer available in the repository and this results in a failure to use Xwayland for this release. This was not an issue when I set up my Sid container months ago.

If this is your issue, then there is a failure to compile something during the GUI installation procedure, which you could easily miss because the terminal will just close without giving you time to read any error. When everything goes well, the build procedure should keep the terminal busy for 10-15 minutes depending on the performance of your device.

You may want to try Buster or Testing, or if you're trying to install another distribution, then try to run the setup_desktop.sh script manually in a new terminal session to check where it fails without the window closing itself.

Regarding sound edp17, I didn't install any patches, plugins or extensions, but maybe there is a difference in how the audio sinks are set up between the ports for our respective devices?

levone1 2020-09-02 16:30

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1569057)
Levone1, can you tell which distribution and release you are trying to install? If Debian Sid, then there is a known issue with the latest updates because a package is no longer available in the repository and this results in a failure to use Xwayland for this release. This was not an issue when I set up my Sid container months ago.

If this is your issue, then there is a failure to compile something during the GUI installation procedure, which you could easily miss because the terminal will just close without giving you time to read any error. When everything goes well, the build procedure should keep the terminal busy for 10-15 minutes depending on the performance of your device.

You may want to try Buster or Testing, or if you're trying to install another distribution, then try to run the setup_desktop.sh script manually in a new terminal session to check where it fails without the window closing itself.

Regarding sound edp17, I didn't install any patches, plugins or extensions, but maybe there is a difference in how the audio sinks are set up between the ports for our respective devices?

First attempt was Kali latest. Current attempt is Debian Stretch...

levone1 2020-09-02 16:33

Re: Full linux distos on Sailfish OS
 
1 Attachment(s)
Quote:

Originally Posted by edp17 (Post 1569055)
I think know now what the problem could be. I just have replicated your scenario.
So, please do the following.
1. Start the container with the gui or manually with sudo lxc-start -n <container_name>
2. Then you need two terminal window (comman-line).
2.a. In one of them issue the following command (watch out for back tick!):
Code:

`/usr/bin/qxdisplay --wayland-socket-name "../../display/wayland-container-0"` &
2.b. Then in the other command-line, run this:
Code:

sudo lxc-attach -n <container_name> -- /mnt/guest/start_desktop.sh 0

New error...

Kabouik 2020-09-02 18:28

Re: Full linux distros on Sailfish OS
 
Can you try to run the following and post the errors?

Code:

devel-su lxc-attach -n Linux2
/mnt/guest/./setup_desktop.sh

If you don't mind, since we are going into specific details, I suggest creating a new issue on Github to post the output, and continue the discussion there. It would be more adapted to address the issue, and also more useful for future users if the issue turns out to occur in other cases. Also, the developer of the LXC app is not active here.

levone1 2020-09-02 18:47

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1569066)
Can you try to run the following and post the errors?

Code:

devel-su lxc-attach -n Linux2
/mnt/guest/./setup_desktop.sh

If you don't mind, since we are going into specific details, I suggest creating a new issue on Github to post the output, and continue the discussion there. It would be more adapted to address the issue, and also more useful for future users if the issue turns out to occur in other cases. Also, the developer of the LXC app is not active here.

Ok... The commands return no errors. First command brings a Linux root shell, and the second one begins the desktop setup as usual , ending with "x-session eeady", (or something).
Maybe I'll try a few different distros...

edp17 2020-09-03 07:37

Re: Full linux distos on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1569062)
New error...

How I meant was in the command replace the <container_name> with the name of your container. (I think linux2 or something like that.)

edp17 2020-09-03 07:49

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by Kabouik (Post 1569057)
...
Regarding sound edp17, I didn't install any patches, plugins or extensions, but maybe there is a difference in how the audio sinks are set up between the ports for our respective devices?

Yeah, I think the same. Maybe I should change something on the sfos side, in the container or in both. :confused:
The issue (no sound in the container and in the host if the container is running and after) impacts both devices Sony XA2 and Galaxy Note 4 (treltexx). The available options in pavucontrol are the same in the containers on both devices.

Kabouik 2020-09-03 08:54

Re: Full linux distros on Sailfish OS
 
Levone1 did run the command with the correct container name afterwards. I also posted that and then deleted my message when I noticed. :D

Regarding sound, I can only say that it works for me and others on Proš, and I believe it works on X Compact too (not tested, my X Compact died), so maybe you can find something interesting in the the Proš port Git repository?

We'd need Illyria to confirm that sound worked on his X Compact too, because that's an official SFOS release, not a port, and it's surprising that it would not work on XA2 then.

edp17 2020-09-03 09:48

Re: Full linux distros on Sailfish OS
 
I was also surprised why this didn't work on my XA2. Good idea, I'll check the Pro1 repo in github! Thanks.

levone1 2020-09-03 10:45

Re: Full linux distos on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1569084)
How I meant was in the command replace the <container_name> with the name of your container. (I think linux2 or something like that.)

That's what I did. You can see in screenshot that I left <container name> accidentally the first time, but reissued the command properly riggt after...

edp17 2020-09-03 13:09

Re: Full linux distros on Sailfish OS
 
Levone1: Sorry I missed that, but now I saw in the screenshot.
I am trying to install Strech on my treltexx to see whether I get similar issues.

levone1 2020-09-03 14:07

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1569094)
Levone1: Sorry I missed that, but now I saw in the screenshot.
I am trying to install Strech on my treltexx to see whether I get similar issues.

I've tried a few... Seems like what usually goes wrong is that the Xwayland build/install process messes up somehow, (it seems like everything is successful as it's building, but it's hard to catch all of it as it scrolls by). Whenever I get Xwayland not found message, sure enough, there's no Xwayland file in /opt/bin. Now, though, on Debian Buster, Xwayland is installed, but I got 'xstart command not found' error when running start_desktop.sh. I used apt-get to install xinit package, and that issue went away, and now I get 'only console users are allowed to run the X server'. Trying to figure that one out...

Also, it seems like internet doesn't work with mobile data, only Wi-Fi ...

edp17 2020-09-03 14:36

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1569095)
I've tried a few... Seems like what usually goes wrong is that the Xwayland build/install process messes up somehow, (it seems like everything is successful as it's building, but it's hard to catch all of it as it scrolls by). Whenever I get Xwayland not found message, sure enough, there's no Xwayland file in /opt/bin. Now, though, on Debian Buster, Xwayland is installed, but I got 'xstart command not found' error when running start_desktop.sh. I used apt-get to install xinit package, and that issue went away, and now I get 'only console users are allowed to run the X server'. Trying to figure that one out...

Also, it seems like internet doesn't work with mobile data, only Wi-Fi ...

I have just installed Stretch too. During the process, I spotted something, the content of the /var/lib/lxc/<container_name>/config was not correct. I updated the first post and added my config file there. You may try to use that in your device.
What I recommend is to destroy all containers, delete all files from /home/.lxc and start over. I also recommend using purely the command-line. (I used that to install Stretch.)
If you follow the steps, before you attach the container first, please double-check the config file. I hope finally you will get there.

Kabouik: What I spotted was when I started the GUI of the Stretch, I got the same desktop that I configured for the Sid!! In Sid I installed Conky plus a few apps. I didn't expect to see them in Stretch. Conky was started but I got missing icons for the apps as those were installed in Sid only.
Is somehow the desktop config shared among the desktop distro installations?

edp17 2020-09-03 15:07

Re: Full linux distros on Sailfish OS
 
Yep. I have destroyed the freshly installed stretch container and now my other one (Sid) doesn't start. :(
I only get the 'No Xwayland window' screen rather than the desktop.
I guess, shouldn't have tried to install more than one container at the same time. :(

Edit: Extend the last sentence, I should delete the sid folder in /home/.lxc.
Plus I shouldn't just use Sid's config for Stretch without amending it accordingly.

levone1 2020-09-04 07:33

Re: Full linux distros on Sailfish OS
 
2 Attachment(s)
Quote:

Originally Posted by edp17 (Post 1569096)
I have just installed Stretch too. During the process, I spotted something, the content of the /var/lib/lxc/<container_name>/config was not correct. I updated the first post and added my config file there. You may try to use that in your device.
What I recommend is to destroy all containers, delete all files from /home/.lxc and start over. I also recommend using purely the command-line. (I used that to install Stretch.)
If you follow the steps, before you attach the container first, please double-check the config file. I hope finally you will get there.

Kabouik: What I spotted was when I started the GUI of the Stretch, I got the same desktop that I configured for the Sid!! In Sid I installed Conky plus a few apps. I didn't expect to see them in Stretch. Conky was started but I got missing icons for the apps as those were installed in Sid only.
Is somehow the desktop config shared among the desktop distro installations?

Getting somewhere ... I did a new container with Devuan and used your instructions, and got a window. Now to figure out how to fix the appearance. Screenshots show how it looks. I can't get any different ... Any ideas?
Thanks


All times are GMT. The time now is 21:18.

vBulletin® Version 3.8.8