2010 March

Keyboard problem on XP

Problems when typing ‘

Start > settings > control panel > Regional and Language Options > language tab > text services and input languages > details box. In there you can set keyboard type such as GB, US international, US, etc. You probably have an international KB as default, but you can have a switch (default = Left ALT + shift) to change to a non-international set, try US standard, which doesn’t do this,and switch back when needed.

source

By WladyX on 24 March, 2010 | Windows | A comment?

Awstats on Ubuntu

By WladyX on | Apache, Mail, Ubuntu | A comment?

HTC custom sms mp3

Put the mp3 in /windows.

By WladyX on 23 March, 2010 | Mobile | A comment?

DKIM on Gentoo

emerge -a dkim-milter
emerge --config mail-filter/dkim-milter

/etc/mail/dkim-filter/dkim-filter.conf:
Domain domain.tld
KeyFile /etc/mail/dkim-filter/mydkim.private
Selector mydkim
UMask 000

/var/bind/domain.tld.hosts:
mydkim._domainkey.domain.tld. IN TXT "v=DKIM1; g=*; k=rsa; p=yourkeyhere;"

/etc/postfix/main.cf:
smtpd_milters = unix:/var/run/dkim-filter/dkim-filter.sock
non_smtpd_milters = unix:/var/run/dkim-filter/dkim-filter.sock

rndc reload
postfix reload
/etc/init.d/dkim-filter start

Test by sending email to autorespond+dkim@dk.elandsys.com.

PS: If you want dkim only to sign mails, not to verify them, then change the mode in /etc/mail/dkim-filter/dkim-filter.conf:
##  Mode [sv]
##      default sv
##
##  Indicates which mode(s) of operation should be provided.  “s” means
##  “sign”, “v” means “verify”.

Mode            s

source1
source2

By WladyX on 17 March, 2010 | Gentoo, Mail | A comment?

Find packages installed from overlays

eix -Jc

By WladyX on | Gentoo | A comment?

Example user-dirs.dirs

cat $HOME/.config/user-dirs.dirs

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

By WladyX on | Files, General, Style, X11 | A comment?

Pacman tips

Find orphan packages:
pacman -Qdt

Remove them with:
pacman -Rns $(pacman -Qdtq)

Find explicit installed packages:
pacman -Qh

Find AUR packages:
pacman -Qm

Force remove a package:
pacman -Rdd perl-libwww

By WladyX on 16 March, 2010 | Arch | A comment?

Huawei on Linux

Ubuntu:

apt-get install usb-modeswitch

lsusb
Bus 002 Device 007: ID 12d1:141b Huawei Technologies Co., Ltd.

/etc/udev/rules.d/62-option-modem-modeswitch.rules:
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="141b,RUN+="modem-modeswitch-v 0x%s{idVendor} -p 0x%s{idProduct} -t option-zerocd"

sudo service udev restart

source source2

Arch:

Install usb_modeswitch from AUR and create:

/etc/usb_modeswitch.conf.e1550
/etc/udev/rules.d/55-e1550.rules
/usr/share/hal/fdi/preprobe/20thirdparty/10-huawei-e1550.fdi

source1
source2

By WladyX on 15 March, 2010 | Arch, General, Mobile, Scripts, Ubuntu | A comment?

Load ssh Key at KDE Startup

aptitude install ksshaskpass

cat >~/.kde/Autostart/ssh-add.sh <<_EOT_
#!/bin/sh
export SSH_ASKPASS=/usr/bin/ksshaskpass
ssh-add </dev/null
_EOT_

chmod +x ~/.kde/Autostart/ssh-add.sh
~/.kde/Autostart/ssh-add.sh

source

By WladyX on 10 March, 2010 | General, Ssh, Ubuntu, X11 | A comment?

Postfix masquerading or changing outgoing SMTP email or mail address

/etc/postfix/main.cf:

smtp_generic_maps = hash:/etc/postfix/generic

/etc/postfix/generic:

tom-01@server01.hosting.com tom@domain.com

# postmap /etc/postfix/generic
# /etc/init.d/postfix restart

source

By WladyX on | General, Mail | A comment?