Solved cannot start x window

I get errors:
Code:
xinit: giving up
xinit: unable to connect to x server: connection refused
xinit: server error
xauth: file /root/.xauthority does not exist
xauth: bad didplay name /unix:0 in remove command
xauth: bad display name 0 in remove command
 
What happens if you try as non-root user?

You'll also need to supply a lot more information - what version of FreeBSD, what hardware, what exactly are you doing to get those messages, etc.
 
Welcome to FreeBSD Forums.

What's the graphics card? Or is this a virtual machine?

Code:
xauth: bad didplay name /unix:0 in remove command

That's extraordinary. (A typing error, maybe? Share a photograph, if you prefer.)

Did you attempt to configure X.Org manually? (Doing so is often unnecessary.)

Which version of FreeBSD, exactly?

freebsd-version -kru ; uname -aKU

For GNOME, what guidance are you following? The address of the web page(s) will help; if (as a new member) you can not post a link, then please give the exact title of the page(s).

Thanks
 
Hi unicorn Welcome to the world of FreeBSD.
Please provide more information about what you did.
What's the version of your FreeBSD? What's inside ~/.xinitrc‍‍ ?
Have you created a normal user and added in /usr/local/etc/sudoers ?
 
Hi,I use 13-reslease.I follow the instruction on chinafreebsd.cn.

I try to install it to my external disk.First time it works OK,but when I try to install mate and slim,it suddenly became unuseable,desktop turns into blank.So I try to install it a second time,and this time I get such error.
 
first time I did't use .xinitrc.I don't know what I should write.

I try to install 14-current,but after reboot,I get errors:all blocks unavailable,disk has I/O errors something like that.And I reinstall 13,the same.
 
When I install freebsd to my external disk,my internal disk is also formatted.Why it need my internal disk?
 
… I did't use .xinitrc.I don't know what I should write. …

If you choose SDDM as your display manager, then (on FreeBSD, for simplicity) it is designed to not require ~/.xinitrc

x11/sddm

… instruction on chinafreebsd.cn. …

Instructions there are outdated.

HAL died (was removed from the ports collection) many months ago.

When I install freebsd to my external disk,my internal disk is also formatted. …

This should not happen. Please take care when performing the installation.

The FreeBSD Handbook might not have an example of the type of dialogue that appears:

1647338486260.png


With your real machine, you should see at least two listings, one of which will be for the external disk. The external might be da0.

If in doubt, please share a photograph.
 
Last edited:
I have another disk. I'll try to install on it. I'll update when I finish my installation.
 
I cannot boot to login,only black screen a few sconds and then reboot.

At the FreeBSD loader menu, pictured below, option 2 will boot the operating system in single user mode, with no password required.

1647264286351.png

When there appears a prompt to choose a shell, you can key Return or Enter to accept the default shell.

In single user mode, which is very basic, an unexpected reboot is unlikely. You should be able to run the command:

freebsd-version -kru ; uname -aKU



I only pkg install drm-kmod,
I don't run pkg install graphics/drm-kmod

That is OK.

For this 'port', the two commands are equivalent to each other. Here they are:

<https://www.freshports.org/graphics/drm-kmod/#add>

Running either one of the two is good.
 
13.0-release

freebsd 13.0-release freebsd 13.0-release #0 releng/13.0-n244733-ea31abc261f; root@releng1.nyi.frrebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1300139 1300139

Thank you. The operating system is fresh, but outdated.

Whilst still in single user mode, try these six commands:
  1. mount -uw /
  2. zfs mount -a
  3. service syslogd start
  4. /etc/netstart
  5. freebsd-update fetch install
  6. shutdown -r now
If the update succeeds, and if an unexpected reboot does not occur, then freebsd-version -kru should result in 13.0-RELEASE-p7 three times.
 
mount -uw / operation not permitted.

I want to install 14,but can not install pkg.Should I try 13.1?
 
Back
Top