You are not logged in.

#1 2020-10-27 05:58:41

syscon
Member
Registered: 2020-10-26
Posts: 17

trying ssh to arch linux - get an error: X server already running

When I try to ssh to arch from another box I get an error:

ssh 10.0.0.122
Last login: Mon Oct 26 23:53:59 2020
/usr/bin/startxfce4: X server already running on display localhost:10.0
gpg-agent[1122]: WARNING: "--write-env-file" is an obsolete option - it has no effect
gpg-agent: a gpg-agent is already running - not starting a new one

(xfce4-session:1106): xfce4-session-WARNING **: 23:55:58.723: gpg-agent returned no PID in the variables

(xfce4-session:1106): xfce4-session-WARNING **: 23:55:58.725: xfsm_manager_load_session: Something wrong with /home/joseph/.cache/sessions/xfce4-session-localhost:10, Does it exist? Permissions issue?
xfwm4-Message: 23:55:58.881: Another Window Manager (Xfwm4) is already running on screen localhost:10.0
xfwm4-Message: 23:55:58.881: To replace the current window manager, try "--replace"

(xfwm4:1124): xfwm4-WARNING **: 23:55:58.881: Could not find a screen to manage, exiting

Offline

#2 2020-10-27 06:11:09

syscon
Member
Registered: 2020-10-26
Posts: 17

Re: trying ssh to arch linux - get an error: X server already running

I get the above error when I start xfce4 from .bash_profile
"exec startxfce4"

and I can not log-in into arch box over ssh from other computers.
When I start "xfce4" from command line there are no error messages and ssh login works OK

Offline

#3 2020-10-27 07:52:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,699

Re: trying ssh to arch linux - get an error: X server already running

That's not much of a surprise, is it?
Maybe don't run that unconditionally, https://wiki.archlinux.org/index.php/Xi … X_at_login

Offline

#4 2020-10-27 07:57:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,364

Re: trying ssh to arch linux - get an error: X server already running

Not a Networking issue, moving to NC

Offline

#5 2020-10-27 17:34:09

syscon
Member
Registered: 2020-10-26
Posts: 17

Re: trying ssh to arch linux - get an error: X server already running

Solved by installing:
pacman -S lightdm lightdm-gtk-greeter
systemctl enable lightdm

Offline

#6 2020-10-27 19:09:12

loqs
Member
Registered: 2014-03-06
Posts: 19,042

Re: trying ssh to arch linux - get an error: X server already running

Please remember to mark you thread as solved by editing the first post and prepending [SOLVED] to the title.
Please also do the same for https://bbs.archlinux.org/viewtopic.php?id=260227.

Offline

#7 2020-10-27 19:48:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,699

Re: trying ssh to arch linux - get an error: X server already running

Ftr: you fixed it by removing the "exec startxfce4" from your bash profile and dealt with that by resorting to a DM.

Offline

Board footer

Powered by FluxBB