2. インストール
pkg install -y xorg numlockx ja-font-migmix
pkg install -y sddm sddm-freebsd-black-theme hal cursor-neutral-white-theme
pkg install -y openbox openbox-arc-theme
最終行の、「Openbox」のインストールは、一瞬で終わります。
2020年11月9日の時点で「Openbox」のバージョンは、下記の通りでした。
$ pkg info openbox
openbox-3.6_6
Name : openbox
Version : 3.6_6
Installed on : Mon Nov 9 19:08:09 2020 JST
Origin : x11-wm/openbox
Architecture : FreeBSD:12:amd64
Prefix : /usr/local
Categories : x11-wm
Licenses : GPLv2
Maintainer : novel@FreeBSD.org
WWW : http://openbox.org/
Comment : Small, fast, standards compliant, extensible window manager
Options :
IMLIB : on
NLS : on
NOTIFY : on
PATCHES : off
SVG : on
Shared Libs required:
libpangoxft-1.0.so.0
libpangoft2-1.0.so.0
libglib-2.0.so.0
libgobject-2.0.so.0
libXrender.so.1
libpango-1.0.so.0
libfreetype.so.6
libstartup-notification-1.so.0
libXext.so.6
libcairo.so.2
libXau.so.6
libXft.so.2
libxml2.so.2
libICE.so.6
librsvg-2.so.2
libintl.so.8
libXrandr.so.2
libSM.so.6
libfontconfig.so.1
libImlib2.so.1
libXcursor.so.1
libgdk_pixbuf-2.0.so.0
libgio-2.0.so.0
libXinerama.so.1
libX11.so.6
Shared Libs provided:
libobrender.so.29
libobt.so.2
Annotations :
FreeBSD_version: 1201000
repo_type : binary
repository : FreeBSD
Flat size : 1.54MiB
Description :
Openbox is a highly configurable, next generation window manager with
extensive standards support.
Openbox lets you bring the latest applications outside of a full desktop
environment. Most modern applications have been written with GNOME and KDE
in mind. With support for the latest freedesktop.org standards, as well as
careful adherence to previous standards, Openbox provides an environment
where applications work the way they were designed to.
Openbox is a highly configurable window manager. It allows you to change
almost every aspect of how you interact with your desktop and invent
completely new ways to use and control it. It can be like a video game for
controlling windows. But Openbox can also be kept extremely simple, as it is
in the default setup, meaning that it can suit just about anybody. Openbox
gives you control without making you do everything.
Openbox makes desktop environments better. By running Openbox inside the
GNOME or K desktop environments, you can combine their ease and
functionality with the power of Openbox. Your desktop becomes cleaner and
faster, and is in your control, when you use Openbox.
This port also includes optional 3rd party patches for rounder corners
support and miscellaneous fixes from
https://github.com/dylanaraps/openbox-patched.
WWW: http://openbox.org/
「FreeBSD 12.1 RELEASE」でのインストールが、「3.6_5」でした。
「FreeBSD 11.4 RELEASE」でのインストールが、2020年6月26日で「3.6_6」でした。
半年の間には、変化はなかったようです。
3. SDDM カスタマイズ
ログイン画面の解像度を「1366x768」とし、キーボードレイアウトを「jp.106」にします。
「root」ユーザで
cat << EOF >> /usr/local/share/sddm/scripts/Xsetup
xrandr --output VGA-0 --mode 1366x768 --rate 60
setxkbmap -layout jp
EOF
ログイン画面のテーマとカーソルを変更します。
「root」ユーザのまま
sddm --example-config > /usr/local/etc/sddm.conf
vi /usr/local/etc/sddm.conf
[Theme]
# Current theme name
Current=breeze
# Cursor theme used in the greeter
CursorTheme=breeze_cursors
を下記へ変更します。
[Theme]
# Current theme name
Current=sddm-freebsd-black-theme
# Cursor theme used in the greeter
CursorTheme=Neutral++_White
4. ユーザ用初期化ファイルの作成
「root」ユーザで
cat - << EOF >> /usr/share/skel/dot.xsession
#!/bin/sh
# set locale
export LC_ALL=ja_JP.UTF-8
export LANGUAGE=ja_JP.UTF-8
export LANG=ja_JP.UTF-8
#
/usr/local/bin/VBoxClient-all
#
setxkbmap -layout jp
numlockx &
EOF
chmod +x /usr/share/skel/dot.xsession
既存のログインユーザで
cp /usr/share/skel/dot.xsession ~/.xsession
5. /etc/rc.conf 編集
前項までインストール・設定したものを有効にします。
cat - << EOF >> /etc/rc.conf
polkitd_enable="YES"
dbus_enable="YES"
hald_enable="YES"
sddm_enable="YES"
EOF
6. ログインマネージャ起動
「root」ユーザで
service dbus start
service hald start
service sddm start
うまく設定できていれば、ログイン画面が表示されます。
ユーザ名・パスワードを入力してログインします。