Slashdot Mirror


Top Ten Linux Configuration Tools?

jman251 asks: "I am presenting at a conference in September on a couple of Linux-centric topics. One of these is a collection of tips, tricks, and tools for configuring, securing, and maintaining a Linux-based server. I have a short list of tools I use, but would like some community input on the subject. What tools do you use that make your admin responsibilities easier or more automated on the Linux platform?"

27 of 651 comments (clear)

  1. Dave Lettermans Top 10 by Anonymous Coward · · Score: 5, Insightful

    su
    df
    du
    ls
    rm
    passwd
    chown
    vi
    more
    bash

    Hey, you asked for it - No clicky links to read.

    1. Re:Dave Lettermans Top 10 by vicviper · · Score: 2, Insightful

      su
      df
      du
      ls
      rm
      passwd
      chown
      vi
      more
      bash

      s/more/less/

      Your comment has too few characters per line (currently 3.6).

    2. Re:Dave Lettermans Top 10 by macshit · · Score: 2, Insightful

      zsh also has some extremely annoying properties, especially its tendency to assign essentially every[*] single non-alphumeric character a "magic" meaning (e.g., = as a filename prefix seems to be something like "which").

      Personally I think zsh is a great example of "lots of features and no taste."

      [*] Yes, I'm exaggerating -- I'm sure there are a few without... :-)

      --
      We live, as we dream -- alone....
  2. Not The FP by jo42 · · Score: 5, Insightful

    man and vi

    Seriously.

  3. Re:rm by Punk+Walrus · · Score: 4, Insightful

    Only as root... and then you created them, so hush! :)

  4. Vim and regex by sielwolf · · Score: 3, Insightful

    That's all ya need ;p

    --
    What is music when you despise all sound?
  5. CVS (or insert your favorite alternative here) by -dsr- · · Score: 5, Insightful

    CVS or your favorite equivalent is vital in any multi-sysadmin environment. Operating without your configurations in CVS is like juggling priceless eggs in variable gravity.

  6. /bin/bash by llywelynelysium · · Score: 5, Insightful

    What good are all your commands with no shell? ? ?

    --
    Llywelyn Fawr
  7. Re:Xconfigurator by fore1337 · · Score: 1, Insightful

    I like using XConfigurator
    You're right about not needing it lately. However it's been useful for notebook displays of uncommon resolution. (my 14" 1400x1050) Xconfigurator is the only way I know how to get it working properly.

  8. Re:Shouldn't you be asking by geekoid · · Score: 1, Insightful

    there is nothing wrong with that question.
    The real problem is when someone asks:"What is the best text editor?"

    Silly question, cause the answer is edlin.

    --
    The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
  9. Several points of view.... by gmuslera · · Score: 4, Insightful

    ... the most important tool is the brain :) As an admin, whatever you do, if you don't think enough on it you deserve what could happen.

    As "admin suite", i.e. a single program to do a lot of administrative tasks, maybe YaST could be a good start. I'm not use webmin, tried it some years ago and don't liked the idea, but could be useful for a lot of people too.

    And about individual tools, well, bash, vi, perl, mc, awk, the gnu text/file/shell utilities (cat, grep, ls, cut, chmod, etc) are essential.

    Last but not least, a "tool" is also something that help you to use what you have available already. Man pages, the HOWTO collection, a lot of O'Reilly books, and Google are examples of that kind of tools.

  10. It also has to be said... by hndrcks · · Score: 2, Insightful

    ...when you have portaged the very latest version and compiled it from source for your processor and architecture... it still isn't configured.

    ...which I believe is what this poll is about. Top Ten Configuration Tools.

    --
    Everyone will start to cheer when you put on your sailin' shoes.
  11. Perl, vi and cron by kevin_conaway · · Score: 2, Insightful

    vi for editing perl.
    vi for adding perl scripts into crontab.

    theres not much else to do

  12. Ever notice... by davidej · · Score: 2, Insightful

    how boring it gets wading through all the posters trying to be clever..?

  13. Re:Webmin is nice by mkro · · Score: 2, Insightful
    Also, it requires you to run httpd, which on many servers is not worth the security risk.
    You let the webserver only accept connections from localhost, and the daemon runs as an unpriviliged user. What am I missing here?
    --
    I shall go and tell the indestructible man that someone plans to murder him.
  14. Re:CVS (or insert your favorite alternative here) by Dezer · · Score: 2, Insightful

    It's all about subversion . Quite mature - can import former CVS collections, too.

  15. Re:Webmin is nice by nharmon · · Score: 2, Insightful

    I would say that you're missing that fact you don't run X on a production server (at least...i don't)...

  16. A tendency toward self improvement by delcielo · · Score: 4, Insightful

    Seriously, you need to have a drive to constantly learn more. That's more valuable than any pre-written config tool out there.

    I know that's not what you wanted; but it's really true. A desire to constantly increase your own knowledge is paramount.

    --
    Hot Damn! It's the Soggy Bottom Boys!
  17. Re:Webmin all the way by desiderius7 · · Score: 5, Insightful

    Amen to that. Being responsible for the administration of about 10 linux boxes that each provide a unique variety of services, Webmin has been invaluable. If I didn't have Webmin, all of my tasks performed through the shell would take about 10 times longer than they currently do from a browser that can lay out my options much more nicely. The key is to know/learn how to do what you want to do from the shell first, so that you have the understanding (and for emergencies), but to then use Webmin to boost your efficiency and help remind you of things that a blank console doesn't.

  18. Re:Webmin is nice by mkro · · Score: 2, Insightful

    Sorry, not trying to troll here, but X for what? I asume accessing the web interface can be done with [e]links/w3m/lynx. No, never tried, but the web pages don't look THAT advanced.

    --
    I shall go and tell the indestructible man that someone plans to murder him.
  19. Re:CVS (or insert your favorite alternative here) by zeromemory · · Score: 2, Insightful

    > CVS + ssh keys = godlike.

    Until someone steals your ssh key. Then they will be godlike too.

    Sure, ssh keys are convenient, but they don't always replace passwords.

  20. My Top Ten by genkael · · Score: 4, Insightful

    1) Yast (I know it's SuSE centric, but it's being open sourced!)
    2) OpenSSH... Oh yeah baby!
    3) GCC and make... DUH!
    4) FTP...I know I know SFTP if you prefer
    5) Perl...YUM and even better with perl expect
    6) Bash...we all need a CLI
    7) Jumpstart...If you manage a lot of solaris boxes, this is your friend
    8) Sendmail or postfix...pick your poison
    9) nmap...oh yeah, let the Windows guys drool
    10) Nagios...monitor that network in style!

    --
    GeneralKael -- Slacker Extraordinaire
  21. WRONG QUESTION by nusratt · · Score: 5, Insightful

    Ask for the Top Ten tools, and most of your time spent reading the responses will be wasted, because of the overlap of the answers. If people list what they *genuinely* think are the Top Ten, there will be very few answers which are unusual or surprising (and still useful).

    I think it would more useful to ask for the Top Ten MOST OVERLOOKED tools, or the most under-used, the most mis-used, or the ones whose full power is forgotten, unrecognized, or unused.

  22. make + cfengine + cvs + LDAP by MrChuck · · Score: 4, Insightful
    You don't admin a domain with "vi" [where by vi I mean all editors].

    • Task: Add this printer to 200 machines. You have 5 different un*xes (and different versions of each of those around).
    • We need to change the sudo file on 200 servers.
      no, nfs is not used
    • Update /etc/mail/access on 6 machines in 4 locations (and 3 continents). Oh, we forgot this, do it again.
    • Make sure $THIS is in the sybase's crontab on all the sybase server.
    • Patch all the Solaris 7 machines with this new patch cluster. It's urgent. (and we have 50 of those machines scattered around the world).
    • Change the (locally stored) root password on all the machines we take care of because X just got fired, but we couldn't tell you till now).
    • Rebuild the 2 HA database servers (one at a time) and make sure they have the current patches and access to the new partitions on the SAN
    vi! webmin. heh.

    My partner took the Solaris Advanced Certification tests (someone else was paying and what the hell). She screwed up the parts about AdminTool. Someone who'd been using Unix since the 80s. She came home raging: AdminTool!! If I ever hired a senior admin and they kicked up admin tool, I'd fire them before the windows finished opening.

    I find these single machine solutions quite quaint.

    No, I'm delighted to have my cfengine scripts that go through /etc/ and make sure that inetd.conf is stripped, and that rpcbind and nfs aren't running on standalone servers and that the Right Stuff is in the Right Config files and that permissions are correct.

    Best part is that I can run it again anytime later to redo that (or with '-n' to just show me what's changed).

    And if it uses CVS to pull down $Today's configs, then so be it.

    1. Re:make + cfengine + cvs + LDAP by cashcraft · · Score: 2, Insightful

      Webmin can really screw you up though. I tried to use it on a Cobalt (old sun) server, and it totally messed the server up.

      Personally, I say that there is nothing better than a command line, your favorite text editor and Google (or any other searh engine to find answers). cfengine does sound nice, though.

      But, for those of you who dislike the command line, Linuxconf, http://www.solucorp.qc.ca/linuxconf/ works nicley for me under redhat and cobalt 5.

      And, for automation, what would we do without cron and at?

  23. An experienced system's administrator by macdaddy · · Score: 2, Insightful

    Seriously, that's the number one configuration tool you could possibly own. It always baffles me how many "Technology Coordinators" or other official IT guys know jack (or less!) about systems administration. These are the type of people you'd never consider giving root to on a server you administer. These are the type of people that don't understand why a server that's a month old would need to have patches and other updates done on any of the hundreds of packages that run on it. (I ran into this comment again just the other day by an "admin") Hands down the best tool available on the market today for Linux system configuration is a half-assed decent administrator. That's one area where you can't afford to be a cheapskate.

  24. Interesting poem, but... by jonadab · · Score: 2, Insightful

    > A is for awk, which runs like a snail
    Yeah, these days we use Perl for that stuff.
    > B is for biff, which reads all your mail
    Emacs/Gnus takes care of this, thanks. (Yeah, I know that's not really
    what biff does, but hey, it's what the poem says.)
    > C is for cc, as hackers recall
    C is for nursing along old legacy code that hasn't had the good graces to be
    rewritten in a real language yet; for new stuff we use high-level languages.
    > D is for dd, the command that does all
    I must admit that this one is still handy from time to time...
    > E is for emacs, which rebinds your keys
    Can't live without that...
    > F is for fsck, which rebuilds your trees
    One word: journaling.
    > G is for grep, a clever detective
    I admit I still occasionally use this, but Perl's regexen are more powerful.
    > H is for halt, which may seem defective
    I usually use shutdown or init when I need to do hardware maintenance.
    > I is for indent, which rarely amuses
    Emacs does this automatically, of course. Has for years.
    > J is for join, which nobody uses
    Indeed, what does it even do? From a quick look at the man page, it looks
    at first glance like a Perl one-liner, give or take a dozen strokes.
    > K is for kill, which makes you the boss
    I do still use this sometimes.
    > L is for lex, which is missing from DOS
    Isn't that one of those C things? Its days are numbered.
    > M is for more, from which less was begot
    With eshell (the Emacs shell), there's no need for a pager any longer.
    This letter should now go to man, IMO.
    > N is for nice, which really is not
    Here's another one I must admit to using occasionally. Also renice.
    > O is for od, which prints out things nice
    I had to use man to even find out what this does, and then it turns out
    to be something I'd almost never use, but if I did need that functionality,
    I could do it in a Perl one-liner faster than look up the od manpage again.
    > P is for passwd, which reads in strings twice
    > Q is for quota, a Berkeley-type fable
    Okay, those might still be relevant.
    > R is for ranlib, for sorting a table
    Definitely a Perl job, that.
    > S is for spell, which attempts to belittle
    Emacs has ispell/aspell integration these days.
    > T is for true, which does very little
    Indeed.
    > U is for uniq, which is used after sort
    Another thing we use Perl for in the modern era.
    > V is for vi, which is hard to abort
    If you really want vi (*WHY*?), Emacs has a version of it built in.
    > W is for whoami, which tells you your name
    If you need a program for that, commands aren't going to solve your problems.
    > X is, well, X, of dubious fame
    Emacs has better colors if you use X. 24-bit. Without it, 16 colors.
    > Y is for yes, which makes an impression, and
    I suppose...
    > Z is for zcat, which handles compression
    Most of us use either zip (or Archive::Zip) or gzip (or Zlib) for that now.
    We'll say zip, because it starts with z and so won't screw up the poem any
    worse than I already have ;-)

    --
    Cut that out, or I will ship you to Norilsk in a box.