Welcome to zewaren.net. This site presents myself and mostly archives the solutions to some problems I once had.

Microsoft Agent sous Delphi. (2004)

Articles en Français: 

Microsoft Agent sous Delphi. (2004)
Hosted by developpez.com

Les régions sous Delphi. (2004)

Articles en Français: 

Les régions sous Delphi. (2004)
Hosted by developpez.com

Welcome to ZEWAREN.NET

QR Code linking to zewaren.net with zewaren written inside

Matching a string with escaped quotes with regular expressions

Not so frequently asked questions and stuff: 

The regexp:


and the string:

SELECT 'sdfsdfsd\'zerzerzer\'sdfsdfzer"zerzerz
eioipoip"', 'saucisse magique avec 
des quotes: \'\' "\"zerzerzre' FROM rien

will match:

  • 'sdfsdfsd\'zerzerzer\'sdfsdfzer"zerzerz


  • 'saucisse magique avec 
    des quotes: \'\' "\"zerzerzre'

Local users in VSFTPD can't have a a false shell (was, VSFTPD problems with all logins anonymous or PAM)

Not so frequently asked questions and stuff: 

On recent Debian-derived systems, as root, you can:

# ln -s /bin/false /sbin/nologin
# echo /sbin/nologin >>/etc/shells

- and then specify /sbin/nologin as the shell for those users.

* https://lists.ubuntu.com/archives/ubuntu-users/2006-October/096043.html

How to configure apt-get not to install “recommends” packages in Debian Linux

Not so frequently asked questions and stuff: 

Create or Edit the file /etc/apt/apt.conf file and add the following contents to it:
// Recommends are as of now still abused in many packages

APT::Install-Recommends "0";
APT::Install-Suggests "0";

* http://blogs.koolwal.net/2009/01/07/howto-tell-apt-get-not-to-install-re...

WiFi: Intel 4965AGN (Dell Precision M4300 and others)

Not so frequently asked questions and stuff: 

With kernel 2.6.24RC3 the driver comes part of the kernel and does not need manual installation. You still have to copy and install the firmware though.

* Driver: iwl4965
* Version: 0.0.34

Since mac80211 is already a part of 2.6.22, only the iwlwifi module needs to be compiled. Following the instructions in the source package was sufficient. The module loads & finds some hardware and I can successfully scan for networks
. Connecting to our local WiFi access point using WPA works just fine.

How did you get this to work? I am following the INSTALL file
to the letter, and I'm getting errors. Thanks. Aug 21, 2007 02:38 UTC Atoponce

Installation of linux-image-2.6.22-2-686 along with linux-headers-2.6.22-2-686 works with mac80211 8.0.2 patched in (from the mac80211-8.0.2 directory: ln -s /lib/modules/$(uname -r)/build /lib/modules/$(uname -r)/source; make patch_kernel), iwlwifi-4965-ucode-4.44.17 and iwlwifi-0.0.42. Steps for installation are given below.

If you haven't installed the unstable 2.6.22-2-686 kernel yet that needs to be done and reboot into it. Remember to add unstable or sid to your sources.list.

 aptitude install linux-image-2.6.22-2-686


Now install the headers and build/install the driver.

 aptitude install linux-headers-2.6.22-2-686

 ln -s /lib/modules/$(uname -r)/build /lib/modules/$(uname -r)/source


 wget http://intellinuxwireless.org/mac80211/downloads/mac80211-8.0.2.tgz

 wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-4.44.17.tgz

 wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-0.0.42.tgz

 tar xzf mac80211-8.0.2.tgz

 tar xzf iwlwifi-4965-ucode-4.44.17.tgz


 cd mac80211-8.0.2

 make; make patch_kernel

 cd ../iwlwifi-0.0.42.tgz

 make; make install

 cp iwlwifi-4965-ucode-4.44.17/*.ucode /lib/firmware

 modprobe iwl4965

This same procedure should work with amd64 kernels with the obvious change to the linux-image and linux-header package installations above. The procedure should also work for the 3945 card provided you've removed the ipw3945 drivers before running the modprobe line.

Another (less complicated) way to get it to work is following:

If you have added non-free repositories, you can install a package called firmware-iwlwifi [4]. The Debian-Package-Info page says, that it is architecture independent.

That package contains the binary firmware for Intel Wireless 3945 and 4965 cards.

But the disadvantage referred to the kernel patch is, that it isn't open source.

* http://www.thinkwiki.org/wiki/Installing_Debian_Lenny_on_a_ThinkPad_T61#WiFi:_Intel_4965AGN

Prevent a windows computer from becoming local master

Not so frequently asked questions and stuff: 

Edit the registry:

.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters\"MaintainServerList" => "No"

Reboot or stop the browser service:

 net stop Browser

attached files: antiwins.reg

Samba: Change of IP address isn't taken into account

Not so frequently asked questions and stuff: 


Doing a node status request to the domain master browser at IP [old_ip] failed


The following is an example of a problem we see from time to time:

"Samba was working fine. We had to change the IP address of the Samba server.
Following the change Samba does not work. We have tried EVERYTHING - it still
does not work!"

What to check:
1) Follow all instructions in DIAGNOSIS.txt from the samba docs directory.
2) Locate you browse.dat and wins.dat files. They may be found in the following
typical locations:
If you can not locate where samba stores these files you can always run:
testparm | grep lock
3) Shut down samba.
4) Delete the browse.dat and wins.dat files
5) Restart samba.
6) Check that any files you deleted have been recreated.
7) Now follow DIAGNOSIS.txt again.

Samba will place into these files entries for itself with your old IP
address. When you restart Samba it preloads it's name cache with this
information and expects to be able to resolve it's own address to the
same address as it has just read from these files.

Deleting the files means samba takes a little longer to stabilize on
startup but otherwise will now operate correctly.

In Samba 2.0 this problem has been fixed properly by storing signature
information in the relevant files.


* http://www.jalix.org/ressources/reseaux/nfs-samba/samba/_docs/faq.html#6

Where to find the package base64

Not so frequently asked questions and stuff: 
$which base64

Install it from http://www.fourmilab.ch/webtools/base64/

$which base64


Subscribe to Front page feed