kingspp / RPi-AUI

It is a basic introduction for Configuring Raspberry Pi
GNU General Public License v3.0
4 stars 2 forks source link

Terminate X server #8

Open pickfire opened 10 years ago

pickfire commented 10 years ago

Look at this and give a setting for terminating x server using localectl.

kingspp commented 10 years ago

ctrl+alt+backspace is an option. I shall implement soon

kingspp commented 9 years ago

Did you implement this?

pickfire commented 9 years ago

Haven't, I am not sure whether to put it in ~/.xinitrc as it may not work for those who set xinitrc in /etc/X11/xinit/xinitrc and it may interfere with other distribution as well, so I need to think of other method to setxkbmap -option terminate:ctrl_alt_bksp without using xinitrc such as using xmodmap or so on.

kingspp commented 9 years ago

Cron jobs.

pickfire commented 9 years ago

Cron jobs.

Based on my few years of experience on Linux. Using cron on something that need to be done once is a bit not appropriate but we should use alternative method such as shell login, x login, systemd deamon or a run it during boot.

kingspp commented 9 years ago

Systemd is a good choice too..

pickfire commented 9 years ago

Yeah, use systemd on boot by creating a systemd unit file but currently I have no idea how although I read the arch wiki about systemd.