Wer gerne im (z.B. ttyv7) Terminal einen Ressourcen-Monitor laufen lassen möchte, muss nur ein wenig die ttys/gettytab anpassen:
als Beispiel dient py-glances
Lösung:
Punkt 1: zunächst wird glances installiert
$ cd /usr/ports/sysutils/py-glances/ && make install clean $
Punkt 2: /etc/ttys Anpassung
$ #ttyv7 "/usr/libexec/getty Pc" xterm on secure ttyv7 "/usr/libexec/getty autotop" xterm on secure $
Punkt 3: /etc/gettytab Anpassung
$ ### /root/top.sh // ### autotop|al.9600:\ :al=root:lo=/autotop.sh:tc=std.9600: ### // /root/top.sh ### $
Punkt 4: /autotop.sh Script erstellen
$ vi /autotop.sh $
$ #!/bin/sh ###exec /usr/bin/top -P exec /usr/local/bin/glances # EOF $
$ chmod ug+x /autotop.sh $
Punkt 5: tty Reset / (wahlweise auch Systemreboot)
$ init q $
That’s FreeBSD