Silent Dell Power Edge 2650

Some time ago I bought a Dell PowerEdge 2650 as my new serverplatform. I wanted and did virtualize all my servers but before I really could use my new server I had to silence it because it was loud like a turbine of a helicopter ;o). So I searched the internet for any hints but... » weiterlesen

SSH über einen Proxy

sofern es der Proxy erlaubt Zum Beispiel: ssh WOHIN -l USER -pPORT -o ZUSÄTZLICHE OPTIONEN ssh der.wohinman.wil -l benutzer -p8022 -o "ProxyCommand /usr/bin/nc -X connect -x 192.168.220.180:3128 %h %p" Um eine SSH-Verbindung persistent über einen Proxy zu leiten muß unter /etc/ssh/ssh_config folgendes eingetragen werden: ProxyCommand /usr/bin/nc -X connect -x 192.168.220.180:3128 %h %p

Mount Samba share using fstab

To mount a Samba share when Linux system comes up after  reboot edit the /etc/fstab file and put entry as follows for your  Windows/Samba share: //ntserver/share /mnt/samba smbfs username=username,password=password 0 0 For example, if you want to mount a share called //ntserver/docs then you need to write following entry in /etc/fstab file: //192.168.0.1/share /mnt/samba smbfs... » weiterlesen

history mit Datum und Zeit

Einfach unter /etc/profile folgende Zeile hinzufügen: HISTTIMEFORMAT="%h/%d - %H:%M:%S  " Danach sieht z.B. die History so aus: 6  Oct/19 - 08:40:24  history 7  Oct/19 - 08:43:54  less /etc/profile 8  Oct/19 - 08:44:27  history

MySQL Passwort zurücksetzen

Zuerst die Datenbank stoppen: service mysql stop danach die Datenbank wieder mit folgendem Kommando starten: mysqld_safe --skip-grant-tables & und sich mit dem Befehl einloggen: mysql -uroot mysql dann das Kommando absetzen: UPDATE user SET password=PASSWORD("abcd") WHERE user="root"; FLUSH PRIVILEGES; ab diesem Zeitpunkt ist das Passwort abcd für den Benutzer root gesetzt. Dies kann man auch... » weiterlesen

Shell-Script Daten löschen die aelter sind als

Am einfachsten mit diesem Befehl: find /folder -type d -mtime +7 -exec rm -rf {} \; Dieser durchsucht den Ordner /folder nach Ordner die älter als eine Woche (7 Tage) sind und löscht diese. Soll nach Dateien gesucht werden muss statt -type d einfach -type f verwendet werden.