<?xml version="1.0" encoding="iso-8859-1"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="html">Debian</title>
<link rel="alternate" type="text/html" href="http://www.tuxx-home.at"/>
<link rel="self" type="application/atom+xml" href="http://www.tuxx-home.at/archives/cat_8/index-atom.xml"/>
<updated>2008-05-22T13:09:24+02:00</updated>
<author>
<name>Alexander Griesser</name>
<uri>http://www.tuxx-home.at</uri>
</author>
<id>http://www.tuxx-home.at/</id>
<generator uri="http://nanoblogger.sourceforge.net" version="3.3 RC4">
NanoBlogger
</generator>

<entry>
<title type="html">Installing Debian via PXE</title>
<author>
<name>Alexander Griesser</name>
</author>
<link rel="alternate" type="text/html" href="http://www.tuxx-home.at/archives/2008/05/22/T13_03_28/"/>
<id>http://www.tuxx-home.at/archives/2008/05/22/T13_03_28/</id>
<published>2008-05-22T13:03:28+02:00</published>
<updated>2008-05-22T13:03:28+02:00</updated>
<category term="Debian" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
Today I found my old Fujitsu Siemens Lifebook B in the cellar and wanted to play a bit with it. It's very small and handy (might be useful for certain tasks) and due to the recent hype on eeePCs, I need something small too  <img src="http://www.tuxx-home.at/moods/smilies/wink.gif" alt=";)" /> The specs for this notebook aren't very cool, but the display is a bit larger than the eeePCs display and it has a touchscreen which is also very handy when properly configured.<br />
The main problem with installing operating systems onto this device is that there's neither a CD-Rom drive nor a floppy drive available and due to the age of this system, it's not possible to boot from USB drives, so I chose to install Debian via PXE on this device.<br />
<br />
There are plenty of howtos on the web about configuring a PXE/Bootp/DHCP combination to make this work but I always need to write such things down on my own for easier reference in the future, so here's the way to go:<br />
<br />
<ol>
  <li><strong>Install a DHCP Server</strong><br /><br />I chose "dhcp3-server" from Debian, so <br /><pre>apt-get install dhcp3-server</pre>will do the trick. After installation, you need to configure it to allow booting from it. Besides the usual dhcp server configuration, you need to add the following configuration options: <br /><pre>
  allow booting;
  allow bootp;
  class "pxeclients" {
    match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
    next-server 192.168.0.254;
    filename "/pxelinux.0";
  }
</pre>
(Assuming that 192.168.0.254 is the IP address of the host the TFTP server will reside and that pxelinux.0 is the pxe bootfile name of choice).<br /><br /></li>
  <li><strong>Install the TFTP Server</strong><br /><br />I chose "tftpd-hpa" because it seems to have special features wrt PXE configurations, so <pre>apt-get install tftpd-hpa</pre> will install the software for you. Change "RUN_DAEMON" in /etc/default/tftpd-hpa from "No" to "Yes" and start this service using `/etc/init.d/tftpd-hpa start`.<br /><br /></li>
  <li><strong>Download the netboot files</strong><br /><br />
  Download the latest netboot.tar.gz from <a class="external" href="http://ftp.nl.debian.org/debian/dists/etch/main/installer-i386/current/images/netboot/">http://ftp.nl.debian.org/debian/dists/etch/main/installer-i386/current/images/netboot/</a> into your tftpboot directory (for tftpd-hpa, it's usually set to /var/lib/tftpboot):<br />
  <pre>cd /var/lib/tftpboot
wget http://ftp.nl.debian.org/debian/dists/etch/main/installer-i386/current/images/netboot/netboot.tar.gz
tar xf netboot.tar.gz</pre>
  </li>
</ol>
<br />
Make sure all the necessary services are started (dhcpd and tftpd) and try to bot your target system via PXE boot.<br />
<br />
I hope I don't have forgotten some vital parts for this configuration and if so, feel free to leave a comment here.
</div>
</content>

