htop – could not read procfs

After installation of htop you can often see

Error: could not read procfs (compiled to look in /compat/linux/proc).

there is some operations you should do :

1. Install linux_base-f10

[root@gw-ds14 ~]# pkg install linux_base-f10
Updating FreeBSD repository catalogue…
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 1 packages will be affected (of 0 checked):

New packages to be INSTALLED:
linux_base-f10: 10_8

The process will require 135 MB more space.
17 MB to be downloaded.

Proceed with this action? [y/N]: y
Fetching linux_base-f10-10_8.txz: 100% 17 MB 1.6M/s 00:11
Checking integrity… done (0 conflicting)
[1/1] Installing linux_base-f10-10_8: 100%

+++ Please mount linprocfs manually! +++

Running linux ldconfig…
[root@gw-ds14 ~]#

2. Enable linux in rc.conf

[root@gw-ds14 ~]# echo ‘linux_enable=”YES”‘ >> /etc/rc.conf

3. Add linproc to fstab

[root@gw-ds14 ~]# echo ‘linproc  /compat/linux/proc     linprocfs rw    0       0’ >>/etc/fstab

4. Mount linproc

[root@gw-ds14 ~]# mount -a

5. Run htop



FreeBSD + full keboard support for bash

It’s preatty anoing when your bash console is giving you ~~~~~ for home, end or del key.

Easy way to get it work is set an environment variables by adding to your /etc/profile file line :

export INPUTRC=/usr/local/etc/inputrc

and fill this file with content

set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
“\e[1~”: beginning-of-line
“\e[4~”: end-of-line
“\e[5~”: beginning-of-history
“\e[6~”: end-of-history
“\e[3~”: delete-char
“\e[2~”: quoted-insert
“\e[5C”: forward-word
“\e[5D”: backward-word

don’t forget to chmod  the file  🙂
To see effects relogin or just put


into console

Bash as default shell 4 your user.

I love bash – that’s why I setted it as default for my root 🙂

[root@gw-ds14 ~]# whereis bash
bash: /usr/local/bin/bash /usr/local/man/man1/bash.1.gz /usr/ports/shells/bash
[root@gw-ds14 ~]# chsh -s /usr/local/bin/bash root
chsh: user information updated