|
Page 4 of 7 |
|
Prev |
2 3 4
5 6
|
Next
| Last
Re: Full linux distros on Sailfish OS
Hi guys, I am trying to get `debian.sh` to start from ShellEx - is there any way to work around the su requirement for lxc-attach apart from enabling passwordless execution for defaultuser in /etc/sudoers? I couldn't find an askpass program for SFOS either.
|
Re: Full linux distros on Sailfish OS
Quote:
|
Re: Full linux distros on Sailfish OS
Has anyone been able to get the camera working in the LXC container? I bind-mounted all the video* devices and they are showing correctly in /dev but am having no luck with any applications.
|
Re: Full linux distros on Sailfish OS
Quote:
Can you tell me the proper mount command for video devices? Attempting 'ls -ltr /dev/video*' gives, "no such file or directory" ... |
Re: Full linux distros on Sailfish OS
I added the following lines into my /var/lib/lxc/Debian/config:
lxc.cgroup.devices.allow = c 81:* rwm lxc.mount.entry = /dev/video0 dev/video0 none bind,create=file 0 0 lxc.mount.entry = /dev/video1 dev/video1 none bind,create=file 0 0 lxc.mount.entry = /dev/video2 dev/video2 none bind,create=file 0 0 lxc.mount.entry = /dev/video32 dev/video32 none bind,create=file 0 0 lxc.mount.entry = /dev/video33 dev/video33 none bind,create=file 0 0 I can see the devices inside the container's /dev. But none of the apps seem to be able to work with them. |
Re: Full linux distros on Sailfish OS
Hi,
lurker of the forums here, I upgraded my phone 4.0.1.48, tried to use harbour-containers without success. The xwayland display failed to start. I have not tried to trouble start as of yet. |
Re: Full linux distros on Sailfish OS
Quote:
Since you are in devel waters it is best to first ask Adam in person on Telegram how (and wether) to update at all ;) @bundyo might have advise since he upgraded to 4.0.1 very early successfully. He needed to manually downgrade some packages afair. Adams Proš related Telegram group again: https://t.me/sfos_user_pro1 |
Re: Full linux distros on Sailfish OS
Quote:
|
Re: Full linux distros on Sailfish OS
Is there any plans to update for sailfish 4 without having to downgrade RPM's?
Thanks in advance. |
Re: Full linux distros on Sailfish OS
I didn't downgrade - just some packages changed naming, so I had to do that before upgrading. Not sure, but I think in testing there's no need to manually do that anymore. You can ask Adam in the Telegram chat.
|
Re: Full linux distros on Sailfish OS
@edp17 - question ... I am finding that X session is not working in harbour-containers app. I heard on Telegram that it has been happening with 4.0 due to the change from nemo to defaultuser, and can be fixed by creating a defaultuser symlink, or rebuilding the app with a code change. I was going to work on that, but then I see that the default user on XZ2c is still nemo, not defaultuser. Any thoughts ?
|
Re: Full linux distros on Sailfish OS
Quote:
As a result: if you flash new 4.0 image -> defaultuser is used if you come from earlier versions -> nemo is kept. I don't remember when the user name switch happened. I have a feeling it was earlier than 4.0 |
Re: Full linux distros on Sailfish OS
Quote:
|
Re: Full linux distros on Sailfish OS
the switch to defaultuser came with release 3.4. Since then I'm not able to start a containers on my Pro1. I fiddled around with symlinks and changes in the scripts. Even so I got X session to run, I haven't got a running container. I still hope there will be new packages which fixes these problems.
|
Re: Full linux distros on Sailfish OS
Quote:
|
Re: Full linux distros on Sailfish OS
started a new container from scratch (Debian Sid) and working fine now...
|
Re: Full linux distros on Sailfish OS
What steps exactly have you done?
I'm still struggeling to get a running container on 3.4. |
Re: Full linux distros on Sailfish OS
1 Attachment(s)
Quote:
Start from scratch, open app and create new container, with "set up desktop" option checked. Let it go through the whole container setup, and also Xwayland build process. Don't lose internet connection and don't interrupt the process. The whole thing is 15-20 mins. Yhe terminal will close automatically whrn done. Then you can start the container and tap Xsession button, and should work. I'm using XZ2compact ... |
Re: Full linux distros on Sailfish OS
So you have made no adpations in the scripts to the new username defaultuser???
:eek: |
Re: Full linux distros on Sailfish OS
Maybe he has a symlink from nemo to defaultuser.
|
Re: Full linux distros on Sailfish OS
Well, I have that as well. I see, i have to make further tries on that side.
|
Re: Full linux distros on Sailfish OS
Quote:
|
Re: Full linux distros on Sailfish OS
Thanx for clarification!
|
Re: Full linux distros on Sailfish OS
Quote:
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 ... |
Re: Full linux distros on Sailfish OS
We should raise a PR for that, but I have not found how to write it so that daemon.py would work with any user name, not just defaultuser. Maybe using `import os` and then `os.environ.get('USER')` would work?
Anyone willing to try with this commit/fork? I don't have a device ready to try and I'm not prepared to compromise my LXC install right now as I really depend on it, but if that works, I can submit the PR. I am sorry I didn't read TMO lately but I see this is being discussed since March, while others had found the same the same temporary workaround at some earlier point on either the Telegram or Discord groups. |
Re: Full linux distros on Sailfish OS
Quote:
|
Re: Full linux distros on Sailfish OS
Quote:
|
Re: Full linux distros on Sailfish OS
Thanks to both of you! I added `os.getuid()` too as you recommended txus. I'll try to get someone to test it on a device with no current installation of LXC and no existing container, in case that matters. I'll submit a PR if that works.
|
Re: Full linux distros on Sailfish OS
I have currently no running containers. So I can test for you. So what do I have to do?
At first uninstall LXC if I got you right... And then? What rpms should I install? |
Re: Full linux distros on Sailfish OS
You could install the rpm that is already compiled on the Github repository, which you may already have.
Then kill the daemon: run "ps aux | grep daemon.py", then "kill -9 <daemon.py PID>". And then replace your /usr/share/harbour-containers/service/daemon.py with the one in the fork above. Make sure you download the raw daemon.py and not the HTML view. And reboot. One thing to keep in mind is you may have leftover configs in /var/lib/lxc. So if that doesn't work, it might be worth checking those and/or creating a new container, to make sure the configs are not still trying to use nemo. |
Re: Full linux distros on Sailfish OS
It doesn't work.
But that has nothing to do with your patch! It seems like I have something destroyed with my fiddeling around on lxc. If i try to create a container. It there is the information that the container is running the setup, but after that the container wich was initially shown vanishes and that's it. (No matter if I use the original deamon.py or yours) So I have first to look what I have borked on my system. I'm grateful for tipps. I have already deinstalled lxc many times and have searched for directories with the name lxc on my file system to empty them. Unfortunately with no success regarding the container setup. I have to dig deeper I fear.... |
Re: Full linux distros on Sailfish OS
Hum, I'm not sure exactly where your issue comes from. Do you have files in the folders I mentioned in my previous post?
Thanks for trying anyway! Note that I forgot to mention this would be tried without nemo/defaultuser symlink, else LXC could work because of that and not because of the patch. |
Re: Full linux distros on Sailfish OS
Quote:
Am I understanding wrong? EDIT - never mind... I think my process was dead already... |
Re: Full linux distros on Sailfish OS
Quote:
|
Re: Full linux distros on Sailfish OS
Maybe the PID you saw and tried to kill was that of `grep daemon.py` itself levone1, if the daemon was already stopped in your case.
|
Re: Full linux distros on Sailfish OS
Quote:
But now, when I open the container, there is nothing there. It doesn't not show Alien Dalvik or the option to create a new container. It only shows the menu of Freeze/Stop all, and about. Any suggestions? Thank you. |
Re: Full linux distros on Sailfish OS
Quote:
|
Re: Full linux distros on Sailfish OS
Quote:
Code:
lxc-lsThen delete the one that failed to set up with Code:
lxc-destroy <CONTAINERNAME>harbour-containers did then start up again in my case. I am on 4.0.1.48 on Proš and in process to figure out how to set up debian so Kabouik can finally move to 4.0 from 3.3 :D It would be great if someone could post instuctions how to create and setup a debian container from CLI. That way i could supply the logs here. I figure the ones from first post are outdated? |
Re: Full linux distros on Sailfish OS
Quote:
Your wording implies one of the Proš 4.0 images actually worked? Or did you flash 3.4 and then OTA to 4.0? I tried to flash all of the 4.0 images listed in the gitlab artifacts and they did not work for me. Adam would be quite relieved to hear they actually work and it was my error they did not! |
Re: Full linux distros on Sailfish OS
Quote:
Quote:
Code:
chmod +x daemon.py |
| All times are GMT. The time now is 13:01. |
Page 4 of 7 |
|
Prev |
2 3 4
5 6
|
Next
| Last
vBulletin® Version 3.8.8