Linux Containers Authors: Liz McMillan, Elizabeth White, Zakia Bouachraoui, Pat Romanski, Stefana Muller

Related Topics: Linux Containers

Linux Containers: Article

How to run both stable & development versions of KDE with Debian

It's easy to be trendy & safe at the same time

(LinuxWorld) -- I still use Ion as my default window manager, but I have occasional bouts of homesickness for KDE and have been tempted to return to it on several occasions. The main thing holding me back lately is that I've always compiled and installed a custom version of KDE, and one of the more recent snapshots of KDE source code wouldn't compile properly on my system. I haven't found the problem yet, but since then, I've discovered a couple new ways to get recent versions of KDE installed more easily on my system.

Here's the conundrum: I run the unstable branch of Debian. Yes, I know that can be dangerous, but the stable and testing branches of Debian tend to include software that's more out of fashion than my 1970s wardrobe. That would be just dandy if outdated versions of software, like bell-bottoms, ever came back into style. I don't anticipate the trend beginning anytime soon, so for me it's a problem.

Debian aficionados love to justify Debian's tendency to remain on the trailing edge as an intentional effort to keep the distribution safe and stable. I can think of other reasons why it probably lags behind other distributions, but I don't doubt the good intentions and results, so I won't quibble.

I don't want to run KDE 2.2 or GNOME 1.4, which is currently the latest you can get from the standard Debian servers. I don't want to give up using Debian to run the bleeding-edge versions of KDE and GNOME. That's where the good news comes in. I recently discovered how to have your Debian and eat recent versions of KDE and GNOME, too. You don't necessarily have to download and compile the source code to get them.

KDE 3.0.3 on Debian

If you want to get KDE 3.0.3 on your Debian system, here's a way you can do it using Debian packages and the apt-get system. Edit your /etc/apt/sources.list file to include something like the following:

deb http://download.at.kde.org/pub/kde/stable/3.0.3/Debian/ ./
deb http://ftp.du.se/pub/mirrors/kde/stable/3.0.3/Debian/ ./

The URLs above are two examples. You don't need both, and I recommend you find and use a mirror server closer to your location if that's possible. You may need to visit the mirror with your browser or use an ftp program to see if and where the path to the Debian directory exists, and then use that path as part of your URL. As you can see from the above two examples, not all of the servers will use the same path. Make sure you follow that path with a space and then dot-slash (./). I'm not certain this is the politically correct way to format the line in your sources.list file, but it works for me, so I'm not going to fix it unless someone tells me a good reason why I should.

These are most of the packages from which you can choose if you decide to install KDE 3.0.3 this way. Once you've modified your /etc/apt/sources.list file, simply use the commands apt-get update and then apt-get install [package names] to install the packages you want. In most cases, the apt-get system resolves dependencies automatically, but you can put many package names on the command line.

kdeaddonsadd-on plugins and applets provided with KDE
kdeadminKDE Administration tools metapackage
kdeartworkthemes, styles and more from the official KD
kdeartwork-missvarious multimedia goodies released with KDE
kdeartwork-screensaverscreen savers released with KDE
kdeartwork-styleswidget styles released with KDE
kdeartwork-theme-desktopdesktop themes and related goodies released
kdeartwork-theme-windowwindow decoration themes released with KDE
kdeartworkthemes, styles and more from the official KDE release
kdebaseKDE Base metapackage
kdebase-binKDE Base (binaries)
kdebase-dataKDE Base (shared data)
kdebugdialogKDE Debug Settings
kdecarddecksCard decks for KDE games
kdegamesKDE Games metapackage
kdegraphicsKDE Graphics metapackage
kdelibsKDE core libraries metapackage
kdelibs-binKDE core binaries
kdelibs-dataKDE core shared data
kdelibs4KDE core libraries
kdelibs4-devKDE core libraries (development files)
kdemultimediaKDE Multimedia metapackage
kdenetworkKDE Network metapackage
kdepasswdKDE password changer
kdepimKDE Personal Information Management metapack
kdeprintKDE Print
kdesdkKDE Software Development Kit
kdesdk-scriptsa set of useful development scripts for KDE
kdesktopKDE Desktop
kdesshKDE ssh frontend
kdeutilsKDE Utilities metapackage

On the edge

I like having a stable yet recent version of KDE, but I also like to live dangerously. I tend to run snapshots of KDE in development in parallel with the stable versions of KDE. This is easy to do. I install the latest snapshots in a target directory such as /usr/local/kdecvs. I also keep my own copy of the Qt toolkit in /usr/local/qt. There are several ways to start KDE in Debian, but here's how I do it. If I want to run KDE 3.0.3, I run the command:

xinit /usr/bin/startkde

Before I can run the CVS version of KDE, however, I usually modify the startkde script in the CVS install directory (in my case /usr/local/kdecvs/bin). I add these lines near the top of the file:


Note that I put the kdecvs binary directory at the front of the PATH so that it won't automatically find and run duplicate KDE 3.0.3 programs when what I really want to run are the CVS programs. Then, when I want to run the CVS version of KDE, I execute the command:

xinit /usr/local/kdecvs/bin/startkde

Until recently, I used a program called lftp to get the latest source tarballs. When I noticed that those files hadn't been updated for a week or two, I switched to a program called CVSup. You can use anonymous CVS to get the same source code, but CVSup is a nifty utility that makes it easy to automate updates from CVS source code repositories. In order to compile the latest version, I use a modified and simplified version of a compile script from the KDE folks.

I put the script in the directory /usr/local/src/kde/kde-cvs, which is the base directory where I put all the CVS source code, and I run it from there. It's not a perfect script, in part because it doesn't keep up to date with changes I make to my system. There have been several times when it fails on one of the packages because it suddenly needs a new configuration parameter or some other tweak. I make that change and compile the rest of the packages manually.


## Script to compile KDE ## (C) 1998 Gerd Knorr ## modified by Nicholas Petreley



PACKAGES="arts kdesupport kdelibs kdebase kdeadmin kdegames kdegraphics kdemultimedia kdenetwork kdepim kdeaddons kdesdk kdeutils kdevelop"

for package in $PACKAGES do cd $package || exit make -f Makefile.cvs || exit ./configure --with-qt-dir=/usr/local/qt --prefix=/usr/local/kdecvs || exit make || exit echo -e "\007installing $package now..." make install || exit cd .. done

I still haven't been able to finish compiling the latest CVS code, but I haven't spent much time looking into the problem. If I figure out the glitch and the solution turns out to be useful, I'll pass it along. In the meantime, I'll let you know in my next column the easy way to install GNOME 2.0 on your Debian system, and give you my first impressions of the latest version of GNOME.

More Stories By Nicholas Petreley

Nicholas Petreley is a computer consultant and author in Asheville, NC.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.

IoT & Smart Cities Stories
Moroccanoil®, the global leader in oil-infused beauty, is thrilled to announce the NEW Moroccanoil Color Depositing Masks, a collection of dual-benefit hair masks that deposit pure pigments while providing the treatment benefits of a deep conditioning mask. The collection consists of seven curated shades for commitment-free, beautifully-colored hair that looks and feels healthy.
The textured-hair category is inarguably the hottest in the haircare space today. This has been driven by the proliferation of founder brands started by curly and coily consumers and savvy consumers who increasingly want products specifically for their texture type. This trend is underscored by the latest insights from NaturallyCurly's 2018 TextureTrends report, released today. According to the 2018 TextureTrends Report, more than 80 percent of women with curly and coily hair say they purcha...
The textured-hair category is inarguably the hottest in the haircare space today. This has been driven by the proliferation of founder brands started by curly and coily consumers and savvy consumers who increasingly want products specifically for their texture type. This trend is underscored by the latest insights from NaturallyCurly's 2018 TextureTrends report, released today. According to the 2018 TextureTrends Report, more than 80 percent of women with curly and coily hair say they purcha...
We all love the many benefits of natural plant oils, used as a deap treatment before shampooing, at home or at the beach, but is there an all-in-one solution for everyday intensive nutrition and modern styling?I am passionate about the benefits of natural extracts with tried-and-tested results, which I have used to develop my own brand (lemon for its acid ph, wheat germ for its fortifying action…). I wanted a product which combined caring and styling effects, and which could be used after shampo...
The platform combines the strengths of Singtel's extensive, intelligent network capabilities with Microsoft's cloud expertise to create a unique solution that sets new standards for IoT applications," said Mr Diomedes Kastanis, Head of IoT at Singtel. "Our solution provides speed, transparency and flexibility, paving the way for a more pervasive use of IoT to accelerate enterprises' digitalisation efforts. AI-powered intelligent connectivity over Microsoft Azure will be the fastest connected pat...
There are many examples of disruption in consumer space – Uber disrupting the cab industry, Airbnb disrupting the hospitality industry and so on; but have you wondered who is disrupting support and operations? AISERA helps make businesses and customers successful by offering consumer-like user experience for support and operations. We have built the world’s first AI-driven IT / HR / Cloud / Customer Support and Operations solution.
Codete accelerates their clients growth through technological expertise and experience. Codite team works with organizations to meet the challenges that digitalization presents. Their clients include digital start-ups as well as established enterprises in the IT industry. To stay competitive in a highly innovative IT industry, strong R&D departments and bold spin-off initiatives is a must. Codete Data Science and Software Architects teams help corporate clients to stay up to date with the mod...
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...
Druva is the global leader in Cloud Data Protection and Management, delivering the industry's first data management-as-a-service solution that aggregates data from endpoints, servers and cloud applications and leverages the public cloud to offer a single pane of glass to enable data protection, governance and intelligence-dramatically increasing the availability and visibility of business critical information, while reducing the risk, cost and complexity of managing and protecting it. Druva's...
BMC has unmatched experience in IT management, supporting 92 of the Forbes Global 100, and earning recognition as an ITSM Gartner Magic Quadrant Leader for five years running. Our solutions offer speed, agility, and efficiency to tackle business challenges in the areas of service management, automation, operations, and the mainframe.