Debian

HowTo: Mount Bin/Cue files in Linux

Okay, so I I lied a little bit. I’m not sure how to mount a straight bin/cue file combination in Linux, but I do know that it’s really easy to convert them into an ISO file, and then mount the ISO in debian based linux.

sudo apt-get install bchunk

The syntax from bchunk is as follows:
bchunk [-v] [-p] [-r] [-w] [-s]

So if i wanted to convert image,bin and image.cue into image.iso, I’d run the command:
bchunk image.bin image.cue image.iso

Continue reading “HowTo: Mount Bin/Cue files in Linux”

Howto: Set Up Your Own Snort Intrusion Detection System with a Database Backend

Okay, truth told, I’m completely bored, so I’m going to write a quick tutorial on how to install and set up the Snort IDS on a Debian Sarge System (although it should work on other distros as well).

Download and Install Snort
apt-get install snort-mysql

Enter values in the following screen, but forget about the part about the database
cd /usr/share/doc/snort-mysql
mysqladmin -u -p create
zcat create_mysql.gz | mysql -u -p

Continue reading “Howto: Set Up Your Own Snort Intrusion Detection System with a Database Backend”

Howto: Get a Movie from a DVD to your Sony Clie (and probably other PDA’s as well)

I’ll try to make this as simple as possible.

I’m going to assume that you’re using Linux (and that you are not a complete noob at it) for this tutorial. I will assume that you’re using a Sony Clie.

Here’s an overview of what we’re going to do:

  1. Rip dvd using DVD:Rip
  2. Convert ripped movie into a clie compatible format
  3. Download and install TCPMP (free media player)
  4. (optional) Install Memory Stick Pro fix
  5. Copy Movie to the Memory Stick

Step 1: Download and Install Files
apt-get install dvdrip
apt-get install pilot-link
Download TCMP (for palm)
Download all attachments

Continue reading “Howto: Get a Movie from a DVD to your Sony Clie (and probably other PDA’s as well)”

Howto: Kernel Building in Debian Sarge (3.1)

I’ve tried and tried to build my own custom kernel over the past year or so, usually only to stop in frustration because of some small part of the process not working.

This is all different now.

I found out that using the took make-kpkg makes things way easier. In fact I configured, compiled, and installed kernel 2.6.15 in about 30 minutes including the time that it took me to build it.

Continue reading “Howto: Kernel Building in Debian Sarge (3.1)”

Convert RPM to Deb + News

I found a few cool things this morning.

The first being a way to install a rpm file in Debian. You do this using the alien command (apt-get install alien).

To convert a package from an rpm to a deb run the following command:
alias --to-deb

To just install a rpm use the following command:
alias -i

It's that easy.

Also, I was looking at some stories on the front page of Digg, and found a Great New Library for use with Google Maps. It has the features of the one that I was messing around with earlier (I forgot the name of it). It even includes the features that I had to add inot the other library.

Continue reading “Convert RPM to Deb + News”

How To Cache Apt Packages On A Network Using Apt-Cacher

If you’ve got more than one computer running Debian that packages are downloaded through apt, then apt-cacher should help you a lot.

Apt-cacher is actually a cgi script that is run by apache. Using apt-cacher is very easy, and installing it is even easier.

Step 1: Install apt-cacher.
(Run this on the proxy computer)

apt-get install apt-cacher

Enter the webpage : http://localhost/apt-cacher
to see that the proxy is running.

Step 2: Backup and Convert Clients sources.list.
(Do this on the computers that you want to access the cache.)

Continue reading “How To Cache Apt Packages On A Network Using Apt-Cacher”

Chkconfig like program in Debian

I started out in Linux using Fedora, which is Redhat based. One of the indespensible tools that I used was called chkconfig. Basically what chkconfig does in Redhat based systems is allow the user to control what daemons start at boot time. This is useful for starting that annoying daemon that you always need or stopping the pesky one that always bothers you.

I used this a ton, and then I switched to Debian, and my whole world turned upside down. (some exaggeration intended)

Continue reading “Chkconfig like program in Debian”

Problems when running apt-get on Debian

I’ve been having some problems using apt-get lately which led me to doing an apt-get dist-upgrade.

Smart me found this command on the internet and decided to use it. It worked just fine, except for the fact that when I restarted my computer the graphical display manager that I use didn’t start.

Here’s the steps that I took to diagnose the problem.

  1. I tried to start gdm instead of kdm by editing'/etc/X11/default-display-manager'. This file contains the path to your display manager, for me it was '/usr/bin/kdm'
  2. I tried changing that to '/usr/bin/gdm' and I received an X server error saying that my chosen X server (XFree86) was not found.I thought that this was a little funny because I didn’t think that I used XFree86, but Xorg instead.
  3. So, I looked at the file '/etc/X11/X', which is a symbolic link (which is like a shortcut in windows) and found out that in the upgrade it changed the link to point to a nonexistent file.
  4. After that I changed the link to point to '/usr/bin/X11/Xorg' and voila, kdm started up just fine.More Later,
    Jon Howe