Intel ( 4965 ) WLAN & Linux

Post by: on January 21st, 2011 | File Under Distributions, Hardware, Memento
Tags: , , , , , , , ,

WLAN disconnects. Every now and then.
Sometimes every hour, sometimes every 5 minutes.

Log:
Microcode SW error detected. Restarting 0x82000000.
Firmware version: 228.61.2.24


I had the problem with Ubuntu 9.10 (Karmic Koala)
and with Ubuntu 10.10 (Maverick Meerkat), too.
Maybe there’s a problem with the driver and the hardware encryption of the chipset?

And because I never want to search for this again, here’s what did it for me:

Create /etc/modprobe.d/iwlagn.conf with this content:
options iwlagn swcrypto=1

Reboot -> no more problems : )

Found at: Ubuntu Forum Community


Comments (One response so far)



Rebooting the hard way

Post by: on March 23rd, 2010 | File Under Hardware, Memento

Because I always forget:

When a process is not responding or your harddrive(s) fail,
this is a fast way to reboot your system:
echo b > /proc/sysrq-trigger

as seen on:
http://www.linuxjournal.com/content/rebooting-magic-way


Comments (No responses yet)



Changing file permissions recursive

Post by: on November 6th, 2008 | File Under Memento

Just a note for myself (because I always forget):

# change permissions for files in current directory (and all sub-directories):
find ./ -type f -exec chmod 644 {} \;

# change permissions for directories in current directory (and all sub-directories):
find ./ -type d -exec chmod 755 {} \;


Comments (No responses yet)



When console columns and lines are not enough

Post by: 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 0x031a: 1280×1024 (+2560), 16 bits
Mode 0x031b: 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: on June 23rd, 2008 | File Under Distributions, Memento, Virtualization, 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. have to be installed to run vmware-config-tools.pl properly.

Read More »


Comments (No responses yet)



Samba Server not accessible via hostname?

Post by: 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: 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: 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: 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 (10 responses so far)



X Applications over SSH Tunnel

Post by: 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)