FreeBSD 14.0 が出ていたので Gnome Desktop で Vmware Workstation 上にインストール。その時のメモ。

pkg だけでなく ports も使って若干遊んでみた。上図は、ports から Strawberry を入れたもの。ports の使い方はこちらから。

 

 

全体的な雰囲気はこちら。

 

 

まあ、変哲もない普通のGnome。総じて、13.2 より安定している。
Gnomeなので、GDMからログインするわけだがKeymapがenになっていたので修正。

 /usr/local/share/gdm/greeter/autostart の中に keymap.desktop というファイルを追加で作成。

---

[Desktop Entry]
Type=Application
Name=Set Login Keyboard
Exec=/usr/local/bin/setxkbmap -display :0 'jp'
NoDisplay=true
---

これでGDMのログイン画面が日本語キーボード仕様になる。

 

例によって、Vmware だから以下の設定をする。

X の起動と

open-vm-tools
xf86-video-vmware
xf86-input-vmmouse
のインストールができているとして

 

/etc/rc.conf

---

hostname="freebsd14"
keymap="jp.kbd"
ifconfig_em0="DHCP"
ifconfig_em0_ipv6="inet6 accept_rtadv"
sshd_enable="YES"
ntpd_enable="YES"
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"

dbus_enable="yes"
gdm_enable="YES"
gnome_enable="YES"
avahi_daemon_enable="YES"

moused_enable="YES"
hald_enable="YES"

vmware_guest_vmblock_enable="YES"
vmware_guest_vmhgfs_enable="YES"
vmware_guest_vmmemctl_enable="YES"
vmware_guest_vmxnet_enable="YES"
vmware_guestd_enable="YES"


ipfilter_enable="YES"
ipfilter_rules="/etc/ipf.rules"
ipfilter_flags=""
ipmon_enable="YES"
ipmon_flags="-D /var/log/ipflog"

ntpd_enable="YES"

samba_server_enable="YES"

cupsd_enable="YES"
devfs_system_ruleset="system"
---

 

/etc/sysctl.conf

---

# $FreeBSD$
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
vfs.zfs.min_auto_ashift=12
net.inet.tcp.tso=0
kern.ipc.maxsockbuf=524288
net.inet.tcp.recvspace=114688

net.inet.tcp.sendbuf_inc=16384
net.inet.tcp.sendspace=65536

net.inet.tcp.recvbuf_max: 524288
net.inet.tcp.sendbuf_max: 524288
net.inet.tcp.tso=0

#hw.vtnet.tso_disable=1

#net.inet.ip.forwarding=1
#net.inet6.ip6.forwarding=1


vfs.usermount=1

#kern.maxfiles=65536

net.inet.tcp.inflight.enable=1
net.inet.tcp.inflight.min=6144
net.inet.tcp.inflight.max=1073725440
net.inet.tcp.inflight.stab=20
net.inet.tcp.recvspace=65536
net.inet.ip.redirect=0
net.inet.tcp.syncookies=1
net.inet.tcp.delayed_ack=0
kern.coredump=0
kern.maxfiles=65536
kern.maxfilesperproc=32768
kern.maxprocperuid=16384
kern.ipc.maxsockbuf=2097152
net.inet.udp.maxdgram=57344
kern.threads.max_threads_per_proc=40000
net.inet.ip.portrange.first=32768
net.inet.ip.portrange.last=49151
net.inet.ip.portrange.hifirst=49152
net.inet.ip.portrange.hilast=65535
kern.ipc.somaxconn=1024
kern.ipc.shmmax=67108864
kern.ipc.shmall=32768
net.inet.ip.maxfragpackets=1600
---

 

/usr/local/etc/X11/xorg.conf.d
my.conf

---

Section "ServerLayout"
        Identifier "X.org Configured"
        Screen 0 "Screen0" 0 0
        Option "AutoAddDevices" "Off"
        InputDevice "Mouse0" "CorePointer"
        InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device "Card0"
        SubSection "Display"
        Modes "1920x1080"
        EndSubSection
EndSection

Section "InputDevice"
        Identifier "Keyboard0"
        Driver "kbd"
        Option "XkbRules" "xorg"
        Option "XkbModel" "jp106"
        Option "XkbLayout" "jp"
        Option "XkbOptions" "ctrl:nocaps"
EndSection
Section "InputClass"
        Identifier "Mouse Defaults"
        Driver "vmmouse"
        MatchIsPointer "on"
EndSection
Section "InputDevice"
        Identifier "Mouse0"
        Driver "vmmouse"
        Option "Protocol" "auto"
        Option "Device" "/dev/sysmouse"
        Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Device"
        Identifier "Card0"
        Driver "vmware"
#        BusID       "PCI:0:15:0"
EndSection
---

 

こんなところで快適に使えている。

 

samba は、4.13を入れた。SMB 1.0 仕様。

 

印刷は、cupsの設定後、/usr/bin の lp* を chmod 000 してある。

 

 

結構楽に構築できた。Firewall は例によって省く。それにしても Gnome ってこんなに軽かったかしらん。