Re: Find components of "setup"?

From: +Alan Hicks+ (alan_at_lizella.netWORK)
Date: 10/18/05


Date: Mon, 17 Oct 2005 19:10:51 -0500


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

["Followup-To:" header set to alt.os.linux.slackware.]
In alt.os.linux.slackware, Vardan Kushnir dared to utter,
> Please forgive poor english.

Not a problem.

> During slackware 10.2 install "setup" does many things.
> "xwmconfig" does one of "setup" things. "xwmconfig" is subset
> (called by?) "setup." How to do other "setup" subset things
> (stand alone?) What are such commands? For example command
> from "setup" to select font only is what command?

Most of these commands can be found by running pkgtool and selecting
the "SETUP" option. Additionally these can be found individually in
the /var/log/setup/ directory.

> For learning: would like to examine "setup" to myself see many
> things that "setup" does. Where to find so as to examine?
> I try "locate setup" but did not find.

"setup" is not included in a Slackware install. It is only present in
the RAM disk used by the installer. It's not easy to find. Basically,
the installer loads a compressed ext2 filesystem into a small amount of
your system's RAM as an initrd (initial ram disk), so you'll have to
copy that, uncompress it, and mount it.

  mount /mnt/cdrom
  cd /mnt/cdrom/isolinux/
  cp initrd.img /tmp/initrd.img.gz
  cd /tmp
  gunzip initrd.img.gz
  mkdir /mnt/loopback
  mount -t ext2 /tmp/initrd.img /mnt/loopback -o loop

You can now find setup somewhere under /mnt/loopback. setup is just a
shell script, so use your favorite text editor to read it. No need to
hunt down source code.

> For learning: how to find *any* such command so as to examine and
> learn?

  man find

There are a _lot_ of options to find to find files by name, wildcard,
timestamp, permissions, etc. Only time will breed familiarity with the
wonderful find utility, but many websites offer the basics.

> Is Linux architecture internal/external command like MS-DOS
> COPY (internal no exe needed) / MS-DOS MOVE (external move.exe)?
> Or is "setup" and "ls" same kind in Linux?

I don't really understand the question. Could you please rephrase it?

> In MS-DOS is third kind: (.bat / batch) In Linux is three kinds
> commands internal / external / batch? In MS-DOS only batch is
> kind to be eamined. Is same in Linux?

I'm not sure I'm following you. In DOS, batch files are simple scripts
you can create to do certain things. In Linux, we have something very
similar, though IMHO much more powerful in shell scripts. There are
many different shells: bash, bourne, ash, csh, tcsh, zsh, etc. and each
has its own rules for writing scripts. There is no single "script
language".

As for other programs, there are some built-in programs to the kernel,
but not many. Most everything is an "external" program if I understand
your terminology correctly.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFDVD16zLTO1iU1uO4RAvVnAJ4s9lprr7TW7aeWp7kumh87T5N7KACg2L5A
f20RdeSny2DBu9ew3oveAR8=
=vyot
-----END PGP SIGNATURE-----



Relevant Pages

  • Re: Find components of "setup"?
    ... Most of these commands can be found by running pkgtool and selecting ... "setup" is not included in a Slackware install. ... shell script, so use your favorite text editor to read it. ... though IMHO much more powerful in shell scripts. ...
    (alt.os.linux)
  • Re: How to "save" the current iptables setup
    ... > Is it possible to save a current iptables setup. ... commands so I can execute it. ... dynamically set up iptables using different scripts? ...
    (comp.os.linux.security)
  • Re: asrock, problem with nic after windows-boot - Exact Opposite issue the OP is having
    ... On 21 Jun 2006, in the Usenet newsgroup comp.os.linux.networking, in article ... If you are having trouble during boot, move the original scripts TEMPORARILY ... I'd grep for 'ZEROCONF' in ... individual commands, it's really not doing rocket science. ...
    (comp.os.linux.networking)
  • ntlib.cmd (Advanced NT/2K/XP/K3 Command Library)
    ... The latest Advanced Command Library for Windows NT/2K/XP/K3 ... MAINTAINABLE shell scripts without adding any third-party software. ... They are constructed entirely of builtin commands ...
    (microsoft.public.win2000.cmdprompt.admin)
  • ntlib.cmd (Advanced NT/2K/XP/K3 Command Library)
    ... The latest Advanced Command Library for Windows NT/2K/XP/K3 ... MAINTAINABLE shell scripts without adding any third-party software. ... They are constructed entirely of builtin commands ...
    (microsoft.public.win32.programmer.tools)