X server already running on display :0

Polytropon freebsd at edvax.de
Sat Jul 21 18:30:16 UTC 2012

On Sat, 21 Jul 2012 18:24:26 +0200, Leslie Jensen wrote:
> I have a problem that I do not understand.
> At the prompt I give the command startx
> I get a message that /usr/local/bin/startxfce4 does not exist.

This means your ~/.xinitrc contains a call to launch Xfce 4,
typically the last command, prefixed by "exec", in that file.
It seems you don't have Xfce 4 installed.

> Copy the file from another system and I get
> X server already running on display :0
> /usr/local/etc/xdg/xfce4/xinitrc: Can't open 
> /usr/local/etc/xdg/xfce4/xinitrc: File or catalog does not exist
> I have not knowingly made any changes to this machine.

It's not sufficient to copy just this start script (out of
the Xfce 4 software package). You need to _completely_ install
it, including all dependencies. You can use "pkg_add -r" to
do this, or use the xfce metaport per "make install".

> Any suggestions?

Just install Xfce 4 in one of the usual ways.

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list