public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] xf86OpenConsole: Cannot open virtual console 1 (Permission denied)
Date: Sun, 7 Feb 2021 19:26:02 +0000	[thread overview]
Message-ID: <20210207192602.1813b992@digimed.co.uk> (raw)
In-Reply-To: <96830d1b-efb2-030e-9335-3cecd1bdc75b@sys-concept.com>

[-- Attachment #1: Type: text/plain, Size: 1380 bytes --]

On Sun, 7 Feb 2021 12:10:50 -0700, thelma@sys-concept.com wrote:

> On 2/7/21 4:09 AM, Neil Bothwick wrote:
> > On Sun, 7 Feb 2021 01:28:39 -0700, thelma@sys-concept.com wrote:
> >   
> >> I disable "slim" login manager and try not to use any display manger
> >> (for simplicity). I start X from:
> >>
> >>  ~/.bash_profile 
> >> exec startx -- vt1
> >>
> >> but now when I try to ssh as user, I get:
> >>
> >> (==) Using system config directory "/usr/share/X11/xorg.conf.d"
> >> (EE) 
> >> Fatal server error:
> >> (EE) xf86OpenConsole: Cannot open virtual console 1 (Permission
> >> denied) 
> > 
> > Of course you are, because you are still trying to start X. If you
> > must start X from .bash_profile, you need something like
> > 
> > [ -z "$SSH_TTY" ] && startx ...
> > 
> > to only start it when not using SSH.  
> 
> What do you suggest?
> I was planning to get away from "slim" as I think it is getting more
> unstable; I just need a simple system to start X, log-in over ssh and
> use x2go session.

Why do you need to start X, doesn't x2go run its own X session? You are
trying to start X in an SSH session, which is what gives your error. The
line I suggested runs startx only if you are not logging in via SSH. No
display manager is involved.
 

-- 
Neil Bothwick

If you got the words it does not mean you got the knowledge.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2021-02-07 19:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-07  8:28 [gentoo-user] xf86OpenConsole: Cannot open virtual console 1 (Permission denied) thelma
2021-02-07 11:09 ` Neil Bothwick
2021-02-07 19:10   ` thelma
2021-02-07 19:26     ` Neil Bothwick [this message]
2021-02-07 19:38       ` thelma
2021-02-07 20:14         ` Neil Bothwick
2021-02-07 21:01           ` thelma
2021-02-07 21:04             ` Neil Bothwick
2021-02-09  4:44         ` cal
2021-02-09  4:59           ` thelma
2021-02-10  1:04             ` thelma
2021-02-10  4:56               ` cal
2021-02-10 13:35           ` antlists
2021-02-10 14:48             ` [gentoo-user] " Grant Edwards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210207192602.1813b992@digimed.co.uk \
    --to=neil@digimed.co.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox