Archive

One Disk To Another

Introduction

Usually when one gets some new hardware (say, a new hard drive) they want to use it, and replace their old one. But just how does one go about copying/creating partitions on the new drive, and then copy the data across safely? It’s not quite as simple as a “cp” command….

The Theory

If you are copying from one filesystem to another, they both have to be mounted. However, you can’t mount both the old and the new filesystem on the same place, as you will only be able to see one of them.

The [continued…]

Debian On Ra Q4

The Cobalt RaQ Cobalt_RaQ is a 1U rackmount server product line developed by Cobalt Networks, Inc. which was later purchased by Sun Microsystems featuring a modified Red Hat Linux operating system with a proprietary GUI for server management. Original RaQ systems were equipped with MIPS CPUs but later models used AMD K6-2 chips and then eventually Intel Pentium III CPUs for the final models.

The following guide has only been tested on a Cobalt RaQ4 and may not work on all machines. However it should also work on RaQ 3/XTR/550 and the [continued…]

Setting Up Web DAV

DAV stands for “Distributed Authoring and Versioning”, apparently. Not a particularly descriptive name, but quite a useful technology, and extremely simple to use.

Setting up the Server

DAV is an extension to HTTP, so the first thing you’ll need is a working Apache installation. I won’t cover that here – there are plenty of howtos on getting Apache running. Be sure to have appropriate certificates etc. if you want to use HTTPS.

Apache needs very little configuration to run DAV – in fact, all the major stuff was already configured for my distro (Whitebox Linux). Check [continued…]

Mpeg To3 GP

Convert Mpeg to 3GP file

Now I expected this to be hard. Or at least take a lot of fiddling to get right. However, it seems to be quite easy. http://www.niemueller.de/wiki/index.php?[[ConvertVideoTo3GP|This]] site has all the goodness. It requires three steps. Now assume we have a file called movie.mpeg and we want to convert it to movie.3GP. The steps required would be

mencoder movie.mpeg -nosound -ovc lavc -lavcopts vcodec=mpeg4 -vop expand=176:144,scale=176:-2 -o movie.avi -ofps 12

This will extract the video, scale it and reduce the frame rate. Now we need to extract the sound.

mplayer -vo [continued...]

DHC Pand ADSL Routers

Since I started using a DSL router with a built-in DHCP server I have had problems getting it to provide the DNS servers used by my ISP. It persistently re-wrote /etc/resolv.conf using its own IP address as the nameserver. I had circumvented this by making /etc/resolv.conf immutable but this is not ideal particularly with a laptop which may not be on the same network all the time.

Thanks to the book (The Debian System) recommended by AdamTricket I now have a solution.

It is really quite simple – aptitude install resolvconf, then edit /etc/resolvconf/resolv.conf.d/base and add [continued…]

Authoring

Authoring SVCD with cinelerra and mplayer/mencoder

Note that all the tools mentioned here come on the dyne:bolic live CD from http://www.dyne.org, which turns even fairly tired PC’s into multimedia workstations as long as they have a few GB spare disk space.

In cinelerra set the project format up for 4:3 – For quick working you can use 320×240 (quarter PAL) which gives similar quality to video phones etc and enough definition for simple titles and captions. Avoid the borders marked out by cinelerra in the compositor window – the SVCD format loses quite a bit of [continued…]

RHCE

RHCE

Red Hat Certified Engineer

Linux vendor and consultant Red Hat, offer dedicate training and testing for their flavour of Linux. It is based around their commercial Enterprise Linux product family. The training can be purchased directly from RedHat or from resellers – training offered by RedHat themselves (at Guildford) and IBM (London and other places) in the UK. Along with the main Linux track, they also offer a ranger of other allied technologies.

There are a number of courses that make up the couse work, starting with one designed for people tottaly new to [continued…]

Lost LILO

Recovery

You’re tired. Its been a long day and you turn off your computer, only to realise that when you turn it on next, LILO has decided for whatever reason that it won’t load your system. Eek. What to do? Well, here is a generic fix for that (You’ll need some kind of recovery CD or floppy such as Knoppix or tomsrtbt).

  • Boot off rescue CD.
  • Some rescue CDs won’t mount your hard drive, in which case you’ll need to mount it yourself. The partition is “/”, something like:
  • mount -o rw /dev/hda2 /mnt

    (Where [continued…]

    Scp Without Login

    Sometimes when setting up a machine to run services for not-very-well-trusted users (e.g. a web server), it may be advantageous to allow the users to copy files to the machine, but not to have any kind of shell access. Obviously, you can do this with FTP, but that’s old-hat and insecure. It would be better to have everyone scp the files over instead. Except… scp uses ssh, and so giving scp access also gives remote shell access to the users. Not what you really want in this situation.

    It is possible, however, to set up a system where [continued…]

    Installing Wifi Radar

    This page documents installing Wifi-Radar on Debian (Etch) and Ubuntu (Hoary).Wifi-Radar is a simple utility for managing wireless networks. It’s very useful if you connect to more than one wireless network, each of which has different settings.

    Although the .deb package used in this document is designed for Ubuntu, it has been shown to work on Debian Etch too.

  • Ensure you have the following packages installed: python, python-gtk2, wireless-tools. You probably have all of those packages installed already. They are installed as standard on Ubuntu and are likely to be installed on a Debian [continued…]