Notation When the documentation doesn’t suffice for solving an
issue you encounter, you may ask about it in the com- In the Linux world, you will at times see a notation munity; if it turns out to be a bug, you can report it as not only referring to a name, but also to a manpage such. There are several methods to do so, the fastest category. In the BSD world, it is usual to do exactly ones being described here: that by appending the category number in parentheses after the name. Thus, when people would usually say Just use sh!, you’d translate it to Just use sh(1)! when Mailing lists they want you to use the shell. Mostly all of NetBSD’s communication is done via In the same way, as packages in the BSD world are mailing lists. You can subscribe to them (most of them organized in categories, you will mostly see references don’t have too much traffic, and nearly no dumb traffic to the category prepended to the package’s name, e.g., anyway), or read all the archives on the web or Usenet. you’ll be told to install www/firefox instead of just firefox, where www is the pkgsrc-category of Firefox (see Announcements below). For general information like release announcements, This notation helps omitting ambiguous descriptions, security advisories, etc., there is the netbsd-announce and you usually can determine whether you are talking list. There is very little traffic on this list, as only im- about a kernel driver, a userland tool, configuration file portant announcements are made through it. Security or a library by just looking at the category the object announcements are also announced on the security- is meant to be in. announce list; you are strongly advised to subscribe Tips and Tricks for to this list if you use NetBSD anywhere. The Guide NetBSD Newcomers As other BSDs, NetBSD has a central handbook, called Bug reports The NetBSD Guide. This guide can be seen as the Nowadays there are only few people who start using If you encounter a problem, you can file a problem reference for the system, containing a description of Unix by using a shell. Most people install their Unix- report (PR). First take a look at the PR database to all important subsystems and introductions on how to like operating system, with GNU/Linux being the most see if the issue hasn’t already been reported (it may use them (e.g., hard disk encryption), and should be widespread one, with a graphical installer. even include a temporary workaround); if it wasn’t, your first start if you have a problem. you can do so using a form on the NetBSD website, or This introductory text is made for people who already by using the send-pr(1) command. use GNU/Linux and know about its internals and the The articles principles of the system. It provides a few tips and tricks on how to switch to NetBSD, and what you have The NetBSD website contains a huge amount of IRC to consider when switching. NetBSD-related documentation including articles, Decentrally organized, there are NetBSD channels in guides, FAQs, and how-tos. Of course, there are Note: in the following text, Linux actually means the larger IRC networks like freenode, EFnet, and IR- many other websites dedicated to NetBSD as well; the GNU/Linux, except where just the kernel is meant. Cnet, generally named #netbsd. NetBSD website often provides links to them. For less static information, also have a look at the NetBSD wiki. Generic tips problem, it is almost always helpful to include the Useful Links contents of the system message buffer. • The configuration in NetBSD is mostly the same • website: http://www.NetBSD.org • The NetBSD Guide has several chapters about as in Linux, or any other Unix-like system for that • Guide: http://www.NetBSD.org/docs/guide/en building your system from source, which is an easy matter. Most configuration files of the base system task to do, with NetBSD. You can build NetBSD • articles: http://www.NetBSD.org/docs are in /etc; those of additional third party software on nearly any Unix-like operating system and any from pkgsrc are in /usr/pkg/etc. Most programs • manpages: http://man.NetBSD.org platform, for any platform; cross-compiling them allow users to override these files with equivalent without hassle is possible, so you don’t have to use • wiki: http://wiki.NetBSD.org ones in their home directories, mostly having an your weak old machine for building its own current (almost) equal name. system. • Query bugs: Default configuration files for system processes • NetBSD names most of its devices after its man- http://www.NetBSD.org/support/query-pr. and procedures are often kept in /etc/defaults. ufacturer, being the classical Unix way. You will html These files are not just templates, but actually notice this when, for instance, having a look at • Report bugs: processed; configuration directives defined in them the network interfaces: instead of being called eth0, http://www.NetBSD.org/cgi-bin/sendpr.cgi? may be overridden though by files with the same eth1 etc. (as is the case in Linux), they are named gndb=netbsd name in the parent directory (i.e., /etc), then con- after their driver, e.g., wm0, wm1 etc. for wm(4) taining the same directives. See the rc.conf(5) Intel Gigabit Ethernet network interfaces. As an- manpage for an example hereof. • Install third party software: other example, wd0, wd1, etc. are the device • sysctl(7) is an interface to set various parameters names for wd(4) Western Digital WD100x compat- http://www.NetBSD.org/docs/guide/en/ of the kernel, mostly equivalent to Linux’ procfs ible hard disks. chap-boot.html#chap-boot-pkgsrc subsystem. Though Linux also has a sysctl com- • NetBSD Guide – compile NetBSD: • NetBSD provides ISO-files which can be written to mand doing the same work, it is there mostly an- http://www.NetBSD.org/docs/guide/en/ a CD-ROM, to install the system from there. As other interface to the procfs subsystem. part-compile.html an extra, the sysutils/mkmemstick package can sysctl(7) in NetBSD is generally tidier, and con- be used to convert these ISO-files to images to be • The pkgsrc Guide: http://www.NetBSD.org/ tains descriptions of the options and parameters. written to a USB memory stick, so such device can docs/pkgsrc With the sysctl(8) command, you can show and be used as a bootable installation medium as well. set these values, and show their descriptions. • pkgsrc make targets: Writing such new image to a memory stick can eas- http://wiki.NetBSD.org/pkgsrc/targets An exact description of some important system in- ily be done using the dd(1) command. • Development/contributions: http://www.NetBSD. formation variables can be found in the sysctl(7) • Equivalently to Linux’ logrotate NetBSD pro- manpage; having a look here might even help ex- org/contrib vides the newsyslog(8) command, which is acti- perienced users fine-tune their kernel parameters. vated by default, holding its configuration in the • A useful equivalent to Linux’ lspci is pcictl(8), /etc/newsyslog.conf file. • Mailing lists: http://www.NetBSD.org/ which you can use for manipulating a PCI bus, e.g., • NetBSD can be configured to download a list of mailinglists list all devices connected to it. known security vulnerabilities each day, which will • Mailing list archives: http://mail-index. • To see information the kernel printed out while then be be compared to your installed packages. NetBSD.org booting (but which is now lost due to system mes- You are highly advised to do so, as security vulner- • NetBSD-related events: sage buffer being filled by other, later messages), abilities in third party programs lower the overall http://www.NetBSD.org/gallery/events.html you can have a look at the /var/run/dmesg.boot safety of your system. You are advised to update file. Here, all the information from the boot pro- the respective package as soon as possible. cess, for example your processor model, devices de- • For various ways in which people contribute to tected on your system, etc. is listed. The system NetBSD, see http://www.NetBSD.org/contrib. message buffer itself can always be viewed with the Of course, you are encouraged to contribute your- dmesg(8) command. When you report a hardware self as well! 07.03.2012. Contact: advocacy@NetBSD.org