How to install minimal FreeBSD desktop (with i3, Mate and slim)

  • freebsb/ free Unix-like operating system descended from BSD
# download ISO from https://www.freebsd.org/; during installation, select correct keyboard, ipv4/dhcp, timezone, default UFS file system, ssh service, root password and create new user
$ pkg install -y tmux zsh sudo nano vim

# add user to wheel so that su works, see http://www.cyberciti.biz/tips/freebsd-becoming-super-user-su-or-enabling-su-access-to-user.html
$ export USERNAME=<my-user>
$ pw user mod $USERNAME -G wheel

# setting the timezone
$ cp /usr/share/zoneinfo/Europe/Warsaw /etc/localtime

# setting an alternative keymap in console
$ cat /etc/rc.conf
keymap="pt.iso.acc.kbd"

from FreeBSD CheatSheet

## install xorg/slim, if not vmware then also install 'xorg-drivers'
$ pkg install xorg slim
(if not vmware then 'pkg install -y xorg-drivers')

## configure xorg/slim
$ cat /usr/home/$USERNAME/.xinitrc
# without slim
# /usr/local/bin/i3 or exec mate-session or exec /usr/local/bin/wmaker
# or with slim; see '/usr/local/etc/slim.conf'
exec $1
$ chown $USERNAME /usr/home/$USERNAME/.xinitrc
$ cat /boot/loader.conf
sem_load="YES"
linux_load="YES"
$ cat /etc/rc.conf
hald_enable="YES"
dbus_enable="YES"
moused_enable="YES"
# with slim
slim_enable="YES"
$ /etc/sysctl.conf 
#Required for chrome
kern.ipc.shm_allow_removed=1

## install i3+dmenu and/or mate
$ pkg install -y i3 i3lock i3status
$ pkg install -y mate-desktop mate

## optional desktop software
$ pkg install -y chromium firefox libreoffice vlc

$ reboot
# without slim you need to login as USERNAME, type 'startx'
# with slim type 'F1' on login to change desktop session

from howto install i3 in FreeBSD
from How-to install freeBSD 10.1 Plus the mate desktop and Installing Mate desktop on FreeBSD-10

i3_shortcuts

# i3 shortcuts; see ~/.i3/config
$mod+shit+e exit
$mod+enter terminal
$mod+e splith/splitv (it toggles), $mod+s stacking and $mod+w for tabbed
$mod+v split vertical, $mod+h split horizontal
$mod+d dmenu

from i3 ref card

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s