Archiv

Archiv für die Kategorie ‘Linux’

Resend Maildir

for f in $MAILDIR/new/*
do
	sendmail user@domain <$f
done
KategorienLinux Tags: ,

Create a MD5 Checksum

  • dd if=/dev/cdrom of=image.iso
  • md5sum image.iso
  • 3b5e9861910463374bb0d4ba9025bbb1 image.iso
  • md5sum -c image.md5
KategorienLinux Tags: , ,

How to Log POP, IMAP and SMTP Traffic in Mozilla Thunderbird

Logging is for the industrious developer alone — and for the curious user, of course. In addition to finding out what’s going on behind the scenes of email exchanges in Mozilla Thunderbird yourself (especially if that which is going on is not going right), you can help those helping you with problems enormously if you’re able to send them a log of what’s happening when you try to send or receive mail.

Turning on transaction logging may not be straight forward an affair, but it is not difficult either.

Log POP, IMAP and SMTP Traffic in Mozilla Thunderbird

To create a log file with all POP (Post Office Protocol), SMTP (Simple Mail Transfer Protocol) or IMAP (Internet Message Access Protocol) traffic in Mozilla Thunderbird:

Make sure Mozilla Thunderbird is not running.

Now, on Windows:

  • Select All Programs | Accessories | Command Prompt from the Start menu.
  • Type “set NSPR_LOG_MODULES=” followed immediately by “POP3:4” for POP, “IMAP:4” for IMAP and “SMTP:4” for SMTP logging.
  • Press Enter.
  • You can enable logging for multiple protocols by separating them with commas (‘,’).
  • To log both POP and SMTP traffic, for example, type “set NSPR_LOG_MODULES=POP3:4,SMTP:4” (excluding the quotation marks).
  • To log only IMAP traffic, type “set NSPR_LOG_MODULES=IMAP:4“, for instance.
  • Type “set NSPR_LOG_FILE=%HOMEDRIVE%%HOMEPATH%\Desktop\tbird_log.txt“.
  • Press Enter.
  • Type “start thunderbird“.
  • Press Enter again.
  • Perform the desired email actions in Mozilla Thunderbird.
  • Quit Mozilla Thunderbird and take a look at “tbird_log.txt” on your Desktop.

On Mac OS X:

  • Open a Terminal window.
  • Type “export NSPR_LOG_MODULES=” followed immediately by “POP3:4” for POP, “IMAP:4” for IMAP and “SMTP:4” for SMTP logging.
  • Press Enter.
  • You can enable logging for multiple protocols by separating them with commas (‘,’).
  • To log both POP and SMTP traffic, for example, type “export NSPR_LOG_MODULES=POP3:4,SMTP:4” (excluding the quotation marks).
  • To log only IMAP traffic, type “export NSPR_LOG_MODULES=IMAP:4“, for instance.
  • Type “export NSPR_LOG_FILE=~/Desktop/tbird.log“.
  • Press Enter.
  • Now type “/Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin“.
  • Press Enter again.
  • Perform the desired email actions in Mozilla Thunderbird.
  • Quit Mozilla Thunderbird and take a look at “tbird.log” on your Desktop.

On Linux:

  • Open a Terminal window.
  • Type “export NSPR_LOG_MODULES=” followed immediately by “POP3:4” for POP, “IMAP:4” for IMAP and “SMTP:4” for SMTP logging.
  • Press Enter.
  • You can enable logging for multiple protocols by separating them with commas (‘,’).
  • To log both POP and SMTP traffic, for example, type “export NSPR_LOG_MODULES=POP3:4,SMTP:4” (excluding the quotation marks).
  • To log only IMAP traffic, type “export NSPR_LOG_MODULES=IMAP:4“, for instance. Type “export NSPR_LOG_FILE=~/tbird.log.txt“.
  • Press Enter.
  • Type “thunderbird“.
  • Press Enter again.
  • Perform the desired email actions in Mozilla Thunderbird.
  • Quit Mozilla Thunderbird and take a look at “tbird.log.txt” in your Home directory.

By Heinz Tschabitscher, About.com Guide

KategorienLinux, Thunderbird, Windows Tags: ,

DNS Einträge im laufenden Betrieb ändern

Um DNS Einträge im laufenden Betrieb zu Ändern kann man mit Hilfe von rndc eine geänderte Zone ohne Störungen Aktualisieren. Dazu wird die Zone mit rndc Eingefroren, Neugeladen und wieder Aufgetaut.

  1. Zonendatei für die Zone Ändern.
  2. Zone Aktualisieren mit Hilfe von rndc.

rndc freeze <zonenname>
rndc reload <zonenname>
rndc thaw <zonenname>

Hilfe zu diesem Thema findet man unter “Die Verwendung von rndc“.

KategorienLinux Tags: , , , ,

Bash Colors

3. September 2010 Keine Kommentare

Bash Color Escape Codes

You can echo (echo -e) the following escape codes inside \e[ESCAPECODEm to colorize the text in your bash console:

  • Black 0;30
  • Dark Gray 1;30
  • Red 0;31
  • Light Red 1;31
  • Green 0;32
  • Light Green 1;32
  • Brown 0;33
  • Yellow 1;33
  • Blue 0;34
  • Light Blue 1;34
  • Purple 0;35
  • Light Purple 1;35
  • Cyan 0;36
  • Light Cyan 1;36
  • Light Gray 0;37
  • White 1;37

Make sure you use “echo -e” to enable the interpretation of the backslash escapes:

bash$ echo -e "This is bright green -> \e[01;32mGREENCOLOREDTEXT\e[00m"

Remove the Color

Echo \e[00m to remove the  color modifications from the text:

bash$ echo -n '\e[00m'

Look how the colors appear on your system:

Copy the code into an new created shell script for example colors.sh and make it executable (chmod +x colors.sh).

#!/bin/bash
echo -e "This is \e[00;30mBlack\e[00m 0;30"
echo -e "This is \e[01;30mDark Gray\e[00m 1;30"
echo -e "This is \e[00;31mRed\e[00m 0;31"
echo -e "This is \e[01;31mLight\e[00m Red 1;31"
echo -e "This is \e[00;32mGreen\e[00m 0;32"
echo -e "This is \e[01;32mLight Green\e[00m 1;32"
echo -e "This is \e[00;33mBrown\e[00m 0;33"
echo -e "This is \e[01;33mYellow\e[00m 1;33"
echo -e "This is \e[00;34mBlue\e[00m 0;34"
echo -e "This is \e[01;34mLight Blue\e[00m 1;34"
echo -e "This is \e[00;36mCyan\e[00m 0;36"
echo -e "This is \e[01;36mLight Cyan\e[00m 1;36"
echo -e "This is \e[00;35mPurple\e[00m 0;35"
echo -e "This is \e[01;35mLight\e[00m Purple 1;35"
echo -e "This is \e[00;37mLight\e[00m Gray 0;37"
echo -e "This is \e[01;37mWhite\e[00m 1;37"

Execute the script (./colors.sh) and it should be look similar to this:

Further informations: ANSI escape code – Colors

KategorienLinux Tags: ,

Icons for AutoKey (GTK UI) 0.71.0

5. August 2010 2 Kommentare

Change your Autokey Notification Icon, so it fits your Theme!

Screenshot of the Ambiance Theme

Screenshot of the Radiance Theme

Download your desired icon file and open the target folder.

Press the keys ALT + F2 and enter

gksu nautilus /usr/share/pixmaps

Overwrite the akicon-status.png this folder with your desired icon file.

In the “AutoKey – Preferences” for “Notification icon style:” you need to select “Grayscale”.

In order to see the new icon you need to restart AutoKey.

Downloads

Icon for the Ambiance Theme

Icon for the Radiance Theme

AutoKey PPA and Icon Installer for Ubuntu

Go to the up to date Post!

Since the current AutoKey Version shipped with Ubuntu Linux 10.04 Lucid Lynx is an outdated one, i found an easy way to get a newer one through the PPA of Chris Dekter from the AutoKey Project.

If you are not so familiar with installing through PPA i made a set of install scripts. You can also easy switch the theme icons i mentioned earlier.

Make sure you remove any installed autokey packages before you install the PPA Version!

Do not forget to restart AutoKey after you made any changes.

Download

AutoKey Install Helper Package

Scripts

install_autokey-gtk.sh

#!/bin/bash

mkdir backup
cp ~/.config/autokey/* backup/
gksu add-apt-repository ppa:cdekter/ppa
sudo apt-get install autokey-common autokey-gtk

install_autokey_ambiance.sh

#!/bin/bash

autokeynotifier="/usr/share/pyshared/autokey/gtkui/notifier.py"
autokeyicons="/usr/share/pixmaps/"
themeicon="akicon-status-ambiance.png"

command="cp $themeicon $autokeyicons"
eval gksu "$command"

pattern=`awk -F\" '/STATUS_ICON_FILE = /{print $2}' $autokeynotifier`

command="sed -i 's,$pattern,$autokeyicons$themeicon,g' $autokeynotifier"
eval sudo "$command"

install_autokey_radiance.sh

#!/bin/bash

autokeynotifier="/usr/share/pyshared/autokey/gtkui/notifier.py"
autokeyicons="/usr/share/pixmaps/"
themeicon="akicon-status-radiance.png"

command="cp $themeicon $autokeyicons"
eval gksu "$command"

pattern=`awk -F\" '/STATUS_ICON_FILE = /{print $2}' $autokeynotifier`

command="sed -i 's,$pattern,$autokeyicons$themeicon,g' $autokeynotifier"
eval sudo "$command"

install_autokey_default.sh

#!/bin/bash

autokeynotifier="/usr/share/pyshared/autokey/gtkui/notifier.py"
autokeyicons="/usr/share/pixmaps/"
themeicon="akicon.png"

gksu echo

pattern=`awk -F\" '/STATUS_ICON_FILE = /{print $2}' $autokeynotifier`

command="sed -i 's,$pattern,$autokeyicons$themeicon,g' $autokeynotifier"
eval sudo "$command"

Mehr…

KategorienLinux Tags: , , , ,

Fix Firefox MIME Type Icons

The Problem

In order to show the error i made some screenshots from an RSS view in Firefox.

As you can see the MIME Icon is missing.

The image source link from the source code.

moz-icon://goat?size=16&contentType=audio/mpeg

The Fix

The MIME Icon is shown after the fix. As you can see it is an audio icon.

The problem is that Firefox can’t find the MIME type icons. This Shell-Script copies the MIME icons from the Humanity Icon Theme into the .icons folder in your home directory so Firefox can find them.

#!/bin/bash

ISOURCE=/usr/share/icons/
ITHEME=Humanity

for size in 16 22 24 32 48;
do
  mkdir -p $HOME/.icons/$ITHEME/mimes/$size;
  for file in $ISOURCE/$ITHEME/mimes/$size/*.svg;
  do
    ln -s $file $HOME/.icons/$ITHEME/mimes/$size/`basename $file .svg`.png;
  done;
done;

Script Author: Ilja Sekler

Create a new script file and run it in your terminal or download it and run it in your terminal.
Mehr…

AutoKey Status Icons for Ubuntu 10.04 Lucid Lynx

Go to the up to date Post!

A set of icons for AutoKey on the Gnome Desktop with Ubuntu Linux 10.04.

Screenshot of the Ambiance Theme

Screenshot of the Radiance Theme

Step 1

Download the icon file and open the target folder.

Press the keys ALT + F2 and enter

gksu nautilus /usr/share/pixmaps

Copy the desired *.png file into this folder.

Step 2

Press the keys ALT + F2 and enter

gksu gedit /usr/share/pyshared/autokey/gtkui/notifier.py

now change the line

STATUS_ICON_FILE = "/usr/share/pixmaps/akicon.png"

to

STATUS_ICON_FILE = "/usr/share/pixmaps/akicon-status-radiance.png"

or

STATUS_ICON_FILE = "/usr/share/pixmaps/akicon-status-ambiance.png"

Step 3

In order to see the new icon you need to restart AutoKey.

Downloads

Icon for the Ambiance Theme

Icon for the Radiance Theme

GIMP Template

Further Informations of AutoKey

Guide by Saravanan Thirumuruganathan

AutoKey User Group on Google

Mehr…

Zehn Jahre Gentoo!

26. Oktober 2009 Keine Kommentare

10 Years Gentoo

  • System packages include: Linux Kernel 2.6.30 (with gentoo patches), Accessibility Support with Speakup 3.1.3, BASH 4.0, GLIBC 2.9, GCC 4.3.2. Binutils 2.18, Python 2.6.2, Perl 5.8.8, and more.
  • Desktop Environments and window managers include: KDE 4.3.1, GNOME 2.26.3, Xfce 4.6.1, Enlightenment 0.16.8.15, Openbox 3.4.7.2, Fluxbox 1.1.1, TWM 1.0.4, and more.
  • Office, graphics, and productivity applications include: OpenOffice 3.1.1, G/Vim 7.2.182, Abiword 2.6.4, GNUCash 2.2.9, Scribus 1.3.3.11, GIMP 2.6.4, Inkscape 0.46, Blender 2.49a, XSane 0.996, and much more.
  • Web browsers include: Mozilla Firefox (Minefield) 3.5.3, Arora 0.7.11, Opera 10.0, Epiphany 2.26.3, Galeon 2.0.4, Seamonkey 1.1.17, and other favorites.
  • Communication tools include: Pidgin 2.5.9, Quassel 0.5, Mozilla Thunderbird 2.0.23, Claws Mail 3.7.2, Ekiga 2.0.12, Qtwitter 0.7.1, irssi 0.8.13, and many more.
  • Multimedia applications include: Amarok 2.1.1, MPlayer 1.0_rc4, DvdAuthor 0.6.14, LAME 3.98.2, FFMPEG 0.5_p19928, GNOME-MPlayer 0.9.7, SMPlayer 0.6.6, and several others.

The Gentoo-Ten LiveDVD is available in two flavors, a hybrid x86/x86_64 version, and an x86_64-only version. The livedvd-x86-amd64-32ul-10.0 will work on x86 or x86_64. If your arch is x86, then boot with the default gentoo kernel. If your arch is amd64 boot with the gentoo64 kernel. This means you can boot a 64bit kernel and install a customized 64bit userland while using the provided 32bit userland. The livedvd-amd64-multilib-10.0 version is for x86_64 only.

Please select your architecture to be redirected to a mirror for download: x86 amd64

A FAQ is available to assist you. We have also started a thread in our Forum. Please post any bugs you encounter.

In addition, we have some exceptional new artwork from Ben Stedman, and Gentoo Developer Alex Legler.

Thank you for your continued support,

Gentoo Linux Developers, The Gentoo Linux Foundation, and The Gentoo-Ten Project

Source: Gentoo

KategorienLinux Tags: