Compare commits
5 commits
e0bc159395
...
e2339499b1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2339499b1 | ||
|
|
4728c7334b | ||
|
|
f725e9cfb5 | ||
|
|
126ad4e01b | ||
|
|
3d2ed285ed |
28 changed files with 98 additions and 2 deletions
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
|
|
@ -91,11 +91,16 @@ nvim /etc/pf.conf
|
||||||
Contents:
|
Contents:
|
||||||
|
|
||||||
```
|
```
|
||||||
ext_if="em0"
|
|
||||||
block in all
|
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 80
|
||||||
pass in on $ext_if proto tcp to ($ext_if) port 443
|
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
|
pass out all keep state
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -109,3 +114,94 @@ If you get the error 'no host key files found` then
|
||||||
```sh
|
```sh
|
||||||
ssh-keygen -A
|
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"
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue