Archive for category *NIX

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: , ,

Troubles in remote server management

Had a severe issue with Samba server recently: it refused to serve after some undefined amount of time. It could work for a days perfectly or could be completely unreachable in several minutes after restart. Logs were useless, even in the highest possible debug level.

Read the rest of this entry »

Tags: ,

PHProject in Unicode

The final migration stage from file-based Ganntproject to Web-based solution just began. I’ve set up PHProject in the office site. PHP5, Apache2, Mysql4 and Debian is enough.

The very first problem was Unicode support. Seems like PHProject was developed keeping MySQL3 in mind, althow ir works with a bunch of database backends, like Oracle, PostgreSQL, DB2, MSSQL.

So, to use UTF8 encoding in MySQL, add the following into lib/db/mysql.inc.php:

Read the rest of this entry »

Netgear WG511 Wi-Fi card in Debian

Long time ago i’ve bought Netgear WG511 PCMCIA WiFi card. It’s version 2, and is supported by prism54 module. the basic info is in jkx page, but at least 3 years have passed 😉

In order to run in Linux, you need:
Read the rest of this entry »

Tags: , , , ,

More complicated KDM and Xorg configuration on my laptop

the initial size of the desktop

The 1024×768 screen of my laptop from ESC is quite small. I got it when I had to change some preferences in Cinelerra. The confirmation buttons were far below the edge of the screen.

Well, manually editing files in ~/.bcast is a bit time-consuming, so i really needed these buttons 😉

There were two ways to press the button: either use bigger, so called ‘virtual’ desktop, or try to run two X serers with different layouts.
Using virtual desktops is more simple. Just add “Virtual x y” lines to /etc/X11/xorg.conf and you are done. The minor problem is that when the window gets maximized, it expand over the whole virtual desktop, not just the visible part of it.
The other way is more interesting. I should mention I prefer KDM as desktop manager.
So, good old Goooooogle showed me the way: [1] and [2]. The first one is quite interesting, but seems like kdm from KDE 3.5.5 is not reading Xservers file at all.
The temporary workaround is to use the ugly XDM as desktop manager. Read the rest of this entry »

Tags: , ,

Fun with a new Debian instalation

After Ubuntu was randomly refusing to load on my laptop, I returned to Debian.
Netinst disc, an hour on 2MBps link and we are here – mixed Debian testing/unstable with KDE, Cinelerra, Kino, gEDA an a lot of ‘standart’ stuff.
The problems were:

Read the rest of this entry »