Advanced

Review of some useful sysadmin-utilities

Posted by hkwint on Nov 29, 2005 2:10 PM · 42 comments
LXer; By Hans Kwint

 LXer feature

Every sysadmin has his own "can't live without" tools. Today, I'll review some tools I can't live without, and some others which just make life easier. The covered tools include command line tools, GUI tools, and even a webpage.

Diggable

[Ed: Hans wrote this very useful article. He says that plenty of other tools exist for admins out there besides the ones he uses regularly. Maybe some of them are on your list. Let us know about your most valuable utilities in the comments section. -tadelste]

Gnu Midnight Commander (mc for short)

MC is a ncurses-based file manager. Its biggest advantage is the use of two panels, with each representing a directory. This allows you to copy, move or link files from one panel (representing a dir) to the other, or visually compare two directories. On the lower side of your screen is a normal command line, only MC adds some extra commands, like copying the name of the selected file in your panel, to the command line. It has an embedded text editor, which remembers the position after you have edited a file. It also includes viewing ftp/samba directories and zipped files as normal directories. MC offers you pre-defined macros, and the option to add macros yourself. With macros, you can use MC's own reversed variables, like %d which represents the current selected directory, for example. MC has a lot of keyboard shortcuts, which enables you to work really fast once you know them.

Krename

Sometimes, you have the task of renaming many file names. For example, you want to convert all spaces to underscores, change the letters in extensions, or number files. For this goal, the folks of KDE came up with krename. You don't have to install the entire KDE desktop to use it, since it works in any window-manager. It is almost the same as the rename-feature in the Total Commander which runs on windows, only better. You choose which files you want to rename, and then the old and new names appear in a window. After that, you can use a sorting to specify ranges, upper- or lowercase, numbering etc.. Instead of just renaming, you can also make symbolic links, or change the permissions, using plugins.

bc

If you don't like the graphical Xcalc, but need to do some quick calculations from time to time, try bc. It's a command line arbitrary precision calculator, capable of processing standard input and even scripts. it's a nice tool for converting hexadecimal and decimal numbers. It supports statement structures like "for and while" loops, and can be configured to show any number of digits. The 'last' variable contains the value of the last answer, bc has a command history, and you can use 'read' in bc-scripts to ask for user input and work with that input.

sudo

Sudo is like a replacement for "su -c". It executes a command as another user, which defaults to root. The biggest advantage is the configuration file. It is very flexible, well documented, and allows for making groups of commands, groups of users allowed to run groups of commands, to specify if a user needs the root password to use sudo or just its own, mailing the system-administrator about failed passwords, and more. Wildcards can be used in the config-file. Since you are changing user, sudo also enables passing through environmental variables. If set up correctly, a normal user enters the sudo command, then, unless the policy says no password is needed, the user is asked for his own/root password, and after that, a time stamp is created and the command is executed. As long as the time stamp is valid, which is fifteen minutes by default, sudo can be used without re-typing the password.

nmap

Nmap is a network scanning tool. It is mainly used to scan IP-ranges and port ranges, but can also serve to find out if others can scan what software you are using. If you want to know what ports are open on your computer, just do 'nmap localhost' and you're done. But, a more interesting use, is scanning other computers, to see if their firewalls work, how high the TCP-sequence predictability is, and how fast they response to a scanner like nmap (if scanning takes a long time, crackers might give up). One of the funniest things of nmap is, it can be used to scan which operating system a website is running. This feature has also a usable goal: you can try to hide your OS characteristics, and after that, try scanning with nmap to see if you succeeded. If crackers can't figure out which OS you are using, it will be more difficult to find an exploitable vulnerability for your OS-version.

SWAT/Samba

