Try to learn something about everything, and everything about somethingThomas Huxley “Darwin's bulldog” (1824-1895)

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:computers:laptop_freebsd [04/06/26 11:33 BST] – [/boot/loader.conf] johnpublic:computers:laptop_freebsd [05/06/26 09:43 BST] (current) – [Serial USB Adaptors] john
Line 2: Line 2:
  
  
-====== Laptop Freebsd ======+====== Laptop FreeBSD ======
  
 I moved my Dell laptop from Devuan Linux to FreeBSD and here are some things I needed to do and some things I did for convenience.... I moved my Dell laptop from Devuan Linux to FreeBSD and here are some things I needed to do and some things I did for convenience....
Line 52: Line 52:
  
 </code> </code>
- 
------------------------------ 
- 
  
 ''i915kms''  now loads and I have access to DPMS for turning off the LCD ''i915kms''  now loads and I have access to DPMS for turning off the LCD
 screen. screen.
  
-==== LCD Panel on/off ====+===== LCD Panel on/off =====
  
 I made a few small shell scripts to assist in controlling the I made a few small shell scripts to assist in controlling the
Line 81: Line 78:
 ''DISPLAY'' variable was the solution. ''DISPLAY'' variable was the solution.
  
-=== /etc/devd/rules.d/lid.conf ===+==== /etc/devd/rules.d/lid.conf ====
  
 <code> <code>
Line 122: Line 119:
  
  
-==== Other tweaks ====+===== Other tweaks =====
  
  
 Small scripts to automate swithing between Wifi and Ethernet Small scripts to automate swithing between Wifi and Ethernet
  
-=== net_wlan.sh ===+==== net_wlan.sh ====
  
 <code bash> <code bash>
Line 138: Line 135:
 </code> </code>
  
-=== net_eth.sh ===+==== net_eth.sh ====
  
  
Line 150: Line 147:
 </code> </code>
  
 +===== Serial USB Adaptors =====
 +
 +
 +To get access to a USB serial device as normal user (as long as I'm in the ''wheel'' group) I added a rule in ''/etc/devd.conf''
 +
 +<code bash>
 +notify 100 {
 +        match "system"          "DEVFS";
 +        match "subsystem"       "CDEV";
 +        match "type"            "CREATE";
 +        match "cdev"            "ttyU[0-9]+";
 +        action "chmod ug+rw /dev/$cdev";
 +
 +};
 +
 +</code>
 +
 +This makes the device R/W for the ''wheel'' group. Without this rule (the chmod part) the device is only R/W for root.
 +
 +
 +===== Other Config Files =====
  
 ==== /etc/rc.conf ==== ==== /etc/rc.conf ====
Line 156: Line 174:
 hostname="proton" hostname="proton"
 keymap="uk.kbd" keymap="uk.kbd"
-#wlans_iwlwifi0="wlan0" 
 wlans_iwm0="wlan0" wlans_iwm0="wlan0"
 ifconfig_wlan0="WPA  DHCP" ifconfig_wlan0="WPA  DHCP"
Line 164: Line 181:
 ifconfig_em0_ipv6="inet6 ifdisabled" ifconfig_em0_ipv6="inet6 ifdisabled"
 ifconfig_lo0_ipv6="inet6 ifdisabled" ifconfig_lo0_ipv6="inet6 ifdisabled"
-#ifconfig_wlan0_ipv6="inet6 accept_rtadv" 
 create_args_wlan0="country GB regdomain NONE" create_args_wlan0="country GB regdomain NONE"
 sshd_enable="YES" sshd_enable="YES"
Line 193: Line 209:
  
 kld_list="i915kms" kld_list="i915kms"
-#kld_list="${kld_list} if_iwlwifi" 
- 
  
 powerd_enable="YES" powerd_enable="YES"
Line 232: Line 246:
 xset dpms 600 660 670 xset dpms 600 660 670
 backlight 40 backlight 40
- 
-#xsetroot -solid "#005577" 
  
 eval $(gnome-keyring-daemon --start) eval $(gnome-keyring-daemon --start)
Line 241: Line 253:
  
 pulseaudio & pulseaudio &
- 
-#~/bin/background.sh & 
  
 dwmblocks & dwmblocks &
- 
- 
-#xfce4-power-manager & 
  
 pasystray & pasystray &
- 
-#nm-applet & 
  
 nextcloud &  nextcloud & 
- 
-#hp-systray &  
- 
-#/home/g4slv/Downloads/Nextcloud-33.0.4-x86_64.AppImage & 
- 
-#xscreensaver --no-splash & 
  
 exec dbus-launch --exit-with-x11 dwm exec dbus-launch --exit-with-x11 dwm
Line 266: Line 265:
  
  
-==== pkg prime-list ====+===== pkg prime-list =====
  
 Here's the list of intentionally installed packages currently  Here's the list of intentionally installed packages currently