When console columns and lines are not enough

Post by: tom on September 3rd, 2008 | File Under Distributions, Memento, Multimedia
Tags: , ,

If you want to use a higher resolution on your linux console, you have to add the specific option while loading the kernel.
i.e: kernel /vmlinuz-2.6.25 root=/dev/sda3 resume=/dev/sda2 vga=0×0325

Problem: The settings differ depending on your graphics card.
But: There is an easy way: hwinfo

[ sudo ] hwinfo −−framebuffer

Example output:
Mode 0×0307: 1280×1024 (+1280), 8 bits
Mode 0×031a: 1280×1024 (+2560), 16 bits
Mode 0×031b: 1280×1024 (+5120), 24 bits
Mode 0×0305: 1024×768 (+1024), 8 bits
Mode 0×0317: 1024×768 (+2048), 16 bits
Mode 0×0318: 1024×768 (+4096), 24 bits
Mode 0×0312: 640×480 (+2560), 24 bits
Mode 0×0314: 800×600 (+1600), 16 bits
Mode 0×0315: 800×600 (+3200), 24 bits
Mode 0×0301: 640×480 (+640), 8 bits
Mode 0×0303: 800×600 (+832), 8 bits
Mode 0×0311: 640×480 (+1280), 16 bits

Thanks to Gerd [de] for the hint.


Comments (No responses yet)



VMware Server [1.06] on SLES 10 x86_64

Post by: tom on June 23rd, 2008 | File Under Distributions, Memento, VMware
Tags: , , , , , , ,

OS: SUSE Linux Enterprise Server 10 SP1 (x86_64) [64 bit]

VMware Server [1.06] depends on some 32 bit software:
+ xorg-x11-libs-32bit-6.9.x (should automatically add the other packages, too)
  - expat-32bit-2.0.x
  - fontconfig-32bit-2.3.x
  - freetype2-32bit-2.1.x
  - glibc-32bit-2.x
  - ncurses-32bit-5.x
  - zlib-32bit-1.2.x

Additionally gcc, make, kernel headers, etc. should be installed to run vmware-config-tools.pl properly.

Read More »


Comments (No responses yet)



Samba Server not accessible via hostname?

Post by: tom on May 6th, 2008 | File Under Memento
Tags: , ,

If you cannot connect to your samba server or share using the name BUT when using the ip address, this might help:

The netbios name has to be set manually.
For this purpose edit the global section in [/etc/samba/] smb.conf

netbios name = SERVERNAME
server string = Server Description


This one worked for me on a openSUSE 10.2 sytem with a samba 3.0.x release.


Comments (No responses yet)



Wordpress / enabling (built in) cache

Post by: tom on January 22nd, 2008 | File Under Memento, Webapps
Tags: ,

Edit wp-config.php and add
define('ENABLE_CACHE', true);

Create the directory cache in the folder wp-content/ (take care it’s writeable!)

If you want to take control about expiration time, you can do this including these lines in wp-config.php:
define('CACHE_EXPIRATION_TIME', 900);

That’s all : )
The next time, your blog is being visted, the pages will be cached..
B.t.w.: You can empty the cache directory every time you want (in case of trouble, etc..).

More infos:
http://www.mitternachtshacking.de/blog/356-wordpress-cache-aktiviert (de)
http://sw-guide.de/2007-07/bessere-blog-performance-dank-wordpress-internen-cache/ (de)

Update (!):
The file-based caching mechanism has been removed from the WordPress 2.5 code. Detailed infos at neosmart.net.


Comments (No responses yet)



postfix / (mass) remove mails from queue

Post by: tom on January 18th, 2008 | File Under Mailserver, Memento
Tags: ,

A little hack to remove mails for a specific recipient from the postfix mail queue:


mailq | tail +2 | awk 'BEGIN { RS = "" } \
/ user@example\.tld$/ { print $1 } \
' | tr -d '*!' | postsuper -d -


Comments (No responses yet)



Howto: Single Sign On with Squid Proxy and Active Directory

Post by: tom on December 12th, 2007 | File Under Memento, Security
Tags: , , , , ,

Tested on: openSUSE 10.2, Squid 2.6 <-> Windows Server 2003
Goal: User authentication should be possible without “extra login” on the squid proxy.

Squid Logfile

Here we go …
Read More »


Comments (4 responses so far)



X Applications over SSH Tunnel

Post by: tom on November 21st, 2007 | File Under Memento

To use graphical applications over a SSH tunnel, xauth has to be installed on the server machine. This program is found in the xorg-x11 package (when using openSuSE).

After establishing the SSH tunnel using
ssh -X user@host.tld
you can start any X application (i.e. from the bash…).


Comments (No responses yet)



1time eMail

Post by: tom on June 6th, 2007 | File Under Memento, Security

Do you know this? You need an email account for a registration or for any acknowledgement and you don’t want to post your “real” email address to prevent spam.

Visit http://10minutemail.com/ for an account that exists for 10 minutes (or longer).

Nice tool ; )

Thanks to Konsensmilch for the hint.


Comments (One response so far)



exim / remove (all) frozen messages from queue

Post by: tom on March 22nd, 2007 | File Under Mailserver, Memento
Tags: ,

Just a quick & dirty hack to delete frozen messages for a single / some recipient(s)…

#!/bin/bash
#
# what are we searching for?
# (part of the email-address)
SEARCH="anyrecipient.tld"
#
# exim-bin
EXIM=`which exim`
#
# execute (frozen messages only)..
$EXIM -Mrm $(mailq | grep $SEARCH -B1 | grep frozen |cut -c 11-27)


Thanks to Mark -> this can be done a lot of easier if you want to kill all frozen messages:

exiqgrep -z -i | xargs exim -Mrm

If you want to do this only for some domains / email-addresses, use the first example.


Comments (2 responses so far)