Nautilus scripts

Debian Package


A small script that helps you unpack, install and get info about a .deb file.

Download

Multiple interfaces on the same subnet

In the Linux implementation of the IP stack a IP address belongs to the host event though the administrator configures it on a devices. This can cause somewhat unexpected behaviour when multiple interfaces are configured to use the same network.

The network

 {network A}
            \       +--------------+
             -(eth0)| Linux server |
                    +--------------+
                     (eth2)  (eth3)
                       |       | 
                      {Network B}

Log4j

Introduction

Log4J is a logging framework developed as part of the Jakarta project and distributed under the Apache Sowtware Licens. The Log4J framework gives you a fully configurable logging environment for your applications. It can easily be configured through code in your program or using configuration files.

The basic architecture of Log4J consists of 3 main components:

JDBCInfo

Here is a small Java application which connects to a database using JDBC and prints some information.

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;

public class JDBCInfo {
    private Connection conn;
   
    public JDBCInfo(String driver, String url) {
        if (driver != null) {
            try {
                Class.forName(driver);
                System.out.println("Registered JDBC driver '" + driver + "'");
            } catch (ClassNotFoundException e) {

Firefox Hangs

Firefox hangs when tab or window containing a flash applet is closed. This only happens with sometimes.

Possible solutions


Sound problem


The problem can be that firefox is not able to play the sound since you have a newer Linux kernel (with ALSA).
Install libesd-alsa0. On a Debian based system just do:

<bash>apt-get install libesd-alsa0</bash>

Evolution Connector

OWA username and mailboxname is not the same


I had some problems connecting to my company email account (the serever running on MS Exchange with OWA enabled). The problem seems to be that in the setup we have the username and mailboxname are not the same and since Evolution 2.x the setup don't let you specify these setting seperatly (in 1.4 you had a textbox for each did).
I solved it by fetching the gconf.xml file from a machine I knew I had a working setup.
So here is a quick tutorial if you have the same problem.

* Shutdown Evolution and all it's processes.

Clearcase Tips and Trix

Most of the content on this page is pinched from YoLinux Tutorial - Clearcase Client Commands. I've just added them here for quick reference.

Usefull Commands

ct lsco
List all checkedout files in the current directory.

ct lsco -r
Same as above with the flag "-r" recusivly looks in sub directories.

ct lsco -me -cview -all
List all files that are checkedout by me in the current view.

ct find ./ -branch 'brtype(branch-name)' -print

Boot pxelinux clients from HP-UX

Introduction


pxelinux is a boot loader for booting Linux off a network server, using a Intel PXE (Pre-Execution Environment) conforming ROM.

In short the PXE network card loads the pxelinux ROM file from the server using TFTP. pxelinux then retrieves (also using TFTP) a boot parameter file (comparable to lilo.conf or grubs menu.lst files). This file tells pxelinux what kernel to retrieve (by TFTP) and what kernel arguments to pass to it at boot time.

Syndicate content