Difference between revisions of "Htop on freebsd"

From banana_wiki
Jump to: navigation, search
 
Line 11: Line 11:
 
<pre>echo linux_enable=\&quot;YES\&quot; &gt;&gt; /etc/rc.conf</pre>
 
<pre>echo linux_enable=\&quot;YES\&quot; &gt;&gt; /etc/rc.conf</pre>
 
Add linproc to fstab
 
Add linproc to fstab
<pre>linproc /compat/linux/proc  linprocfs  rw  0  0&quot; &gt;&gt; /etc/fstab mkdir -p /usr/compat/linux/proc; ln -s /usr/compat /compat; mount linproc</pre>
+
<pre>linproc /compat/linux/proc  linprocfs  rw  0  0&quot; &gt;&gt; /etc/fstab </pre>
 +
<pre>mkdir -p /usr/compat/linux/proc; ln -s /usr/compat /compat; mount linproc</pre>
  
 
We also must pull in kernel source in order to configure lsof
 
We also must pull in kernel source in order to configure lsof

Latest revision as of 17:22, 22 November 2014

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

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