FreeBSD with wayland (only), wayfire, and a graphical login

My request for help is a bit generic and perhaps goes beyond FreeBSD. I installed FreeBSD 14.1 and use it perfectly with only wayland and wayfire. I had some problems with the audio settings but I overcame them with the help of the online community. I power on and FreeBSD loads until I can log in from the command line. After "wayfire -c ~/.config/wayfire.ini" I enter the graphical environment where I find the icons to call whatever program I need.
Good. I would like to be able to enter directly in the graphical environment without going through the command line. In other words I need something like gdm, lightdm, slim, etc., which allow me to directly log in to the graphical environment. What sequential steps should I do?
Thanks for a simple answer because despite appearances I am still a newbie.
 
hi mate

i have run wayfire on freebsd 14
but didnt use a login manager

check if you have a wayfire.desktop file in the xsessions directory

Code:
ls -l /usr/local/share/xsessions

then i would try installing lightdm

Code:
sudo pkg install lightdm

enable lightdm in /etc/rc.conf

Code:
sysrc lightdm_enable="YES"

reboot and see if that works

i havent tried myself because i prefer to login on the command line

 
hi mate

i have run wayfire on freebsd 14
but didnt use a login manager

check if you have a wayfire.desktop file in the xsessions directory

Code:
ls -l /usr/local/share/xsessions

then i would try installing lightdm

Code:
sudo pkg install lightdm

enable lightdm in /etc/rc.conf

Code:
sysrc lightdm_enable="YES"

reboot and see if that works

i havent tried myself because i prefer to login on the command line

Thanks for your new offer of help. Xorg is installed, but XDG_SESSION_TYPE gives me "wayland". I have no "xsessions" directory in /usr/local/share/ and only find an "xgreeters" directory that says: "default.desktop -> lightdm-gtk-greeter.desktop". I installed lightdm-gtk-greeter and now the file "lightdm-gtk-greeter.desktop" appears that was not there before. When I reboot I am taken directly to a black screen with a working mouse. I think there must be something to configure.
 
Did you read handbook Chapter 6.8?
It introduces x11/ly. It wouldn't be 100% satisfactory for you, as it is ncurses based TUI (fake GUI), but if you want login manager stating support for Wayland, it would be worth trying.

As I prefer X (not former Twitter) and don't want non-CUI login, I myself haven't tried it, but maybe you would additionally need to configure x11/ly to start x11-wm/wayfire with picking your config file.
 
Did you read handbook Chapter 6.8?
It introduces x11/ly. It wouldn't be 100% satisfactory for you, as it is ncurses based TUI (fake GUI), but if you want login manager stating support for Wayland, it would be worth trying.

As I prefer X (not former Twitter) and don't want non-CUI login, I myself haven't tried it, but maybe you would additionally need to configure x11/ly to start x11-wm/wayfire with picking your config file.
Thanks. Tried and it works. But I think there will be a solution on the lightdm greeter way!
 
Maybe adapt SDDM + Sway recipe to Wayfire.
Thanks. I installed sddm, searched for /usr/local/etc/sddm.conf (one line only is present there: InputMethod=""), modified it so to appear:

****************************************
[General]
DisplayServer=wayland
HaltCommand=/sbin/shutdown -p now
RebootCommand=/sbin/shutdown -r now
InputMethod=""

[Theme]
ThemeDir=/usr/local/share/sddm/themes
Current=maldives
FacesDir=/usr/local/share/sddm/faces

[X11]
SessionCommand=/usr/local/share/sddm/scripts/Xsession

[Wayland]
CompositorCommand="wayfire -c /home/giocitta/.config/wayfire/wayfire.ini"
# CompositorCommand=/home/giocitta/.config/wayfire/wayfire.ini
# CompositorCommand="weston --shell=desktop-shell.so"
SessionCommand=/usr/local/share/sddm/scripts/wayland-session

[Users]
DefaultPath=/usr/local/bin:/usr/bin:bin
MaximumUid=1001
MinimumUid=1000

[Autologin]
User=giocitta
********************************************

When I reboot, the system is OK, but I'm led to a black screen where I see the mouse and keyboard blocked. I can pass to another screen pressing Ctrl+Alt+2. In other words I don't see any login screen.
 
i dont know if yu changed the session cmd or not but yu can put this inside the script. put the file anywhere. just make sure its executable .

#!/usr/local/bin/bash export MOZ_ENABLE_WAYLAND=1 export XDG_SESSION_TYPE=wayland export XDG_RUNTIME_DIR=/var/run/user/`id -u` export CLUTTER_BACKEND=wayland export SDL_VIDEODRIVER=wayland export LIBGL_DRI3_ENABLE=1 export XKB_DEFAULT_RULES=evdev export QT_QPA_PLATFORM=wayland-egl export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 export BEMENU_BACKEND=wayland export WLR_DRM_NO_ATOMIC=1 export XCURSOR_THEME=whiteglass [ -d $XDG_RUNTIME_DIR ] || sudo mkdir -m 700 -p $XDG_RUNTIME_DIR exec ck-launch-session dbus-launch --sh-syntax --exit-with-session wayfire

