Post AbXVcmdWt6ZsVFxT1M by JustineSmithies@fosstodon.org
(DIR) More posts by JustineSmithies@fosstodon.org
(DIR) Post #AbXVcgOQ6MvV8eqJdY by JustineSmithies@fosstodon.org
2023-11-06T16:48:15Z
0 likes, 0 repeats
#FreeBSD folks I have an issue and I think I need to either change permissions or add my user to a group ? I have installed the following #Wayland #WM Sway, River and to see if it works Hyprland. I can run Sway no problem as my user justine but both River and Hyprland refuse as my user but I am able to run them up as root which I know is very wrong. So how do I fix this as cannot see anything in the FreeBSD manual ??
(DIR) Post #AbXVchBh9ALFbTtfRQ by evilham@chaos.social
2023-11-06T18:47:51Z
0 likes, 0 repeats
@JustineSmithies Hey! Just tried both river (then didn't know how to exit!) and Hyprland and can run them.This is how:/etc/rc.conf contains seatd_enable=YESI export XDG_RUNTIME_DIR as a temporary directory that is no backed by ZFS (this is why: https://hub.darcs.net/raichoo/hikari/browse/README.md#41)I also export XDG_CURRENT_DESKTOP as the binary that I'm running.Then run:dbus-launch --exit-with-session "${GUI}"I am a member of these groups:MyOwn operator video u2f webcamd
(DIR) Post #AbXVciHl46mn0Zk1Wy by evilham@chaos.social
2023-11-06T18:49:32Z
0 likes, 0 repeats
@JustineSmithies You should also look into flags that enable more verbosity, in case there is an error that is more helpful.
(DIR) Post #AbXVcj5k4GlhVb7wRM by evilham@chaos.social
2023-11-06T18:51:54Z
0 likes, 0 repeats
@JustineSmithies Oh, and also:> River can either be run nested in an X11/Wayland session or directly from a tty using KMS/DRM. Simply run the river command.Does this work under e.g. sway?
(DIR) Post #AbXVck4MQtG2XbULvU by JustineSmithies@fosstodon.org
2023-11-06T19:01:28Z
0 likes, 0 repeats
@evilham Sway runs from the tty no issues.I vae XDG_RUNTIME_DIR=/var/run/user/`id -u` and I've setup tmpfs for /var/run but still river or Hyprland fail . River gives "No display in the first 33" for xwayland/sockets. Also No clients on seat0 to activate
(DIR) Post #AbXVckupHpE1AK2Fhg by JustineSmithies@fosstodon.org
2023-11-06T19:03:21Z
0 likes, 0 repeats
@evilham I also created /var/run/user/1001 and did the chown for the user and the chmod 0700 too as per FreeBSD docs
(DIR) Post #AbXVcl1Cu6KTU71LeK by JustineSmithies@fosstodon.org
2023-11-06T19:02:19Z
0 likes, 0 repeats
@evilham But if I run river from the tty as root it runs up fine.
(DIR) Post #AbXVclqbozRi3X4Olk by evilham@chaos.social
2023-11-06T19:06:18Z
0 likes, 0 repeats
@JustineSmithies have you tried starting river as:dbus-launch --exit-with-session river -log-level debug > /tmp/riverlogTo see if there is something more useful?Also: is polkit installed? (pkg info polkit)
(DIR) Post #AbXVcmdWt6ZsVFxT1M by JustineSmithies@fosstodon.org
2023-11-06T19:11:07Z
0 likes, 0 repeats
@evilham Cannot create /tmp/riverlog permission denied
(DIR) Post #AbXVcnQnvtzcy50opE by evilham@chaos.social
2023-11-06T19:14:41Z
0 likes, 0 repeats
@JustineSmithies nice! Soooo, how do the permissins for `/tmp` look like? is it backed by ZFS's tmp dataset? or is it a tmpfs?
(DIR) Post #AbXVcoJ2gFNVgIO8Mi by JustineSmithies@fosstodon.org
2023-11-06T19:16:29Z
0 likes, 0 repeats
@evilham ?? If i ls -ld /tmp i get: frwx------ 11 root wheel 14 nov 6 19:11 /tmp
(DIR) Post #AbXVcozE9P7dn87p7Q by evilham@chaos.social
2023-11-06T19:18:33Z
0 likes, 0 repeats
@JustineSmithies great, so your user doesn't have permissions there! (try with your user mkdir /tmp/test)That's probably the issue, are you sure it's a temporary file system? (mount -l should say something like tmpfs)The permissions should probably look like this: drwxrwxrwt
(DIR) Post #AbXVcpkNK6pu9MBTbk by JustineSmithies@fosstodon.org
2023-11-06T19:21:26Z
0 likes, 0 repeats
@evilham If I enter mount -l I see tmpfs on /tmp (tmpfs, local)but further down I also see zroot/tmp on /tmp ( zfs, local, noatime, noexec, nosuid, nfsv4acls)
(DIR) Post #AbXVcqRyhziMKaaIZU by JustineSmithies@fosstodon.org
2023-11-06T19:22:54Z
0 likes, 0 repeats
@evilham Also in my /etc/fstab I havetmpfs /tmp tmpfs rw,mode=0177 0 0
(DIR) Post #AbXVcr9E7CJEUiopyy by feld@bikeshed.party
2023-11-06T19:29:44.201683Z
0 likes, 0 repeats
@JustineSmithies @evilham the mode here is probably supposed to be 1777rwxrwxrwx with a sticky bit for the directory