Skip to content

Instantly share code, notes, and snippets.

@mjarkk
Last active June 6, 2020 09:56
Show Gist options
  • Save mjarkk/57ca263f34bc969ebe475a237d5ec3dd to your computer and use it in GitHub Desktop.
Save mjarkk/57ca263f34bc969ebe475a237d5ec3dd to your computer and use it in GitHub Desktop.

A cheatsheet for installing FreeBSD

Corsair keyboard not working

Press the win key lock + F1 for 3 seconds. (this puts the keyboard in some kind of special mode where it behaves like an old keyboard)

Deafult programs

pkg install vim nano sudo

visudo
# Uncomment the %whell and %sudo lines to allow users in those groups sudo rights

AMD Vega GPU drivers

amd vega drivers get kernel source gpu drivers howto

portsnap fetch update
cd /usr/ports/graphics/drm-kmod
make install

# If you get some kind of kernel source required do:
# svn checkout https://svn.freebsd.org/base/releng/`uname -r | cut -d'-' -f1,1` /usr/src
# cd /usr/src
# make clean

echo 'kld_list="/boot/modules/amdgpu.ko"' >> /etc/rc.conf

Desktop

Desktop Environments Gnome xorg conf

# options: mate / gnome3
pkg install xorg mate gdm

Make sure the following freetype module is loaded. if not add the following to the "modules" section of your x window config file:

Load "freetype"

Do the same for this under the "Files" section:

FontPath "/usr/local/share/fonts/bitstream-vera/

Add the following to /etc/fstab required for gnome:

proc           /proc       procfs  rw  0   0

Edit /etc/rc.conf to:

dbus_enable="YES"
hald_enable="YES"
gdm_enable="YES"

# Only if you have installed gnome
gnome_enable="YES"

xorg things

# test xorg
startx
# reboot

# If you have mouse issues try to set
## echo "kern.evdev.rcpt_mask=6" >> /etc/sysctl.conf
# Or just try it:
## sysctl kern.evdev.rcpt_mask=6

pw groupmod video -m your_user_name
pw groupmod wheel -m your_user_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment