Wrapper script to convert CVS project to Git

I have an old CVSROOT of several projects on an archive host, and I want to create a git version of the relevant projects without bothering to copy more than I need to. Here is a script to do that. It uses rsync to copy just the relevant project and then converts it with cvs2git AKA cvs2svn.


Tmux Startup and Attach Wrapper Script

A nice feature of tmux is the support it has for scripting. It's possible to open a manipulate windows in a session you not attached to. The same script can be used from within a tmux session as well. See my blog post for an example of such a script.

The script below is what I use to start working everyday. I just sit down and type 'tmuxgo', and whether I simply detached the night before or had a power outage I will have just the window layout I want.


My tmux.conf

Have you switched from screen to tmux yet? Why not? You don't use either? How the hell do you do your job?

Here's my .tmux.conf. Big woop.


bind | split-window -h


Upgrade TiVo Premiere XL to 2TB and 317 hours of HD

Upgrading a TiVo Premiere or Premiere XL to 2TB and 317 hours of space is quite easy thanks to the jmfs tool by Comer of the TiVo Community. So I upgraded last week. It took 7 hours just to copy the data, but it was worth it. My TiVo went from always on the edge of full to 48%!

Here is how to do it without a CDROM drive or Windows machine.


Manual Migration of LVM-based Guest Between Hosts

How to manually migrate a virtual machine from one host to another. The process is roughly: copy the guest config to the destination, create LVs on the destination, dd the LVs across ssh, instantiate and start the guest on the destination.

As I described in a previous post, I dedicate an LV in the host for each guest. The guest then uses LVM to manage the space. In this case the guest is contained in two logical volumes on the host.

Chroot BIND named deprecated in Fedora 11

If you've tried to fire up a chroot named on Fedora 11 you may have noticed it complains about missing configuration files such as named.dnssec.keys.

There is a bug that implies you should use SELINUX instead of chroot. But if you aren't ready for SELINUX, you can still run a chroot name server. Here is how.


TiVo Video Download and Playback with Fedora

After having my Sony Sat T-60 Series 1 DirecTiVo for about 8 years, I'm finally upgrading to a TiVo HD. It should be here soon, so in the meantime I need to do some research and prepare my home network for the addition.

To leverage my Mythdora MythTV box I want to support the following in Linux:

  • Download video from TiVo to my MythTV
  • Play video on the TiVo from my MythTV

Let's see how to do that...


Yum Upgrade Fedora 8 to 10

Fedora 8 goes EOL next week, so it's time to upgrade. A yum upgrade is not the recommended way to upgrade, but it can work fine. The simpler a system is, the more likely this method is to succeed.

I just successfully upgraded my Fedora 8 text-only firewall and samba server using yum. Here are my notes from the process.


Expanding an Encrypted Filesystem with LVM and Fedora 10

My encrypted home directory on my Fedora 10 laptop is filling up.
Let's expand it.

[root@seitan ~]# df -h /home
Filesystem            Size  Used Avail Use% Mounted on
                       14G   13G  862M  94% /home

First identify the logical volume beneath this encrypted LUKS device.

[root@seitan ~]# grep CryptHome /etc/crypttab 
CryptHome /dev/VolGroup00/LVCryptHome none luks,check=ext2,retry=5

Then see what is available in LVM.

[root@seitan ~]# lvs


Fedora 10 Upgrade Experience

I just upgraded my laptop to Fedora 10, and it looks great now, but there were some snags. I'll try to dig into them later and see if they are bugzilla worthy.

For now I'll try to do a brain dump. I had problems with encrypted logical volumes, grub needed manual setup, my wireless device name changed.

Crypt FS Problem

Before the upgrade, I was running Fedora 9 with a drive layout as follows:

  • sda1 as windows
  • sda2 as /boot
  • sda3 as a VG holding everything else
    • LVCryptHome was a LUKS volume holding /home



Subscribe to RSS - Linux


Subscribe to Syndicate