Anyone who ever tried manually editing the samba configuration file smb.conf, knows this can be a very daunting task. There are very many options, which are almost impossible to remember. For this purpose, samba usually comes with a graphical web interface, called swat. It can be accessed via a browser, and after you entered the samba-password, you arrive at the page with all documentation. Using the buttons on the top, you can change global options, change and create shares, manage printers, and watch or restart the nmb and smb daemons. In globals and shares, you can click on the button Change view to "Advanced" to view and configure all options. If you're unsure about an option, all options offer a link pointing to the documentation of that option. If you click on the View button in the top-bar, you can view the smb.conf file swat has created for you.

lm_sensors & wmgtemp

Do you ever wonder how warm your computer is? Lm-sensors is the program which can get the temperature from the sensors. First, you need to configure your kernel with i2c support, and then you can install lm-sensors. The sensors-detect program will then tell you what actions you should take to get lm_sensors working. Lm_sensors is mainly a backend; to use it, you need a frontend. My favourite is wmgtemp for WindowMaker. It is very small, and shows nothing more than the system- and CPU temperature. If the two temperatures are switched by accident, wmgtemp can exchange them. As an interesting option, you can add a critical temperature above which a 'red light' shows up in wmgtemp.

canyouseeme.org

Basically this is no application but a web page, but it can be very helpful anyway when forwarding ports through routers. All it does, is scan if a port on your computer can be reached through the Internet. Lets say you just forwarded SSH through your ADSL router, and want to know if port 22 can be reached, you just enter port 22; you don't need to give your IP-address. It then scans that port and returns an error, or success.

Return to the LXer Features

Comments (42)

22 earlier comments in the full thread.

Real men use Linux From Scratch.
Well... Real People ("Real Men" is just too sexist) study the source of Qemu until they have it memorized. Then they can just skim over the binaries for LFS's kernel, glibc, and whatever user space programs and do whatever they wan't right in their own brains. You can actually memorize the kernel and glibc part and execute the stuff directly in your brain without Qemu, but in that case DON'T FORGET TO DO A "/sbin/lilo" BEFORE THE FIRST REBOOT!!!
Now is the moment when some mossy geekbearded oldtimer needs to step in and say "In my day we were so primitive we didn't even have 1s and 0s. We had to use Os."
... with cardboard stuffed in to keep out the snow ...
> Sorry to rain on your parade, but I work with someone who lives "in the country" and he has a 33k modem and maintains 8 debian laptops. Several of these were installed with Debian over four or five years ago and are now all running 3.1.

Good for him. I've tried it (I believe 3 times now) and it never worked for me. Since it doesn't work for me, I don't use it. Like I said, I'll stick to Slackware.
In my day we were so primitive we didn't even have 1s and 0s. We had to use 1s and then somebody invented the wheel which gave my third cousin by his second wife's son Jemijamembra the idea to create the binary numbering system. Afyer that, we spun some silver thread and wrapped it around a long pole. We hung tin cans oft it and used hemp to tie the cans together at short distances.

Yep, those were the good ole days. It was my brother's great-great grandson's second cousin who came up with the magnetic coding device which lead to the 3 kbps modem and he used water to generate electricity. He also found a way to turn alcohol into gasoline and created a piston engine which led to international communications.

Yep, those were good days. I remember like it was just yesterday.

Mossy old geekbearded bart that I am.
Now you're just bragging tadelste. We know that's just a digital gin mill you're describing.
Darn. Caught again.
Hehe - what in the world have you guys (n gurls of course) smoked or drank during the last 24 hours?

I want the same! ;-)
The output of tadelste's digital gin mill of course :)
/homehelios$ slocate -i sanity
nux@deb1:~$ apropos sobriety sobriety: nothing appropriate
hkwint Story submitter ·
kwint 1 ~ $ slocate -i sanity | wc -l 51

Not bad, eh?
I've been using Debian since '97. The last distro I was really comfortable with was "HJ's GCC." There are quality holes and the installer still isn't automatic enough for Grandma and stable is obsolete. But none of that is important as the quality and maintainability. Dedicated server 150 miles away, customers with CMSes, would you do a dist-upgrade on Mandriva?
All joking aside, a difference does exist between opinion and empirical information. I respect people's opinion about their favorite distributions.

