FreeBSD桌面环境
FreeBSD 14桌面环境设置,写到一个脚本中,自动完成。
桌面环境 xfce
输入法 fcitx5
显卡驱动 nvidia-driver-470
浏览器 firefox、chromium
办公软件 libreoffice
另外,发现scim在libreoffice中无法输入中文。
###### xfce & login manager
pkg install -y xorg xfce wqy-fonts
pkg install -y slim slim-themes
# fcitx5 input method
pkg install -y fcitx5 fcitx5-gtk3 fcitx5-configtool zh-fcitx5-chinese-addons
###### scim input method, NOT working with libreoffice
#pkg install -y zh-scim-pinyin zh-scim-tables
###### xfce plugins
pkg install -y xfce-mixer xfce4-pulseaudio-plugin xfce4-screensaver
###### browser
pkg install -y chromium firefox
###### ebook reader
pkg install -y foliate xpdf
###### office
pkg install -y zh_CN-libreoffice
###### multimedia
pkg install -y audacious audacious-plugins
pkg install -y vlc
###### console apps
pkg install -y tmux vim moc htop pftop neofetch
###### dev tools
pkg install -y git
pkg install -y gdb gmake binutils nasm
###### nvidia driver
pkg install -y nvidia-driver-470
mkdir -p /etc/X11/xorg.conf.d
cat > /etc/X11/xorg.conf.d/10-nvidia.conf << _EOF_
Section "Device"
Identifier "NVIDIA Card"
VendorName "NVIDIA Corporation"
Driver "nvidia"
EndSection
_EOF_
sysrc kld_list+=nvidia-modeset
sysrc slim_enable=YES
sysrc dbus_enable=YES
sysrc hald_enable=YES
cat > ~/.xsession << _EOF_
export LANG=en_US.UTF-8
export LC_CTYPE=zh_CN.UTF-8
export MM_CHARSET=zh_CN.UTF-8
export XMODIFIERS='@im=fcitx'
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
export GTK3_IM_MODULE=fcitx
fcitx5 -d
exec startxfce4
_EOF_