FreeBSD: Difference between revisions
From DWIKI
mNo edit summary |
|||
Line 103: | Line 103: | ||
===Using large ( >2T ) drives=== | ===Using large ( >2T ) drives=== | ||
gpt | gpt create mfid1 | ||
create a 'slice' of 200000 sectors | |||
gpt add -s 2000000 mfid1 | |||
create one taking up the rest | |||
gpt add mfid1 |
Revision as of 12:38, 8 August 2008
Documentation
- The handbook
- FreeBSD made easy
- The FreeBSD Diary
- http://www.freebsdwiki.net/
- http://www.freebsd-howto.com/
- the releng stuff
- How to build *BSD CVSup mirror
- UFS FAQ
- FreeBSD Jails
- Locales
NFS
Ports
Filesystems
Networking
- http://www.erudition.net/freebsd/NAT-HOWTO
- natd examples
- ipfw-HOWTO
- http://freebsd.rogness.net/redirect.cgi?basic/nat.html
Tips and Tricks
- man intro
- man tuning
- mergemaster
- man pw
sysinstall
cd /sys/i386/conf ; make LINT
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
ssh taking a long time
In /etc/ssh/sshd_config
UseDNS no
files installed by ports
Using large ( >2T ) drives
gpt create mfid1
create a 'slice' of 200000 sectors
gpt add -s 2000000 mfid1
create one taking up the rest
gpt add mfid1