Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: xpector on June 27, 2017, 05:59:07 AM

Title: logout tty1 after X is running
Post by: xpector on June 27, 2017, 05:59:07 AM
I'm using piCore to create a (paranoid) vncviwer kiosk (in listening mode, also known as reverse mode). I'd like to keep the possibility to switch to tty1 with Ctrl-Alt-F1 (for eventual maintenance). However, it would be nice to see a login prompt there, as opposed to command prompt. How could I achieve this?

I tried replacing
Code: [Select]
startx in /home/tc/.profile with
Code: [Select]
(startx &
echo exit follows
exit
)
I see the echoed text in tty1, but also still the command prompt.

Simply adding
Code: [Select]
startx at the end of .profile file "helps" in the way that even a freshly opened ssh session ends immediately.
Title: Re: logout tty1 after X is running
Post by: xpector on June 29, 2017, 10:52:14 AM
Typo
---> Simply adding exit at the end of .profile file "helps" in the way that even a freshly opened ssh session ends immediately.