9.0 - Migrating from Linux

For more information for Linux users, please refer to http://sites.inka.de/mips/unix/bsdlinux.html.

9.1 - Simple tips for Linux (and other free Unix-like OS) users

There are several differences between OpenBSD and Linux. These differences include but are not limited to, bootup procedure, network interface usage and disk management. Most differences are well documented, but involve searching manpages. This document tries to be an index of those differences.

9.2 - Dual booting Linux and OpenBSD

Yes! it is possible!

Read INSTALL.linux

9.3 - Converting your Linux (or other System 7-style) password file to BSD-style

First, figure out if your Linux password file is shadowed or not. If it is, grab John the Ripper and use the unshadow utility that comes with it to merge your passwd and shadow files into one System 7-style file.

Using your Linux password file, we'll call it linux_passwd, you need to add in ::0:0 between fields four and seven. Awk does this for you.

At this point, you want to edit the new_passwd file and remove the root and other system entries that are already present in your OpenBSD password file or aren't applicable with OpenBSD (all of them). Also, make sure there are no duplicate usernames or user IDs between new_passwd and your OpenBSD box's /etc/passwd. The easiest way to do this is to start with a fresh /etc/passwd. The last step, pwd_mkdb is necessary to rebuild the /etc/spwd.db and /etc/pwd.db files. It also creates a System 7-style password file (minus encrypted passwords) at /etc/passwd for programs which use it. OpenBSD uses a stronger encryption for passwords, blowfish, which is very unlikely to be found on any system which uses full System 7-style password files. To switch over to this stronger encryption, simply have the users run 'passwd' and change their password. The new password they enter will be encrypted with your default setting (usually blowfish unless you've edited /etc/passwd.conf). Or, as root, you can run passwd username.

9.4 - Getting OpenBSD and Linux to interact

If you are migrating from Linux to OpenBSD, note that OpenBSD has COMPAT_LINUX enabled by default in the GENERIC kernel. To run any Linux binaries that are not statically linked (most of them), you need to follow the instructions on the compat_linux(8) manual page. A simple way to get most of the useful Linux libraries is to install linux_lib from your ports collection. To find out more about the Ports collection read FAQ 8.6. If you already have the ports tree installed use these commands to get linux libraries installed.

OpenBSD supports the EXT2FS file system. Use disklabel disk (where disk is the device name for your disk. ) to see what OpenBSD thinks your Linux partition is (but don't use disklabel or fdisk to make any changes to it). For further information on using disklabel read FAQ 14.1.

[Back to Main Index] [To Section 8.0 - General Questions] [To Section 10.0 - System Administration]

[back] www@openbsd.org
$OpenBSD: faq9.html,v 1.24 2001/01/27 22:19:48 ericj Exp $