Setting up the FreeBSD desktop environment on Ubuntu + qemu

Introduction

This section describes the installation and configuration procedure for using the desktop environment called Xfce4 on FreeBSD on Linux + qemu.

In each explanation below, the command to be actually executed is described in the following format.

#pkg install package name

Actually, when you execute the above command, the progress of package installation is displayed, but these are omitted on this page.

Execution environment, etc.

Uses Ubuntu 20.04.1 LTS.

Package installation

Log in as root on FreeBSD and install the following packages.

# pkg install xorg
# pkg install xfce
# pkg install japanese/font-std
# pkg install ja-fcitx-mozc
# pkg install firefox

From top to bottom

In the above example, the packages are specified one by one, but you can also specify them collectively as follows.

# pkg install xorg xfce japanese/font-std ja-fcitx-mozc firefox

System settings

Since Xfce4 uses D-Bus, follow the steps below to start D-Bus.

# sysrc dbus_enable="YES"
# service dbus start

Personal environment settings

Exit the shell running with root privileges, and then log back in with general user privileges.

# exit
logout

FreeBSD/amd64 (fbsd122) (ttyv0)

login: yamada
Password:

$ 

Use a text editor such as vi/emacs to create a .xinitrc file in your home directory and write the following settings.

export LC_ALL=ja_JP.UTF-8
export LANGUAGE=ja_JP.UTF-8
export LANG=ja_JP.UTF-8
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=xim
export XMODIFIERS=@im=fcitx
/usr/local/bin/mozc start
/usr/local/bin/fcitx -r -d
exec /usr/local/bin/xfce4-session

If you are using a Japanese keyboard, put the following line just before the last line xfce4-session.

/usr/local/bin/setxkbmap -layout jp

Launch desktop environment

Run the startx command to start the desktop environment.

$ startx

If the Xfce4 desktop environment is displayed as shown below, it is successful. qemu-xfce4-start.png

Click "Applications" in the upper left to display the menu. Click "Web Browser" in the menu to start Firefox. qemu-xfce4-japanese.png To enter Japanese, press the Ctrl and Spacebar keys at the same time. Enter characters and convert with the SPACE key. Press Ctrl and Spacebar again at the same time to return to English input.

Click "Username" in the upper right to display the menu. Click "Logout" to exit the desktop environment. qemu-xfce4-logout.png qemu-xfce4-logout2.png

If a problem occurs

If you encounter problems such as "Desktop environment is not displayed" or "Japanese cannot be entered", check the contents of the .xinitrc file created under your home directory.

Recommended Posts

Setting up the FreeBSD desktop environment on Ubuntu + qemu
Setting JAVA_HOME on Ubuntu
Build Ubuntu 20.04 LTS desktop environment on Raspberry Pi 4 (+ Japanese)
Japanese input on Ubuntu20.04 Desktop
Install Ubuntu Desktop 20.10 on RaspberryPi4
Set up ansible-playbook on Ubuntu 20.04
Build mate desktop environment on ec2 with terraform (Ubuntu 20.04LTS)
Try setting up Talend Open Studio on Amazon EC2 (ubuntu)
What Docker beginners did before setting up the nginx learning environment
Build the latest Samba 4 on Ubuntu 20.04
Build a XAMPP environment on Ubuntu
Setting up Wine Launcher Creator on Ubuntu 20.04 (qt4, install WOLF RPG Editor) "
Minimal steps to set up a Ruby environment with rbenv on Ubuntu 20.04
Install OpenJDK (Java) on the latest Ubuntu
Use docker in proxy environment on ubuntu 20.04.1
[Ruby] Building a Ruby development environment on Ubuntu
How to change the timezone on Ubuntu
Try the Docker environment on AWS ECS
Creating an SSL certificate using Let's Encrypt and setting up Nginx on Ubuntu 20
Using JUnit from the command line on Ubuntu
Protobuf and gRPC C ++ environment construction on Ubuntu 18.04
Display the System Monitor applet on the Ubuntu 20.04 taskbar
[Android] List all setting items on the setting screen
Tips for using the Spotify app on Ubuntu
Set up an SSH server on WSL2 Ubuntu 20.04
Install the latest version of Jenkins on Ubuntu 16
How to build a Pytorch environment on Ubuntu