1 |
On 2/7/21 11:38 AM, thelma@×××××××××××.com wrote: |
2 |
> On 2/7/21 12:26 PM, Neil Bothwick wrote: |
3 |
>> On Sun, 7 Feb 2021 12:10:50 -0700, thelma@×××××××××××.com wrote: |
4 |
>> |
5 |
>>> On 2/7/21 4:09 AM, Neil Bothwick wrote: |
6 |
>>>> On Sun, 7 Feb 2021 01:28:39 -0700, thelma@×××××××××××.com wrote: |
7 |
>>>> |
8 |
>>>>> I disable "slim" login manager and try not to use any display manger |
9 |
>>>>> (for simplicity). I start X from: |
10 |
>>>>> |
11 |
>>>>> ~/.bash_profile |
12 |
>>>>> exec startx -- vt1 |
13 |
>>>>> |
14 |
>>>>> but now when I try to ssh as user, I get: |
15 |
>>>>> |
16 |
>>>>> (==) Using system config directory "/usr/share/X11/xorg.conf.d" |
17 |
>>>>> (EE) |
18 |
>>>>> Fatal server error: |
19 |
>>>>> (EE) xf86OpenConsole: Cannot open virtual console 1 (Permission |
20 |
>>>>> denied) |
21 |
>>>> |
22 |
>>>> Of course you are, because you are still trying to start X. If you |
23 |
>>>> must start X from .bash_profile, you need something like |
24 |
>>>> |
25 |
>>>> [ -z "$SSH_TTY" ] && startx ... |
26 |
>>>> |
27 |
>>>> to only start it when not using SSH. |
28 |
>>> |
29 |
>>> What do you suggest? |
30 |
>>> I was planning to get away from "slim" as I think it is getting more |
31 |
>>> unstable; I just need a simple system to start X, log-in over ssh and |
32 |
>>> use x2go session. |
33 |
>> |
34 |
>> Why do you need to start X, doesn't x2go run its own X session? You are |
35 |
>> trying to start X in an SSH session, which is what gives your error. The |
36 |
>> line I suggested runs startx only if you are not logging in via SSH. No |
37 |
>> display manager is involved. |
38 |
> |
39 |
> Maybe I wasn't clear. No, I don't start any X over ssh. |
40 |
> |
41 |
> When I'm directly in front of the PC and I have a log-in screen and type user ID + passwords |
42 |
> I was under impression that "startxfce4" would run automatically when from .xinitrc |
43 |
> ~/.xinitrc |
44 |
> exec startxfce4 |
45 |
> |
46 |
> but it doesn't, when I log-in the XFCE4 is not starting automatically, I have to type manually: startxfce4 |
47 |
> |
48 |
I see you have already solved your problem. But it bears mentioning: |
49 |
.xinitrc is executed by runing `startx`, not by the login shell. |