linux

Adding URI Handlers to Kubuntu / KDE

 I recently starting playing with Ktorrent.  I had been a long time Azureus user, but was just trying to setup something quickly and didn't need to level of functionality of Azureus had.  As a Chrome user, I wanted my magnet:????? links to automaticially be added to KTorrent.  I tried tried to do it with xdg and gconf, but neither of these worked.  I then found some info on Deluge that made my mind figure out this method. 

Backporting OpenLDAP 2.4 to CentOS 5

For a long time CentOS 5 users have been banging their head against their desks because CentOS 5 has only supported OpenLDAP 2.3.  While this release has been stable, it is quite long in the tooth and is missing many features that system administrator consider a 'requirement.'  Since so many packages link the ldap libraries that OpenLDAP 2.3 provides, upgrading OpenLDAP has been no easy task... until now. 

Creating VirtualBox USB rawdisks in Ubuntu

I recently was playing with a new 4GB usb stick and I wanted it install a rawdisk VirtualBox VM on it.  This would give a portable VM with decent speed.When I was trying to create the raw disk formated disk with the following command:

#> vboxmanage internalcommands -rawdisk /dev/sdc -filename ~/VirtualBox\ VMs/usbstick.vmdk 

I recieved the following error.  I even got this error running as root.  I determined it wasn't a permissons issue.

Batch dump SSL certificate bundles to single files

Introduction

This perl script makes the process of unbundling certificates into single files an easy task. Just run the and it will dump the generated files to the current directory.

Requirements

  • Perl
  • openssl
  • certificate bundle (PEM format)

Code

Syntax: ./cert-split-batch.pl <cert_bundle.crt>

Start gnome-terminal in you home directory

In earlier versions of pre-Lucid Lynx, when you started gnome-terminal, you would be sitting in your home directory to start.  Most all terminal emulators start you in your home directory if you are not running as a superuser.  Now with Lucid Lynx, you now start in the VFS (Virtual File System) root, aka. '/'. This is very inconveient for many of the things I do expect.  Here is the way to fix gnome-terminal so it's expected startup behavoir is restored.

Allow UID 0 accounts to login but not root over SSH

Introduction

More than once, I've needed root access to a server over SCP.  As we all know, allowing SSH access with the root user is a blaring security hole because the user is a well-known userid with superuser access. This makes it the first thing that a hacker or script-kiddie will check.  If you create another user with userid number 0 and set PermitRootLogin to 'no' in the sshd_config file, you will still not be able to login.  The PermitRootLogin option actually blocks ANY user if their user id number equals 0.

Convert RHEL to CentOS 5.5

Intro

Here is a quick howto on how to convert an Red Hat Enterprise Linux to Centos 5.5.  You can do this with with any RHEL 5 version 5.5 or older. 

Script to get Network Interface IP

Here is a easy little script to get the IP of a specific interface.  It supports both IPv4 and IPv6. 

Teamviewer

This site supports remote desktop viewing on the there major OSs (Windows, Mac, Linux) It's nice to have the Linux support.  They use wine as a wrapper for Linux. 

http://teamviewer.com

HowTo: Make a DOS bootdisk in Linux

This is just a quick article I wrote for myself. I keep on forgetting how to make bootable floppy disks in linux. 

  1. Get an floppy image from bootdisk.com or some other source
  2. fdformat /dev/fd0
  3. mkfs.vfat /dev/fd0 ## you may need to use the -I option with some USB floppy drives/li>
  4. unzip bootmec.exe ## that makes a file called bootmec.IMA (if you got an image from bootdisk.com)
  5. dd if=bootmec.IMA of=/dev/fd0

 

Syndicate content