Xfce Exit XFCE4 to command prompt

oalanjones

New Member

Reaction score: 2
Messages: 5

I have FreeBSD 12.0-Release installed on my pc. I also have Slim and XFCE4 installed. I want to be able to completely quit XFCE4 and go to a command prompt. XFCE4 does not give an option to quit XFCE4 and exit to command prompt. I would prefer to have FreeBSD boot to command prompt only first and then type "startxfce4". But so far I have not been successful in getting everything configured properly. --Orv
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,680
Messages: 30,598

Fix your ~/.xinitrc and use startx to start XFCE. Also remove the slim_enable from rc.conf.

My ~/.xinitrc:
Code:
[ -f "${HOME}/.Xresources" ] && xrdb "${HOME}/.Xresources"

# This is for SLiM:
[ -n "$1" ] && [ -x "$1" ] && exec $1

# This is for startx ($1 won't be set)
exec ck-launch-session dbus-launch startxfce4
 
OP
OP
oalanjones

oalanjones

New Member

Reaction score: 2
Messages: 5

Thanks for the help! I followed your instructions and now my pc boots to command prompt just like I wanted.
After I type "startx" I see the Slim wallpaper flash for a split second and then XFCE4 launches.
I commented out slim_enable in rc.conf
 

xtaz

Well-Known Member

Reaction score: 112
Messages: 416

If you want to continue to use slim then you can simply type "exit" into the box that asks for your username and it will exit back to the command prompt.

Other commands that you can type there are console (brings up an xterm), halt, reboot, and suspend.
 
Top