Archive for category *NIX

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 »

Sudo in windows world

Sometimes it’s necesarry to allow a windows user perform a privileged task. *nix world has ‘sudo’. The cloneof sudo in windows is called … sudowin. Or sudown. Or winsudo.

Isn’t it strange to have three different clones of the same programm?


SASL Auth in Postfix

You will also need SASL and SASL modules (libsasl2 and libsasl2-modules respectively in Debian).

SASL AUTH for outgoing SMTP conections is controlled by ‘smtp_*’ parameters in main.cf.
Quick-and-dirty solution is:

Read the rest of this entry »

Postfix, Courier-imap and virtual users

Create Courier-imap server certificate:
sudo pico /etc/courier/imapd.cnf &&
sudo rm /etc/courier/imapd.pem && Read the rest of this entry »