Compare commits

..

5 commits

Author SHA1 Message Date
Moni Ghaoui
e2339499b1 Merge branch 'main' of https://git.monigh.nl/moni/stuff 2025-07-16 20:02:18 +02:00
Moni Ghaoui
4728c7334b kde 2025-07-08 22:22:21 +02:00
Moni Ghaoui
f725e9cfb5 tailscale 2025-07-08 22:05:34 +02:00
Moni Ghaoui
126ad4e01b x 2025-06-29 20:08:28 +02:00
Moni Ghaoui
3d2ed285ed move shit around 2025-06-22 19:57:51 +02:00
28 changed files with 98 additions and 2 deletions

View file

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View file

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View file

@ -91,11 +91,16 @@ nvim /etc/pf.conf
Contents:
```
ext_if="em0"
block in all
pass in on $ext_if proto tcp to ($ext_if) port ssh
ext_if="em0"
pass in on $ext_if proto tcp to ($ext_if) port 22
pass in on $ext_if proto tcp to ($ext_if) port 80
pass in on $ext_if proto tcp to ($ext_if) port 443
tailscale_if="tailscale0"
pass in on $tailscale_if proto tcp to any port 22
pass out all keep state
```
@ -109,3 +114,94 @@ If you get the error 'no host key files found` then
```sh
ssh-keygen -A
```
# X11 (optional)
https://docs.freebsd.org/en/books/handbook/x11/
Don't forget to start `tmux`:
```sh
tmux
```
Add `moni` to the `video` group:
```sh
pw groupmod video -m moni
```
And then install, but don't forget to read the messages when the install is complete! Scroll up with tmux
```sh
pkg install xorg
```
This will improve mnuse and touchscreen support:
```sh
sysctl kern.evdev.rcpt_mask=6
```
And add this to `/etc/sysctl.conf` to persist it:
```sh
kern.evdev.rcpt_mask=6
```
# Intel
https://docs.freebsd.org/en/books/handbook/x11/#x-configuration-intel
```sh
pkg install drm-kmod
```
Add the kernel module
```sh
sysrc kld_list+=i915kms
```
# Fonts
```sh
pkg install urwfonts
```
But you're not done yet, you need to add a conf file:
```sh
nvim /usr/local/etc/X11/xorg.conf.d/90-fonts.conf
```
With the following:
```
Section "Files"
FontPath "/usr/local/share/fonts/urwfonts/"
EndSection
```
# KDE
https://docs.freebsd.org/en/books/handbook/desktop/#kde-environment
```sh
pkg install kde
```
```sh
sysrc dbus_enable="YES"
sysctl net.local.stream.recvspace=65536
sysctl net.local.stream.sendspace=65536
```
```sh
pkg install sddm
```
```sh
sysrc sddm_enable="YES"
sysrc sddm_lang="en_US"
```