Posts Tagged: Linux


4
Jan 09

Keryx Tutorial: Bringing Updates Home

Update 20/2/09: Keryx 0.92 has been released, with several new features and a few important bug fixes. If you are using the previous version, please upgrade now. Check out the release notes for a list of what has changed. For a screenshot walk-through of the changes, check out this blog post.

Translations / Tutorials In Other Languages:

Though in most North American cities one cannot find a spot without at least a weak WiFi signal, many of us Linux geeks still live in rural areas with less Internet connectivity. Also, in various non-Westernized nations, there is a growing number of Linux users who may have a computer at home, but cannot afford a decent connection. For both groups, software updates typically demand an Internet connection, which can make updating difficult if not impossible. There is now a solution though, a new program called Keryx.

Keryx was written by Southern Illinois University computer science student Chris Oliver, who wanted a way  to download software and updates for Ubuntu systems that had little or no connectivity. Simply put Keryx on your pen drive, use it to create a new project file which retains a copy of your software sources and other system details, then take the pen drive to a computer with a better connection. Via it’s Synaptic like interface, users can then select all updates for download, plus select any other software they may want to install, complete with dependency resolution.

Because it is written in Python, and utilizes wxWidgets for it’s interface, Keryx can run on Linux, OSX and Windows. Pre-compiled binaries for Windows are included in the download (meaning you don’t need to install Python and wxWidgets first), and similar binaries for OSX and Linux are in the development road-map, along with Debian/Ubuntu packages.

.

This tutorial will walk you through the simple process of using Keryx to get updates and new software. Keryx currently only works for Debian based distros, but there are plans for adding support for a number of other package management systems. The system being updated is running Ubuntu 8.10, with no network connectivity. The system that will be grabbing the updates is running Windows XP, though it could just as easily be Windows 95 through Vista, OSX, or another Linux box.

.

Extract the zip file
Go to the Keryx website and click the download link. Once the download is complete, put it on a USB pen drive that has a decent amount of free space, and unzip it.

.

Starting a project from the CLI
Keryx uses wxWidgets for it’s graphical interface, and a default Ubuntu install does not have wxWidgets installed. Therefore you must create your project file in a terminal window. Fear not, as it is really quite quick and painless.

Simply open up your terminal, and then navigate into the “linux” directory inside the Keryx folder. On my computer this was “/media/disk/keryx/linux” but it will look a little different for you, depending upon what your pen drive is called. Once you are in that directory, enter in the following, making sure to replace <project> for whatever you want to call your project and <plugin> for they type of system you are updating, in this case debian.

python keryx.py –create <project> <plugin>

note: the above is two dashes, but my font makes it look like one.

In a few moments the project will be made. When this happens, close out of the terminal and safely remove your pen drive, to take to another computer.

Note: For some people, Keryx may experience difficulty fetching the package list files in the next step, if their repository mirror is set to the regional default. If you experience this, consider selecting a different mirror in System/Administration/Software_Sources and then repeating step #2.

.

In this tutorial I am using a computer running Windows XP as the computer with a high speed connection. However, this could just as easily be done on any Linux or OSX computer, so long as they both had Python and wxWidgets installed.

The Keryx main window
On your Windows computer, plug in the pen drive and open up the Keryx folder. In this folder you will see a “win32″ folder containing prepackaged binaries for Keryx. Using these you can run Keryx without having to first install Python and wxWidgets, making Keryx a very portable application. The file you need to run is called “keryx.exe,” though Windows may hide the .exe part from you. When Keryx opens, click “Open Project” and find the project file you created a few minutes ago.

Downloading package lists
When you open Keryx, go ahead and let it download the latest package list.

.

The package list
Once the package lists have been downloaded, you’ll see the full Synaptic-like package list in Keryx. This list can be sorted by package name, status (not installed, installed, needs updating, etc.), etc. The first thing you’ll want to do is click “Get Updates” near the top of the window.

Snarfing 210 updates...
When I started the download, Keryx had 210 files to download. Your number will vary, but you are likely to have a lot of updates if you have a fresh install. Keryx will tell you when it is finished, so you might want to go get some coffee.

.

Searching for a package
You probably want to be able to install wxWidgets on your Ubuntu system, so that you can run the Keryx graphical interface on it. Near the top of the window, start typing “wxversion” in the search field. Because the Keryx package search tool is so amazingly fast, you’ll only need to type the first few letters before you see python-wxversion. Right-click this package and then click download. It has several dependencies that Keryx will tell you about, so go ahead and let the program download those as well.

.

Installing updates via dpkg
With all your packages downloaded, close Keryx, safely remove your pen drive, and go back to your Ubuntu machine. When you plug the pen drive back into your Ubuntu machine, you’ll notice that the package are stored in projects/<project>/packages (where <project> is the name you gave the project). You’ll need to open up your terminal again, and navigate to this directory. Once there, run the following:

sudo dpkg -i –force-depends *.deb

Running updates
This line will install and/or update all the packages in that directory. The “force-depends” parameter is necessary in this case, as we are installing the wxWidgets packages, which have a circular dependency. Without this parameter, dpkg will start whining at you. If you have as many packages as I had, this may take a while. Go refill your coffee, and by the time you get back, the install might be done. Thats all there is to it!

.

