Curl & Finger

Sposób na informowanie o najnowszej wersji kernela tuż po zalogowaniu.

Curl

Stwórz plik /etc/cron.daily/issue a następnie wklej do niego:


#!/bin/bash
curl -Ss www.kernel.org/kdist/finger_banner > /etc/issue

Jeżeli chcemy otrzymywać informacje tylko o najnowszej wersji stabilnego kernela, linijka


curl -Ss www.kernel.org/kdist/finger_banner > /etc/issue

powinna zostać zamieniona na

curl -Ss www.kernel.org/kdist/finger_banner |head -n1 > /etc/issue

Następnie wykonaj polecenie:


$ echo "cat /etc/issue" >> ~/.bashrc

Pełna informacja o wersjach kerneli powinna wyglądać tak:


The latest stable version of the Linux kernel is: 2.6.16.1
The latest prepatch for the stable Linux kernel tree is: 2.6.17-rc1
The latest snapshot for the stable Linux kernel tree is: 2.6.16-git20
The latest 2.4 version of the Linux kernel is: 2.4.32
The latest prepatch for the 2.4 Linux kernel tree is: 2.4.33-pre2
The latest 2.2 version of the Linux kernel is: 2.2.26
The latest prepatch for the 2.2 Linux kernel tree is: 2.2.27-rc2
The latest 2.0 version of the Linux kernel is: 2.0.40
The latest -ac patch to the stable Linux kernels is: 2.6.11-ac7
The latest -mm patch to the stable Linux kernels is: 2.6.17-rc1-mm1

Finger

Istnieje również możliwość użycia programu finger


# emerge netkit-fingerd
# finger @kernel.org

Pozostałe czynności są analogiczne do curla (hint: head -n1 zmieniamy na head -n2).

Dostępne wersje kerneli - wiki.gentoo.pl

4 Responses to “Curl & Finger”


  1. Gravatar Icon 1 KonMan Apr 5th, 2006 at 2:39 pm

    Oj nieładnie, nieładnie. Z kernel.org:
    Aug 21, 2003: Please don’t use finger.kernel.org for any sort of automatic monitoring. The number of automatic bots hitting this port is causing the finger daemon to shut down more often than not. The same information is available from http://www.kernel.org/kdist/finger_banner.
    ;)

  2. Gravatar Icon 2 rasheed Apr 5th, 2006 at 2:48 pm

    To nie jest “automatyczne monitorowanie” ;) Zauważ, że w tym przypadku połączenie następuje tylko raz dziennie.

  3. Gravatar Icon 3 mhulboj Apr 5th, 2006 at 3:59 pm

    Tylko po co? Ktos kto zajmuje sie grzebaniem w jadrze, pisaniem czegos, maintainowaniem ma i tak jakas gitowa wersje, czy tez rc wersje, zas inni tego nie potrzebuja…

  4. Gravatar Icon 4 rasheed Apr 5th, 2006 at 4:01 pm

    Tak jak nie potrzebują masy bzder w monitorach systemowych. Kto co lubi.

Leave a Reply