From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CB7ED1382C5 for ; Tue, 9 Feb 2021 04:45:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A529E0969; Tue, 9 Feb 2021 04:44:54 +0000 (UTC) Received: from box.mail.meme.technology (box.mail.meme.technology [205.185.124.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C69F1E0950 for ; Tue, 9 Feb 2021 04:44:53 +0000 (UTC) Received: from authenticated-user (box.mail.meme.technology [205.185.124.102]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by box.mail.meme.technology (Postfix) with ESMTPSA id 7E6CCBC812 for ; Mon, 8 Feb 2021 20:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.meme.technology; s=mail; t=1612845891; bh=nbL/PrmK3bmvAYTY+R2Lqwb+R2ETyAIhTIw4KuFcSXs=; h=Subject:To:References:From:Date:In-Reply-To:From; b=N1z1bqlCSjcqR9EaEiJW8e0lSkPzB1R93p/vHBMy0KF1fNwK3aA9VBKyi3pBTT0L8 iE2TdaYmrMgXPxTDjTR/HWN65v27K5xsHkzFkYlXGf41gKHzZ1XgFJtGBu5ObvfK6O LVR2D2343HUCcK9CfdGsElpPkt7XpaI6kuKl8fPSmKRqR5D2KB0tFCpPJcRgj3MxpT lQlSyczzcCGBAdlf83AZJ6Uqt0Z0wjTOijNQA1Nw8DqHx3UYYaxkYK58AAp4iqOf39 vDQcSqrn59pxgJ0cZtlkQu/K4UHJpuZYposuxdsXdMHXi0ZpYgHBq1UGWrJH8az8Kw HclFfypZ9S6qg== Subject: Re: [gentoo-user] xf86OpenConsole: Cannot open virtual console 1 (Permission denied) To: gentoo-user@lists.gentoo.org References: <20210207110932.01ecffd7@digimed.co.uk> <96830d1b-efb2-030e-9335-3cecd1bdc75b@sys-concept.com> <20210207192602.1813b992@digimed.co.uk> From: cal Message-ID: Date: Mon, 8 Feb 2021 20:44:49 -0800 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Archives-Salt: 9a65d889-47b0-4d0b-81c1-4a54975bb2f5 X-Archives-Hash: 53f9fcd8e51b86bf37c0f9ed1820a40d On 2/7/21 11:38 AM, thelma@sys-concept.com wrote: > On 2/7/21 12:26 PM, Neil Bothwick wrote: >> 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. > > Maybe I wasn't clear. No, I don't start any X over ssh. > > When I'm directly in front of the PC and I have a log-in screen and type user ID + passwords > I was under impression that "startxfce4" would run automatically when from .xinitrc > ~/.xinitrc > exec startxfce4 > > but it doesn't, when I log-in the XFCE4 is not starting automatically, I have to type manually: startxfce4 > I see you have already solved your problem. But it bears mentioning: .xinitrc is executed by runing `startx`, not by the login shell.