Despite already being a rather useful tool, there are a lot of enhancements planed for the near future with Keryx. Most of it’s features, including it’s package management support, are implemented via a very flexible plugin infrastructure. So if you are a Python hacker and would like to help implement some of the new features, or have some ideas of your own, feel free to check out the code and dive in!

If you run into any problems using Keryx, or would like to report a bug, check out the friendly forums.

.

  • Support for more distributions, such as Fedora, Red Hat, Mandriva et al.
  • Package management like support for downloading and installing useful Open Source Windows software.
  • Built-in installation of downloaded packages, so the user need not mess with the CLI
  • Pre-compiled self contained binaries for Linux and OSX (like what already exists in the win32 folder), so that no matter what OS a user is running, they will be able to simply plug in their USB drive and run the graphical interface.
  • Improved documentation

12
Aug 08

Comcast Gives Cold-Shoulder To Non-Profit School Running Linux

Lake City, Florida USA is the home of a rather unconventional school, New Generation. It is a non-profit, private school for students grade 6th through 12th that are at risk of dropping out of school due to educational difficulties. With a maximum population of 60 students, New Generation has an astounding success rate amongst a category of students that most of society has given up on. However, this is not the only unique property of this school. A visitor would be hard pressed to find a Microsoft operating system in use on campus.

Since I am the geek son of the school’s founder, Paula Gorman, I help out with their technology whenever I am in town. For the first year of it’s existence, New Generation was running Windows XP. Since this resulted in a computer lab that was unusable more often than not, it was an easy sell to convince Mrs. Gorman to switch to Ubuntu Linux.

This morning, the school was having problems with it’s Comcast cable Internet connection, so Mrs. Gorman decided to call Comcast tech support. During the course of the of the phone conversation, the tech support agent requested that Mrs. Gorman click various buttons to try to open up the Windows XP graphical interface for ping, at which point she informed them that she was not running Windows, but Ubuntu. Mrs. Gorman is no geek, but she does know how to use the ping command in the terminal, so she offered to do just that. However, the Comcast tech support agent at that point would not help further, due to his inexperience with Linux.

Mrs. Gorman decided to obtain a case number, so that I could call later on her behalf, to determine the issue. However, the support agent refused to give her the case number, restating the fact that Comcast does not support Linux. He even went as far to say that the company supports Windows, Mac OSX, and even Unix (note that both Linux and OSX are a form of Unix), but not Linux. Needless to say, Mrs. Gorman was not pleased with this response. I would not want to have been the Comcast employee during the resulting conversation. For the next several minutes, she chastised the employee about the evils of discriminating against a customer due to their choice in operating system. Once thoroughly chastised, the employee was more forthcoming with the case number. The funny thing was, the Internet was working again just a few hours later, without me touching any of the networking equipment and without Comcast fixing anything

The teachers at New Generation school have enjoyed using Ubuntu Linux over the past several years, and do not take kindly to being discriminated against by a telecom company. Therefore, they are looking at switching to T1 Internet service via AT&T. Perhaps AT&T will be more friendly to Linux users.

I think it would be rather fun to make the displeasure of Comcast’s Linux customers loudly known. If you would like to spend a few minutes letting Comcast know that is wrong to discriminate against customers due to their choice of operating system, the phone number to the Lake City, Fl. office is (386) 752-6161.


24
May 08

My First Foray Into Video

Today being a Saturday in which I had no plans, I was in the mood to a) write a blog post, and b) do something even geekier than normal. You can see the fruit of my labor below, in the form of a two minute screen cast I did of my desktop. In this short video you can see Compiz Fusion in action, which is a program that gives Linux fancy graphical effects that blow mac out of the water. The quality of the video is a little lower than I would like, but I’m satisfied with it, considering this is my first screen cast attempt ever.

You need to have flashplayer enabled to watch this Google video


20
May 08

Linux Installation Guide: So easy, even your grandmother could do it!

I have been running Linux exclusively on my computers since Ubuntu 6.04 was released. For nearly as long I’ve been helping non-geek friends install it on their systems as well. Three years ago this often included kernel compilations, unrecognized hardware, and a lengthly, error prone installation proccess for installing multimedia codecs. Though installing Linux is still not perfect, it is very close, as you soon shall see.

I’ve written this guide with non-geeks in mind. A year ago I always did installations for my friends. With recent advancements in Ubuntu Linux, this is no longer necessary. This guide assumes you are currently running Windows, and want to have both Windows and Linux on the same machine. Simply view the following screen shot gallery in order, following the instructions as you go. Do that, and a few mouse clicks and about an hour later you’ll be the proud owner of a computer running Linux!

Picture Guide

To download the multimedia codecs installer I mentioned in the guide, right click this link and click “Save Link As,” and make sure to save it to the desktop. If anyone is worried about copyright stuff, lets just say its licensed under the GPL.

Minor Caveat

I did run into one tiny issue while going through this installation proccess. First time around, I got an error saying that the installer being used was meant for an amd64 processor, but I was running 32 bit. The workaround for this is very easy. In Windows click start/run and type in “cmd”. When the black window pops up, type “cd Desktop”. Next, type “Wubi-8.04.exe –32bit” and press enter. Problem solved.

Its likely you won’t see this problem, but if you do, it is very easily fixed.

So, that wasen’t very difficult, now was it? If you have any questions, or sugjestions on how I could improve this guide, please post them in the comment section.


AWSOM Powered