</entry>
<entry>
<title type="html">Installing Trendmicro Interscan Viruswall 6 (ISVW6) on Debian 4.0</title>
<author>
<name>Alexander Griesser</name>
</author>
<link rel="alternate" type="text/html" href="http://www.tuxx-home.at/archives/2008/02/10/T13_46_38/"/>
<id>http://www.tuxx-home.at/archives/2008/02/10/T13_46_38/</id>
<published>2008-02-10T13:46:38+02:00</published>
<updated>2008-02-10T13:46:38+02:00</updated>
<category term="Debian" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
Today I upgraded one of my customers ISVW5 for SMB installations to the new ISVW6 (namely <a class="file" href="http://www.trendmicro.com/download/emea/product.asp?productid=41&lng=de">ISVW_v6.02_7672_release.tar.gz</a>). Of course - as always - Trendmicro doesn't officialy support Debian as host operating system and therefore you need to make some changes to your Debian system to make this combination work. I'll summarize the necessary changes here for your convenience but I don't know if it's a complete summary, by now, everything seems to work with the new version but there might be additional pitfalls I've not stumbled in by now, so if you experience troubles, please drop me a comment here or write me an e-mail and I'll have a look.<br />
<br />
First of all, when upgrading from ISVW5 to ISVW6, make sure to either backup your ISVW5 configuration using the migration script or choose the upgrade method during the setup. Due to my paranoia I chose to manually backup the settings just to be sure in case the setup script wouldn't work - I suggest you do this too.<br />
<pre>
<b>1. Download the ISVW6 archive</b>
wget -q http://www.trendmicro.com/ftp/products/interscan/ISVW_v6.02_7672_release.tar.gz

<b>2. Extract it</b>
tar xf ISVW_v6.02_7672_release.tar.gz

<b>3. Change to the newly created directory</b>
cd isvw

<b>4. Run the migration script to backup your current configuration</b>
tool/isvw-migr5to6 -o /path/to/backup.conf

<b>5. Verify that the configuration was exported successfully</b>
tool/isvw-migr5to6 -v /path/to/backup.conf
</pre>
Now, your current configuration should be safe and you might want to continue
the installation process.<br />
<br />
Before you do so, you should prepare some things. First of all, you should add the following library locations to your ldconfig configuration. On Debian, this is usually achieved by adding a file called <b>&quot;/etc/ld.so.conf.d/trendmicro.conf&quot;</b> with the following contents:<br />
<pre>
/opt/trend/isvw6/cmagent
/opt/trend/isvw6/http
/opt/trend/isvw6/main
/opt/trend/isvw6/scan
/opt/trend/isvw6/services
/opt/trend/isvw6/webui
</pre>
This file can also be downloaded from here, check the links at the end of this article.<br />
I recognized that ISVW installs some libraries also available on standard Debian systems into these directories, e.g. libgssapi_krb5.so.2 a.s.o, so you need to make sure that your system's libraries are used primarily on your system by adding the paths &quot;/lib/&quot; and &quot;/usr/lib&quot; at the beginning of &quot;/etc/ld.so.conf&quot;.<br />
<br />
As these directories aren't populated by now (ISVW6 has not been installed yet) it is pointless to run `ldconfig` now. The installer should do this automatically after the installation has finished.<br />
<br />
Next, make sure the `awk` binary can be called by <b>&quot;/bin/awk&quot;</b> and the `basename` binary can be called by <b>&quot;/bin/basename&quot;</b>. This was a tough one to find out, I had to dig through quite some `strace` output to get an idea about why my diskspace seems to be insufficient :-/<br />
The webui uses the hardcoded path <b>&quot;/bin/awk&quot;</b> to parse the `df -P -k /opt/trend/isvw6` output to gain information about the free disk space on your machine. If /bin/awk is not available you cannot manage your ISVW installation through the webinterface and will receive the following error message in your webbrowser:<br />
<pre>
Unable to process the request. Insufficient disk space. Increase available disk space and try again.
</pre>
Use the following command to make a symlink to Debian's default installation path:<br />
<pre>
ln -s /usr/bin/awk /bin/awk
ln -s /usr/bin/basename /bin/basename
</pre>
After installation the startup script <b>&quot;/etc/init.d/isvw6&quot;</b> uses the `usleep` command to delay the startup of particular ISVW processes. Needless to say, `usleep` isn't available on Debian systems so you either need to rewrite /etc/init.d/isvw6 or create a usleep wrapper script. I decided to implement the latter because you never know whereelse they're using usleep, so here's an example of a simple usleep wrapper script that calls sleep with the re-calculated delay (copy this script to /bin/usleep and make it executable):<br />
<pre>
#!/bin/sh
# small usleep - sleep wrapper for Debian systems
# This tool needs "bc" installed
#
# by Alexander Griesser <work@tuxx-home.at>, 2008-02-10

if [  "$#" != "1" ]; then
  echo "usage: $(basename $0) time_in_usecs"
  exit 1
