FreeBSD installation by default does not provide you with a desktop environment. It does however provide almost every  known Desktop Environment(DE) and Window Manager (WM), which I appreciate as an experienced user.Tying down your distribution with a particular DE/WM might affect other users.

Install FreeBSD using liveUSB(don’t use DVDs unnecessarily), for partitioning and other options refer to the fine FreeBSD documentation online. https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/
This document focuses on getting a working desktop and other things specific to a desktop user, using the pkg command, I prefer using the binaries wherever possible.

I am assuming this PC works well with FreeBSD, you might want to check the hardware support notes of the release.I might write another blog on how to get FreeBSD working on a laptop. FreeBSDs hardware support lags behind GNU/Linux or other BSDs, but the awesomeness makes up for it :).

Execute the following steps as root.

==Install a DE/WM and login manager/display manager==

To enable proxy support in tcsh(might work for csh too), which is the default in a FreeBSD installation.

tcsh> setenv HTTP_PROXY http://proxy.name.here:8080/

Then update the repo and upgrade the packages installed

> pkg update
> pkg upgrade

or a single command,

> pkg update; pkg upgrade

After this install xorg and some DE/WM, display manger(DM) of your choice, you can search for the most common ones using pkg.

>pkg search desktop
> pkg search window

For a DE,

>pkg install xorg xfce
or for a WM.
>pkg install xorg enligthenment

Then install the DM,

> pkg install slim

==Enable the DE/WE, and DM ==
The previous steps just install the required packages, we have to enable these to make use of them

Add following in file /etc/rc.conf

hald_enable=”YES”
dbus_enable=”YES”
to enable the login manager/DM slim

in /etc/rc.conf add,
slim_enable=”YES”

==Install other applications==

> pkg install tilda terminology midori seamonkey zsh emacs-nox11

==Configure slim==
Note: these steps were learned by reading manjaro wiki, Arch wiki, and some forum entries
https://wiki.archlinux.org/index.php/SLiM
https://wiki.manjaro.org/index.php?title=SLiM_Configuration

The version of slim included in FreeBSD 10 automatically determines the installed DEs/WMs, you can cycle through them  at the login manager with F1.
But to make this work we need following changes-

under your home directory create a .xinitrc file and make it executable-

> cd
> pwd
/home/user_name

> echo “exec $1” > .xinitrc

> chmod a+x .xinitrc ; this is necessary, else slim won’t execute this file!!

That is it, now restart slim
> service slim stop
> service slim onestart; exit;

You now have a WM- enlightenment and a DE – XFCE, select one by pressing F1 at the login screen.

==Set proxy in bash==
In bash you have to export proxy variables every time,
To avoid this, set/export the variables in .bashrc and load the file from .bash_profile.

Like,
add following to .bashrc

export http_proxy=”http://proxy.name.here:8080/”
export https_proxy=”http://proxy.anme.here:8080/”

add the following lines to .bash_profile:

if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi

This ensures proxy variables are loaded when a user logs in or opens a new shell session.

==Set proxy in zsh==

Just add following line in .zshrc
export http_proxy=”http://proxy.name.here:8080/”
export https_proxy=”http://proxy.name.here:8080/”

Enjoy!

Advertisements