Archive for category My job

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 »

Migration hell: moving printers in Windows

Our campus, Faculty of Architecture, VGTU is moving to the totally new subnet. As we use DHCP for IP distribution, no real problems except `sed` are going to appear.
The pleasing moment is we are getting a fresh IP range.
The headache is TCP/IP printers.

WPKG has good printer addition/ installation guide in http://wpkg.org/Printer_configuration , but it does not cover changing IP port numbers.
As a CEO on all computer infrastructure, I need to find any solution to make the movement smoothly.

I was unable to find a ready-made solution, and in-house tool appeared after several hours in the Net.
I need to apologize for bugs and errors, as it is the first (and hopefully the last) VB script. It uses WMI. Testing box was W7, x64.
Maybe someone will find it useful.

Call the file chprinterport.vbs 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:

Hacking the FlexLM keygens

Ok, it’s ugly and illegal, i know. The information here is for educational purposes only.

Sometimes i’m asked to “cure” one or another product, protected by registration or network license manager, like FlexLM. And you know, a lot of keygens for these product found in the Internet, do not work. The usual error is “Internal Error #{1..6} – Please be sure the app is running and on the license screen!”. What’s wrong, why the keygens from the glorious crack groups do not work any more?

Search on the Internet revealed almost nothing: from “the kyegen does not work” to “it works perfectly”, some says one must use genuine windows the keygen to work (wow…).

Let’s start a little investigation. Read the rest of this entry »