Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] xf86OpenConsole: Cannot open virtual console 1 (Permission denied)
Date: Wed, 10 Feb 2021 01:04:40
Message-Id: 99143686-cf29-b627-b1e4-0ddac5587bcc@sys-concept.com
In Reply to: Re: [gentoo-user] xf86OpenConsole: Cannot open virtual console 1 (Permission denied) by thelma@sys-concept.com
1 On 2/8/21 9:59 PM, thelma@×××××××××××.com wrote:
2 > On 2/8/21 9:44 PM, cal wrote:
3 > [snip]
4 >>>
5 >>> When I'm directly in front of the PC and I have a log-in screen and type user ID + passwords
6 >>> I was under impression that "startxfce4" would run automatically when from .xinitrc
7 >>> ~/.xinitrc
8 >>> exec startxfce4
9 >>>
10 >>> but it doesn't, when I log-in the XFCE4 is not starting automatically, I have to type manually: startxfce4
11 >>>
12 >> I see you have already solved your problem.  But it bears mentioning: .xinitrc is executed by runing `startx`, not by the login shell.
13 >
14 > I see, so instead of going around and calling .xinitrc from .bash_profile
15 >
16 > why not call startxfce4 directly from .bash_profile
17 >
18 > Instead of:
19 > if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi
20 >
21 > start as:
22 > if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startxfce4; fi
23 >
24 > It should work.
25
26 With the above setup starting "startxfce4" from .bash_profile, I get an error when ssh:
27 "No xauth data; using fake authentication data for X11 forwarding."
28
29 This error does not show up when "startxfce4" is run from .xinitrc
30 I don't know what difference it makes how xfce4 is started.

Replies

Subject Author
Re: [gentoo-user] xf86OpenConsole: Cannot open virtual console 1 (Permission denied) cal <cal@×××××××××.technology>