Difference between revisions of "Htop on freebsd"

From banana_wiki
Jump to: navigation, search
(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...")
 
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>
  
<tt>echo &quot;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</tt> We also must pull in kernel source in order to configure lsof
+
We also must pull in kernel source in order to configure lsof
  
 
<pre>svnlite checkout http://svn0.eu.freebsd.org/base/releng/10.1/ /usr/src</pre>
 
<pre>svnlite checkout http://svn0.eu.freebsd.org/base/releng/10.1/ /usr/src</pre>
 +
 
Now we can finally build htop
 
Now we can finally build htop
  
<tt>cd /usr/ports/sysutils/htop &amp;&amp; make install clean</tt>
+
<pre>cd /usr/ports/sysutils/htop &amp;&amp; make install clean</pre>

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