Setting Up Lumina with slim in Japanese and Watching YouTube and DVDs on FreeBSD
This post covers installing Lumina and xdm on a fresh i386 install. It also covers installing Japanese fonts and a Japanese IME. The final test is watching DVDs and YouTube videos- what a computer needs to do for my wife and kids to consider it useful.
Software Versions
Install Lumina Desktop and slim
First, do a minimal install of FreeBSD and login as root.
Make your unprivileged user a member of the wheel group. This will allow you to conveniently shutdown the computer.
NOTE: Consider increasing FETCH_TIMEOUT and/or FETCH_RETRY in /usr/local/etc/pkg.conf if you are getting timeouts when installing packages.
/usr/local/etc/pkg.conf partial listing
I use vim to edit files, so that gets installed first.
lumina and slim need to be installed. The localized lumina-i18n pulls in lumina and xorg.
Enable slim and dbus in /etc/rc.conf. slim needs dbus to start Lumina. hald is not strictly necessary, but it tends to be enabled when running xorg. Also, if you use a mouse, make sure moused is enabled in /etc/rc.conf.
/etc/rc.conf partial listing
Consider enabling sshd just in case something goes horribly wrong when configuring xorg.
/etc/rc.conf partial listing
Generate xorg.conf.
Add the Load "freetype"
to the “Module” section of /etc/X11/xorg.conf.
/etc/X11/xorg.conf partial listing
Add the FontPath "/usr/local/share/fonts/dejavu/"
to the “Files” section of /etc/X11/xorg.conf.
/etc/X11/xorg.conf partial listing
Japanese Fonts and IME
Install the Japanese fonts and IME.
Create the following .xinitrc for new users.
/usr/share/skel/dot.xinitrc complete listing
Copy the above .xinitrc to your home directory.
After starting xorg, consider running scim-setup to configure scim for the IME. By default, switch between kanji and romaji input with Ctrl-[SPACE].
YouTube
As root, install chromium or your broswer of choice.
As an unprivileged user start chrome and watch a YouTube video.
DVDs
First, install vlc as root.
Also install libdvdcss. The following should work.
When I tried, the package was not available, so I had to build the port.
Add the following line to /etc/sysctl.conf.
/etc/sysctl.conf partial listing
Verify the device name with camcontrol. It is usually /dev/cd0.
Next, modify /etc/sysctl.conf to make the CDROM/DVDROM mountable by unprivileged users. Use the device from the previous step.
/etc/devfs.conf partial listing
Add your unprivileged user to the operator group.
Reboot.
You should be able to mount and unmount the DVDs as your unprivileged user now.
As an your unprivileged user, insert a DVD and play it with VLC.
References:
- FreeBSD Handbook, The X Display Manager
- FreeBSD Handbook, Using Fonts in Xorg
- FreeBSD Handbook, Browsers
- FreeBSD Handbook, Video Playback
- FreeBSD, デスクトップ環境構築/Lumina/インストール
- FreeBSD で遊ぼうのこーな
- FreeBSD, デスクトップ環境の構築(Mate 1.12.0 on FreeBSD 10
- FreeBSD, 日本語入力環境を構築する(scim/anthy)
- FreeBSD, 日本語環境をscim-anthyで設定しました。
- FreeBSD での DVD の再生やバックアップなど
- pkg, Operation timed out
- VLC, Documentation:Command line
- VLC, DVD won’t play in VLC or MPlayer
- VLC, What are the file system of CD and DVD?
- xdm, What is “.xsession” for?
- xdm, xorg-xdm uses the depreceated xsm as default session management
- xorg, How to get a desktop on DragonFly