All posts by kortsi

Limiting the bandwidth of incoming traffic

0.00 avg. rating (0% score) - 0 votes

A backup server was saturating the DSL links of remote offices every time the backups were running. To prevent this, I had to limit the incoming bandwidth of the TCP-connections that were used to back up the remote hosts, but not touch the ones that were used to connect to the servers in the local network. Here’s how to do it.

Continue reading Limiting the bandwidth of incoming traffic

Scratchbox installation under 32-bit chroot on 64-bit Ubuntu

0.00 avg. rating (0% score) - 0 votes

I wanted to try out the Maemo SDK for Nokia 770, N800 and N810 devices (for some reason I happen to own one of every generation), but found out that there are no prebuilt packages for the 64-bit environment. The quick (?) remedy for this is the chroot jail, because a guest i386 environment can pretty easily be bootstrapped inside a 64-bit one. Here are the step-by-step instructions for doing it.

Continue reading Scratchbox installation under 32-bit chroot on 64-bit Ubuntu

SUID script requirements on AIX 5L and ksh93

0.00 avg. rating (0% score) - 0 votes

Requirements for a suid script include:

  • #! directing the KornShell be used
  • Executable by user, group, and other
  • No read permission
  • Add suid permission by chmod u+s on the file

Add a -p option to #! to increase security to force a separate process if one is not normally done.

Example:

Source of this information:

http://www.ibm.com/developerworks/aix/library/au-kornshell93.html#n

Enabling security on an HP ProCurve 4200 series switch

0.00 avg. rating (0% score) - 0 votes

I had a chance to configure an HP ProCurve 4208vl switch the other day. The first impression was that the command line interface is heavily influenced by, if not directly copied from, the Cisco IOS command line interface. So if you have experience with IOS, you will probably feel almost at home on an HP switch. There are some differences, though.

The first thing I wanted to do was to enable ssh access and authentication, and disable telnet. Here’s a quick howto.

Continue reading Enabling security on an HP ProCurve 4200 series switch

IBM SDD driver troubleshooting on Linux

0.00 avg. rating (0% score) - 0 votes

The Subsystem Device Driver [SDD] is a pseudo device driver designed to support the multipath configuration environments in the IBM TotalStorage Enterprise Storage Server, the IBM TotalStorage DS family, the IBM SystemStorage SAN Volume Controller. It resides in a host system with the native disk device driver and provides the following functions:

– Enhanced data availability
– Dynamic I/O load-balancing across multiple paths
– Automatic path failover protection
– Concurrent download of licensed internal code
– Path-selection policies for the host system

Continue reading IBM SDD driver troubleshooting on Linux

Bootstrapping an Ubuntu guest for Xen

0.00 avg. rating (0% score) - 0 votes

First, some empty disk space is needed. Let’s create a logical volume for our new virtual machine:

Create a filesystem on the new logical volume:

Continue reading Bootstrapping an Ubuntu guest for Xen

How to get VMware Server working with an unsupported kernel and the vmware-any-any patch

0.00 avg. rating (0% score) - 0 votes

VMware Server needs exactly two kernel modules running on the host system (there are separate modules for guest systems). These are the vmmon and the vmnet modules. Unfortunately, the vmmon and vmnet packages included in the VMware server distribution package don’t compile with the newest kernels. When I upgraded my laptop to Gutsy Gibbon a few weeks ago, I forgot to check if VMware server supports the new kernel. And, of course, it doesn’t yet. But luckily I found the vmware-any-any package, a patched version of the host kernel modules that works with newer kernel versions.

Continue reading How to get VMware Server working with an unsupported kernel and the vmware-any-any patch

Updated version of the flash64.sh script for Ubuntu 7.10 Gutsy Gibbon

0.00 avg. rating (0% score) - 0 votes

A few months ago I released a script to install a 32-bit Adobe Flash plugin to a 64-bit Firefox, but it doesn’t seem to work in Gutsy beta. Here’s an updated one. I upgraded my laptop to Gutsy and used this one to get Flash working.

Edit: I did a complete reinstall later and learned that Gutsy knows how to set this up by itself. So there’s no need for this script anymore. And that is a very positive thing!

Continue reading Updated version of the flash64.sh script for Ubuntu 7.10 Gutsy Gibbon