Archive for category *NIX

Rant on Apache2

Recently I was trying to move my sites to SSL – for various reasons.
The test site went fluently, while the work machine refused to serve SSL content. While testing with ‘wget’, the error I received was

GnuTLS: An unexpected TLS packet was received.

Read the rest of this entry »

Tags: , ,

pull

is the only missing keyword, OpenVPN client-to-server config need to work correctly on the client.
It took me 3 days to figure this out, a lot of RTFM’ing and head-banging.

Full client config looks this way:

Read the rest of this entry »

Tags: , , , , , ,

IPsec to Sonicwall appliance

Just a note:
when you need to establish IPsec connection to Sonicwall NSA 3500 firewall, here’s working config:
Linux side:
/etc/ipsec.conf :


include /etc/ipsec.d/*.conf

Read the rest of this entry »

Tags: , , ,

Get rid of removed packages in Debian

Every time package is removed via `apt-get remove`, a tiny piece of its configuration can be kept in your system. If you ever need to reinstall the package, this information can be re-used. These packages has status ‘rc’ in the output of `dpkg -l`. But if you want to keep your system tidy and clean, you may want them to be removed.

The miraculous command is

dpkg -l | egrep ^r | cut -d ‘ ‘ -f 3 | xargs apt-get remove –purge -y

Read the rest of this entry »

Tags:

Running VirtualBox guests from physical drive

Dual boot is perfect solution in most cases.

On the other hand, if you need to peep into the other system’s files, you need to re-boot. Or use sometimes not so stable filesystem utilities.
Running fully virtualized OS, using eg Xen as supervisor, creates additional load an hardware, maybe not too big when running multiple OS’es on the pretty new server, but significant, if it is a laptop. And yes, you NEED to keep data in-sync between virtual and real OS. Read the rest of this entry »

Localised fonts

The very first try on “Flux-the-Architect“. Added Ą,Č,Ę,Ė,Į,Š,Ų,Ū,Ž glyphs and some minor symbols (°, ±, ², ³). The font is OpenType in TrueType encoding. OpenType fonts in PS encoding does not work in AutoCAD.

Troubles in Virtual World

For testing OpenOffice.org i’ve set up a VirtualBox, running Debian/testing in x86and amd64 architectures.
In some cases, mouse integration does not work correctly. Although mouse works perfectly in the Guest window, it’s impossible to move it out without pressing Host key (left Ctrl in MS Windows).
VirtualBox guest additions are installed, guest resizing and shared folders works perfectly.
The solution was found in VirtualBox forums :
/etc/X11/xorg.conf must contain

Section “InputDevice”
Identifier “Configured Mouse”
Driver “vboxmouse”
Option “CorePointer”
EndSection

note two lines: vboxmouse tells X.org to use mouse driver from VirtualBox guest additions, and CorePointer instructs to use this pointer as primary. Without CorePointer line the vboxmouse driver is used, but it’s still impossible to move it outside guest’s window.

How to start multisite Gallery2 on Debian

I had a little disc and database crash, so the site was not updated recently.

Well, WordPress was updated easily, but i had problems with Gallery2.

I need a multisite deployment of Gallery2. Although it is supported from the installer, some important steps are missing.

In order multisite Gallery2 to work, you will need to add some symlinks to every deployment of the Gallery2:

Read the rest of this entry »

Tags: ,

bnx2: Can’t load firmware file bnx2-06-4.0.5.fw

After migration from 2.6.18-6-amd64, a newly installed kernel 2.6.26-2-amd64 failed to load:

[ 2.871916] Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v1.7.5 (April 29, 2008)
...
[ 3.631838] firmware: requesting bnx2-06-4.0.5.fw
Read the rest of this entry »

Tags:

Make Samba and CUPS in Debian friends again

I’ve seen a lot of these entries in logfiles recently:

[] printing/print_cups.c:cups_job_submit(656)
Unable to print file to - client-error-bad-request

And the printing is stopped, of course.

The solution is simple:

LANG=en_US.UTF-8 /etc/init.d/samba restart

In short:
/var/log/cups/error_log shows a lot of

E [] Unsupported character set "iso-8859-1"!

CUPS requires UTF-8.
In the case of default login in Debian, the console IS in UTF-8, but is not if you have customized it and use `su` for administrative tasks.

C’ia.

Tags: , ,