SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-05-28 11:21:04

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

[SOLVED] Disable a few tty's

[Unit]
Description=getty on tty2-tty6 if dbus and logind are not available
ConditionPathExists=/dev/tty2
ConditionPathExists=!/lib/systemd/system/dbus.service

[Service]
Type=oneshot
ExecStart=/bin/systemctl --no-block start getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service
RemainAfterExit=true

Last edited by Nili (2015-05-28 13:29:22)

Offline

Be excellent to each other!

#2 2015-05-28 12:43:42

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: [SOLVED] Disable a few tty's

ACTIVE_CONSOLES="/dev/tty[1-6]"

Last edited by PackRat (2015-05-28 12:46:32)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#3 2015-05-28 13:29:06

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: [SOLVED] Disable a few tty's

[Login]
NAutoVTs=2
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes

Offline

#4 2015-05-28 13:45:03

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: [SOLVED] Disable a few tty's

Excellent, I'll have to try this.


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#5 2015-05-28 14:21:46

Inodoro Pereyra
#! Die Hard
From: Back in Buenos Aires
Registered: 2013-07-01
Posts: 844

Re: [SOLVED] Disable a few tty's

Hmmm... just out of curiosity, what's the advantage?  hmm

Offline

#6 2015-05-28 14:33:15

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: [SOLVED] Disable a few tty's

Saving a few kilobytes smile also an early fixation  tongue

Offline

#7 2015-05-28 14:57:57

Inodoro Pereyra
#! Die Hard
From: Back in Buenos Aires
Registered: 2013-07-01
Posts: 844

Re: [SOLVED] Disable a few tty's

^ Oh, ok. Thanks Nili. big_smile

Offline

#8 2015-05-28 16:32:11

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: [SOLVED] Disable a few tty's


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#9 2015-05-28 18:29:19

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: [SOLVED] Disable a few tty's

Didn't know security reason, good to know PackRat  wink

Offline

#10 2015-05-28 18:43:38

Inodoro Pereyra
#! Die Hard
From: Back in Buenos Aires
Registered: 2013-07-01
Posts: 844

Re: [SOLVED] Disable a few tty's

Thank you PackRat. big_smile
Could you elaborate? Security against what?

Offline

#11 2015-05-28 20:57:32

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: [SOLVED] Disable a few tty's

Offline

#12 2015-05-28 21:19:00

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: [SOLVED] Disable a few tty's

Offline

#13 2015-05-29 00:52:46

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: [SOLVED] Disable a few tty's

Last edited by PackRat (2015-05-29 00:53:40)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo