Upgrading Debian from Etch to Lenny

| | Comments (6) |

After reading Wolfgang's blog entry on how easy it is to upgrade a Debian installation (and I recommend The Debian User to any and all Debian and Ubuntu users), I decided to do it myself.

I have a testing hard drive (one of three I can easily swap in and out of my Maxspeed Maxterm converted thin client) that began as a Debian Etch Xfce box and recently got all GNOME added. Now I'm doing the easy upgrade from Etch (stable) to Lenny (testing).

As Wolfgang describes, it's easy.

As root (I opened a root terminal), go into /etc/apt/sources.list and change all Etch references to Lenny. Then do:

# apt-get update

# apt-get dist-upgrade

And now I'm watching (with about half an eye) all the newish apps coming onto the system (OpenOffice 2.2.1 to replace 2.0 is coming in now).

They say that Ubuntu is more akin to Debian unstable (Sid) than testing (Lenny), which makes Etch an ultra-stable choice. But I'll give Lenny a spin. This drive is set up as a single-boot system with a separate /home partition, so a full replacement of the OS can be done at any time without needing to replace any files I have in that partition (currently nothing I don't have backed up elsewhere).

Note on the process: I'm doing this on a non-critical drive in a non-critical box. I'm a lot more careful with a system that I depend on daily. As always, backing up user data is the first thing you should be doing before any major upgrade.

A couple hours later: The Lenny upgrade is finished. And the box is rebooting now -- the new kernel is booting fine. Everything's a bit smaller -- menus, icons -- in both GNOME and Xfce (the same thing happened to me with Xubuntu 7.10). It looks more like Slackware does on this box. I'll have to see how I like it. I don't know if the resolution is higher than I'm used to ... or all the desktop fonts are smaller.

Font fix for Etch-to-Lenny upgrade:

Here's how I got my GNOME desktop looking like it "used to," meaning with fonts big enough for my 1024 x 768 screen resolution. Under System -- Preferences -- Appearance, click on Fonts and change everything from 10 to 12. That's it.

I had to do it all over again in Xfce. In the menu, go to Settings -- Desktop Settings. then click on the Behavior tab. Uncheck "Use system font size." For Custom font size, type in 12. That takes care of the desktop, but not the menu and applications. For that, go to Settings -- User Interface Settings and change the font from Sans 9 to Sans 12. And to complete the job, go to Settings -- Window Manager Settings and change the font from Sans Bold 9 to Sans Bold 12. Both of these settings can also be accessed from the Xfce Settings Manager.

