How do I enter the terminal without going into the desktop environment?

Hey guys, I am a newcomer to FreeBSD and Unix in general so sorry if this stuff seems trivial.

After installing FreeBSD I proceeded to install Xorg and KDE on it. I edited the files as written in the handbook and rebooted the PC.
It got me to the login screen but after that it gave out an error that said
Code:
Warning: Cannot open ConsoleKit session: Unable to open session: Failed to connect to socket var/run/dbus/system_bus_socket: No such file or directory
Could not start D-Bus. Can you call qdbus?
and then just goes back to the login screen.

If I try to go to the terminal from there using ctl-alt-f1 the colors on the screen become distorted and nothing happens, but if I press ctl-alt-f9 it goes back to the normal login screen.

My question is: how can I access the regular terminal before Xorg/KDE boots up?
 
Boot up the FreeBSD DVD and drop into shell. Then comment out the display manager in your rc.conf file so it won't initialize first on boot. After that, you should get a prompt to log in into your shell user account after rebooting again.
 
Boot to single user mode. Then depending on your filesystem you do the following:

ZFS:
Code:
zfs mount -a
zfs set readonly=off zpool
(Replace zpool with the name of your pool)

For UFS:
Code:
fsck -yp
mount -u /
mount -a

After that you can edit /etc/rc.conf.
 
Boot up the FreeBSD DVD and drop into shell. Then comment out the display manager in your rc.conf file so it won't initialize first on boot. After that, you should get a prompt to log in into your shell user account after rebooting again.
Which one should I comment? Below is my rc.conf file
Just install xfce to try but now default login is slim not terminal as original. Please help, thank you

hostname="fbsdaf"
ifconfig_alc0="DHCP"
ifconfig_alc0_ipv6="inet6 accept_rtadv"
local_unbound_enable="YES"
sshd_enable="YES"
moused_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
dbus_enable="YES"
#hald_enable="YES"
slim_enable="YES"
sound_load="YES"
snd_hda_load="YES"
webmin_enable="YES"
kld_list="i915kms nvidia-modeset nvidia"
linux_enable="YES"
 
The slim_enable line. It's referring to your display manager.
The original thread is from 8 years ago, in case you missed that, but I guess some issues keep happening.
Anyway, commenting out that line should bring you to a command prompt after a reboot.
 
Back
Top