CwF wrote:how does one log off
Code: Select all
# systemctl stop getty@ttyX
CwF wrote:how does one log off
Code: Select all
# systemctl stop getty@ttyX
Thanks for the input, but clarify if that logs off or kills (as in crashes) that desktop, since I would be in another tty and that desktop is not logged off.Head_on_a_Stick wrote:# systemctl
Code: Select all
bash -c "sleep 15 && xfce4-session-logout --logout && systemctl stop getty@tty2"
LMFrigAO, been using FF since there's been a FF and never heard of this, Caret browsing ? Wth ?Funny some weird thing I just found in FF, it's called Caret browsing, you press F7 to turn it off/on and it looks like it's some kind of keyboard mouse, says puts movable cursor in webpgs and allows someone to select text with the keyboard.
The only way I could think of to do that would be to add the systemctl command to a script then allow the user to run that script (and no other commands) with sudo.CwF wrote:for 'from that user'
Dang it pointless speculation follows anyway. To be honest of course I have no over-riding desire to help a nixer debug some exotic configuration they've hobbled together and that has nothing much to do with autologin/startx with no display manager ...
My understanding gnu/Linux was always intended to be a multi-user/multi-seat operating system. In absence of anything solid to have the slightest idea how you've set things up on the OS CwF, thought is create different users for this, with different uid's/gid's, home directories and all the normal configuration files they would have and use those on these tty's, so that when the user(s) are logged into them(whichever tty's), then X is started automatically and the web-browser you want is too. Then should be no problem to cleanly log them out of any tty's, shouldn't-wouldn't matter how the OS is started with or w/o a display mananger etc etc. Once it's up, none of that should have any effect on the kind of multi-user setup I've outlined above. When the OS is up, it's up. Users can login and out wherever/whenever on the system as expected and it all works predictably.
Ya, there is no sudo.Head_on_a_Stick wrote:with sudo
Code: Select all
#systemctl edit getty@tty2
------------
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin simpleton --noclear %I $TERM
------------
append /home/simpleton/.profile:
------------
[ "$(tty)" = "/dev/tty2" ] && exec startx
------------