Looking back on this install ... and the one after it: It's worth mentioning here that I didn't have this font-size problem the next day when I installed Lenny on the $0 Laptop, the Gateway Solo 1450. That computer only has GNOME (it's a standard Debian install), and all fonts looked fine in Lenny. And I've mentioned before that the way fonts are handled in the Web browsers in Debian causes them to look better on LCD screens than CRTs, hence everything is better on a laptop (and there are ways to fix the fonts for CRTs, although to tell you the truth, I've gotten used to them, so I no longer do this fix).

But there's another problem: I've been adding software (including digiKam, which brought a lot of libraries along with it), and now I'm just about out of room in my / partition. I'll see if I can shrink the /home partition and then expand /. I'm using my go-to live CD for this, Parted Magic. So far it let me shrink the /home partition at the end of the drive and move the swap partition (which for some reason is between the two).

I'm waiting for Parted Magic to do its thing before I try to increase the size of the root partition.

Brief pause to ponder: Gparted is such a great tool -- another example of the power of free, open-source software. I never owned a proprietary disk-partioning program -- and I'll never have to buy one.

How much disk space for / ? Debian at least tells you how much space to allocate for your root partition. The recommendation is 5 GB for a desktop system. I'd say that's about right. I only had 4 GB, and I was running out of space. Of course, that's with Xfce and GNOME. It depends, of course, on how much additional software you want to pack into Debian. I guess it depends on the size of your drive. I'm working with 14.4 GB drives. Better to have something bigger and have a lot of extra space; 10 GB seems like a nice round number.

Back to partitioning: I was able to shrink the /home partition and move the swap partition. Both of those were in an extended partition, so then I shrunk that. Now I'm growing the root partition that starts at the front of the drive. We'll see it Debian Lenny boots when this is all done.

As it stands, I now have a 7.12 GB root partition, a 486 MB swap partition and a 5.85 GB /home partition. That leaves plenty of room for adding software and enough room for data as well.

But will Debian boot?

Yes, it did.

That was the most radical repartitioning I've ever done to a drive on which I actually kept the current operating system intact.

It's "so far, so good" with Debian Lenny. Once again, it just works. Thanks to all who work on the Debian project as well as all the many pieces that go into it.

Best thing about Lenny: I really like GNOME 2.20. Everything looks cleaner. Applications seem quicker, especially Ephiphany (which I find myself using quite a bit when I'm in Debian).

Next job: Upgrading from Etch to Lenny on the $0 Laptop (Gateway Solo 1450) and $15 Laptop (Compaq Armada 7770dmt).


6 Comments

Please don't use apt-get, you should be using aptitude. It's a much better tool and well worth using as a command line replacement for apt-get.

I don't use it in TUI mode, it's a pain, but in the command line mode it's a drop in replacement for apt-get.

Laika said:

The font resolution (dots per inch) is calculated automatically by the X server, and it can change when the X server changes. If you don't want to adjust the size of your fonts every time the X server decides to change the DPI, you can set a fixed DPI value.
http://scanline.ca/dpi/

Using Aptitude in command-line mode -- that's a good tip.

I've been launching Aptitude on one of my laptops and using it that way. I can sort of fumble my way around, but I really am not quite "getting" it. I need some instructions in front of me on how to do an update/upgrade like I'm used to doing with apt. But I do agree that Aptitude is preferable ... it's just that apt is so easy and quick ...

Re: setting a fixed DPI value, that's a good tip, but I still wonder why these upgrades (it happened to me in Xubuntu 7.10 and now Debian Lenny) are doing this.

I'm always torn about whether Linux should auto-configure more things, or give the user choices before making the settings. I'd almost rather have an install procedure that doesn't load every friggin' module in existence but only those I need (I know ... I should look into Gentoo). Rather than leaving the assembly of a custom kernel to the experts, I wish there was a way that a Linux distribution would detect new hardware and THEN download the proper kernel modules and install them.

Anyway, most of this is way above my head.

Ming said:

The use of "aptitude" when doing a dist-upgrade is widely recommended as it does a harder and more accurate work with dependencies than apt-get. Also release notes if any are a "must read" before commiting to upgrade a Debian version. Otherwise you are upgrading unprepared and not knowing what is going to happen with your original configurations and settings.

I need to figure out better how Aptitude works. Apt is just so easy, it's hard not to use it. My problem with Evolution might have been avoided, had I used Aptitude.

As it is, I got rid of evolution-webcal and restored the regular Evolution package, and my e-mail settings were all preserved. I'm getting to like Evolution more and more; I use Thunderbird in Windows, and I'm somewhat happy, but not ecstatic about it. One of the "pros" about Evolution is that it can handle my Palm calendar and memos.

But back to Aptitude. I've got to get with the program.

I've still got Debian Etch on my Compaq Armada 7770dmt laptop, and I'm using Aptitude most of the time there. I still think Etch is very strong; maybe I jumped into Lenny too early.

Leave a comment

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appeared Saturdays in the Los Angeles Daily News through about October 2009, is available on the Daily News Technology page.

About this blog






Steven Rosenberg aims to learn what he does not know. He writes about it here.



About this Entry

This page contains a single entry by Steven Rosenberg published on December 31, 2007 5:00 PM.

Debian Sarge gets an update -- and YES, I DO MEAN SARGE was the previous entry in this blog.

1962 Sears Catalog is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Comments

Steven Rosenberg on Upgrading Debian from Etch to Lenny: I need to figure out better how Aptitude works. Apt is just so easy, i ...

Ming on Upgrading Debian from Etch to Lenny: The use of "aptitude" when doing a dist-upgrade is widely recommended ...

Steven Rosenberg on Upgrading Debian from Etch to Lenny: Re: setting a fixed DPI value, that's a good tip, but I still wonder w ...

Steven Rosenberg on Upgrading Debian from Etch to Lenny: Using Aptitude in command-line mode -- that's a good tip. I've been l ...

Laika on Upgrading Debian from Etch to Lenny: The font resolution (dots per inch) is calculated automatically by the ...

Adam Trickett on Upgrading Debian from Etch to Lenny: Please don't use apt-get, you should be using aptitude. It's a much be ...

Powered by Movable Type 4.25

Search this blog

Loading

LXer

Links

Life, the Universe and Debian
Simplify
Daily News technology
LXer
Distrowatch
Linus' Blog
David Pogue
BoingBoing
Linux Today
TuxRadar
Linux.com
Linux Planet
The Open Road
Linux Outlaws podcast
Dan Lynch
Fabian Scherschel
The VAR Guy
Larry the Free Software Guy
Chess Griffin
Linux Reality podcast
Desktop Linux
Practical Technology
Linux Devices
ZDNet
ZDNet's Storage Bits
ZDNet U.K.
iTWire
CNet News
Webware
Beyond Binary
TechCrunch
The Register
Ars Technica
Reg Developer
Computerworld
Computerworld blogs
Steven J. Vaughan-Nichols at Computerworld
Debian
Planet Debian
Debian Forums
Debian News
debianHELP
debiantutorials.org
The Debian User
Wolfgang Lonien
Debian-News.net
Debian Administration
Debian Admin
Debian Weather
Aaron Toponce
Ubuntu
Xubuntu
Kubuntu
Edubuntu
Planet Ubuntu
Ubuntu Forums
Ubuntu Geek
Works With U
OMG! Ubuntu!
I' Been to Ubuntu
Tanner Helland
Dustin Kirkland
Ubuntu UK Podcast
Ubuntu Linux Help
Popey
Linux Mint
CrunchBang Linux
OpenBSD
OpenBSD Journal
OpenBSD Ports
OpenBSD 101
Planet.OpenBSD.nu
jggimi's OpenBSD live CD
DaemonForums
BSDanywhere
Marc Balmer
Denny's OpenBSD blog
Polarwave's OpenBSD Tips and Tricks
Binary Updates for OpenBSD
Puppy Linux
Damn Small Linux
Tiny Core Linux
Lucky 13's Linux blog (lots of Tiny Core)
Lucky 13's BSD blog
PCLinuxOS
Mandriva
Red Hat
Red Hat News
Red Hat Blogs
Red Hat: Truth Happens
Red Hat Magazine
CentOS
Planet CentOS
Fedora
Planet Fedora
Fedora Forums
Fedora Docs
Join Fedora
Paul Frields
Slackware
Slackbuilds
Robby's Slackware Packages
Slackblogs
dropline GNOME for Slackware
GNOME Slackbuild
GWARE - GNOME for Slackware
Wolvix
Zenwalk Linux
Vector Linux
Slax
Splack Linux — Slackware for Sparc
Nonux
How to Forge
marc.info BSD and Linux mailing list archive
FreeBSD
FreeBSD, the Unknown Giant
A Year in the Life of a BSD Guru
NetBSD
hubertf's NetBSD Blog
PC-BSD
Daemon Forums
FreeBSD Forums
Planet FreeBSD
Evilcoder.org
miwi's Privat Blog
DragonFlyBSD
DragonFlyBSD Digest
DesktopBSD
BSD Talk podcast
BSD Magazine
Rhyous
OpenSolaris
MilaX
BeleniX
DeLi Linux
Linux Loop
Electronista
The Tech Report
Engadget
Gizmodo
Phoronix
xkcd – A webcomic of romance, sarcasm, math and language
Nixie Pixel
Technology for Mortals
Thoughts on Technology
ZaReason
System 76
Tiger Direct
NewEgg
DealExtreme

Advertisement

Other blogs

Weekly Answers, Pt. 3 in Inside UCLA with Jon Gold
Answer Wednesday! (Part 2) in Inside USC with Scott Wolf
Wednesday Galaxy Gameday & more in 100 Percent Soccer
Hallo. I'm Back... in Friendly Fire
Lakers pick Mike Brown in Inside the Lakers