Given the empirical information I have about stable Linux distributions only three exist. SUSE 9 SLES, Red Hat RHEL, and Debian. You can obtain Debian for free. It's also the most fundamental of the three and allows me to work on other distributions. So, it's the mother-ship for me to learn and advance with Linux. I still work on other distributions, but only when I went with Debian did I find myself building a solid foundation in system administration.
Tom:

> Given the empirical information I have about stable Linux distributions only three exist.

You can add Slackware to your stable list. In my experience, it's stability is comparable to Debian's. Like Debian, it's also available as a free download.
I do no work on the server end of it so my only experience has been the Debian clones on the desktop starting with Knoppix then Kanotix. I rave about dpkg and apt-get. For those new to Linux, I find teaching them these simple command line tools gives them confidence to explore the cursed cursor further. Say those last three ten times.

When they see what they can do with the power of apt-get et al, it spurs them onto other commands...least it did for those under my guidance. I think I'm up to 6 now.

jdixon: The context of this thread relates to commercial system administration. What do people use in enterprizes. So, Munich picked Debian over Red Hat and SUSE.

Slackware is a great distribution. It's not considered commercially stable for enterprise use.

I wrote an article for O'Reilly about this subject called Defining the Enterprize:

http://www.linuxdevcenter.com/pub/a/linux/2004/09/16/linuxen...

I don't wish to quibble over words here but in the domain of software stable has a specific meaning. It doesn't mean your favorite distribution isn't stable.

Tom:

> I don't wish to quibble over words here...

But then that's exactly what you did. :)

> The context of this thread relates to commercial system administration. What do people use in enterprizes.

Commercial use and enterprise use are not exactly the same thing. Enterprise use is only a subset of commercial use.

> but in the domain of software stable has a specific meaning.

I don't see the word enterprise anywhere in the previous posts Tom. Had you made it clear that's what you were talking about, I wouldn't have responded, as I have little experience in that area.

In the domain of "enterprise software" stable might have a specific meaning which differs from the standard meaning. I wouldn't know. In the less specific domain of "software", including non-enterprise level commercial usage, Slackware's stability is legendary.

It sounds like what you're actually saying is that Slackware doesn't have an enterprise ready support structure. Fair enough, but then neither does Debian. Both are dependent on third parties for support. I will admit that Debian's third party support has a higher profile than Slackware's.
Quoting:It sounds like what you're actually saying is that Slackware doesn't have an enterprise ready support structure. Fair enough, but then neither does Debian. Both are dependent on third parties for support. I will admit that Debian's third party support has a higher profile than Slackware's.


OK.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post

LXer

  Latest Features
bob: LXer now speaks Markdown
Oct 27, 2026

bob: How to protect against PHP2Shell
Oct 26, 2026

Scott Ruecker (San Diego, U.S.): Linux That's Small
Oct 14, 2024

penguinist: Encryption, Trust, and the Hidden Dangers of Vendor-Controlled Data
Aug 27, 2024

Scott Ruecker (San Diego, U.S.): My Linux Mint Tribute
Aug 23, 2024

Scott Ruecker (San Diego, U.S.): How I Turned My Chromebook Into A "Mintbook"
Jul 08, 2024

Scott Ruecker (San Diego, U.S.): Adventures With My New Chromebook
Jun 10, 2024

Scott Ruecker: My Linux Laptop
May 08, 2022

Scott Ruecker: Laptop Dual Boot Project: Part 2
Nov 30, 2021

Scott Ruecker: Laptop Dual Boot Project
Nov 30, 2020


View all

  Search Features

Search LXer Features:

[ Copyright © LXer | All times are recorded in Central Daylight Time (CDT) ]

[ Contact Us | Privacy Policy | Terms of Service | About us | rss | Mobile ]

Login