fi

sleep $(echo "scale=1; $1 / 1000000" | bc)
</pre>
This script can be downloaded from here, check the links at the end of this article.<br />
<br />
Now your system should be prepared and it is safe to run the setup script. Please follow the <a class="file" href="http://www.trendmicro.com/download/emea/product.asp?productid=41&lng=de">Getting Started Guide</a> for detailed information about the installation procedure.<br />
<pre>
./setup.sh
</pre>
<br />
After the installation completed successfully, stop the ISVW services, run `ldconfig` to make sure the library cache gets updated, apply a small patch to /etc/init.d/isvw6 to avoid warnings of deprecated `tail` usage and start the services again:<br />
<pre>
<b>1. Stop ISVW6</b>
/etc/init.d/isvw6 stop

<b>2. Run ldconfig</b>
ldconfig

<b>3. Apply a small patch to /etc/init.d/isvw6</b>
cd /tmp
wget -q http://tuxx-home.at/projects/isvw6/isvw6-deprecated-tail-usage.diff
cd /etc/init.d
patch &lt; /tmp/isvw6-deprecated-tail-usage.diff

<b>4. Start the services again now</b>
/etc/init.d/isvw6 start
</pre>
<br />
Everything should be fine now, have fun enjoying your ISVW6 installation on Debian :)<br />
<br />
<span class="uln bold">Downloads:</span><br />
<ul>
  <li><a class="file" href="http://tuxx-home.at/projects/isvw6/usleep">usleep wrapper script</a></li>
  <li><a class="file" href="http://tuxx-home.at/projects/isvw6/trendmicro.conf">trendmicro library configuration file</a></li>
  <li><a class="file" href="http://tuxx-home.at/projects/isvw6/isvw6-deprecated-tail-usage.diff">iswv6-deprecated-tail-usage.diff</a></li>
</ul>
</div>
</content>

