Mozilla Thunderbird

Change quote header

In prefs.js:

// Change the reply header
// 0 - No Reply-Text
// 1 - "[Author] wrote:"
// 2 - "On [date] [author] wrote:"
// 3 - User-defined reply header. Use the prefs below in conjuction with this:
user_pref("mailnews.reply_header_type", 3);
 
// If you set 3 for the pref above then you may set the following prefs.
user_pref("mailnews.reply_header_authorwrote", "%s said the following");
user_pref("mailnews.reply_header_ondate", "on %s");
user_pref("mailnews.reply_header_separator", " ");
user_pref("mailnews.reply_header_colon", ":"); 
// The end result will be [authorwrote][separator][ondate][colon]

Source: http://texturizer.net/thunderbird/tips.html

Use different Quote Level Colors

in chrome/userContent.css:

/* Quote Levels Colors */
blockquote[type=cite] {
   color: navy !important; background-color: RGB(245,245,245) !important;
}
blockquote[type=cite] blockquote {
   color: maroon !important; background-color: RGB(235,235,235) !important;
}
blockquote[type=cite] blockquote blockquote {
   color: green !important; background-color: RGB(225,225,225) !important;
}
blockquote[type=cite] blockquote blockquote blockquote {
   color: purple !important; background-color: RGB(215,215,215) !important;
}
blockquote[type=cite] blockquote blockquote blockquote blockquote {
   color: teal !important; background-color: RGB(205,205,205) !important;
}

Source: http://texturizer.net/thunderbird/tips.html

Bash

Bash Color Prompt

[user@machine 01:00:00 directory ]$

Can be done with this in .bashrc:

export PS1="[\[\e[1;33m\]\u\[\e[1;35m\]@\[\e[1;32m\]\h \[\e[31;40m\]\T \[\e[1;34m\]\W \[\e[00m\]]\\$ "

KDialog

kdialog that comes with kde is pretty neat.

Example to use it is making a simple kde ssh ask passphrase dialog.

SSH_ASKPASS=/usr/local/bin/askpass.pl

askpass.pl:

#!/bin/env perl
my $prompt = join(' ', @ARGV);
system("kdialog --title 'SSH Key Passphrase' --password '$prompt' 2> /dev/null");

Wine

Games

If you use wine for emulate windows to play games. I’ve noticed if you have autofs running it messes with the detection of cd, if it is required for the game. So if you get message saying insert the cd game to play, even though the cd is already there, make sure you don’t have autofs running.

Cups

Cups has no availible printers

You ever get this in cups log files:

[CGI] CUPS-Get-Printers request failed - client-error-forbidden (401)

Make sure 127.0.0.1 localhost is in /etc/hosts localhost shouldn’t be assigned to a different ip.

See Gentoo forum link here.

Hole in Ogg

If you ever have problems playing ogg files in devices that support oggs. It might be because it has id3 tags in it. Especially if you used ripped them with grip.

ogginfo will give you a warning about a hole in the file.

To remove download id3v2 and run:

id3v2 -d filename.ogg
id3v2 -s filename.ogg

Now ogginfo should be clean.

Source: http://lists.xiph.org/pipermail/vorbis/2003-May/010547.html

Mach64 DRM

If you want to install a Mach64 (Ati Rage 98s) DRM from http://dri.freedesktop.org/snapshots/mach64-20060403-linux.i386.tar.bz2 On a newish system, you need to patch it with:

--- drm/linux-core/drm_compat.h.lama    2006-04-03 11:24:33.000000000 -0400
+++ drm/linux-core/drm_compat.h 2007-01-21 00:18:24.000000000 -0500
@@ -170,7 +170,7 @@
 #endif

 #ifndef __put_page
-#define __put_page(p)           atomic_dec(&(p)->count)
+#define __put_page(p)           atomic_dec(&(p)->_count)
 #endif

 #ifndef REMAP_PAGE_RANGE_5_ARGS

Source: http://mailgate.dada.net/linux/linux.debian.laptop/msg59828.html

Encode to DVD format with FFMPEG

ffmpeg -i /home/russ/get_video.flv -target ntsc-dvd ./dvd.mpg

Source: http://en.linuxreviews.org/HOWTO_Convert_video_files#DVD


software/tips.txt · Last modified: 2008/09/09 01:27 by russ