%
Puffy image/svg+xml Puffy 2019-06-14 Stéphane HUC OpenBSD Team Inkscape Puffy OpenBSD https://www.openbsd.org/art4.html English "Puffy", it's a symbol of OpenBSD

OpenBSD: Gnome

How to install, set and use Gnome on OpenBSD!

Details about this article

Article published the
; modified the
3 minutes to read

This article has 522 words.

Uniq IDentifiant: tag:doc.huc.fr.eu.org,2021-07-24:/en/sys/openbsd/gnome#ca91dc5726277d3726e7637a242decc7d4cdeccae80b376f523ef198369bd50b


RAW source of the article:
Commit version: 9bf3d7b


This article is also available on Gemini Protocol:
gemini://doc.huc.fr.eu.org/en/sys/openbsd/gnome.gmi


Description

Gnome is one Desktop Environment, available on OpenBSD.

⇒ Environnement:

  • OpenBSD: 6.9 → 7.1

In this tutorial, I assume that OpenBSD has just been freshly installed, and that everything has to be done.

Installation

Usual: # pkg_add gnome gnome-extras

Some dependancies are installed, like avahi, consolekit2, dbus, samba, sane-backend, and many more.

Configuration

The Gnome3 environment works differently from other desktop environments.

Don’t try to set up personal files profile, .kshrc, or even .xsession; they will not be taken into your account when starting and using Gnome.

Daemons

If during the OpenBSD installation you have activated xenodm — the default X Display Manager ­— disable it!

:# rcctl disable xenodm
:# rcctl stop xenodm

After, active gdm, the session manager, and all needed daemons.

:# rcctl enable multicast messagebus avahi_daemon gdm
:# rcctl start multicast messagebus avahi_daemon gdm

Language

To manage your language — mine is FR — you need to modify the /etc/gdm/locale.conf file, as:

# $OpenBSD: locale.conf,v 1.4 2014/01/08 14:07:48 ajacoutot Exp $
#
# Mimics Linux's /etc/locale.conf.
# See locale(1) for a list of supported locales (`locale -a`).

# OpenBSD setlocale(3) does not handle LANG
#LANG="en_US.UTF-8"
LC_CTYPE="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"

If you do not make this change, and if you have a password with accented characters in your language, according to the keyboard settings during the OpenBSD installation, you will not be able to log in, because gdm uses English by default.


Think to restart gdm.

Power Management

To use the suspend and hibernate features, you need to active the apmd daemon:

# rcctl enable apmd
# rcctl set apmd flags -A
# rcctl start apmd

Printing

To print, install Cups:

# pkg_add cups cups-filters cups-libs foomatic-db gutenprint

Start both services cupsd, and cups_browsed — this second is useful to detect printers on network using Bonjour broadcast messages, as Avahi.

# rcctl enable cupsd cups_browsed
# rcctl start cups cups_browsed

You can administrate by the Printing Parameters, the webui of Cups, *available on http://localhost:631*, or by tools as cupsctl, lpadmin`.

LibreOffice

The gnome-documents manager does not support Office types documents. Install the unoconv package!

Tips

Keyboard

Display Desktop

⇒ Don’t try to hide all windows to show just the desktop, the option is not activated by default!

Open “Parameters” > “Keyboard”. Into the Navigate windows section, search “Minimize all windows”. Click on and set the desired key combination, like the Super + D keys.

Random Wallpaper

This feature does not exist by default!

I provide two scripts to implement this feature, on my Gitlab: WallpaperManager

Read the instructions to install and use it.

Troubleshooting

GDM refuse to start!

Directly, read the daemon log file, or even that of the messages log:

# grep gdm /var/log/daemon

Gdm: Couldn’t connect to system bus:

Into both files, daemons, messages, you have the equivalent of this message:

Jul 23 09:38:14 og3 gdm[56941]: Gdm: Couldn't connect to system bus: Could not connect: No such file or directory

Probably, this is because the messagebus service is not activated and started.

Have you activated all the services as written at the beginning of this article‽

Documentations

  • the differents pkg-readme files:
    • /usr/local/share/doc/pkg-readmes/gnome
    • /usr/local/share/doc/pkg-readmes/gnupg
    • /usr/local/share/doc/pkg-readmes/samba
    • /usr/local/share/doc/pkg-readmes/sane-backends
    • and others…

Voila!



Enjoy-ID!
Enjoy-IT!