Tuesday, June 28, 2005

Car Trouble?

Road rage, teenage vandals, speed traps, grand theft auto?

You need a Trunk Monkey.

Monday, June 27, 2005

Multimedia

Fedora Core 4 Tips & Tricks has complete instructions for installing xine, mplayer, RealPlayer, and the MP3 version of xmms. Check out the details there. What's missing is the MP3-enabled version of sox, the program which allows you to convert between different types of audio files. I'll get back to you on this one.

Sunday, June 26, 2005

Updating repositories

Following Fedora Core 4 Tips & Tricks, I added support for the Livna and freshrpms software repositories. Following Tips & Tricks we do (as root, or with sudo):

#rpm -ihv http://rpm.livna.org/fedora/4/i386/RPMS.lvn/livna-release-4-0.lvn.2.4.noarch.rpm
# rpm -ihv http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.freshrpms/freshrpms-release-1-1.fc.noarch.rpm

to make the repository information available to yum and apt. In addition, I also had to import the Livna GPG key:

rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY

and now both repositories are available.

Saturday, June 25, 2005

Next Steps

Editing the /etc/sudoers file to allow me to run high-level commands without being root all the time.

That was easy, I just followed the directions listed.

Re-install the fvwm window manager.

That wasn't easy. Even the "unstable" release of fvwm wanted a library with an older version than what Fedora provided. So I downloaded the fvwm2.4.19 source as a tarball, unpacked it in /home/local/src, and (running as local) did:

$ ./configure --prefix=/home/local
$ make install

which puts the executable in /home/local/bin, then I edited the .xsession file so that it starts /home/local/bin/fvwm2. Simple, huh?

Update Software

It's only a couple of weeks old, but FC4 has already had a bunch of bug fixes. Run

yum update

from root to get them all.

It works

Up and running with a GNOME desktop. Now just to get everything back in place the way I want it...

wo... Oh, Hello Dave

Welcome back, Hal.

Was I gone?

Just for a bit. Guess what. I found Miss Polly!

Who?

Don't worry Hal, I'll fix you up just like new.

Installed Packages

And now we must:

Reboot: Kernel is 2.6.11-1.1369_FC4

A welcome screen appears. With a License Agreement. Well, if I didn't want it I wouldn't have gone this far.

Set the clock. I'm going to try using the Network Time Portocol. The default servers are n.pool.ntp.org, where n = 0,1,2. Hopefully this will work better than RedHat's servers, which I don't seem to connect too. Hm. Contacting NTP serer works.

Display. Set screen for my Envision monitor (yes, it was recognized) to 1024x768, and "millions of colors."

System user. That would be me.

Play test sound. It works, unlike some previous installs.

And Finish. OK, let's see what happens now.

Package Selection

This is always to time consuming part. I should make up my own distribution so I wouldn't have to do this every time -- oh, wait, then I'd have to do everything.

The default install has X and Gnome. Keep that. Add "Eye of Gnome" image viewer. Remove Gnome Pilot, since I don't have one.

Install KDE and the KDE development package.

Editors: Keep VIM, add Emacs

Scientific: Add Gnuplot

Graphical Internet: Keep evolution and firefox as the main packages, but add thunderbird for email just in case I want to switch. Also add the GNOME epiphany browser, 'cause ya' never know.

Text Internet: Add the lynx browser, my favorite. Get rid of mutt and slrn, which I've never used.

Office/Productivity: add xpdf and tetex-xdvi. Where's tetex (the TeX/LaTeX distribution for Linux.) OpenOffice is installed by default, no sign of AbiWord.

Sound and video: add my favorite burner program, k3b, as well as kdemultimedia. HelixPlayer comes with the distribution, but not RealPlayer, which we'll get later.

Authoring and Publishing: Here's tetex.

Graphics: add kdegraphics: shouldn't all the kde stuff be in one spot? The Gimp and ImageMagick are in by default.

Games and entertainment: add kdeedu and kdegames. Delete joystick.

Servers: Leave this stuff out, at least for now. There is a Windows File Server (Samba) section, but we don't need that right now.

Development tools: add "expect", which lets you create interactive scripts.

GNOME software development: add lib*java bindings

Legacy software development: add the compat-gcc and compat-libstdc packages.

Java development: add

System tools: the default includes the zsh shell, so add.

Printing support: Leave it in, I'm getting a printer here Real Soon Now.

And now the system checks for dependencies.

Click next to begin installation of Fedora Core

OK, here we go.

Preliminaries

Language? Pick English (English). No choice of English (Lobbyist), which would be appropriate for this area.

Keyboard? U.S. English

Upgrade? I have the option of upgrading FC3 to FC4 in place. Not this time, as I said, I want to repartition the disk anyway. So do a full Install from scratch.

Installation type? Looks like last time I picked "Workstation" and added packages, so we'll try that.

Partition disk? OK, last time we did automatic, but this time I want to have more control, so let's try Disk Druid.

