FreeBSD 7.2 si htop


"Htop is an advanced, interactive system monitor process viewer written for Linux. It is designed to replace the Unix program top. It shows a frequently updated list of the processes running on a computer, normally ordered by the amount of CPU usage. Unlike 'top', Htop provides a full list of processes running, instead of the top resource consuming processes. Htop also uses color and gives visual information about processor, swap and memory status."

In FreeBSD 7.2
BSD must have a linux emulator enabled.

Dynamically load the linux object in the kernel:

kldload linux


Then to make this loading permanent:

linux_enable="YES" to /etc/rc.conf

After install a linux layer:

cd /usr/ports/emulators/linux_base-fc4 (Fedora Core 4 in this example)
make install distclean


Go to /etc/fstab and add the following line:

linproc /compat/linux/proc linprocfs rw 0 0


Mount the new filesystem: mount linproc and go to /usr/ports/sysutils/htop and install using regular * make install clean *

Issues:

If at htop install a error by 'lsof' occures:
pvp# make install clean
===> Configuring for lsof-4.83A,4
!!!WARNING!!! No kernel sources in /usr/src/sys or /sys


then you must use pkg_add to install lsof:

pkg_add -r lsof

afterwords htop should install just fine.

0 comentarii: