2. インストール
pkg install -y xorg ja-font-migmix
pkg install -y sddm plasma5-sddm-kcm sddm-freebsd-black-theme hal cursor-neutral-white-theme
pkg install -y kde5
最下行で
The process will require 3 GiB more space.
1 GiB to be downloaded.
とのことで、そこそこの容量が必要になります。
2020年11月5日の時点で、「KDE」のバージョンは、下記の通りです。
$ pkg info kde5
kde5-5.19.5.20.08.2
Name : kde5
Version : 5.19.5.20.08.2
Installed on : Thu Nov 5 08:56:35 2020 JST
Origin : x11/kde5
Architecture : FreeBSD:12:*
Prefix : /usr/local
Categories : x11 kde
Licenses : LGPL20
Maintainer : kde@FreeBSD.org
WWW : https://www.kde.org
Comment : KDE Plasma Desktop and Applications (current)
Options :
KDEADMIN : on
KDEEDU : on
KDEGAMES : on
KDEGRAPHICS : on
KDEMULTIMEDIA : on
KDENETWORK : on
KDEPIM : on
KDEUTILS : on
PULSEAUDIO : off
Annotations :
repo_type : binary
repository : FreeBSD
Flat size : 25.1KiB
Description :
KDE is a powerful Free Software graphical desktop environment for Linux
and Unix workstations.
This package does not contain anything by itself -- it is a
"meta-port" that depends on other KDE packages. Its sole purpose is
to require dependencies so users can install this package only and
have all the KDE stuff pulled in by the port/package dependency mechanism.
x11/kde5 contains current KDE Frameworks, Plasma Desktop and Applications.
WWW: https://www.kde.org
「FreeBSD 12.1 RELEASE」を扱っていた時期が「kde5-5.16.5.19.08.1」。
「FreeBSD 11.4 RELEASE」を扱っていた時期が「kde5-5.18.4.1.19.12.3」。
今回が、「kde5-5.19.5.20.08.2」。
少しずつ、更新がはいっているようです。
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
テーマを変更したり、カーソルを変更しようかとも思いましたが。
「KDE」はどこで設定しているのかわからなかったので、そのままにしています。
4. rc.conf 編集
/etc/rc.conf
に「KDE」関連のデーモンの起動を加えます。
cat << EOF >> /etc/rc.conf
dbus_enable="YES"
hald_enable="YES"
sddm_enable="YES"
sddm_lang="ja_JP"
EOF
5. 起動
/usr/local/share/dot.xprofile
を作成して編集します。
cat << EOF >> /usr/local/share/dot.xprofile
#!/bin/sh
#
export LANG=ja_JP.UTF-8
EOF
ログインユーザで
cp /usr/local/share/dot.xprofile ~/.xprofile
再び、「root」ユーザで
/etc/fstab
の最下行に1行加えます。
cat << EOF >> /etc/fstab
proc /proc procfs rw 0 0
EOF
システムを再起動します。
再起動後、以下の画面が表示されれば基本的な設定は完了です。