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 5C7E11382C5 for ; Sun, 7 Feb 2021 21:02:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D346AE08A2; Sun, 7 Feb 2021 21:02:15 +0000 (UTC) Received: from mail1104c7.megamailservers.com (mail119c7-2520.megamailservers.com [69.49.98.26]) (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 7A7C4E0825 for ; Sun, 7 Feb 2021 21:02:15 +0000 (UTC) X-Authenticated-User: admin@sys-concept.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.com; s=mailtor; t=1612731734; bh=CLqu85+bxBf9kUEvc890D8RcEeAUSqvEtGoZu6Xfyjg=; h=Subject:To:References:From:Date:In-Reply-To:From; b=mECycklqsMR88XjfIww1/JDDhdrNNBG/9fw7aId5GkIgBc+k0CgJ85a+GfLuikh+J vHblXXdhrYbH8jtrLP+1Y5YAPC0K2oNDbJI0P7NI3zuFA4QYlymAhPS0hqMfjqUh1c b3Y/nW7i2nTTFeHJWdnXpZntDW6zaoYvC5bpWJos= Feedback-ID:thelma@sys-conc X-VIP: 69.49.109.100 Received: from [10.0.0.109] 184.69.242.18":"3774 ([184.69.242.18]) (authenticated bits=0) by mail1104c7.megamailservers.com (8.14.9/8.13.1) with ESMTP id 117L2Ci6031134 for ; Sun, 7 Feb 2021 16:02:13 -0500 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> <20210207201423.61bc5a03@digimed.co.uk> From: thelma@sys-concept.com Message-ID: <42b90833-e5ef-736d-b52f-1f54e1aafdb3@sys-concept.com> Date: Sun, 7 Feb 2021 14:01:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 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: <20210207201423.61bc5a03@digimed.co.uk> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-CTCH-RefID: str=0001.0A742F26.60205556.0003:SCFSTAT54230205,ss=1,re=-4.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: -4.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=Ede2v8uC c=1 sm=1 tr=0 a=u3gW5Uk2xAGXuEgp5FffjQ==:117 a=u3gW5Uk2xAGXuEgp5FffjQ==:17 a=IkcTkHD0fZMA:10 a=046jbqsEAAAA:8 a=7mOBRU54AAAA:8 a=MdhnZB-GuDAW13I5CgoA:9 a=QEXdDO2ut3YA:10 a=bGzDz6Hpkc7_N_b525It:22 a=wa9RWnbW_A1YIeRBVszw:22 X-VADE-SPAMSTATE: clean X-VADE-SPAMSCORE: 0 X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrhedugddugeehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffquffvqffrkfetpdfqfgfvpdevtdejnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomhepthhhvghlmhgrsehshihsqdgtohhntggvphhtrdgtohhmnecuggftrfgrthhtvghrnhepkefhudegudffuedtueffhedtjeeufeduffdtgefftdevueevudevgfeiveehffefnecuffhomhgrihhnpehgvghnthhoohdrohhrghenucfkphepudekgedrieelrddvgedvrddukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedukeegrdeiledrvdegvddrudekpdhhvghloheplgdutddrtddrtddruddtlegnpdhmrghilhhfrhhomhepthhhvghlmhgrsehshihsqdgtohhntggvphhtrdgtohhmpdhrtghpthhtohepghgvnhhtohhoqdhushgvrheslhhishhtshdrghgvnhhtohhordhorhhg X-Origin-Country: CA X-Archives-Salt: 81c6bd16-0337-4373-88b0-9dc1d19b40d9 X-Archives-Hash: c14cbbfd7619c4183f5fb12a9ca88f37 On 2/7/21 1:14 PM, Neil Bothwick wrote: > On Sun, 7 Feb 2021 12:38:25 -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. > > 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. with: ~/.xinitrc exec startxfce4 Both ssh and x2go sessions (both: connect to local desktop and XFCE) work correctly.