James Bowes

Purveyor of Pre-eminent Programmes

Archive for the ‘fedora’ Category

An Access Logger for Netty and HTTP

leave a comment »

We needed to do CLF style HTTP access logging for Thumbslug, which is implemented in Java + Netty. I couldn’t find any code to do this with a quick google search, so I wrote my own. If you need such a thing, try here or here (backup).

Written by jbowes

July 5, 2011 at 12:01 pm

Posted in fedora, tech

Another Fedora Upgrade Post

with 13 comments

Devan and I were chatting a bit about Fedora upgrades this morning. Given that he and I are both recovering debian users, we do miss (apparently) seamless live upgrades between releases. So following on the heels of Doug and Devan, here is my take on upgrades.

First, offline upgrades will always be required for some cases. There’s always going to be some cruft we need to drop, and can’t do it on a live system.

Second, allowing upgrades from release X to X+2, etc is too risky and would need more QA than I think we’d be willing to commit. Likewise for rawhide to stable, or stable to rawhide. These all should be possible for the intrepid, but not defaults options.

A use case for upgrades

Franky Fedora is a Fedora user. He uses a default install, and is not familiar with the command line. Whenever the update applet appears at the top right of his screen, he launches it and updates his system. One day, instead of the regular update icon, a different one appears with a popup message “A new version of Fedora is available! please click to upgrade.”

  1. Franky double clicks on the icon.
  2. Franky is presented with information about the upgrade, including release notes and an advisory to back up any important data before continuing, as well as a choice to continue or cancel.
  3. Franky selects continue, and is presented with a list of tasks, as they complete, they are checked off. The list looks like:
    • Updating current release
    • Downloading software for upgrade
    • Preparing system for upgrade
    • Upgrading system
  4. As time progresses, the items on the list are checked off. Meanwhile, Franky is free to do other tasks.
  5. Once all items on the list are checked off, Franky is presented with a message telling him that his upgrade is complete, and advised to reboot his system. He is given the choice to reboot now, or not to reboot if he wishes to complete other tasks.
  6. Frankly chooses to reboot. His system restarts, and he is presented with the next Fedora release, and all of its wonderful new artwork.

Extension Points:

2a. Franky selects cancel, and is returned to his regular desktop.

3a. Franky’s system requires a new filesystem, so he is presented with the following tasks instead:

  • Updating current release.
  • Downloading software for upgrade.
  • Rebooting system info upgrader.
  1. As the items on the list are checked off, Franky is free to do what he wishes.
  2. When the final item is checked off, Franky is presented with a message telling him his system must be restarted to continue the upgrade. He can select to reboot now, or to do so on his own later.
  3. Franky chooses to reboot now.
  4. His system restarts, and runs the Anaconda installer.
  5. Once complete, Franky’s machine reboots into the new Fedora release.

5a. Franky chooses to reboot later, and is returned to his regular desktop.

  1. Later he reboots, and moves on to step 6.

Proposed implementation details

  • An upgrades metadata file added to the main repository metadata. This file will contain a pointer to the new Fedora release, as well as some caveats for upgrading. For instance, that the i386 version of dbus must be removed before upgrading.
  • The upgrades file will specify whether a live or offline upgrade should be done.
  • The caveats will run during the ‘Preparing system for upgrade’ step.
  • The updating current release step is just a ‘yum update’ after it is completed, the upgrade tool shall restart, if it has been updated during this process.
  • The caveats metadata will be updated over time if any new issues arise.

Interaction between the upgrades metadata and other repos may get hairy. How does the system know what do to when you are running updates versus updates-testing? Perhaps each repo should have upgrades metadata.

This is all an extension to the F9 PreUpgrade feature. Getting the Anaconda reboot working is a great first step. Once that’s done, we can move on to the optional live upgrade, a command line interface, etc.

Comments/flames appreciated.

Written by jbowes

October 20, 2007 at 11:44 am

Posted in fedora, tech

Tagged with , , , ,

Terminal Bling

with 6 comments

On the subway ride home I played around with adding a progress bar to pkcon, PackageKit‘s command line interface.

pkcon-blingI’m quite certain this is the most worthwhile thing I’ve done this week.

Written by jbowes

October 16, 2007 at 8:40 pm

Filtering Atom feeds on language

with 4 comments

Fedora People, rather than concerning yourself with who posts what in which language, how about using atom‘s support for per-post language tagging and filtering the feed?

Here is an English language only Fedora People feed (courtesy Yahoo Pipes).

Written by jbowes

October 13, 2007 at 9:39 am

Posted in fedora

Tagged with , , ,

xterm-like fonts for gnome-terminal in Fedora 7

with 7 comments

I like using gnome-terminal, but I find the default fonts hard on my eyes. So I don’t forget (and for anyone who is interested), here are the steps to use xterm’s default font in gnome-terminal:

  1. As root, run `yum -y install bitmap-fonts`
  2. As root, run `ln -s /etc/fonts/conf.avail/70-yes-bitmaps.conf /etc/fonts/conf.d/`.
  3. Close all open gnome-terminal windows.
  4. Launch gnome-terminal and edit the current profile.
  5. Uncheck ‘Use the system fixed width font’ and click on the font button.
  6. Select ‘MiscFixed’ and set the font size to 10.
  7. Your terminals now look crispy in the dark.

Written by jbowes

June 4, 2007 at 8:36 pm

Posted in config files, fedora, tech

Hello Planet Fedora

with 3 comments

Thanks to skvidal for adding me to Planet Fedora.

A bit about myself:

  • By day I work on Red Hat Network
  • By night I work on yum
  • My hackergotchi’s hair is not to scale.

Written by jbowes

May 24, 2007 at 7:18 pm

Posted in fedora

system-summary

with 2 comments

about-this-computer

system-summary is a little dialog window I whipped up (with help from Mr. Goodwin) after talking with Will Woods about how there is no one place you can send someone to give you basic information when they file a bug. The idea is that this will be launched from System/About This Computer.

system-summary will probably get folded into smolt, but for now it lives in a git repository on Dangerously Incompetent.

Written by jbowes

April 18, 2007 at 6:13 pm

Posted in fedora, tech