Posts Tagged ubuntu

Say “Hello” to my little friend.

About a year ago I scavenged a “to-be-decommissioned” PC out of our closet here at work and installed Ubuntu Server on it.  I stuck it under my desk and proceeded to familiarize myself with some administration tasks.

I installed a LAMP stack and moved my web development stuff over to the new box.

Then I set up a bunch of disorganised CRON jobs to back-up all my files.

I installed SAMBA and set about connecting to our Windows Server.

Then I found instructions online about how to connect to a Novell server, so I created a bunch of mount points and wrote a couple scripts to access our Novell server.

doesn't look like much, does it?

doesn't look like much, does it?

Shortly thereafter, I wrote some new scripts to do some routine nightly file maintenance between our Novell network and our Windows network.

I had an old legacy MS Access application that was giving me fits and I wanted to upsize it to something a bit more robust – so I ported it into MySQL.

Then I wrote a web front end for it.

Then I had an idea to create a corporate help-desk application that would allow users to fill out a form online and submit work requests to our department.  Simple, but effective.

One day we were overrun with viruses (annoyances, actually) that our current corporate anti-virus wasn’t aware of yet.  So I installed Avast Antivirus on the linux box and spent a couple weeks cleaning up flash drives, memory cards and external media of all sorts until the corporate AV got updated with the new virus signatures.

Most recently,  I’ve embarked on another we-based front-end to a older application.  Sticking it on the web will save tons of money on paper alone.

While modifying my cron jobs to backup the most recent project files, I began to remember this machine’s humble beginnings.  Destined for the trash heap, linux breathed new life into an old machine and turned it into a little workhorse.

Eventually, I’m going to need to move my files onto a larger, more secure machine, but I think I’ll keep this little baby around long after that.

Tags: , , ,

Hardy to Jaunty = PITA!

So I’ve been messing with python again lately and have been having fun writing some scripts to do tedious maintenance on my MySQL and SQL Server installs. I’ve got a desktop running Ubuntu’s Jaunty Jackalope and once I got things working the way I wanted, I tried to copy all the scripts over to the work laptop. (Running Hardy Heron)

I ran into a problem trying to install pymssql in Hardy. I couldn’t find it in the repositories. That was weird, but possible. So after googling for a while and getting no where, I just decided to upgrade the laptop to Jaunty (figuring that I’d be able to install pymssql once I was running Jaunty)

I set about following the script I got from here: How to Upgrade Ubuntu 8.04 to Ubuntu 8.10. Knowing that I had two separate upgrades (Hardy -> Intrepid, Intrepid -> Jaunty) to do, I started the upgrade from Hardy to Intrepid first.

Well, about halfway through the upgrade failed. I don’t know what happened, but it looked like the wireless connection burped or something and only about half the packages downloaded. So I restarted it. After watching it for a while I thought that maybe doing this over a wireless connection wasn’t the best idea. So I Control-C’d the upgrade and hooked up the laptop to my router with a nice long cat5 cable. I felt pretty good about myself, because the downloads were moving a lot faster too.

Once the upgrade finished I restarted and noticed some weirdness. The boot screen started scrolling by and I could see things like “update failed” and “read-only filesystem”. Soon after I was looking at my desktop. Hmmm. Well, maybe some of the packages got corrupted during the two interruptions during the download. Figuring that the Jaunty upgrade would fix it, I started phase two.

Long story short – it didn’t. I wound up looking at a “read-only filesystem” with no access to the terminal from X. Booting into recovery mode and starting GDM manually undid the read-only part, but I still didn’t have a terminal (I kept getting something about a child process failing).

By this time it was late and I didn’t want to screw with it anymore, so I left it til this morning, whereupon I decided I didn’t want to mess with it then either. With the help of the recovery console, I was able to back up my home folder and I popped in a Jaunty install disk.

Twenty minutes later all was back to normal. Restoring my programs was easy and copying my documents back over was a breeze.

(NOTE: I recently had the occasion to reinstall Windows XP on my sister’s machine and I can tell you, without a doubt, that Microsoft needs to take a look at the Ubuntu install process. Ubuntu – yay! Windows – DAMN IT!)

So what did I learn from this?
1.) With big upgrades like this – always go wired! Wireless is too slow and the possibility of error is too great.
2.) Only upgrade to one release at a time. If you want to go more than one release, it’s easier to back things up and start fresh.

But, in the end, it was fun and I learned something so… cool.

P.S. Against my own advice, I recently upgraded a server machine at home from Hardy to Jaunty with no problems using the same steps I attempted above. The only difference? The machine was wired the whole time. Maybe that really was the whole problem?

Tags: , , ,

How To Upgrade Ubuntu

First become root:

sudo su

Then run

apt-get update

and install the package update-manager-core:

apt-get install update-manager-core

Open the file /etc/update-manager/release-upgrades…

vi /etc/update-manager/release-upgrades

… and change Prompt=lts to Prompt=normal:

[...]
 
Prompt=normal

Then run

do-release-upgrade

to start the distribution upgrade.

Confirm that you want to do the upgrade:

Do you want to start the upgrade?
 
2 packages are going to be removed. 48 new packages are going to be
 
installed. 376 packages are going to be upgraded.
 
You have to download a total of 242M. This download will take about 6
 
minutes with your connection.
 
Fetching and installing the upgrade can take several hours. Once the
 
download has finished, the process cannot be cancelled.
 
Continue [yN]  Details [d] Y

At the end of the upgrade process, you should remove obsolete packages:

Remove obsolete packages?
 
21 packages are going to be removed.
 
Continue [yN]  Details [d] Y
 
The server needs to be rebooted to complete the upgrade:
 
System upgrade is complete.
 
Restart required
 
To finish the upgrade, a restart is required.
 
If you select 'y' the system will be restarted.
 
Continue [yN] Y

via How To Upgrade Ubuntu 8.04 (Hardy Heron) To 8.10 (Intrepid Ibex) (Desktop & Server) | HowtoForge – Linux Howtos and Tutorials.

Tags: , ,