Solved Run xfce4, fluxbox, windowmaker by choice

odin32

Member

Reaction score: 1
Messages: 24

Please tell me how to run xfce4, fluxbox, windowmaker by choice.
freebsd 12.2-release system, slim window manager
 

Alexander88207

Aspiring Daemon

Reaction score: 423
Messages: 644

Create an .xinitrc in your $HOME

For:

XFCE: exec startxfce4
fluxbox: exec fluxbox
windowmaker: exec wmaker
 

eternal_noob

Aspiring Daemon

Reaction score: 411
Messages: 637

I think he wants a graphical login manager which can switch between desktops with a mouse click. I believe x11/sddm can do this.
 

Alexander88207

Aspiring Daemon

Reaction score: 423
Messages: 644

AFAIK, wasn't it possible to switch between the /usr/local/share/xsessions by pressing F1? (If the WM or DE creates such a file ofc)
 
OP
O

odin32

Member

Reaction score: 1
Messages: 24

1. As advised by good people, I create a file in the user's home folder # vi /usr/home/clios/.xinitrc of such content:
#!/bin/sh exec startxfce4 exec fluxbox exec wmaker
2. Installing the graphical login manager # pkg install x11/sddm
3. Edit the file # vi /etc/ttys, the 8th terminal
ttyv8 "/usr/local/bin/sddm -nodaemon" cons25r on secure
4. # kill -HUP 1
4.1 # echo 'sddm_enable="YES"' >> /etc/rc.conf
delete the slim line in /etc/rc.conf
5. # service sddm restart
6. When starting sddm, enter the user password: XXXXXXXXXX

Special thanks to the masters: Alexander8820, eternal_noob
 

Alexander88207

Aspiring Daemon

Reaction score: 423
Messages: 644

1. As advised by good people, I create a file in the user's home folder # vi /usr/home/clios/.xinitrc of such content:

This was only meant for slim and you should take only one WM/DE.

Because you use sddm you can drop the file /usr/home/clios/.xinitrc because sddm loads the sessions nicely from /usr/local/share/xsessions automatically.

Please do not forget to mark your topic as "done" by editing your first post and putting a "solved" prefix in the heading :)
 

jmos

Well-Known Member

Reaction score: 186
Messages: 254

To select a window manager or desktop environment take a look on the port x11-wm/selectwm - it's especially for that use case; You just use selectwm as "window manager", and after a login you can choose the desired environment. You can also set a default, which starts after X seconds (configurable). So there's no special login manager needed, this works graphical on the user side.
 
Top