FREEBSD 13

Updated . Posted . Visible to the public.

FreeBSD 13.1

Jul 2022

root@host:~ # neofetch
```                        `       root@host.vm.org 
  ` `.....---.......--.```   -/    ---------------- 
  +o   .--`         /y:`      +.   OS: FreeBSD 13.1-RELEASE amd64 
   yo`:.            :o      `+-    Uptime: 6 mins 
    y/               -/`   -o/     Packages: 7 (pkg) 
   .-                  ::/sy+:.    Shell: csh tcsh 6.22.04 
   /                     `--  /    CPU: Intel i3-2120 (4) @ 3.292GHz 
  `:                          :`   GPU: 2nd Generation Core Processor Family In 
  `:                          :`   Memory: 563MiB / 3951MiB 
   /                          /
   .-                        -.                            
    --                      -.                             
     `:`                  `:`
       .--             `--.
          .---.....----.

root@host:~ # 

Want to list all files of an installed package?

pkg info -l packagename # -- Lars Engels <lme@FreeBSD.org>

Need to see your routing table?

Type "netstat -rn".
The entry with the G flag is your gateway. -- Dru genesis@istar.ca

[leo@red ~]$ netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
default            192.168.88.1       UGS      vtnet0
127.0.0.1          link#2             UH          lo0
192.168.88.0/24    link#1             U        vtnet0
192.168.88.232     link#1             UHS         lo0

Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             ::1                           UGRS        lo0
::1                               link#2                        UHS         lo0
::ffff:0.0.0.0/96                 ::1                           UGRS        lo0
fe80::/10                         ::1                           UGRS        lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         ::1                           UGRS        lo0
[leo@red ~]$ 



To make the "zfs list" output more script-friendly, you can suppress the
output of the headers for each column by passing the -H parameter:

zfs list -H

Another helpful option for script writers is -p, which displays the numbers
in non-rounded, exact values:

zfs list -p

	-- Benedict Reuschling <bcr@FreeBSD.org>

# cat > /etc/wpa_supplicant.conf << __EOF
network={
  ssid="WIFI-NETWORK-NAME"
  psk="PASSWORD"
}
__EOF

XFCE

pkg install xorg xfce xfce4-goodies htop chromium firefox dbus

wine

#pkg install wine
$/usr/local/share/wine/pkg32.sh install wine mesa-dri
sockstat -4 -l
sockstat -c
sockstat -c -4
sockstat -c -4 | grep ssh
sockstat -c -4 | grep 22
sockstat -4 -l | grep :22
netstat -a -n | grep LISTEN
netstat -a | egrep 'LISTEN|Proto|Active'
netstat -a | egrep 'Proto|LISTEN'
lsof -i :22

Sound

cat /dev/sndstat
sysctl hw.snd.default_unit=2

/etc/sysctl.conf

# $FreeBSD$
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
vfs.zfs.min_auto_ashift=12

###
# HDMI out sound
hw.snd.default_unit=2

###
# For correct operation, shared memory support has to be enabled
# in Chromium by performing
kern.ipc.shm_allow_removed=1

###
# For tap network
net.link.tap.up_on_open=1

Video Driver

pkg install drm-kmod
kldstat
service dbus status
pciconf -lv

/etc/rc.conf

root@redbull:~ # cat /etc/rc.conf
clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="redbull"
keymap="br.kbd"
ifconfig_re0="192.168.88.186 netmask 255.255.255.0"
defaultrouter="192.168.88.1"
#ifconfig_re0="DHCP"
sshd_enable="YES"
#moused_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
###
# Video driver
kld_list="i915kms linux linux64"
###
# IPFW
#firewall_enable="YES"
#firewall_quiet="YES"
#firewall_type="workstation"
#firewall_myservices="22 3389"
#firewall_allowservices="any"
#firewall_logdeny="YES"
###
hald_enable="YES"
dbus_enable="YES"
ntpd_flags="-g"
###
# Linux
linux_enable="YES"
###
# Slim
#slim_enable=yes
###
# xrdp
xrdp_enable="YES"
xrdp_sesman_enable="YES" # if you want to run xrdp-sesman on the same machine
jail_enable="YES"   # Set to NO to disable starting of any jails
cloned_interfaces="bridge0 tap0"
ifconfig_bridge0="addm re0 addm tap0"
zabbix_agentd_enable="YES"
#fuse_enable="YES"

/boot/loader.conf

root@redbull:~ # cat /boot/loader.conf
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
cryptodev_load="YES"
zfs_load="YES"
============================
loader_logo="beastie"
coretemp_load="YES"
tmpfs_load="YES"
aio_load="YES"

i3wm

pkg install i3 i3status i3lock dmenu xorg
echo "exec /usr/local/bin/i3" >> /usr/home/<username>/.xinitrc

reboot
startx

Install source code

Download FreeBSD source code according architecture, version:

fetch ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz

Uncompress the source package:

tar -C / -xvzf src.txz

Make sure the src is included in Components line in /etc/freebsd-update.conf, so when using freebsd-update to update system, also the source code is refreshed.

# cat /etc/freebsd-update.conf
......
# Components of the base system which should be kept updated.
Components src world kernel
......
Profile picture of L3UNIX
L3UNIX
Last edit
L3UNIX
Posted by L3UNIX to L3UNIX's deck (2022-07-17 15:50)