Linux.com

Feature: System Administration

Query your processes under X with Qps

By Sergio Gonzalez Duran on October 23, 2007 (4:00:00 PM)

Share    Print    Comments   

When it comes to managing processes, many people use old reliable commands such as ps, top, kill, and nice. These commands are handy, useful, and found in every Linux distribution. However, sometimes a GUI process manager can be useful, especially when you're trying to teach new Linux system administrators who aren't used to shell interfaces. Qps Visual Process Manager is a GUI ps substitute that lets you sort, manipulate, and manage processes.

Its own man page states that Qps is "big and slow," but I found it simple to use, intuitive, and nice-looking. With it, you can easily show students how processes work and how much information they can obtain by using the correct parameters.

Qps lets you display many fields equivalent to ps options. Nevertheless, one important field is missing -- the ps option –Z, which shows the SELinux security context.

I installed Qps on a Fedora Core 5 system. You can download RPM packages for Fedora and SUSE, Debian packages for Debian-based systems, and, of course, source code for installing and compiling in other distros. The packages available today are older than the source code tarball version (1.9.20), so I downloaded the tarball. Its installation was not very intuitive, to say the least.

Qps is based on Qt, so the README_INSTALL file says that you must have Qt library 3.3.x and, of course, the GNU Compiler Collection (GCC) already installed. You need to run the following commands:

qmake
make
make install

In order to run qmake, you need the qt-devel package. When qmake didn't work, I turned to the onscreen help (qmake --help) and discovered that I needed to use the –makefile option, which wasn't indicated in the README_INSTALL file. I used it and presto, it worked fine. I then ran make and make install. I had to run make install twice; the first invocation only copied the man pages, and the second one copied the binary.

Qps is an X11-based application. You can invoked it in the shell by typing qps&. A small icon next to the clock in GNOME shows a graph that indicates Qps is running. Clicking on the icon opens or closes the main Qps window.

Qps features a slick interface, with the essential process fields shown in columns. Like any decent grid-based utility, you can move columns to suit your viewing needs and click on the column headers to sort.

The program's Field menu has four options for displaying basic, jobs, memory, and scheduling fields. The Select Custom Fields entry displays a dialog with plenty of ps fields to choose from.

You can view a process in one of two ways: The linear option displays like the normal ps output, while the tree option displays like the pstree command would. You can search or filter for processes in a text box. The upper part of the window features a top-like display showing CPU usage, memory and swap usage, uptime, load averages, and so on.

Right-clicking on process entries displays a contextual menu with options for renice, kill, sending signals, finding parent or child processes, and more. The View Details option pops up another window with three or four tabs, depending on the process chosen, with even more information on that particular process. For example, it may show which files are open, memory maps, display environment variables, and all possible fields for the process. You don't need to customize the main screen; you can simply right-click in a particular process to see all the details.

Qps is a worthwhile GUI interface to a wealth of system information.

Sergio Gonzalez Duran is a Linux administrator, systems developer, and network security counselor who also teaches Linux courses and publishes the Spanish-oriented Linux and open source Web site linuxtotal.com.mx.

Share    Print    Comments   

Comments

on Query your processes under X with Qps

Note: Comments are owned by the poster. We are not responsible for their content.

Query your processes under X with Qps

Posted by: Anonymous [ip: 71.123.115.32] on October 23, 2007 05:36 PM
Slow? Big? - I find it fast to load and very light weight

#

Query your processes under X with Qps

Posted by: Anonymous [ip: 83.254.98.218] on October 23, 2007 07:18 PM
have a look at htop [http://htop.sourceforge.net/]... to me, the interface looks much the same as Qps', but its console based... somewhere in between ps and Qps... -sebastian

#

Re: Query your processes under X with Qps

Posted by: Anonymous [ip: 169.233.25.226] on October 23, 2007 08:16 PM
htop rocks! Qps looks like absolute crap.

#

optional command line coad reveal

Posted by: Anonymous [ip: 66.122.165.195] on October 23, 2007 08:24 PM
As a beginer I like programes that allow a window showing what command line instruction the GUI is using. It creates curiosity, passiv learning, and motivation to input simple commands or make macros. I realize that an instruction is often placed within a context wraper for a particular venue however, starting somewere demonstrates, as is often the case with open software, that a command learned anywear can often be applied everywere, making ones education cumulative rather than repetitive applications of planned obsolessence.

#

Re: optional command line coad reveal

Posted by: Anonymous [ip: 80.86.123.167] on October 23, 2007 09:22 PM
You don't need a full blown GUI for that. An interface such as that of htop (or midnight commander for that matter) will achieve the same purpose and will still be available in the console.

#

Query your processes under X with Qps, NOT

Posted by: Anonymous [ip: 207.7.162.148] on October 24, 2007 01:46 AM
To put it as plainly as possible, if they "aren't used to a shell interfaces" then they are in no way "Linux system administrators" in fact they are not even ready for training/apprenticeship as the most junior of "Linux system administrators".

If they don't understand and know how to use basic nix (command line) things like the a shell, ed, vi, su, ps, top, lsof, mount, ifconfg, route ... then they are not ready to even think about system administration.

#

Query your processes under X with Qps

Posted by: Anonymous [ip: 194.75.139.233] on October 24, 2007 08:54 AM
"However, sometimes a GUI process manager can be useful, especially when you're trying to teach new Linux system administrators who aren't used to shell interfaces."
Rubbish, new administrators should learn from the ground up. They should be learning the shell as it's the most important aspect of Linux administration. Not to mention a Web or Mail server isn't going to have X for them to connect to!

It's like learning a new programming language - start coding in Vi (or emacs if that's your poison) until you've learnt the API, then choose a GUI IDE if you really need to. GUI apps are NOT for true administrators - you need to know how to fix that routing table when the shit hits the fan and you can only ssh in!

#

maybe it can help you

Posted by: Jen on October 31, 2007 01:59 AM
I found http://www.boxsweeper.com has a lot of movies anime music and games!This website is quite great! And it's free for you to streaming and download! Check it out and enjoy it! It will save you much time and money! Don't forgot to thanks me........ha ha

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya