More terminal programs you should be using … like a pro

As I feared, I’m a bit preoccupied with my impending move, and as a result, I haven’t been able to keep all the notes here I’d like. I’ll have to glaze over the last few console programs I wanted to mention, and leave it to you to investigate them fully.

I should mention that none of these are linked to Ubuntu in particular; I’ve given links to the Ubuntu package search pages but these are probably available — if not already installed — in every distro.

alsamixer

You already have alsamixer installed on your computer; you probably just don’t know it’s there. :D

alsamixer does everything most graphical volume controls do, and does it just as well. It handles setting the volume, controlling 3D switches, CD audio volume and line-in ports just like the graphical versions you’re used to. Key controls are a simple combination of left and right arrow keys, up and down keys and the M button to mute a channel. Simple, clean and effective.

The lovely part of alsamixer is that you don’t have to wrangle with the amixer terminal commands to set the volume on your rig. And it runs on a fraction of the space, with no need for a particular desktop environment to work. It’s a natural born utility. :)

htop

I mention htop a lot, and that’s because I use it a lot. It’s much more attractive than the conventional top program, and much more functional. It also has a much more intuitive interface than top. And all those “much mores” should be enough to get you to at least take a look at it.

htop does everything you need from a system monitor, plus has an exceptionally lightweight profile of its own. You don’t need a horde of Gnome underpinnings just to get a glimpse at what’s running in your computer’s little world. And since it has that easy-to-decode interface, it’s ideal for managing the workload or troubleshooting hung processes. Every now and again my fans start to spin interminably, and htop is the place I go first. … No ps aux or any of those cryptic tree commands. Show me the htop.

If you’re working on a flaky system, htop can run from a tty and you’re one keypress away from a system profile. It’s particularly useful on machines with occasional quirks, or hard-to-catch flickers of incompatibility. And if a process is irritating you or has stuck around longer than intended, you get the entire array of kill options within two keypresses. Power, speed and efficiency, thy name is htop.

mc

If you remember computers as far back as the late 1980s, you might remember how Peter Norton came to prominence with the three-floppy (was it three?) Norton Utilities suite. There were a lot of cool tools in that pack, but the best were the speed disk defragmenter (mostly because it was fun to watch), and the Norton Commander, which suddenly made file management a breeze.

Midnight Commander (or just mc, really) is the GNU version of that utility, with an identical layout and similar color scheme.

Old-timers will rejoice at that screenshot. Two-panel file management, with options for a quick-view, syntax-colored file preview, file info, filesystem tree, and a mess of other features. Opens tar, bz2, gz and some other compressed packages like folders and has implicit shell access as well. mc reads mouse input without gpm, handles transparent X terminal emulators and can access smb and ftp directly.

For sheer speed and power, it’s hard to top such a mature, full-featured and well-rounded file access utility, and after using it for a week or so, you’ll wonder why you put up with sluggish, incomplete graphical file managers that only do a fraction of what mc does natively. This is one of those programs that has so many options and so many possibilities that I really do it a disservice my glazing over it like this. But alas, this is how it has to be. Perhaps in the future. … :D

mutt

I mention mutt as an obligatory nod to e-mail control via the terminal interface.

Unfortunately, I haven’t used mutt much because almost all my e-mail is done through gmail, and I didn’t have much luck on a mutt-gmail interaction. Perhaps it’s possible to get the two to coexist, but it’s much easier for me to just check via elinks than to configure mutt for three or four e-mails per day.

mutt seems to be the e-mail wrangler of choice for terminal devotees though. I can recall screenshots as far back as the earliest days of my Ubuntu experience that invariably show mutt running in a transparent terminal window. If you need something that will connect to an e-mail account but doesn’t take up much space, this might be what you’re looking for.

irssi

Along the same lines, I don’t chat much, so irssi is an option, even if it’s not something I used much.

Ah, the lovely sparseness of a terminal program. :mrgreen:

I installed and configured irssi a few months ago after I found Elizabeth Bevilacqua’s excellent irssi tutorial on the Ubuntu-women wiki, and it worked just as well as XChat or any other chat program I had ever tried. But chatting isn’t really for me — it’s very distracting, and I’m easily distracted as it is. So while irssi is what I would use if I chatted, I try not to chat at all. :???:

