WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Recent Posts

Pages: 1 ... 5 6 [7] 8 9 10
61
TCE Bugs / Re: seatd & copy2fs.flg
« Last post by aus9 on January 26, 2026, 05:24:50 PM »
Rich
my bad that not how I made it ....it reads
Quote
#!/bin/sh
# make SUID
SRC=/usr/local/share/seatd/files
FILE1=/usr/local/bin/seatd
FILE2=/usr/local/bin/seatd-launch
[ -f $FILE1 ] || cp $SRC/seatd        /usr/local/bin
[ -f $FILE2 ] || cp $SRC/seatd-launch /usr/local/bin
chmod a+s /usr/local/bin/seatd*
62
TCE Bugs / Re: seatd & copy2fs.flg
« Last post by M-A-X on January 26, 2026, 11:30:56 AM »
Is it really required to assign SUID permissions to seatd?

As we have seen this method in the seatd installation script (replacing the symlink with a regular executable file) has potential for bugs.
Furthermore it basically does not agree with the core philosophy for extensions:
 => Mount Mode = Symlinks in rootfs to the mounted TCLOOP
 => Copy Mode= Regular Files in rootfs

I believe most linux users (including me) would not mind typing "sudo seatd ..." to start the program.
63
TCE Bugs / Re: seatd & copy2fs.flg
« Last post by Rich on January 26, 2026, 10:45:50 AM »
Hi aus9
... How do I prove I am on copy2fs without screenshotting my Apps that shows some "installation options" ...
If you:
Code: [Select]
touch /etc/sysconf/tcedir/copy2fs.flgand then reboot, the contents of all of your extensions get copied
to RAM instead of being loop mounted with links to the file system.

So it you then:
Code: [Select]
ls /tmp/tcloop/seatdyou should see:
Code: [Select]
ls: cannot access '/tmp/tcloop/seatd': No such file or directory
To restore you system to mount mode, delete  /etc/sysconf/tcedir/copy2fs.flg
and reboot.
64
TCE Bugs / Re: seatd & copy2fs.flg
« Last post by Rich on January 26, 2026, 10:31:27 AM »
Hi aus9
... How about I change your -d test to something like this? ...
Quote
----- Snip -----
[ -d "$LOOP" ] || rm -rf /usr/local/bin/seatd* && cp $LOOP/seatd* /usr/local/bin
 ----- Snip -----
...
That doesn't look right. If the directory exists, you want to execute the
next 2 commands. That means it would look like this:
Code: [Select]
[ -d "$LOOP" ] && rm -rf /usr/local/bin/seatd* && cp $LOOP/seatd* /usr/local/bin
I'll demonstrate. We'll create a Loop variable, 3 file names, use  ls  instead of  rm
and  echo  instead of  cp:
Code: [Select]
tc@E310:~/Test$ Loop="/home/tc/.local/bin"
tc@E310:~/Test$ touch x1 x2 x3
tc@E310:~/Test$ [ -d "$Loop" ] || ls x* && echo "Copy"
Copy
tc@E310:~/Test$
It skipped the first command and only executed the second command.

Lets try it the other way:
Code: [Select]
tc@E310:~/Test$ [ -d "$Loop" ] && ls x* && echo "Copy"
x1  x2  x3
Copy
tc@E310:~/Test$
It executed both commands.

Here's another thing to watch out for when chaining commands like this.
What happens if the first command fails:
Code: [Select]
tc@E310:~/Test$ [ -d "$Loop" ] && ls y* && echo "Copy"
ls: cannot access 'y*': No such file or directory
tc@E310:~/Test$
The  ls  command fails so the  echo  command never runs.

By the way, this happens if the directory does not exist:
Code: [Select]
tc@E310:~/Test$ Loop2="/home/tc/.local/bin2"
tc@E310:~/Test$ [ -d "$Loop2" ] || ls x* && echo "Copy"
x1  x2  x3
Copy
tc@E310:~/Test$
It executes both commands, which is the opposite of what you want.

