FreeBSD: Difference between revisions

From DWIKI
mNo edit summary
Line 3: Line 3:
*[http://www.freebsdmadeeasy.com/ FreeBSD made easy]
*[http://www.freebsdmadeeasy.com/ FreeBSD made easy]
*[http://www.freebsddiary.org/ The FreeBSD Diary]
*[http://www.freebsddiary.org/ The FreeBSD Diary]
*[http://www.freebsd-howto.com/HOWTO/Ipfw-HOWTO ipfw-HOWTO]
*[http://www.freebsd-howto.com/ http://www.freebsd-howto.com/]
*[http://www.freebsd-howto.com/ http://www.freebsd-howto.com/]
*[http://www.freebsd.org/releng/ the releng stuff]
*[http://www.freebsd.org/releng/ the releng stuff]
Line 20: Line 19:
*http://www.erudition.net/freebsd/NAT-HOWTO
*http://www.erudition.net/freebsd/NAT-HOWTO
*[http://www.mail-archive.com/freebsd-ipfw%40freebsd.org/msg00528.html natd examples]
*[http://www.mail-archive.com/freebsd-ipfw%40freebsd.org/msg00528.html natd examples]
*[http://www.freebsd-howto.com/HOWTO/Ipfw-HOWTO ipfw-HOWTO]


=Tips and Tricks=
=Tips and Tricks=

Revision as of 15:02, 1 August 2008

Documentation

Ports

Filesystems

Networking

Tips and Tricks

  • man intro
  • man tuning
  • mergemaster
  • man pw
sysinstall
cd /sys/i386/conf ; make LINT


FreeBSD as gateway

Rescue

Snapshots


Kernel modules

kldload kldstat etc

Hardware info

kenv
pciconf -lv
grep -i cpu /var/run/dmesg.boot
sysctl hw.ncpu

Checking resources

systat -pigs
fstat -f /var
systat -vm

FAQ

Ports

exclude from csup

To exclude for example /usr/ports/japanese, put in /var/db/refuse

ports/japanese

(or a refuse file in whatever base you defined in supfile)

Upgrading

http://people.freebsd.org/~rse/upgrade/

portupgrade -P -f -a


Courier-imap certificates

check out /usr/local/share/mkimapdcert

crontab: temp file must be edited in place

Happens when you set EDITOR=vim. Fix it by setting :set nobackup and :set nowritebackup in .vimrc

ping: sendto: Permission denied

sysctl:

security.jail.allow_raw_sockets: 0

Ports

Post install messages

/usr/ports/*/*/pkg-message


config options used for a port

/var/db/ports/*/options

files installed by ports