On the other hand I know there are people who thrive on chat access, and irssi will do it on the most ancient and decrepit hardware you can find. Drag out that 386; if it will run Ubuntu, my money says it will handle irssi.

raggle

raggle is the coolest terminal program I ever wished I had more use for. If you need a feed reader, raggle is the champ. If you want something to poll for Jamendo releases on that 166Mhz machine while playing the newest tunes, raggle is your hero. If you want something to run in an terminal emulator just to watch a feed or two without bogging down your machine, raggle is your new best friend.

raggle is clean, easy on the eyes and has a help screen that will get you started within minutes. raggle lets you run your computer without devoting it to a heavyweight feed aggregator with a lot of frills you don’t need. raggle is fast, raggle is light, raggle does a lot with a little … so much you’ll wonder what the heck you were doing with those others.

My only complaint about raggle — and maybe you can help me figure this one out — is that it doesn’t seem to offer an option for a specific browser for opening links. So when I want to jump straight to a page that I see in the feed, it invariably grabs Swiftfox, when I’d rather it spawned an instance of elinks. I understand that there’s a RAGGLE_BROWSER environment variable, but as I understand it, that’s just the path to a legitimate browser option … when what I want is a command line so I can spawn elinks in a urxvt terminal of certain dimensions and with certain options. …

That’s a pretty minor point though, and not one I’d really harp about. Outside of that, raggle does a beautiful job of reducing a feed aggregator to its essence, then building up from there. It hasn’t been updated in a while, but it doesn’t seem to lack much — so that’s not a fault at all. Definitely check this one out … I give it two very big thumbs up. ;)

rxvt-unicode

I know, it’s not a terminal program, it’s a terminal emulator, so it shouldn’t count. But I have to mention it. I’ve tried all the terminals and all the emulators, and urxvt is just my favorite. Pseudo-transparency, support for expanded character sets, fade effects on focus shifts, xft fonts … and it’s the best looking one out there.

I know it’s technically slower than some others, but I’m willing to sacrifice a sliver of speed when it can handle a few other options that aterm (which is ugly) or xterm (which is ugly) or some others (which are ugly) don’t. I am I being hypocritical? Maybe. You use xterm regularly for a day or two, and then we’ll see who’s happier.

One tip: urxvt handles almost all its options through the .Xdefaults file, which means you don’t need a mile-long startup command to get the basic look you want. Default fonts, pixelmap inheritance, dimensions and other effects are set in that file, if you want. Command line options override those, so you can have transparency set by default, then turn it off for things like an htop instance. Play around with it.

twin

Not “twin,” but “tee-win.” twin is a windowing system that runs under a terminal environment. Think about that for a second, and realize that everything I’ve listed here or in the previous howtos can run under a completely X-free environment. That means rtorrent, cplay, elinks, oleo and everything else on this page can run in tty window, with each program in a funny little floating terminal window of its own, overlapping and behaving just like a graphical environment, but not.

It’s a blast to look at, and I wish I could get a proper screenshot for you (but I can’t because I don’t have time to figure out how to take tty screenshots :D ). You’ll just have to install it and get a look at it for yourself.

Once you’ve tried it, you might forgo X altogether on your Thinkpad 760XD, and just run everything I’ve told you about with the twin layer. It’s faster, just as useful and it does everything you want without the X burden. (One last tip: set your framebuffer resolution to give yourself more screen space, or twin becomes a little crowded. ;) )

cmatrix

Last, but not least: cmatrix. cmatrix does nothing. It has no viable function, has very little use, but it’s a heckuva lot of fun to mess with.

Try starting it with cmatrix -sabl -u 2 and it will behave like a screensaver, and run until it gets a keypress. …

Which means, if you run an autologin executable on a spare tty, then set your bash profile to start cmatrix whenever that tty is opened. …

Which means, if you have that running as a rudimentary screensaver, you can jump straight to that tty, press a key, send your terminal command, finish, then press CTRL+D to log out …

Which means it will log out, log back in and start cmatrix all over again, waiting for the next time it’s needed. It’s a gimmick, but kind of fun. You can jump to that screen just as a walkaway screensaver, and jump back to X when you’re ready. It’s a lot lighter than the xscreensaver or gnome-screensaver packages, and does much the same thing.

Now if only I could figure out how to trigger it after a terminal is left unattended after three minutes, I’ll be happy. :D

