You are not logged in.

#1 2015-12-31 15:40:37

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Startx fails - xinit Connection to x server refused

when I type start x it says:

xserverrc sucess
then xinit to xserver : connection refused.

Offline

#2 2015-12-31 15:43:57

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Startx fails - xinit Connection to x server refused

Post the content of ~/.xinitrc

What's in the journal?


Jin, Jîyan, Azadî

Offline

#3 2015-12-31 15:46:35

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Startx fails - xinit Connection to x server refused

Contents of ~/.xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

source /etc/profile

#gsettings-data-convert &
#xdg-user-dirs-gtk-update &
#/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
#/usr/lib/gnome-settings-daemon/gnome-settings-daemon &
#/usr/lib/gnome-user-share/gnome-user-share &
#eval $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
#export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO SSH_AUTH_SOCK
#exec cerbere
#exec dbus-launch gala & 
#gala &
#exec cerbere
#cerbere &
#exec gala

#exec dbus-launch enlightenment_start
#~/.devilspie/flash-fullscreen-chrome.ds
exec enlightenment_start
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
# exec xterm
#export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
#tint2 &
#exec openbox-session
#openbox-session &
#cerbere

journalctl -b shows no obvious errors

I have also just tried xterm instead of enlightenment and that doesn't work with same error.

Last edited by svalmont (2015-12-31 15:47:29)

Offline

#4 2015-12-31 15:48:50

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Startx fails - xinit Connection to x server refused

Have you tried the other window managers?
EDIT: Yes hmm

If this is a fresh installation, please describe in detail the configuration steps taken so far.

Also, isn't `source` a bashism? EDIT2: Sorry, irrelevant.

Last edited by Head_on_a_Stick (2015-12-31 15:51:22)


Jin, Jîyan, Azadî

Offline

#5 2015-12-31 15:52:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: Startx fails - xinit Connection to x server refused

xinit is run by bash, so that's fine.  No shebang is needed in ~/.xinitrc, so that initial #!/bin/sh is simply ignored as a comment.

Svalmont, can you please post the exact command you used and the exact output you receive.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2015-12-31 15:53:08

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Startx fails - xinit Connection to x server refused

svalmont wrote:

journalctl -b shows no obvious errors

https://bbs.archlinux.org/viewtopic.php?id=57855


Jin, Jîyan, Azadî

Offline

#7 2015-12-31 16:39:42

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Startx fails - xinit Connection to x server refused

This is not a fresh install.

Exact command, exact response:

startx

/etc/X11/xinit/xserverrc line 2: /usr/bin/x : success

xinit: giving up
xinit: unable to connect to Xserver : connection refused
xinit: server error

Posting the entire result of journalctl -b would be gigantic

Last edited by svalmont (2015-12-31 17:30:21)

Offline

#8 2015-12-31 16:42:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: Startx fails - xinit Connection to x server refused

That first line looks odd - can you post the content of /etc/X11/xinit/xserverrc

There is no such thing as /sbin/x


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2015-12-31 17:30:07

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Startx fails - xinit Connection to x server refused

Sorry, type error on my part.  Sorry /usr/bin/x not /sbin/x

Here is the .xserverrc:

#!/bin/sh
exec /usr/bin/X -nolisten tcp "$@"

Offline

Board footer

Powered by FluxBB