SAIDAR und alles ist im Blick
Als ein sehr nützliches Tool neben htop, bwm-ng und sonstigen erweist sich "saidar" immer mehr und mehr als meine erste Anlaufstelle sobald ich auf dem Server bin. Es zeigt auf einen Blick alles an was den Sys-Admin erstmal interessiert:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Hostname : srv01 Uptime : 52d 04:52:30 Date : 2009-11-06 12:40:16 Load 1 : 0.24 CPU Idle : 94.29% Running : 1 Zombie : 1 Load 5 : 0.16 CPU System: 0.74% Sleeping : 155 Total : 157 Load 15 : 0.15 CPU User : 4.96% Stopped : 0 No. Users : 1 Mem Total : 3756M Swap Total: 1953M Mem Used : 66.41% Paging in : 0 Mem Used : 2494M Swap Used : 0B Swap Used : 0.00% Paging out: 0 Mem Free : 1261M Swap Free : 1953M Total Used: 43.69% Disk Name Read Write Network Interface rx tx sda 0B 0B lo 0B 0B sdb 0B 2048B eth0 5535B 852B venet0 0B 0B Total 0B 2048B tap0 0B 0B Mount Point Free Used / 408G 5.78% |
Für mich unverzichtbar! Debianer können saidar wie gewohnt installieren:
1 | apt-get install saidar |
Colorfull Shell
Linux muss nicht immer schwarz/weiß sein. Es geht auch Bunt
Darum habe ich hier einfach mal ein paar Punkte dazu erfasst.
ls mit buntem Output
Um den Befehl "ls" etwas übersichtlicher zu gestalten kann in der ".bashrc" eine kleine anpassung gemacht werden. Dazu müssen wir in das Homeverzeichniss des jeweiligen Benutzers und die Datei mit öffnen
# cd # vi .bashrc
Danch sollte wir die Datei folgendermasse bearbeiten:
# ~/.bashrc: executed by bash(1) for non-login shells. export PS1='\h:\w\$ ' umask 022 # You may uncomment the following lines if you want `ls' to be colorized: export LS_OPTIONS='--color=auto' eval `dircolors` alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lA' # Some more alias to avoid making mistakes: # alias rm='rm -i' # alias cp='cp -i' # alias mv='mv -i'
Sobald sich dann der Benutzer neuanmeldet sollte die Aussage von "ls -l" so aussehen:

Vim / Farben und Code Syntax
Vim (vi Improved) kann sehr gut bei der Suche in Configs oder beim Programmieren durch seine Farben und Syntax helfen. Wer sich nicht sicher ist das er "vim" hat kann es sonst auch einfach nachinstallieren.
# apt-get install vim
Danch am besten gleich als standard Editor setzen
# update-alternatives --config editor
Nach dem wir jetzt vim installier haben / hatten können wir die vimrc anpassen
# vi /etc/vim/vimrc
Danch müss die vimrc so angepasst werden wie diese.
" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
" /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten
" everytime an upgrade of the vim packages is performed. It is recommended to
" make changes after sourcing debian.vim since it alters the value of the
" 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
" Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
" options, so any other options should be set AFTER setting 'compatible'.
set compatible
" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
syntax on
" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
set background=dark
" Uncomment the following to have Vim jump to the last position when
" reopening a file
"if has("autocmd")
" au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
" \| exe "normal g'\"" | endif
"endif
" Uncomment the following to have Vim load indentation rules according to the
" detected filetype. Per default Debian Vim only load filetype specific
" plugins.
"if has("autocmd")
" filetype indent on
"endif
" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make
set hidden " Hide buffers when they are abandoned
"set mouse=a " Enable mouse usage (all modes) in terminals
" Source a global configuration file if available
" XXX Deprecated, please move your changes here in /etc/vim/vimrc
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
Das ganze speichern ":wq" und dann sollte auch vim bunt sein

Wem das ganze noch nicht passt kann noch die Hintergrundfarbe verändern (hell/dunkel) oder sonstige Änderungen vornehmen.
Linux Logo
Es gibt ein kleines und nette Programm "linux_logo" mit dem solche Logos erstellen kann

Die installation ist unter Debian wieder sehr einfach
# apt-get install linuxlogo
Danach kann das Programm dirket auf der Shell gestart werden
# linux_logo
Und wer das Logo mit den Infos gleich bei jedem anmelden sehen will kan es in die motd packen
# cp /etc/motd /etc/motd.org # linux_logo -b > /etc/motd
