Difference between revisions of "System/FreeBSD"

From LunaSys
Jump to navigation Jump to search
Line 7: Line 7:
 
  chsh -s /usr/local/bin/bash root
 
  chsh -s /usr/local/bin/bash root
  
pkg install xorg i3 i3status i3lock mate rofi chromium firefox
+
pkg install xorg i3 i3status i3lock mate rofi chromium firefox
  
 
edit .xinitrc
 
edit .xinitrc
  
echo "kern.ipc.shm_allow_removed=1" >> /etc/sysctl.conf
+
echo "kern.ipc.shm_allow_removed=1" >> /etc/sysctl.conf
 
+
echo "kern.vt.enable_bell=0" >> /etc/sysctl.conf
echo "kern.vt.enable_bell=0" >> /etc/sysctl.conf
 
  
 
```cat /boot/loader.conf```
 
```cat /boot/loader.conf```
Line 29: Line 28:
 
</pre>
 
</pre>
  
# cat /etc/rc.conf
+
```cat /etc/rc.conf```
 
<pre>
 
<pre>
 
clear_tmp_enable="YES"
 
clear_tmp_enable="YES"
Line 52: Line 51:
 
== u2f ==
 
== u2f ==
  
pkg install u2f-devd
+
pkg install u2f-devd
service devd restart
+
service devd restart
pw group mod u2f -m eadam
+
pw group mod u2f -m eadam
service devd restart
+
service devd restart
  
 
== suspend ==
 
== suspend ==
  
acpiconf -s 3
+
acpiconf -s 3
  
 
== backlight ==
 
== backlight ==
  
pkg install intel-backlight
+
pkg install intel-backlight
intel_backlight 30
+
intel_backlight 30
# echo 'acpi_video_load="YES"' >> /boot/loader.conf
+
# echo 'acpi_video_load="YES"' >> /boot/loader.conf
# cp /usr/local/share/examples/intel-backlight/acpi-video-intel-backlight.conf /usr/local/etc/devd/
+
# cp /usr/local/share/examples/intel-backlight/acpi-video-intel-backlight.conf /usr/local/etc/devd/
sysrc kld_list+=" acpi_video"
+
sysrc kld_list+=" acpi_video"
  
 
== wifi ==
 
== wifi ==
Line 85: Line 84:
 
== sound ==
 
== sound ==
  
kldload snd_driver
+
kldload snd_driver
echo "hw.snd.default_unit=1
+
echo "hw.snd.default_unit=1
hw.snd.default_auto=0" >> /etc/sysctl.conf
+
hw.snd.default_auto=0" >> /etc/sysctl.conf
  
 
== webcam ==
 
== webcam ==
  
pkg install webcamd pwcview v4l-utils v4l_compat
+
pkg install webcamd pwcview v4l-utils v4l_compat
echo 'webcamd_enable="YES"' >> /etc/rc.conf
+
echo 'webcamd_enable="YES"' >> /etc/rc.conf
echo 'cuse_load="YES"' >> /boot/loader.conf
+
echo 'cuse_load="YES"' >> /boot/loader.conf
pw groupmod webcamd -m eadam
+
pw groupmod webcamd -m eadam
  
 
== todo ==
 
== todo ==
 +
 
- home backup
 
- home backup

Revision as of 22:30, 13 November 2022

base & X

pkg install sudo bash vim wpa_supplicant drm-kmod screen password-store rsync
pw groupmod wheel -m eadam
chsh -s /usr/local/bin/bash eadam
visudo => uncomment sudo for wheel group
chsh -s /usr/local/bin/bash root
pkg install xorg i3 i3status i3lock mate rofi chromium firefox

edit .xinitrc

echo "kern.ipc.shm_allow_removed=1" >> /etc/sysctl.conf
echo "kern.vt.enable_bell=0" >> /etc/sysctl.conf

```cat /boot/loader.conf```

aesni_load="YES"
geom_eli_load="YES"
security.bsd.allow_destructive_dtrace=0
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
cryptodev_load="YES"
zfs_load="YES"
kern.vty=vt
sem_load="YES"
linux_load="YES"

```cat /etc/rc.conf```

clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="eadam-laptop"
keymap="us.kbd"
ifconfig_ue0="DHCP"
sshd_enable="YES"
ntpd_enable="YES"
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
dbus_enable="YES"
hald_enable="YES"
kld_list="i915kms"
slim_enable="YES"
pcscd_enable="YES"

u2f

pkg install u2f-devd
service devd restart
pw group mod u2f -m eadam
service devd restart

suspend

acpiconf -s 3

backlight

pkg install intel-backlight
intel_backlight 30
# echo 'acpi_video_load="YES"' >> /boot/loader.conf
# cp /usr/local/share/examples/intel-backlight/acpi-video-intel-backlight.conf /usr/local/etc/devd/
sysrc kld_list+=" acpi_video"

wifi

ifconfig wlan0 create wlandev iwm0
ifconfig wlan0 up scan
if [ $1 = "withings" ]; then
  wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf &
else
  wpa_supplicant -i wlan0 -c /etc/wpa_supplicant_home.conf &
fi
sleep 3
dhclient wlan0

sound

kldload snd_driver
echo "hw.snd.default_unit=1
hw.snd.default_auto=0" >> /etc/sysctl.conf

webcam

pkg install webcamd pwcview v4l-utils v4l_compat
echo 'webcamd_enable="YES"' >> /etc/rc.conf
echo 'cuse_load="YES"' >> /boot/loader.conf
pw groupmod webcamd -m eadam

todo

- home backup