Solved How to change to other desktops?(How to stop kde plasma from running in the beggining )

change the on to off in
/etc/ttys
Code:
ttyv8    "/usr/local/bin/xdm -nodaemon"    xterm    off secure
and comment out any X related lines in /etc/rc.conf
 
cat /etc/ttys
Code:
#
# $FreeBSD: releng/12.1/sbin/init/ttys.amd64 338454 2018-09-04 15:48:13Z brd $
#    @(#)ttys    5.1 (Berkeley) 4/17/89
#
# This file specifies various information about terminals on the system.
# It is used by several different programs.  Common entries for the
# various columns include:
#
# name  The name of the terminal device.
#
# getty The program to start running on the terminal.  Typically a
#       getty program, as the name implies.  Other common entries
#       include none, when no getty is needed, and xdm, to start the
#       X Window System.
#
# type The initial terminal type for this port.  For hardwired
#      terminal lines, this will contain the type of terminal used.
#      For virtual consoles, the correct type is typically xterm.
#      Other common values include dialup for incoming modem ports, and
#      unknown when the terminal type cannot be predetermined.
#
# status Must be on or off.  If on, init will run the getty program on
#        the specified port.  If the word "secure" appears, this tty
#        allows root login.
#
# name    getty                type    status        comments
#
# If console is marked "insecure", then init will ask for the root password
# when going to single-user mode.
console    none                unknown    off secure
#
ttyv0    "/usr/libexec/getty Pc"        xterm    onifexists secure
# Virtual terminals
ttyv1    "/usr/libexec/getty Pc"        xterm    onifexists secure
ttyv2    "/usr/libexec/getty Pc"        xterm    onifexists secure
ttyv3    "/usr/libexec/getty Pc"        xterm    onifexists secure
ttyv4    "/usr/libexec/getty Pc"        xterm    onifexists secure
ttyv5    "/usr/libexec/getty Pc"        xterm    onifexists secure
ttyv6    "/usr/libexec/getty Pc"        xterm    onifexists secure
ttyv7    "/usr/libexec/getty Pc"        xterm    onifexists secure
ttyv8    "/usr/local/bin/xdm -nodaemon"    xterm    off secure
# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
ttyu0    "/usr/libexec/getty 3wire"    vt100    onifconsole secure
ttyu1    "/usr/libexec/getty 3wire"    vt100    onifconsole secure
ttyu2    "/usr/libexec/getty 3wire"    vt100    onifconsole secure
ttyu3    "/usr/libexec/getty 3wire"    vt100    onifconsole secure
# Dumb console
dcons    "/usr/libexec/getty std.9600"    vt100    off secure
should I disable everything including but not limited to ttyu?
 
Last edited by a moderator:
No. Please, post your /etc/rc.conf content, or if you can't, delete(comment out) any lines like these:
Code:
dbus_enable="YES"
hald_enable="YES"
sddm_enable="YES"
gdm_enable="YES"
gnome_enable="YES"

and if for whatever reason it failed, rename these files to something else:
~/.xinitrc
~/.xsession
 
I don't see any xorg related command

cat rc.conf
Code:
hostname="localhost"
ifconfig_re0="DHCP"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
kld_list="/boot/modules/i915kms.ko"
dbus_enable="YES"
hald_enable="YES"
sddm_enable="YES"
snd_hda_load="YES"
 
Last edited by a moderator:
Remove snd_hda_load from /etc/rc.conf and put it in /boot/loader.conf (I don't think you need it at all)
/boot/loader.conf
Code:
snd_hda_load="YES"
and remove these lines from /etc/rc.conf
Code:
dbus_enable="YES"
hald_enable="YES"
sddm_enable="YES"
snd_hda_load="YES"
 
Also add thses three lines to /etc/rc.conf
Code:
ntpdate_enable="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
I hope none of those three lines are redundant. It doesn't hurt, but some clarification from other users is appreciated.
 
Also add thses three lines to /etc/rc.conf
Code:
ntpdate_enable="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
I hope none of those three lines are redundant. It doesn't hurt, but some clarification from other users is appreciated.
If your system does not run for days or weeks, you don't need a NTP daemon, it's enough to get the correct time once.
To safely edit your /etc/rc.conf (avoid typos), use sysrc(8), e.g.

# sysrc -v ntpd_enable
# sysrc -x ntpd_enable
# sysrc -d -x ntpd_sync_on_start
# sysrc ntpdate_enable=YES
# sysrc kld_load+=snd_hda
 
  • Like
Reactions: a6h
Back
Top