31 Responses to “More terminal programs you should be using … like a pro”


  1. 1 munkii May 17, 2007 at 12:30 pm

    an awesome entry, thank you!

  2. 2 cub May 18, 2007 at 7:25 am

    nice, but raggle doesnt work properly with national symbols (in my case those are russian)

  3. 3 Tim May 18, 2007 at 3:18 pm

    Try newsbeuter, I think it is better then raggle or snownews. It’s active and supports atom feeds.

    http://synflood.at/newsbeuter.html

    I use mutt with gmail. There is really nothing to it.

  4. 4 Christopher May 21, 2007 at 4:43 am

    sorry, which of these terminal programs are “pro” tools? rofl, sounds more to me like “waste time with useless programs you can do without” or “user” tools

    great post dude! well done!! more proof that linux users prefer messing about with silly little tools than doing real work :D (I’m using fedora core 6 right now to post this before anyone thinks to reply with anything stupid).

    try again when you’ve got something more substantive, like awk, sed, or other bash pro tool posts

  5. 5 Seth Williamson May 21, 2007 at 9:46 am

    If you could explain how to use mutt with gmail, I’d appreciate it. Or direct us to a page that explains, etc. Thanks.

    Seth Williamson

  6. 6 Andrew Malcolmson May 21, 2007 at 1:59 pm

    An addition for your already worthy list: GNU Screen. Here are my bookmarks for it: http://del.icio.us/andmalc/screen

  7. 7 frank May 21, 2007 at 6:44 pm

    Wanna see MC at its coolest? Pop this line into ~/.mc/ini:

    [Colors]
    base_color=normal=white,default:directory=white,default:marked=yellow,default:selected=gray,white:executable=brightgreen,default:link=lightgray,default:stalelink=brightred,default:special=brightblue,default:device=magenta,default:editnormal=white,default

    And fire it up in a transparent term:

    Eterm –trans –borderless –scrollbar off –buttonbar off –geometry 100×44+185+65 –font 10×20 –foreground-color white -e mc >/dev/null 2>&1

    Killer! And, don’t forget to check out ctrl-o

    Frank

  8. 8 frank May 21, 2007 at 6:47 pm

    I’ll break that up, but put it on one line:

    [Colors]
    base_color=normal=white,default:directory=white,default:
    marked=yellow,default:selected=gray,white:
    executable=brightgreen,default:link=lightgray,default:
    stalelink=brightred,default:special=brightblue,default:
    device=magenta,default:editnormal=white,default

    Frank

  9. 9 Lodesi May 21, 2007 at 11:25 pm

    I’d like to add ‘abook’ as an address book that interface greatly with mutt. And also ‘pal’ as an agenda.

  10. 10 Phil May 21, 2007 at 11:35 pm

    You know, this is another instance I’ve run across where someone says that newsbeuter supports atom feeds.

    No it doesn’t.

    Not only does it not support atom feeds, nowhere on the website does the author even *claim* that the program supports atom feeds.

    What the changelog (0.4) *does* claim to do is support snownews scripts that will convert atom feeds into (crippled) RSS feeds… just like snownews does!

    Just for shits-n-grins, I just fed newsbeuter the atom feed for Mark Pilgrim’s site. If you know anything about Mr.Pilgrim, you’ll know that he’s very attentive about the quality of his feeds, yet newsbeuter results:

    Error while retrieving http://diveintomark.org/feed/: Parser error

    Raggle actually does support atom feeds and tends to crash a lot and take the entire feed list when it goes.

    Snownews is still the best stand-alone feed reader (and it could use some work).

    I personally prefer hacked-links or links2 over elinks. Both also support tables, frames, etc.

    I use a mutt/fetchmail/procmail/msmtp/gnupg combo with gmail (and isp mail, hotmail, site(s) mail, etc)

    GMail + msmtp setup
    http://docs.ramonat.fr/msmtp.html

    There are two or three framebuffer screenshot apps:

    fb2png
    fbgrab
    fbdump

    Hope this helps.

  11. 11 fish May 22, 2007 at 1:50 am

    for making cmatrix run after a default timeout:
    edit .screenrc at the bottom, (or anywhere) put this in there:
    blankerprg asciiquarium
    idle 300 blanker
    replacing asciiquarium with the cmatrix command you want to run.
    all my Xshells run screen -DRR instead of bash.
    its nice. you may have to quote your ‘cmatrix’ command. apps i like on the console: screen mp3c, naim, emacs, zgv, elinks in vesa so it does pics too, epic, utorrent, and others that some of those depend on (lame bladeenc cdparanoia) oh yeah, and cdrecord, been loving that for years. thanks joerg!

  12. 12 soltys May 25, 2007 at 2:53 pm

    I must try a cmatrix :)

  13. 13 Linux By Examples May 26, 2007 at 11:23 pm

    “Now if only I could figure out how to trigger it after a terminal is left unattended after three minutes, I’ll be happy. ”

    First of I was thinking to use TMOUT to play the trick but failed. I would like to know whether can the keyboard hooked, if possible, I can code in my own matrix terminal screen saver for that purpose :P

    http://cc.byexamples.com/20070330/writting-a-fun-cli-apps-with-ncurses/

  14. 14 Harlem July 15, 2007 at 4:30 pm

    Great list I think I shall have a closer look at these.

  15. 15 chris August 3, 2007 at 4:49 pm

    Very cool article. You mentioned a lot of the programs I already use, though htop I didn’t know about.

    One program I like to use in addition to alsamixer is rexima. It’s no alsamixer replacement, but it’s very basic and very easy to adjust your volume in a snap.

    You said you’ve used a lot of terminal apps/emulators; have you tried mrxvt? If you have I’d like to hear your thoughts on it since you seem to know your stuff. Without any research at all, it seems that mrxvt is very similar to urxvt except that it supports tabs. I’m sure there’s more to it, though.

  16. 16 Sebastian H. August 6, 2007 at 2:05 pm

    Phil, it’s great how you post FUD about newsbeuter… newsbeuter does support Atom, very well indeed, and the Atom feed you mentioned works with absolutely no problems.

  17. 17 John September 3, 2007 at 2:21 am

    How would one go about setting up that autologin and running cmatrix automatically on a tty?

  18. 18 K.Mandla September 9, 2007 at 10:17 pm

    Under Ubuntu, you have to compile a short autologin script, then set the bash profile to start cmatrix when it detects a login at the terminal. Check this thread for more. Have fun!

  19. 19 Andrew September 22, 2007 at 8:44 pm

    Did I hear someone mention mutt and gmail? I have done some work on that one:

    http://people.aapt.net.au/~adjlstrong/mutt.html

    Andrew

  20. 20 fred February 20, 2008 at 7:29 am

    you need to add figlet!!! :) its a fun toy.

  21. 21 PCMan March 15, 2008 at 5:12 pm

    “cmus” is awesome, too.
    It’s a curse-based music player which is cool, lightweight, and fully functional.

  1. 1 Terminally Incoherent » Blog Archive » A day without X Trackback on May 21, 2007 at 11:55 am
  2. 2 Top Posts « WordPress.com Trackback on May 21, 2007 at 5:02 pm
  3. 3 Tuxiano » Blog Archive » Un giorno senza GUI Trackback on May 24, 2007 at 11:47 pm
  4. 4 albertferran » Un dia sin entorno gráfico Trackback on May 30, 2007 at 11:11 am
  5. 5 Conclusion: I don’t like gxine « Motho ke motho ka botho Trackback on July 11, 2007 at 12:02 am
  6. 6 Kick Bill » Blog Archive » Necesitas las X, pero no tanto :-) Trackback on August 16, 2007 at 10:41 am
  7. 7 MicroTeknologias 2.0 » Un dia sin X Trackback on August 19, 2007 at 2:40 am
  8. 8 IppatsuBlog » Programmi per console: un giorno senza X Trackback on November 21, 2007 at 2:11 am
  9. 9 Tiled window manager « Motho ke motho ka botho Trackback on December 13, 2007 at 10:31 am
  10. 10 What you get for free « Motho ke motho ka botho Trackback on April 8, 2008 at 10:36 am

Leave a Reply




Welcome!

Most recent desktop


May 8, 2008
XFCE 4.4.2 on Crux Linux
750Mhz Celeron 128Mb PC100

Most recent game


Project: Starfighter on Crux
550Mhz Celeron 192Mb PC100

Be counted!

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blogs worth watching

Ubuntu Feeds

RSS Planet Ubuntu

  • An error has occurred; the feed is probably down. Try again later.

Blog Stats

  • 589,280 hits

Categories