See [https://docs.freebsd.org/en/books/handbook/ports/#pkgng-intro](pkgng intro).
Use latest packages, to be used with HEAD of ports repository.
mkdir -p /usr/local/etc/pkg/repos
echo 'FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }' > /usr/local/etc/pkg/repos/FreeBSD.conf
pkg update -f
pkg upgrade -f
pkg install doas
cp /usr/local/etc/doas.conf.sample /usr/local/etc/doas.conf
vim /usr/local/etc/doas.conf
chezmoi will ake of installing all packages, but system level configuration is to be done manually.
doas pkg install -y git chezmoi
chezmoi init gwarf
chezmoi apply
# Link repos to my usual place
mkdir ~/repos/
ln -s ~/.local/share/chezmoi ~/repos/dotfiles/
# If willing to get info about hardware
doas pkg install clover
doas pkg install clinfo
clinfo
# Setup for using Xorg
doas pw groupmod video -m baptiste
doas sysrc kld_list+="amdgpu"
doas kldload amdgpu
# For the mouse management
doas echo "kern.evdev.rcpt_mask=6" >> /etc/sysctl.conf
doas pkg install uwrfonts google-fonts nerd-fonts
# XXX: required?
xset fp+ /usr/local/share/fonts/urwfonts
xset fp rehash
fc-cache -f
https://www.nerdfonts.com/cheat-sheet
Check FreeBSD handbook.
# Mount /proc
doas echo "proc /proc procfs rw 0 0" > /etc/fstab"
# Enable dbus service
doas sysrc dbus_enable="YES"
doas service dbus start
# Enable gdm service
doas sysrc gdm_enable="YES"
doas service gdm start
Mimimal list of extensions to install:
- Bitwarden
- LanguageTool
- Privacy Badger
- uBlock Origin
https://forums.freebsd.org/threads/firefox-61-u2f-fido-does-not-work.66989/ https://gist.github.com/daemonhorn/bdd77a7bc0ff5842e5a31d999b96e1f1
doas pw group mod u2f -m baptiste
doas sysrc devd_enable="YES"
doas service devd restart
# Get password from Bitwarden add add it to local keyring
secret-tool store --label=mail host MAIL_SERVER service imaps user MAIL_USER
# Get mails
mkdir -p ~/Mail/Perso
#XXX: run mbsync manually and on demand
mbsync -a
mutt
See https://blog.bapt.name/2024/08/31/building-freebsd-ports/.
There is port for Obsidian, but due to licences issues it connot be redistributed. It's convenient to build it using poudriere.
The build will be done using a set named obsidian
, in order to allow to
configure make only for this package.
# Add obisidian to the package list
doas echo "textproc/obsidian" > /usr/local/etc/poudriere.d/obsidian-pkglist
doas echo "DISABLE_LICENSES=yes" > /usr/local/etc/poudriere.d/obsidian-make.conf
# Build obsidian using poudriere, and using the obsidian set
doas poudriere bulk -f /usr/local/etc/poudriere.d/obsidian-pkglist -j 14-1-amd64 -p main -z obsidian -v -v
# Add repos definition
doas mkdir -p /usr/local/etc/pkg/repos/
doas vim /usr/local/etc/pkg/repos/obsidian.conf
Obsidian: {
url: "file:///poudriere/data/packages/14-1-amd64-main-obsidian"
}
doas pkg update
pkg search -Q repository obsidian
doas pkg install obsidian
There is currently no official port for Obsidian. It's convenient to build it using poudriere.
# Add rbw to the custom repository package list
doas echo "security/rbw> /usr/local/etc/poudriere.d/custom-pkglist
# Build custom packages using poudriere
doas poudriere bulk -f /usr/local/etc/poudriere.d/custom-pkglist -j 14-1-amd64 -p main -v -v
# Add repos definition
doas mkdir -p /usr/local/etc/pkg/repos/
doas vim /usr/local/etc/pkg/repos/custom.conf
Custom: {
url: "file:///poudriere/data/packages/14-1-amd64-main"
}
doas pkg update
pkg search -Q repository rbw
daos pkg install rbw
https://wiki.freebsd.org/Ports/security/keybase https://www.freshports.org/security/kbfsd (Not used?) https://github.com/0mp/kbfsd
doas sysctl vfs.usermount=1
doas vim /etc/sysctl.conf
vfs.usermount=1
# Be in operator group
groups
doas kldload fusefs
doas vim /etc/rc.conf
kld_list="amdgpu ext2fs fusefs"
doas mkdir /keybase
doas chown baptiste:operator /keybase
chmod 770 /keybase/
kbfsfuse /keybase
ls /keybase/
For nvim:
- package/install marksman
- package/insall ltex-ls
- package/install markdownlint-cli2