</entry>
<entry>
<title type="html">Back on track</title>
<author>
<name>Alexander Griesser</name>
</author>
<link rel="alternate" type="text/html" href="http://www.tuxx-home.at/archives/2007/04/30/T15_47_00/"/>
<id>http://www.tuxx-home.at/archives/2007/04/30/T15_47_00/</id>
<published>2007-04-30T15:47:00+02:00</published>
<updated>2007-04-30T15:47:00+02:00</updated>
<category term="Debian" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
Well, back on track now. After two weeks of vacation I spent with my wife and
my children, I'm back and available for business duties.<br />
Of course, the first thing that has to be done is updating all my systems.
There could have been milestones released during my abscense!!!1<br /><br />
On my notebook, I had to patch the binary fglrx driver so that it doesn't
refuse to load in Xorg 1.3.0 (Yes, Debian finally changed the version numbering
of Xorg which definetly breaks all binary-only drivers at once) with the help
of the magic <a class="file" href="http://kanotix.com/files/install-fglrx-debian.sh">install-fglrx-debian.sh</a> out of
the Kanotix project. After that I
had some troubles updating the fonts cache on my notebook (the error message was
something like <i>"failed to write cache"</i> and came from the utility `fc-cache`
during the configuration of the "ttf-opensymbol" package on my Debian lenny system.
Fortunately, I found an article (forgot to bookmark the link, sorry) that suggested to
simply `touch` all directories and files with error messages again because the cache
directories might have bad timestamps (whatever "bad" means in this regard), so 
a simple<br />
<pre>
find /dir/that/has/problems -print0 | xargs -0 touch
</pre>
gladfully solved this issue.<br /><br />
But not enough, afterwards I experienced that
acroread doesn't work anymore. I don't know why this did happen to me today,
as the issue seems a bit older (I found an
<a class="external" href="http://linuxon-vgn-a497xp.blogspot.com/2006/11/acroread-expr-syntax-error.html">article</a>
on about how to fix this that is dated at november 2006...<br />
<br />
Last but not least, Gallery Remote (from the <a class="external" href="http://gallery.sf.net">gallery project</a>) doesn't work anymore due to curious
error messages:<br />
<pre>
tuxx@vi-edv003:~/Gallery_Remote$ ./Gallery_Remote
nawk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/opt/jre1.5.0_11/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
tuxx@vi-edv003:~/Gallery_Remote$
</pre>
I haven't fixed this by now, but I'm hardly trying too...<br />
<span class="uln bold">Update:</span><br />
I finally fixed it. Simply comment out all "export LD_ASSUME_KERNEL" lines in
the Gallery_Remote script and voila, it works again...<br /><br />
What I finally managed to do is catch up on the <a class="external" href="http://matrox.tuxx-home.at">forum</a>, setup a 
gallery site on <a class="external" href="http://gallery.tuxx-home.at">http://gallery.tuxx-home.at</a>, migrate nearly all
data and operating system installations from my old notebook to my new one and had a good coffee, or two, don't remember.
And if the Gallery_Remote tool finally would let itself convince to work again, I will migrate all my old galleries
on tuxx-home.at to the new gallery subdomain.
<br />
<br />
All in all, not a very good first day at work :-/
</div>
</content>

</entry>
<entry>
<title type="html">apt-proxy: Patch for making the '~' characters in URIs work again</title>
<author>
<name>Alexander Griesser</name>
</author>
<link rel="alternate" type="text/html" href="http://www.tuxx-home.at/archives/2006/09/08/T09_44_22/"/>
<id>http://www.tuxx-home.at/archives/2006/09/08/T09_44_22/</id>
<published>2006-09-08T09:44:22+02:00</published>
<updated>2006-09-08T09:44:22+02:00</updated>
<category term="Debian" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
Today I returned from my vacation and finally got myself some time to fix the
apt-proxy issue where apt-proxy can't handle the new '~' characters in
Debian's package names.<br />
To me it seems as if the problem is caused by the python urlparse module, but
as I'm no real python programmer, I don't know for sure.<br /><br />
I filed a bugreport at the Debian BTS, but until now it is not online...<br /><br />
Anyway, here's a patch that solves this issue by working around this issue.
The patch has to be applied to the file <span class="bold">&quot;/usr/share/pycentral/apt-proxy/site-packages/apt_proxy/apt_proxy.py&quot;</span>.<br /><br />

<pre>
--- apt_proxy.py	2006-08-15 00:00:45.000000000 +0200
+++ /root/apt_proxy.py.new	2006-09-08 09:07:49.849166662 +0200
@@ -182,6 +182,10 @@
 
         self.scheme, netloc, self.path, parameters, \
                      query, fragment = urlparse.urlparse(uri)
+
+	# ``~`` are allowed in urls!!!
+	self.path = self.path.replace("%7e", "~")
+
         if is_rsync:
             self.scheme = 'rsync'
 
@@ -284,6 +288,10 @@
     def clean_path(self, uri):
         # Clean up URL given
         scheme, netloc, path, params, query, fragment = urlparse.urlparse(uri)
+
+	# ``~`` are allowed in urls!!!
+	path = path.replace("%7e", "~")
+
         return os.path.normpath(path)
 
     def not_modified(self):
</pre>
<br />
<span class="uln bold">Downloads:</span><br />
<ul>
  <li><a href="/projects/apt-proxy/apt_proxy.py.diff">apt_proxy.py.diff</a></li>
</ul>
</div>
</content>

</entry>
<entry>
<title type="html">imaplogin: malloc: Input/output error</title>
<author>
<name>Alexander Griesser</name>
</author>
<link rel="alternate" type="text/html" href="http://www.tuxx-home.at/archives/2006/02/22/T13_20_00/"/>
<id>http://www.tuxx-home.at/archives/2006/02/22/T13_20_00/</id>
<published>2006-02-22T13:20:00+02:00</published>
<updated>2006-02-22T13:20:00+02:00</updated>
<category term="Debian" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
Today I received lots of this error messages on one of my mailservers.<br />
Google wasn't as helpful as usual, but after searching for a long while I found
the solution and want to provide it here so that the next time googling for this
issue won't take that long again.<br /><br />
imaplogin is part of the courier-imap(-ssl) suite so this issue may only
be relevant for those who use courier to provide IMAP to your users.<br /><br />
After checking all parts of the courier suite, the authentication mechanism
and some other stuff the problem still hasn't gone away.<br /><strong>The only thing
that helped was restarting the <acronym title="File Alteration Monitor">FAM</acronym>
daemon which suddenly stopped working as it seems.</strong>
</div>
</content>

</entry>
<entry>
<title type="html">Installing TrendMicro Interscan Viruswall (ISVW) on Debian Systems</title>
<author>
<name>Alexander Griesser</name>
</author>
<link rel="alternate" type="text/html" href="http://www.tuxx-home.at/archives/2005/10/28/T13_36_57/"/>
<id>http://www.tuxx-home.at/archives/2005/10/28/T13_36_57/</id>
<published>2005-10-28T13:36:57+02:00</published>
<updated>2005-10-28T13:36:57+02:00</updated>
<category term="Debian" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
Here's a short documentation of how to install TrendMicro ISVW SMB on Debian
based installations:<br /><br />
You need to have <a class="file" href="http://www.tuxx-home.at/projects/chkconfig-for-debian/chkconfig_1.2.24d-1_i386.deb">chkconfig for Debian</a> installed (check here for <a href="http://www.tuxx-home.at/archives/2005/07/09/T20_53_31/" >installation instructions</a>).<br />The second thing you need is <a class="external" href="http://packages.debian.org/stable/libs/libstdc++2.10-glibc2.2" >libstdc++2.10-glibc2.2</a> (isinst relies on this library).<br /><br />
The current version of the ISVW installer (isinst) is only able to recognize <strong>postfix or sendmail</strong> as local MTA, so you need to have one of them installed (I tried to modify isinst but that would me too much work because you'll have to modify all scripts in several tgz-files to reflect the changes for the whole installation procedure, anyhow if you're still interested in this approach, click here for <a class="file" href="http://www.tuxx-home.at/projects/isvw-on-debian/isinst-isvw50-debian-support.diff" >a diff to isinst</a>).<br /><br />
After your system is prepared, start the installer and answer all the questions according to your needs and you should be fine.<br /><br />
<strong>Known Issues:</strong><br />
After installation you will get the following warnings when running ldconfig:<br />
<pre>
ldconfig: File /usr/lib/libem_shell.so.lock is too small, not checked.
ldconfig: /usr/lib/libem_shell.so is not an ELF file - it has the wrong magic bytes at the start.
</pre>
<br />
According to the knowledgebase of TrendMicro you can ignore these warnings (although I don't understand, why they put their own object-format-files into the global shared objects directory...).
</div>
</content>

</entry>
<entry>
<title type="html">Importing Thunderbird Addressbooks to OpenLDAP server</title>
<author>
<name>Alexander Griesser</name>
</author>
<link rel="alternate" type="text/html" href="http://www.tuxx-home.at/archives/2005/10/05/T14_16_49/"/>
<id>http://www.tuxx-home.at/archives/2005/10/05/T14_16_49/</id>
<published>2005-10-05T14:16:49+02:00</published>
<updated>2005-10-05T14:16:49+02:00</updated>
<category term="Debian" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
Yesterday I tried to import all address book entries from <a class="external" href="http://www.mozilla.com/thunderbird/" >Mozilla Thunderbird</a> into an <a class="external" href="http://www.openldap.org" >OpenLDAP</a> server.
That was quite a pain, because the TB-exported LDIF-scheme did not import into LDAP, so I had to do quite some
stuff.
<br />
<ol>
<li>Import the <a class="file" href="/projects/tb-ldif-ldap/mozillaOrgPerson_V0.6.2.schema">mozillaOrgPerson_V0.6.2 schema</a> into your ldap-server</li>
<li>Adjust slapd.conf's <strong>sizelimit</strong> option if your address book contains more than 500 (= default value) entries</li>
<li>Run the conversion script to fix all issues regarding TB-Addressbook Export and OpenLDAP LDIF import.</li>
</ol>
<br />
<br />
<strong>1. Import the mozillaOrgPerson schema</strong><br /><br />
Download the <a class="file" href="/projects/tb-ldif-ldap/mozillaOrgPerson_V0.6.2.schema">mozillaOrgPerson_V0.6.2 schema</a> and copy it to &quot;/etc/ldap/schema/&quot;.<br />
Add the following include statement anywhere on top of your &quot;/etc/ldap/slapd.conf&quot; file.
<pre>
include         /etc/ldap/schema/mozillaOrgPerson_V0.6.2.schema
</pre>
After this, restart your slapd.
<br /><br />
<strong>2. Adjust slapd.conf's sizelimit option</strong><br /><br />
If your address book has more than 500 entries, you need to set the sizelimit option in slapd.conf. By default,
it is not mentioned and so I added a newline at the end of the file containing the following directive:
<pre>
# Because we have more than 500 entries in our database...
sizelimit       1500
</pre>
<br />
<strong>3. Run the conversion script</strong><br /><br />
I wrote a cool perl script to prepare the exported LDIF-file from Thunderbirds addressbook for importing it
into my OpenLDAP server (I used phpldapadmin to import the file).<br /><br />
Check out the <a href="/projects/tb-ldif-ldap/tb-ldif-ldap.pl.html">syntax highlighted version of the script</a> for a precise explanation of what it does exactly or alternatively <a class="file" href="/projects/tb-ldif-ldap/tb-ldif-ldap.pl">download the script</a>.<br /><br />
I was very happy to have a LDIF-source file with soooo many exceptions and unusual statements so I could take care
of all of them.<br />
If you experience any errors or want to provide additional features to this script, please contact me on the usual
ways.<br />
<br />
Happy converting  <img src="http://www.tuxx-home.at/moods/smilies/smiley.gif" alt=":)" />
</div>
</content>

</entry>
<entry>
<title type="html">Bad default value for courier-imapd on Debian systems</title>
<author>
<name>Alexander Griesser</name>
</author>
<link rel="alternate" type="text/html" href="http://www.tuxx-home.at/archives/2005/08/30/T22_15_33/"/>
<id>http://www.tuxx-home.at/archives/2005/08/30/T22_15_33/</id>
<published>2005-08-30T22:15:33+02:00</published>
<updated>2005-08-30T22:15:33+02:00</updated>
<category term="Debian" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
Today I recognized, that Debian's courier-imapd has a very ugly default value for <strong>IMAP_EMPTYTRASH</strong> (found in /etc/courier/imapd). This value maybe costs me about 10 hours of additional work to get all trash-mails back from the backups to the corresponding IMAP-folders.<br /><br />The reason, why my users need there trash folder is that they &quot;archived&quot; their mails in the trash folder which is - of course - not usual, but why not...<br /><br />So for you guys out there: Comment this setting out. Not mentioning it in the configuration file works well.
</div>
</content>

</entry>
<entry>
<title type="html">using chkconfig in debian systems</title>
<author>
<name>Alexander Griesser</name>
</author>
<link rel="alternate" type="text/html" href="http://www.tuxx-home.at/archives/2005/07/09/T20_53_31/"/>
<id>http://www.tuxx-home.at/archives/2005/07/09/T20_53_31/</id>
<published>2005-07-09T20:53:31+02:00</published>
<updated>2005-07-09T20:53:31+02:00</updated>
<category term="Debian" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
Today I tried to install Trend Micro Interscan Virus Wall (ISVW) on a
Debian System and prompt I went into some troubles. First of all,
the install script of isvw (isinst) is very ugly. Next it does only support
rpm-based distributions and requires the existance of chkconfig.<br />
My <a href="/projects/isvw-on-debian">first approach</a> to detect the operating system and then use either chkconfig
or Debian's way update-rc.d seemed to work fine, but the installable modules
for isvw have their own install scripts which also need chkconfig and therefore the startup- and shutdown-links were not created after the installation process (I also added support to detect exim as MTA and allowed the script to find out if either inetd or xinetd is running + some other useful stuff). Patching
all install scripts may be a lot of work because you never know in which tar.gz
archives another install script may exist and also require chkconfig. So I 
decided to give chkconfig for debian a try. I found a working version 
<a class="file" href="ftp://ftp.skolelinux.no/skolelinux/dists/woody/local/binary-i386/non-official/chkconfig_1.2.24d-1_i386.deb">here</a> which is currently only
available for Debian woody and depends on libnewt0. In Debian Sarge, libnewt0
is not available anymore, instead libnewt0.51 has to be installed.<br />
chkconfig for debian is unfortunately linked to libnewt.so.0.50 so one has
to create a symlink for that version too and that finally worked then.
So the list of commands necessary to get chkconfig for Debian to work can
be found here:<br />
<pre>
wget ftp://ftp.skolelinux.no/skolelinux/dists/woody/local/binary-i386/non-official/chkconfig_1.2.24d-1_i386.deb
apt-get install libnewt0.51
ln -s /usr/lib/libnewt.so.0.51 /usr/lib/libnewt.so.0.50
dpkg -i chkconfig_1.2.24d-1_i386.deb
</pre>
To avoid breaking your package management system you'd also have to edit
&quot;/var/lib/dpkg/status&quot; and change &quot;libnewt0&quot; to &quot;libnewt0.51&quot; in the <strong>Depends:</strong> line for the package chkconfig.<br /><br />
If the version of chkconfig is ever to be removed from ftp.skolelinux.no, I
mirrored it <a href="/projects/chkconfig-for-debian/">here</a>.
</div>
</content>

</entry>

</feed>

