Active Topics

 


Reply
Thread Tools
Posts: 1 | Thanked: 0 times | Joined on Jan 2024
#251
I have problem with system sound.
poco x3 pro SFOS 4.5.0.24

Last edited by Motomeizu; 2024-01-15 at 18:44.
 
Posts: 8 | Thanked: 12 times | Joined on Aug 2016
#252
Originally Posted by edp17 View Post
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's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#253
<code>
devel-su usermod -a nemo -G net_raw
</code>
choose nemo or defaultuser or just user depending on your use case
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
Posts: 8 | Thanked: 12 times | Joined on Aug 2016
#254
Originally Posted by peterleinchen View Post
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 ...
 
Reply

Tags
application, development, linux


 
Forum Jump


All times are GMT. The time now is 20:05.