Skip to content

Tag Archives: linux

postfix smarthost mit authentifizierung

24-Okt-13

In /etc/postfix/main.cf hinzufügen relayhost = smtp.server.com smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth smtp_sasl_security_options = noanonymous Datei /etc/postfix/smtp_auth hinzufügen: smtp.server.com senduser:supersecret Erstelle lookup-table /etc/postfix/smtp_auth.db : postmap /etc/postfix/smtp_auth Postfix reloaden: sudo service postfix reload

Drucken mit EPSON LQ-100 unter Linux

13-Okt-13

Konvertiere UTF-8 in den beliebten DOS-Zeichensatz für diesen Nadeldrucker: cat text.txt | iconv -f utf8 -t 850 | lpr -p

alpine soll sich bitte das IMAP Passwort merken

13-Okt-13

touch ~/.pine-passfile Beim der nächsten Passworteingabe wird gefragt, ob es gesichert werden soll. Wenn alpine mit –with-passfile compiliert wurde.

Normale Scrollbars für Ubuntu unity

22-Sep-13

Weg mit den furchtbaren overlay-scrollern von unity: me@localhost$ gsettings set com.canonical.desktop.interface scrollbar-mode normal

typisches tar für tape-backups

23-Aug-11

tar –checkpoint=10 –blocking-factor=128 –checkpoint-action=dot –totals -cvMRf /dev/st0 <FILES> –checkpoint macht alle 10 records die action aus –checkpoint-action. dot ist die ausgabe eines punktes. –blocking-factor 128 macht die records 512 x 128 bytes groß.

OKI Microline 182 Textdruck unter Linux

30-Jul-11

Zunächst den Drucker per DIP-Switch auf deutsch umstellen (siehe beigefügte Grafik). Exemplarische Transformationen für einen UTF-8 Text zum direkten Druck auf ein Blatt DIN A5 Papier: cat text.txt | recode UTF-8..IBM437/CR-LF | tr ‚\204\224\201\216\231\232\341‘ ‚{|}[\\]~‘ | sed ’s/\o100/\o033\o041\o100\o100\o033\o041\o103/g‘ | fold -s -w 50 | pr -l 38 -w 50 tr ‚\204\224\201\216\231\232\341‘ ‚{|}[\\]~‘ schreibt die deutschen […]

Fonts bei xclock verändern

08-Jan-11

Um xclock zur Anzeige von X-Toolset kompatiblen Fonts zu bewegen, ist die option -norender nötig. Beispiel: xclock -digital -twentyfour -update 1 -chime -padding 4 -bg gray8 -fg green -strftime „%H:%M:%S %A %d.%m.%Y KW%V“ -font „-Schumacher-*-medium-r-*-*-12-*-*-*-*-*-*-*“