I usually take the  if [ TEST ]; then Commands; fi  approach because it's
harder to mess up. On occasions I do chain commands, I first create test
cases like above using harmless  ls  and  echo  commands to make sure
I got it right.
65
TCE Bugs / Re: seatd & copy2fs.flg
« Last post by aus9 on January 26, 2026, 07:08:55 AM »
Ok I found 2 "working with less typing commands" ...I tried in my ~/.local/bin/west
last lines are
Code: [Select]
$ seatd-launch weston # (about 20 keystrokes) BUT I use a dbus session I prefer
$ seatd-launch dbus-run-session weston # (about 36 keystrokes)

 and this is what I used while I am typing this. So comparing Apps method A =  $ sudo -- seatd -g staff -n /run/seatd.sock &  weston  (about 50 keystrokes) (adding dbus-run-session > 60 keystrokes)

The first part of the explanation is this command is SUID so can drop sudo as we are temporary root, no need to mention the group staff because we are still temp root. We can drop the command to create a new seat as its a seat management system so of course it will create a seat
66
TCE Bugs / Re: seatd & copy2fs.flg
« Last post by aus9 on January 26, 2026, 05:43:27 AM »
@M-A-X
ok first rebuild a failure. second build looks ok typing on weston using seatd-launch as I need dbus stuff

How do I prove I am on copy2fs without screenshotting my Apps that shows some "installation options"
ie what command do I use please? env if interested
Code: [Select]
HOME=/home/tc
PAGER=less -EM
PS1=\u@\h:\w\$
ENV=/home/tc/.ashrc
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-DGC1zz4k6E,guid=b554889a9be6be73003
3cfc8697749d8
BACKUP=1
COLORTERM=xterm
WAYLAND_DISPLAY=wayland-1
LOGNAME=tc
TERM=xterm
WESTON_CONFIG_FILE=
PATH=/home/tc/.local/bin:/home/tc/firefox:/usr/local/sbin:/usr/local/bin:/usr/sb
in:/usr/bin:/sbin:/bin
G_FILENAME_ENCODING=iso8859-1
XDG_RUNTIME_DIR=/run/user/1001
LANG=en_AU.UTF-8
MANPAGER=less -isR
SHELL=/bin/sh
FLWM_TITLEBAR_COLOR=58:7D:AA
PWD=/home/tc
TZ=Australia/Perth
EDITOR=vi
67
Release Candidate Testing / Re: Core v17.0beta1
« Last post by aus9 on January 26, 2026, 04:39:03 AM »
@Juanito
If interested ....had my first and so far only lock up during boot up on x86_64. I was in a bit of rush (yes my defining character ;)  but took a screenshot - rebooted and it failed to re-appear. Only then thinking maybe I should log it. Last few lines seem to be udev trying to settle an usb trackball with a certain brand.
image expires in 2 days. Yes I should have made it wider and then zoomed
https://i.postimg.cc/brPDzzW4/IMG-20260126-172107.png
68
TCE Bugs / Re: seatd & copy2fs.flg
« Last post by M-A-X on January 26, 2026, 04:00:50 AM »
... not sure which desktop you are using ...

I am using weston on core version 16.2

... so if I wanted to test my updated seatd....with whatever I build...where is this flag please? ...

It is simply an empty file with the name "copy2fs.flg" inside your TCE directory.
69
TCE Bugs / Re: seatd & copy2fs.flg
« Last post by aus9 on January 25, 2026, 10:19:58 PM »
member has blocked my attempt to send him a pm of a download link

@Rich
ok to post download link here?

its a tarball he will need to unpack etc
70
TCE Bugs / Re: seatd & copy2fs.flg
« Last post by aus9 on January 25, 2026, 10:10:06 PM »
tested in mount mode with persistent home on 17x....the 16x updated seatd v 0.9.2 is working as expected,
will wait now for OP to test copy 2 filesytem
Pages: 1 ... 5 6 [7] 8 9 10