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 21:04:37 +0000	[thread overview]
Message-ID: <20210207210437.1924be41@digimed.co.uk> (raw)
In-Reply-To: <42b90833-e5ef-736d-b52f-1f54e1aafdb3@sys-concept.com>

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

On Sun, 7 Feb 2021 14:01:57 -0700, thelma@sys-concept.com wrote:

> >>>>> [ -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.    
> >>  
> >> Maybe I wasn't clear.  No, I don't start any X over ssh.  
> > 
> > But you do, because you run it from .bash_profile whenever you login.
> > That's why I suggested an alternative command that wouldn't do that.  
> 
> OK, according to Gentoo-wiki:
> https://wiki.gentoo.org/wiki/Start_X_on_login
> 
>  ~/.bash_profile
> if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi
> The above command works.

It is effectively the same as the one I suggested right at the start of
this thread.


-- 
Neil Bothwick

Windows95 - crash compatible on Windows 3.x

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

  reply	other threads:[~2021-02-07 21:04 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
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 [this message]
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=20210207210437.1924be41@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