then try to run it from sddm login scrren
 
Hi, I think you can try this configuration file for sddm:

Code:
[General]
#DisplayServer=wayland
HaltCommand=/sbin/shutdown -p now
RebootCommand=/sbin/shutdown -r now
InputMethod=""

[Theme]
ThemeDir=/usr/local/share/sddm/themes
Current=maldives
FacesDir=/usr/local/share/sddm/faces

[X11]
SessionCommand=/usr/local/share/sddm/scripts/Xsession

[Wayland]
CompositorCommand="wayfire -c /home/giocitta/.config/wayfire/wayfire.ini"
# CompositorCommand=/home/giocitta/.config/wayfire/wayfire.ini
# CompositorCommand="weston --shell=desktop-shell.so"
#
SessionCommand=/usr/local/share/sddm/scripts/wayland-session

[Users]
DefaultPath=/usr/local/bin:/usr/bin:/bin
MaximumUid=1001
MinimumUid=1000

[Autologin]
User=giocitta

You have only to replace the last line of the script
Code:
/usr/local/share/sddm/scripts/wayland-session
(or a copy) with this:

Code:
exec ck-launch-session dbus-launch $@

HTH.
 
Hi, I think you can try this configuration file for sddm:

Code:
[General]
#DisplayServer=wayland
HaltCommand=/sbin/shutdown -p now
RebootCommand=/sbin/shutdown -r now
InputMethod=""

[Theme]
ThemeDir=/usr/local/share/sddm/themes
Current=maldives
FacesDir=/usr/local/share/sddm/faces

[X11]
SessionCommand=/usr/local/share/sddm/scripts/Xsession

[Wayland]
CompositorCommand="wayfire -c /home/giocitta/.config/wayfire/wayfire.ini"
# CompositorCommand=/home/giocitta/.config/wayfire/wayfire.ini
# CompositorCommand="weston --shell=desktop-shell.so"
#
SessionCommand=/usr/local/share/sddm/scripts/wayland-session

[Users]
DefaultPath=/usr/local/bin:/usr/bin:/bin
MaximumUid=1001
MinimumUid=1000

[Autologin]
User=giocitta

You have only to replace the last line of the script
Code:
/usr/local/share/sddm/scripts/wayland-session
(or a copy) with this:

Code:
exec ck-launch-session dbus-launch $@

HTH.
Many thanks. I modified the last line of /usr/local/share/sddm/scripts/wayland-session from "exec $@" to "exec ck-launch-session dbus-launch $@", but now I get only the usual CLI login/Password request.
 
I don't know, maybe trying to disable/remove the autologin section and choosing a session (wayfire) from the sddm interface? Take a look at the log file /var/log/messages or /var/log/sddm.log to see what happens.
 
I don't know, maybe trying to disable/remove the autologin section and choosing a session (wayfire) from the sddm interface? Take a look at the log file /var/log/messages or /var/log/sddm.log to see what happens.
No effect removing autologin. DisplayServer=wayland is required, otherwise it tries to enter x11. I think sddm is not fully compatible with wayland yet. For now I will use ly. Thanks anyway for your time.
 
Did you read handbook Chapter 6.8?
It introduces x11/ly. It wouldn't be 100% satisfactory for you, as it is ncurses based TUI (fake GUI), but if you want login manager stating support for Wayland, it would be worth trying.

As I prefer X (not former Twitter) and don't want non-CUI login, I myself haven't tried it, but maybe you would additionally need to configure x11/ly to start x11-wm/wayfire with picking your config file.
I've been playing around with Ly's config file, but I'm not sure what I should change or add to "to start x11-wm/wayfire with picking your config file". Thanks for a simple explanation.
 
I've been playing around with Ly's config file, but I'm not sure what I should change or add to "to start x11-wm/wayfire with picking your config file". Thanks for a simple explanation.
As you wrote
After "wayfire -c ~/.config/wayfire.ini" I enter the graphical environment where I find the icons to call whatever program I need.
add "-c ~/.config/wayfire.ini", if not exists, to something like options definitions of compositor or command to invoke as compositor.
Because if your screen after logging in does not match as you configured, it usually indicates any of wrong configuration file is picked.
 
I've been playing around with Ly's config file, but I'm not sure what I should change or add to "to start x11-wm/wayfire with picking your config file". Thanks for a simple explanation.
Solved! Just commented on all the x11 related entries. Thanks again for your time, T-Aoki.
 
At the end of all the attempts (difficult for a beginner) I opted for Ly, simple and beautiful to look at. Fully satisfied!
Videata_Ly.jpg
 
Back
Top