Solved startx doesn't work and display a black screen

VirtualBox (Version 6.1.32)

Welcome to FreeBSD Forums.

If you like:
  1. start afresh, prefer VBoxSVGA, install FreeBSD 13.1-RELEASE
  2. follow the freebsd-update(8) routine, including restarts, to update the operating system
  3. when the OS is up-to-date, enter the (long) command below.
time pkg install --quiet --yes kde5 sddm virtualbox-ose-additions xorg && sysrc dbus_enable="YES" && sysrc sddm_enable="YES" && sysrc vboxguest_enable="YES" && sysrc vboxservice_enable="YES" && service dbus start && service vboxguest start && service vboxservice start && service sddm start

After entering the command, you'll see this:

1647736754303.png

– and eventually, this:

1647738393876.png



Hints

To get the long command above on a cleared screen, after installing and updating FreeBSD alone (without a desktop environment):
  • cd /tmp && fetch --quiet -1 https://pastebin.com/raw/cmgcSL7h && clear ; cat cmgcSL7h
– or:
  • cd /tmp
  • fetch --quiet -1 https://pastebin.com/raw/cmgcSL7h
  • clear
  • cat cmgcSL7h
– then you can manually copy type what's on screen.

Do not accept the Plasma (Wayland) default that's presented by SDDM. Use the menu to select the other Plasma option, here's a screenshot from January 2021:

1654916214273.png

If you need a good introduction to FreeBSD without a desktop environment, an intro that is not too long:
 
Last edited:
When I type :

service vboxguest start

I get :

KLD vboxguest.ko: depends on kernel - not available or version mismatch linker_load_file: /boot/modules/vboxguest.ko - unsupported file type
/usr/local/etc/rc.d/vboxguest: WARNING: Can’t load vboxguest module.


And when I type :

service vboxservice start

I get :

VBoxService : error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND
/usr/local/etc/rc.d/vboxservice: WARNING: failed to start vboxservice


And I still boot on a black screen. :confused:[/CMD]
 
Back
Top