To test my programs against a POSIX system I use both a VM and a local installation of FreeBSD.
Don't use ne2k_pci as network card, at least on my system (with kvm
) it produced lots of “nic memory corrupt” errors and network performance is painfully slow (network install is like going back to the modem days ) (Inside FreeBSD they're named edX
)
HVM default (rtl8139?) works fine (Inside FreeBSD named reX
)
Since I won't be using it and will reside in an external disk I won't be integrating it into my system (boot loader, etc). I'll use the BIOS-builtin boot disk selector.
Here are the abridged steps/progress in its installation. This is very specific to my needs and mainly useful to myself, I recommend you follow the (much clearer) FreeBSD handbook instructions.
Main reference: http://www.freebsd.org/doc/handbook/install.html
cfdisk
from Linux.<Anonymous ~ftp> User ftp Group nogroup UserAlias anonymous ftp RequireValidShell off DirFakeUser on ftp DirFakeGroup on users <Directory *> <Limit WRITE> DenyAll </Limit> </Directory> </Anonymous>
Symlinks won't be able to escape the root jail so hardlinks or mount --bind
are required.
ftp://SERVER/freebsd/
: # cd ~ftp # mkdir freebsd # mount -o loop PATH_TO_ISO ~ftp/freebsd
Now can install by setting FTP as media, choosing Other as site and putting the ftp path (source: handbook)
ad14
matches the fdisk I just run while on Linux. sysinstall's fdisk
:sysinstall
to install any missing stuff and it worked.systinstall
… install additional distributions… local FTP. This time it appears to work.re0
vcs
1) and mp3plot
(with sysinstall
, Configuration → Packages → FTP → (remote site) or pkg_add -r
):# pkg_add -r bash mplayer ffmpeg vim subversion # pkg_add -r xorg gnome2
i386 time. This should be easier now I've seen some pitfalls. I will be using remote FTP from the start this time around.
ad14s1a / (512M) ad14s1b swap (4G) ad14s1d /var (4G) ad14s1e /tmp (512M) ad14s1f /usr (11G)
$ chsh -s $(which bash)
# pkg_add -r xorg gnome2
echo 'gnome_enable="YES"' >> /etc/rc.conf
# sysinstall
Configure
⇒ Distributions
⇒ src
⇒ base
and sys
# cd /usr/ports/x11/nvidia-driver # make install # Linux compat. Disabled
# /usr/local/etc/rc.d/gdm stop
# Xorg -configure
test it with
# X -config /root/xorg.conf.new -retro
Only kept relevant sections (Device
and a modified Screen
)
# cp xorg.conf.new /etc/X11/xorg.conf
$ touch ~/.vimrc # The existance of ~/.vimrc is equivalent to ":set nocompatible"
# pkg_add -r ImageMagick wget vim fusefs-kmod fusefs-sshfs
+DISPLAY
of fusefs-kmod
package):# echo fusefs_enable="YES" >> /etc/rc.conf # /usr/local/etc/rc.d/fusefs start # sysctl vfs.usermount=1
untested yet
: Is there any safe way of live-upgrading? Is /sbin/sysinstall
+ Config → Options → Release name change discouraged?
sysinstall