2

I'm trying to start the gui on raspbian jessie on a pi 3, using the startx command. I get back an error like this:

Fatal server error:
Could not create lock file in /tmp/.tX0-lock

and

xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
xauth:  error in locking authority file /home/pi/.Xauthority

I'm quite new to Linux and don't know how to proceed from here. It seems that my /tmp dir is read-only as touch /tmp/test returns a message saying that, but if that's the problem I don't know the workaround. Thank you.

anvoice
  • 141
  • 1
  • 4

1 Answers1

1

In my case, the following command worked to launch X:

sudo mount -o remount, rw /

If I understand correctly, this gave X access to the /tmp directory that it wanted. Before the filesystem was read-only. Now tty7 is running the desktop properly.

anvoice
  • 141
  • 1
  • 4