Thursday, October 9, 2014

Install OpenBox on FreeBSD 10

1. Check if there are any updates to the OS:
freebsd-update fetch

freebsd-update install
2. Install Xorg and OpenBox:
pkg install xorg openbox tint2
3. Create the following directory inside your home directory:
mkdir ~/.configmkdir ~/.config/openbox 
mkdir ~/.config/tint2
2. Copy OpenBox provided configuration files to the directory:
cp /usr/local/etc/xdg/openbox/menu.xml ~/.config/openbox/menu.xmlcp /usr/local/etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml
3. Copy Tint2 provided configuration file to the directory:
cp /usr/local/share/examples/tint2/tint2rc ~/.config/tint2
4. Create the following file and give it executable permissions:
touch ~/.config/openbox/autostart.shchmod +x ~/.config/openbox/autostart.sh
5. Echo the following content inside the file:
echo "#!/bin/sh" >> ~/.config/openbox/autostart.sh
6. Configure hal and dbus to start on boot:
echo 'hald_enable="YES"' >> /etc/rc.conf
7. Instruct X to load OpenBox:
echo "exec openbox-session" >> ~/.xinitrc
8. Reboot the computer:
reboot
9. Launch OpenBox and edit Tint2:
startxtint2conf

No comments:

Post a Comment