![]() |
Re: Full linux distos on Sailfish OS
Quote:
|
Re: Full linux distos on Sailfish OS
Quote:
I found this link where you can find a link to the kernel and device repos for the loire. |
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: |
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. |
Re: Full linux distros on Sailfish OS
Quote:
Quote:
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:
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. |
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 ! |
Re: Full linux distros on Sailfish OS
Excellent, keep us posted!
|
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.
|
Re: Full linux distros on Sailfish OS
Quote:
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. |
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 |
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.
|
Re: Full linux distros on Sailfish OS
Quote:
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. |
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 ~/.xinitrc Code:
xrdb -merge ~/.Xresources ~/.config/i3/config Code:
exec_always --no-startup-id source ~/.xinitrc 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. |
Re: Full linux distros on Sailfish OS
Quote:
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. :) |
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? |
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:
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"> Quote:
|
Re: Full linux distos on Sailfish OS
1 Attachment(s)
Quote:
any ideas? Thanks |
Re: Full linux distos on Sailfish OS
Quote:
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> Code:
/mnt/guest/start_desktop.sh 0 with one command: Code:
sudo lxc-attach -n <container_name> -- /mnt/guest/start_desktop.sh 0 & 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. |
Re: Full linux distos on Sailfish OS
1 Attachment(s)
Quote:
Thanks |
Re: Full linux distos on Sailfish OS
Quote:
|
Re: Full linux distos on Sailfish OS
Quote:
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 What was the problem? I guess you haven't installed the gui in your desktop distro. :D |
Re: Full linux distos on Sailfish OS
Quote:
|
Re: Full linux distros on Sailfish OS
Quote:
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. |
Re: Full linux distos on Sailfish OS
1 Attachment(s)
Quote:
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 |
Re: Full linux distos on Sailfish OS
Quote:
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"` & Code:
sudo lxc-attach -n <container_name> -- /mnt/guest/start_desktop.sh 0 |
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? |
Re: Full linux distros on Sailfish OS
Quote:
|
Re: Full linux distos on Sailfish OS
1 Attachment(s)
Quote:
|
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 |
Re: Full linux distros on Sailfish OS
Quote:
Maybe I'll try a few different distros... |
Re: Full linux distos on Sailfish OS
Quote:
|
Re: Full linux distros on Sailfish OS
Quote:
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. |
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. |
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.
|
Re: Full linux distos on Sailfish OS
Quote:
|
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. |
Re: Full linux distros on Sailfish OS
Quote:
Also, it seems like internet doesn't work with mobile data, only Wi-Fi ... |
Re: Full linux distros on Sailfish OS
Quote:
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? |
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. |
Re: Full linux distros on Sailfish OS
2 Attachment(s)
Quote:
Thanks |
All times are GMT. The time now is 21:18. |
vBulletin® Version 3.8.8