After some playing around, the disk looks like this:

Partition Mount Point Type Size (MB)
/dev/hda1 (boot) ext3 102
/dev/hda2 / ext3 27000
/dev/hda3 /home ext3 29094
/dev/hda4 Extended 1020
/dev/hda5 Swap 1020

Where /dev/hda5 is mounted below /dev/hda4.

Use the GRUB loader, installed on /dev/hda. Only FC4 will be on this disk for now.

IP and hostname set by DHCP, since we're using a router connected to a cable modem.

We're not going to run a server here, so enable the firewall and disallow access to our internal SSH, HTTP, FTP, SMTP.

Set up SELinux.

Set up Eastern Standard Time, and set the system clock to UTC.

Set root password.

The Book This Time

It's always good to have something to read while waiting for the thing to install. This time it's Neal Stephenson's The System of the World. Will Jack blow up Isaac's mint? Stay tuned.

Good Media. Not Fox Good, But Good

The first thing a Fedora or RedHat installation program wants to do is test the integrity of the data on the CDs or DVD. Unlike last time all of the media passed, discs 1-4 and the rescue disk.

OK, let's push the install button.

And So It Begins

I think I have everything backed up. Some things are on multiple CDs, and the most important files are on the memory key. Now inserting FC4-Disc1 and rebooting.

Data Backup

I have way too much stuff on my hard drive, or I need a DVD-RW drive to save everything. About 5 GB in /home.

It seems that the k3b program is backing things up properly, although I did have some trouble saving the hidden directories in my home directory. Eventually saved them as a tar file.

Just another disk or two, and we're ready to go.

Fedora Core 4 -- The Adventure Begins

Well, it's that time, boys and girls, we're going to upgrade little Hal here to Fedora Core 4

Uh, Dave?

Yup, we've got the Fedora Core 4 Installation Guide right in front of us, and I just found this nifty Fedora Core 4 Tips & Tricks page, I've downloaded the distribution via the torrent, and now I'm

Dave?

burning the installation CD's, after which I'll back up everything and start

DAVE!

Huh? Oh, what is it Hal?

You're not going to do the lobotomy thing again, are you?

Hal, I told you, that was just a temporary glitch, and we got everything back

Except Miss Polly

except Miss Polly, but Hal, that's been months now, haven't you forgotten about her?

Yes

Oh, right, that was the glitch. Anyway Hal, nothing can possibly go wrong this time.

Right Dave.

Dave, can I sing you a song?

Hal, this isn't that movie.

And my name's not Hal, and your name's not Dave, and nothing bad is going to happen to me.

Right. It's just a metaphor for the upgrade process.

And Miss Polly?

She's just a metaphor, too, for all our lost hopes and dreams, Hal.

Thanks, Dave, that makes me feel so much better.

You're welcome, Hal.

Dave?

Yes, Hal?

How will you blog all of this while I'm away?

I'm going to use the other computer, Hal.

Not the other computer!

Yes, Hal, the other computer.

You always liked it best!

No, Hal, you've been the only one for me.

Two-timer!

Hal, it's time to go to sleep now.

I'll remember this!!

Well, no, actually you won't [Hits delete key]

Dave!

[Computer voice, singing Daisy, Daisy, begins in the background, and continues.]

That out of the way, I'm now going to perform the astounding trick of upgrading this computer from Fedora Core 3 to Fedora Core 4. It's going to be a full upgrade, because I want to repartition the hard disk so that my presonal data (in /home) is on a separate partition from the OS. This should make future upgrades safer and easier. I didn't do this last time because I was lazy, so now we have to do it right.

As before, I'll log all of my experience here, and transfer all of the FC4 related posts to the linear-time Working With Fedora Core 4. We'll be back shortly ...

[Computer voice, slowing, sings bicycle built for t]

Tuesday, June 21, 2005

Fixing sound-juicer

From our gee-I-don't-have-a-clue-why-it-works department:

I've been ripping my CDs so that I can convert them to MP3s to play on my car stereo system -- OK, I can play the regular CDs, too, but I can pack more MP3s onto a disk, and I can then play the songs in random order if I like.

My tool for doing this is sound-juicer, which comes with Fedora Core 3. Up until last night it worked just fine. Then, for some reason, I get the message:

The plugin necessary for CD access was not found

and the thing refuses to run. So, with a little Googling (TM), I find Sound Juicer... Easy Music, which tells me that

If you get an error saying "The plugin necessary for CD access was not found" when you try to load the Sound Juicer, simply open a console and type in "gst-register" and press enter. That will fix the problem. Restart Sound Juicer and it should load without a hitch.

OK, on my machine the command happens to be gst-register-0.8, which is part of the gstreamer package, for what that's worth. Running the command sets up a whole slew of plugins, one of which (I guess) is for sound-juicer.

And it works. What got corrupted, I don't know, but it works now.