Gentoo

Logwatch with Metalog on Gentoo

By WladyX on 21 April, 2010 | General, Gentoo, Scripts, Security | 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.

source1
source2

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

Find packages installed from overlays

eix -Jc

Apache vhost SSL SNI

In the ssl virtual host fragment:

SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile /etc/ssl/apache2/wxs.crt
SSLCertificateKeyFile /etc/ssl/apache2/wxs.key
SSLCertificateChainFile /etc/ssl/apache2/sub.class1.server.ca.pem
SSLCACertificateFile /etc/ssl/apache2/ca.pem
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
SSLOptions StrictRequire
SSLProtocol all -SSLv2

This is for StartSSL.com certs.

By WladyX on 10 December, 2009 | Apache, General, Gentoo | A comment?

Sony Ericsson Codes

Getting your IMEI (International Mobile Equipment Identity) Number: *#06#
Access Software version: > * < < * < *
Reach last dialed numbers: 0 then #
The Sony Ericsson Secret Menu screen: -> * <- <- * <- *
Change to Default Language (English): < 0 0 0 0 >
Info about SIMLOCK: < * * <
Opening phone without a SIM card: **04*0000*0000*0000# followed by on ‘Wrong Pin’ number

Sony Ericsson Codes – Esato archive

By WladyX on 2 February, 2009 | Gentoo | 1 comment

Emerge warning

If you get this warning when using emerge

WARNING: repository at … is missing a repo_name entry

you need to create a file “repo_name” containing the overlay name into the “profiles” directory under your overlay directory. If my overlay is in /opt/my-overlay, i need this file :

# cat /opt/my-overlay/profiles/repo_name
myoverlay

By WladyX on 15 October, 2008 | Gentoo | A comment?

Circular dependencies

If you can’t update your world set because of circular dependencies,
then you can best comment out your USE-flags in /etc/make.conf and put USE="-*"
underneath it. Then update world and when that succeeds, remove the
latter USE declaration in your make.conf and uncomment your former
USE-flags. Update/rebuild world again and if all goes well you won’t
have a single circular dependency

http://treggats.wordpress.com/2008/10/09/the-story-continues/

By WladyX on 14 October, 2008 | Gentoo | A comment?

Service command on Gentoo/Ubuntu

Gentoo:

/usr/sbin/service:

#!/bin/sh

set -e

/etc/init.d/$1 $2 $3

/etc/bash_completion.d/service:

# a function for the autocompletion of the service command.

_service_fn()
{
# set some local variables
local cur prev

COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}

#if only one completion or a option is being requested
#then complete against various options
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -W “$(ls /etc/init.d)” $cur ))
elif [ $COMP_CWORD -eq 2 ]; then
COMPREPLY=( $( compgen -W “start stop restart pause zap status ineed iuse needsme usesme broken” $cur ))
else
COMPREPLY=( $( compgen -f $cur ))
fi

return 0
}

#setup the completion
complete -F _service_fn service

howto create the ‘service’ command – linux-noob.com/forums

Ubuntu:

apt-get install sysvconfig

http://www.cyberciti.biz/tips/how-to-controlling-access-to-linux-services.html

By WladyX on 1 July, 2008 | Gentoo, Ubuntu | A comment?

MySQL table is full error

you’ll want to change this line in /etc/my.cnf from:

innodb_data_file_path = ibdata1:10M:autoextend:max:128M

to

innodb_data_file_path = ibdata1:10M:autoextend

Professional Middleman: MySQL table is full error on Gentoo Linux

By WladyX on 30 June, 2008 | Gentoo, Mysql | A comment?

Gkrellm

gkrellshoot_04-30-08_155103.jpggkrellshoot_04-30-08_155310.jpggkrellshoot_04-30-08_155709.jpggkrellshoot_04-30-08_155841.jpggkrellshoot_04-30-08_160515.jpg

Theme Null
plugins:

[I] x11-plugins/gkrellm-hddtemp
[I] x11-plugins/gkrellm-leds
[I] x11-plugins/gkrellm-radio
[I] x11-plugins/gkrellm-volume
[I] x11-plugins/gkrellmss
[I] x11-plugins/gkrellm-multiping
[I] x11-plugins/gkrellm-shot
[I] x11-plugins/gkrellm-top

By WladyX on 30 April, 2008 | Cool Apps, General, Gentoo, Mysql, X11 | A comment?