Skip to content

Instantly share code, notes, and snippets.

@Postrediori
Last active July 17, 2023 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Postrediori/075228e8c091f4f5909d05d785305c27 to your computer and use it in GitHub Desktop.
Save Postrediori/075228e8c091f4f5909d05d785305c27 to your computer and use it in GitHub Desktop.
FreeBSD Tips&Tricks

FreeBSD HowTos

Running FreeBSD from pre-installed disk

Preparing VM

  1. Acuqire -RELEASE image file from an official site (e.g. https://download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/13.2/)
  2. Resize image file to desired size

Initial setup

  • Login as root and change password with passwd
  • Add new user with adduser script. Add new user to wheel group, it will be used later by sudo command.

Installing ports

Update the system to current with freebsd-update

freebsd-update fetch
freebsd-update install

Run pkg to prompt installation of a package manager

Install sudo

pkg install sudo

RUn visudo an duncomment %wheel line to allow userd of the wheel group to use sudo

Install Window Manager

Install XFCE and dependencies:

pkg install xorg
pkg install slim
pkg install xfce

Install XFCE plugin

pkg install xfce4-whiskermenu-plugin

Install zsh

Install zsh package

pkg install zsh

Set default shell

chsh -s /usr/local/bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment