Gotchas, Linux
From FreeBSDwiki
(Difference between revisions)
m |
|||
Line 9: | Line 9: | ||
# /stand/sysinstall will be quite useful to you at first. | # /stand/sysinstall will be quite useful to you at first. | ||
# [[bash]] is not the default shell, [[csh]] or [[tcsh]] is. If you want to change that, see [[chsh]]. | # [[bash]] is not the default shell, [[csh]] or [[tcsh]] is. If you want to change that, see [[chsh]]. | ||
− | # Most linux distros use [[vim]], FreeBSD uses [[nvi]] by default. You can change this if it matters to you. | + | # Most linux distros use [[vim]], FreeBSD uses [[nvi]] by default. You can change this if it matters to you. Use /usr/ports/editors/vim-lite if you do not want to install the [[X windowing system]] else use /usr/ports/editors/vim. |
# Your NIC is no longer eth0 or eth0 or whatever. FreeBSD names it's interfaces by the driver they use; you'll see rl0, ed0, hme0, etc. | # Your NIC is no longer eth0 or eth0 or whatever. FreeBSD names it's interfaces by the driver they use; you'll see rl0, ed0, hme0, etc. | ||
# /etc/mtab doesn't show you mounts. [[mount]] and [[df]] do. | # /etc/mtab doesn't show you mounts. [[mount]] and [[df]] do. |
Revision as of 10:03, 27 July 2005
Things you should know if you're coming to FreeBSD from Linux
- The kernels are different -- monolithic instead of microkernels, although FreeBSD does allow dynamic loading of modules (see kldstat, kldload, kldunload.)
- No iptables/netfilter: ipfw packet filter takes it's place, but you have to recompile your kernel to include it
- No /proc tree. If you're used to banging around /proc to find system info, man sysctl. If you installed linux-compatibility, see /usr/compat/linux/proc
- You don't have to compile everything from ports, it's usually better for your particular system if you do. See pkg_add and the other pkg tools.
- If in doubt, read the Handbook (or ask here).
- Different filesystems: linux uses ext2/ext3/reiserfs by default (usually) and FreeBSD uses UFS. Yes, it does journaling.
- Java's a tough nut to install. Deal.
- /stand/sysinstall will be quite useful to you at first.
- bash is not the default shell, csh or tcsh is. If you want to change that, see chsh.
- Most linux distros use vim, FreeBSD uses nvi by default. You can change this if it matters to you. Use /usr/ports/editors/vim-lite if you do not want to install the X windowing system else use /usr/ports/editors/vim.
- Your NIC is no longer eth0 or eth0 or whatever. FreeBSD names it's interfaces by the driver they use; you'll see rl0, ed0, hme0, etc.
- /etc/mtab doesn't show you mounts. mount and df do.
- Your hard disks are no longer /dev/hda or /dev/sda. Now they are /dev/ad0s1a. See partitions.
- devinfo and swapinfo will do a lot of sysctl magic for you.
- Software RAID? See vinum.
- Bandwidth limiting/traffic shaping? See dummynet
- Disk encryption? [It's in the Handbook]