Htop on freebsd

From banana_wiki
Revision as of 17:21, 22 November 2014 by Bananafish (talk | contribs) (Created page with "This tool must be so good that people will install a whole linux compatibility layer just to use it in FreeBSD. First we must load the Linux binary compatibility module <pre...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This tool must be so good that people will install a whole linux compatibility layer just to use it in FreeBSD.

First we must load the Linux binary compatibility module

kldload linux

Install the Linux base port

cd /usr/ports/emulators/linux_base-f10 && make install clean

And enable it at startup

echo linux_enable=\"YES\" >> /etc/rc.conf

Add linproc to fstab

echo "linproc /compat/linux/proc linprocfs rw 0 0" >> /etc/fstab mkdir -p /usr/compat/linux/proc; ln -s /usr/compat /compat; mount linproc We also must pull in kernel source in order to configure lsof

svnlite checkout http://svn0.eu.freebsd.org/base/releng/10.1/ /usr/src

Now we can finally build htop

cd /usr/ports/sysutils/htop && make install clean