WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: logout tty1 after X is running  (Read 1671 times)

Offline xpector

  • Newbie
  • *
  • Posts: 16
logout tty1 after X is running
« on: June 27, 2017, 02: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.

Offline xpector

  • Newbie
  • *
  • Posts: 16
Re: logout tty1 after X is running
« Reply #1 on: June 29, 2017, 07: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.