Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] xf86OpenConsole: Cannot open virtual console 1 (Permission denied)
Date: Sun, 07 Feb 2021 11:09:47
Message-Id: 20210207110932.01ecffd7@digimed.co.uk
In Reply to: [gentoo-user] xf86OpenConsole: Cannot open virtual console 1 (Permission denied) by thelma@sys-concept.com
1 On Sun, 7 Feb 2021 01:28:39 -0700, thelma@×××××××××××.com wrote:
2
3 > I disable "slim" login manager and try not to use any display manger
4 > (for simplicity). I start X from:
5 >
6 > ~/.bash_profile
7 > exec startx -- vt1
8 >
9 > but now when I try to ssh as user, I get:
10 >
11 > (==) Using system config directory "/usr/share/X11/xorg.conf.d"
12 > (EE)
13 > Fatal server error:
14 > (EE) xf86OpenConsole: Cannot open virtual console 1 (Permission denied)
15 >
16
17 Of course you are, because you are still trying to start X. If you must
18 start X from .bash_profile, you need something like
19
20 [ -z "$SSH_TTY" ] && startx ...
21
22 to only start it when not using SSH.
23
24
25 --
26 Neil Bothwick
27
28 Mac screen message: "Like, dude, something went wrong."

Replies