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)

Motomeizu 2024-01-14 20:17

Re: Full linux distros on Sailfish OS
 
I have problem with system sound.
poco x3 pro SFOS 4.5.0.24

qoh 2024-05-12 08:23

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1575251)
Please let us know what packages you had installed and how did you installed/configured the desktop distro (step by step) Also, some logs also can be useful to see what's happening under the hood.

In the end, I think it all had to do with the system generally only having some hundred megabytes of space available.

Over the last couple of weeks I've implemented several workarounds to the various issues of SFOS itself and now the containers work as expected!

One issue still standing is that normal users do not get network access.

root can connect normally, but:

Code:

# lxc-attach alpine
# adduser user
# groups user
user

# su user -c 'ping 1.1.1.1'
PING 1.1.1.1 (1.1.1.1): 56 data bytes
ping: can't create raw socket: Permission denied

# su user -c 'dig maemo.org'
net.c:141:try_proto(): socket(): Permission denied (13)
net.c:141:try_proto(): socket(): Permission denied (13)
dig: can't find either v4 or v6 networking

# su user -c 'curl 1.1.1.1'
curl: (7) Failed to connect to 1.1.1.1 port 80 after 0 ms: Couldn't connect to server

# adduser  user wheel
# adduser  user root
# adduser  user netdev
# groups user
user root wheel netdev

# su user -c 'curl 1.1.1.1'
curl: (7) Failed to connect to 1.1.1.1 port 80 after 0 ms: Couldn't connect to server


peterleinchen 2024-05-12 08:57

Re: Full linux distros on Sailfish OS
 
<code>
devel-su usermod -a nemo -G net_raw
</code>
choose nemo or defaultuser or just user depending on your use case

qoh 2024-05-12 09:23

Re: Full linux distros on Sailfish OS
 
Quote:

Originally Posted by peterleinchen (Post 1576060)
Code:

devel-su usermod -a nemo -G net_raw

Is the idea there to match the UID of the SFOS user with the one in the container?

My results:

Sailfish:

Code:

# useradd -G net_raw lxcuser

# groups lxcuser
lxcuser net_raw

Container:

Code:

# adduser -u 100001 -s /bin/ash -D lxcuser

# su lxcuser -c 'curl 1.1.1.1'
curl: (7) Failed to connect to 1.1.1.1 port 80 after 0 ms: Couldn't connect to server

Adding the SFOS user to many other groups didn't influence the result ...


All times are GMT. The time now is 14:54.

vBulletin® Version 3.8.8