Linux-Misc Digest #543, Volume #21               Thu, 26 Aug 99 00:13:11 EDT

Contents:
  tomsrtbt 1.7.140 with kernel 2.0.37, many fixes (Thomas A. Oehser)
  Re: *nix vs. MS security (Heeeeeeeez back!)
  HELP ---  WINNT to Linux Access (root)
  Re: usiing MS proxies server and linux (Mark Huffman)
  Network Printing ? (Niann Shiang)
  Re: recursively replace carriage returns (David Taylor)

----------------------------------------------------------------------------

From: [EMAIL PROTECTED] (Thomas A. Oehser)
Crossposted-To: comp.os.linux.development.system,dc.org.linux-users
Subject: tomsrtbt 1.7.140 with kernel 2.0.37, many fixes
Date: 25 Aug 1999 23:10:25 -0400

I've released a new 2.0.37 based tomsrtbt-1.7.140, .dos.zip and .tar.gz.

It is available from http://metalab.unc.edu/pub/Linux/system.recovery,
and will soon be on all the mirrors which of course should be used.

It is also up at http://www.toms.net/rb/, where there is some other stuff.

It's a boot/root rescue/emergency floppy image with more stuff than can fit.
Bzip2, 1722Mb formatting, and tight compilation options helped jam a lot on.

It is useful for "learn unix on a floppy" as it runs from ramdisk, includes
the man-pages for everything, and behaves in a generally predictable way.

See the FAQ below or at http://www.toms.net/rb for a list of recent
enhancements and fixes.  There are *IMPORTANT BUG FIXES IN THIS VERSION*.

LSM, FAQ including feature list, and available add-ons follow:

============================ tomsrtbt=1.7.140.lsm ==========================:
Begin3
Title:          tomsrtbt
Version:        1.7.140
Entered-date:   25AUG99
Description:    "The most Linux on one floppy."  (distribution or panic disk).
                1.72MB boot/root rescue/tools diskette for your shirt pockets.
                Supports ide, scsi, tape, network adaptors, PCMCIA, much more.
                About 100 utility programs and tools for fixing and restoring.
                See tomsrtbt.FAQ for a list of stuff that is included.  Not a
                script, just the diskette image packed up chock full of stuff.
                Easy to customize startup and scripts for complete rebuilding.
                Also good as learn-unix-on-a-floppy as it has mostly what you
                expect- vi, emacs, awk, sed, sh, manpages- loaded on ramdisks.
                There is one installer that runs under Linux, another for DOS.
Keywords:       rescue recovery emergency floppy panic bootdisk tomsrtbt help
Author:         [EMAIL PROTECTED] (Tom Oehser)
Maintained-by:  [EMAIL PROTECTED] (Tom Oehser)
Primary-site:   www.toms.net /rb
                1 kB home.html
Alternate-site: sunsite.unc.edu /pub/Linux/system/recovery
                1722 kB tomsrtbt-1.7.140.tar.gz
                1722 kB tomsrtbt-1.7.140.dos.zip
Copying-policy: GPL
End
======================== tomsrtbt.FAQ ========================:
Contents:

1) tomsrtbt is
2) Design goals
3) Contents
4) Linux installation
5) DOS installation
6) Customizing
7) Support
8) Tips
9) Copyright
10) ChangeLog
11) ToDo


1) tomsrtbt is

        "The most Linux on one floppy disk" for:

                rescue recovery panic & emergencies

                tools to keep in your shirt pockets

                whenever you can't use a hard drive


2) Design goals

        as much stuff as possible on 1 floppy disk

        keep it self contained, build under itself

        try to make it behave like a normal system

        rescue and recovery functions get priority


3) Contents

 Stuff (modules, manpages, scripts, binaries, kernel):

2.0.37 3c589_cs BusLogic CVF DEC_ELCP EEXPRESS EEXPRESS_PRO
EL2 EL3 EXT2 FAT FAT32 FD IDE IDECD IDEFLOPPY IDEPCMCIA
IDETAPE ISO9660 JOLIET LOOP MATH_EMULATION MINIX MSDOS
NE2000 NFS PROC RAM SD SERIAL SLIP SMC SR TR ULTRA VFAT
VORTEX WD80x3 ah152x_cs aha152x aha1542 aic7xxx ash awk
badblocks bdflush bzip2 cardbus cardmgr cat ce ce.help chattr
chgrp chmod chown chroot clear cmp cp cpio cut date dd ddate
debugfs df dirname dmesg dmsdos ds du dumpe2fs dutil e2fsck
eata echo egrep elvis emacs extend false fdflush fdformat
fdisk fdomain filesize find fmt fsck.ext2 fsck.msdos fstab
grep gzip halt head hexedit hostname i82365 ifconfig ifport
ile init inittab insmod kill killall5 ksyms length less
libc.so.5.4.13 lilo lilo.conf ln loadkeys login losetup ls
lsattr mawk memtest mingetty miterm mkdir mkdosfs mke2fs
mkfifo mkfs.minix mklost+found mknod mkswap mnsed more mount
mt mv nc ncr53c8xx nmclan_cs ntfs pax pcmcia pcmcia_core
pcnet_cs ping plip ppa printf ps pwd qlogic_cs qlogicfas
reboot reset rm rmdir rmmod route rsh rshd script scsi_info
seagate sed serial_cs setserial sh slattach sleep slip snarf
sort split stty swapoff swapon sync tail tar tcic tee telnet
test touch tune2fs umount update vi vi.help wc

 Linux package

buildit.s               build
clone.s                 duplicate
fdflush                 flush floppy cache
fdformat                format floppy 1.7M
install.s               install
settings.s              used by build
tomsrtbt.FAQ            documentation
tomsrtbt.raw            <== This is it
unpack.s                unpack

 DOS package

initrd.img              installer image
install.bat             install it
loadlin.exe             starts linux from DOS
tomsrtbt.FAQ            documentation
zimage                  installer kernel


4) Linux installation

a) extract the .tar.gz archive
b) Be root
c) Be in the tomsrtbt-<version> directory
d) Have a blank floppy with no bad sectors
e) Do './install.s'

The script assumes you have ELF and that your 3.5" 1.44M floppy is on fd0.

Virtually all 1.44 drives support 1.722 just fine, but it is possible for
an extended format to break a floppy drive, use tomsrtbt at your own risk.
The install does mknod to make /dev/fd0u1722 if you don't have it already.

If you use libc.so.6 / glibc, you might need something like:
 LD_LIBRARY_PATH=/usr/i486-linux-libc5/lib; ./fdformat /dev/fd0u1722

Umount any mounted floppies before installing.


5) DOS installation

a) Pkunzip it

b) If you are running Windows-95, do "shutdown and restart in msdos mode".
   You have to be in really-DOS mode.  Not a DOS session under Windows-95.

c) CD to the directory you pkunzipped it into.

d) "install".
   (This boots a Linux with prompts to make the diskette.)

This is for installing tomsrtbt when you don't already have Linux.

If you have tomsrtbt on a floppy, don't use this, and if
you already have Linux, don't use this, use the .tar.gz.
If you have problems boot with no config.sys or autoexec.bat.


6) Customizing

If you have problems, try doing it under tomsrtbt instead
of on your own system. I test and support it under itself!

To customize startup, edit settings.s and rc.custom.gz on the floppy.
Of course you have to "gzip -d" rc.custom.gz to edit it.
Use /dev/fd0u1722 to mount it, /dev/fd0 or /dev/fd0H1440 will not work.
Typical uses: insmod, ifconfig, route, resolv.conf, hosts, mount, etc.

For full customization, such as, anything,

        (Be logged somewhere with 10+ meg of linux filesystem space)

        unpack.s                # unbuilds it into <name>.unpacked
                                # do what thou wilt
        2/usr/doc/buildit.s     # rebuilds out of 1, 2 directories

There is lots of room, delete useless stuff like dmsdos and ce.

NOTE:   You need space to DO the customizations. Rc.custom.gz can be
        unpacked into /tmp, edited, gzipped, copied back. Buildit.s
        needs drive space. If you only have FAT, use the loop device.

When customizing, edit the settings.s under "1/", not other copies.


7) Support

        Start at the homepage at http://www.toms.net/rb/

        My email address is [EMAIL PROTECTED]

        I am not a Unix teacher, questions should be tomsrtbt-specific.

        Tell me what problems you have and what you would like added.


8) Tips

'Login as root' means the USER ID is "root"!  I thought it was obvious...

Use "man command" if a command acts strangely

"snarf" does ftp, gopher, http, & finger

/ is full. /usr is full. /tmp has room.

tar and cpio are 'pax' and differ from gnu-tar and gnu-cpio.

Instead of:
                tar -xvzf /dev/st0
Use this:
                gzip -d < /dev/st0 | tar -xvf -

To run programs from your hard drive:
        -ELF libc5 stuff should all work.
        -For a.out programs, install binfmt_aout.o.
        -For glibc6 programs, something like:
                ln -s /mnt/lib/ld-linux.so.2 /lib/ld-linux.so.2
                edit ld.so.conf then ldconfig or maybe LD_LIBRARY_PATH
                or, "chroot <mounted glibc root> bash" then whatever...

Command history is via ile from /bin/login, see "man ile" and /bin/login.

You must use insmod for:
 BusLogic aha152x aha1542 aic7xxx dmsdos eata fdomain
 ncr53c8xx ntfs plip ppa qlogicfas seagate

Adaptec 2940 etc. is aic7xxx

If something is missing, look in http://www.toms.net/rb/add-ons/.

Try "pcmcia start". If you add pcmcia modules, fix /etc/pcmcia/config also.

To use lilo, mount the floppy to get at zImage & boot.b, chain.b is in etc.
The lilo you run must have the same version as the boot.b it runs against.

wc login man shutdown ps split telnet tee & head are scripts or awks.

edit rc.custom.gz to enable rshd or dialin or 'telnetd'.

For the fake telnetd, use 'mode character' and 'set binary'...

If you need to not be root, use a suid shell.  Login won't do it.

Instead of rdev use lilo, for examples see the mailing list archive.

To copy between 2 tomsrtbt systems, use something like:

 find <path> | cpio -o | rsh <system> cd <path> ";" cpio -iumd

Support for 4M machines in borderline, see the list archive for help.

I have never used "Red Hat", please do not ask me questions about it.
Ditto:  "Mandrake".


9) Copyright

Almost the only originality is arrangement, construction, and scripts.

I did write 'tomshexd' from scratch.

It is all on sunsite.unc.edu, tsx-11.mit.edu, ftp.debian.org, or ftp.lth.se.

I changed:
 mnsed fixing 'l'
 snarf adding ftp USER and PASS via getenv
 busybox taking out applets
 ile fixing tty bugs
 dd adding lseek for BLK, progress indicator, no conv

The .diffs are in http://www.toms.net/rb/add-ons/*.diff.bz2

'miterm' is thanks to Robert de Bath, [EMAIL PROTECTED]

*******************************************************************************
* If you base something on it, use any of the scripts, distribute binaries or *
* libraries from it, or distribute customized versions of it: You must credit *
* tomsrtbt and include a pointer to http://www.toms.net/rb/ and [EMAIL PROTECTED], *
* and include this notice verbatim. Copyright Tom Oehser 1999. This notice in *
* no way supercedes or nullifies any other protections on the component parts *
* such as the BSD and GPL copyrights which apply to practically everything!!! *
* Within these strictures you may redistribute, incorporate, copy, modify, or *
* do anything else to it or with it that you like. Tomsrtbt has no warranties *
* not even implied fitness or usefulness.  If it breaks you keep both pieces. *
*******************************************************************************


10) ChangeLog

1.6.70   add ile shell command history
1.6.151  script fixes, wc tee dirname -> awk
1.6.165  rep gnu fmt w/ elvis' fmt
1.6.167  rm mkdmsdosfs fsck, add ntfs.o, head -> awk
1.6.193  cut -> awk
1.6.200  rm smc-ultra32
1.6.225  script and settings changes, enhance telnet, remove rlogin
1.6.249  add tulip
1.6.268  grep -> awk, add 3c59x
1.6.275  superformat -> fdformat, util2.8, prompt for keytable,
         add BusLogic.o (no FlashPoint...), IDEPCMCIA.
1.6.335  fix cpio bugs, BSD mt-st -> gnu-mt, 2.4.2-20 (debian)
1.6.336  fix ile tty handling
1.6.346  pcmcia-3.05, del aha152x_cs, add cardbus
1.6.358  fix ile high-bit char handling
1.6.362  tcic_opts fix, DOS installer fix
1.6.370  replace cpio with pax/tar/cpio
1.6.375  fix fake telnetd
1.7.0    kernel 2.0.36
1.7.14   customize dd, cd func PS1, more.help, docs, pax 2.(>1)
1.7.29   many pax, tar, cpio fixes
1.7.30   add hexedit, add split
1.7.40   add aha152x_cs, trim elvis
1.7.52   BusLogic, seagate -> modules, bzImage -> zImage
1.7.75   trim libc, 26 sectors free! bugfixes
1.7.88   add setserial, play with inode calculations
1.7.90   make scsi modules, make network builtin 
1.7.95   plip has to be module, script fixes
1.7.100  add real dhcpcd NOTE: this is temporary, I will replace this with a
         faked or reduced dhcp and this will go away!  But why not put it on
         there for now since I have the space...
1.7.102  new mkdosfs
1.7.104  minor fixes
1.7.115  rows/columns fix
1.7.119  fix pax buildit.s unpack.s pty devs; del ibmtr symlks; 2.0.36>zImage
1.7.135  kernel 2.0.37, random urandom & sr1, fix pax bug

11) ToDo

Com     TypEffPriDes
.deb     e  m  2 unpacker
4M       e  l  9 more aliases, etc?
ash      b  h  4 echo won't allow both -e AND -n
ash      b  h  6 bizarre 'read' bug
ash      b  l  6 manpage omits $$, $_, etc.
ash      b  h  7 fix or doc builtin "test" bug
awks     e  m  5 clean up, do more..
awks     e  m  5 write 'strings' in awk
busybox  b  m  4 fix monadic to handle -fr
busybox  b  m  2 kill doesn't support named signals
busybox  e  h  4 hack in more stuff, revamp and redo
busybox  e  h  7 new version?
crtn.o   b  h  5 ?4-K overhead from for every program?
crunch   e  h  5 BSD program that auto-combines binaries?
cut      b  m  4 fix -b, -c N-..
dhcpd    e  h  2 make a really small one
doc      b  l  5 update manpage for (gnucpio)mt
doc      e  m  6 busybox man pages
doc      e  m  2 faq>/,.s>bin,settings>etc
floppy   e  h  8 mess with higher formats like 1840?
generic- e  m  8 which one?
hexedit  e  m  4 wrapper for diskediting
insmod   b  h  9 newer version failed?
isapnp   e  h  4 no
kbd      e  m  4 make keymaps with only changes
libc     e  h  9 convert to glibc6
lrp      e  m  4 crib from
md       e  m  8 check size, need
more     b  h  2 fix console bug, smooth scroll backwards
mount    e  l  3 update man pages
mount    b  h  6 -O2 breaks '-t nfs', -O1 works, why?
ntfs     e  m  4 newer version
passwd   e  m  2 crypt in awk, better fake login
pax      e  h  3 enhance to do gnu-tar and gnu-cpio opts
pax      e  h  3 try to break, build verification suite.
pax      e  h  3 add support for SVR4 formats
pcmcia   e  m  5 cleanup, docs, trim, test
smbfs    e  m  7 check size
sort     e  m  4 remove or replace with an awk
startup  e  h  2 test initrd, root.gz->minixfs ideas
xtea     e  m  2 do this
telnet   e  m  5 improve
telnetd  e  m  5 improve
termcap  e  l  4 man page w/ setterm fake shortcuts i.e. ^V^[[?5h
termcap  b  h  7 rebuild lib
trinux   e  m  4 crib from
wget     e  m  3 compare to snarf

================ available add=ons ===================================:
3c501.o.bz2             3c505.o.bz2             3c507.o.bz2
3c515.o.bz2             3c574_cs.o.bz2          3c575_cb.o.bz2
3c589_cs.o.bz2          53c7,8xx.o.bz2          8390.o.bz2
AM53C974.o.bz2          BLOCK_MODULES.bz2       BusLogic.o.bz2
CDROM_MODULES.bz2       ElTorito.288.bz2        FS_MODULES.bz2
NCR53c406a.o.bz2        NET_MISC_MODULES.bz2    NET_MODULES.bz2
PARIDE_MODULES.bz2      SCSI_MODULES.bz2        advansys.o.bz2
aha152x.o.bz2           aha152x_cs.o.bz2        aha1542.o.bz2
aha1740.o.bz2           aic7xxx.o.bz2           at1700.o.bz2
binfmt_aout.o.bz2       bpck-fdc.o.bz2          bsd_comp.o.bz2
bulkmem.o.bz2           busybox.diff.bz2        cardbus.o.bz2
cb_enabler.o.bz2        cistpl.o.bz2            cs.o.bz2
dd.diff.bz2             de4x5.o.bz2             depca.o.bz2
dgrs.o.bz2              dlci.o.bz2              ds.o.bz2
dtc.o.bz2               dummy.o.bz2             dummy_cs.o.bz2
dump.bz2                dvorak.map.gz           e2100.o.bz2
eata.o.bz2              eepro100.o.bz2          epic100.o.bz2
epic_cb.o.bz2           eql.o.bz2               eth16i.o.bz2
ewrk3.o.bz2             fdomain.o.bz2           fdomain_cs.o.bz2
fmv18x.o.bz2            fmvj18x_cs.o.bz2        ftape-internal.o.bz2
ftape.o.bz2             ftl_cs.o.bz2            g_NCR5380.o.bz2
gdth.o.bz2              hp-plus.o.bz2           hp.o.bz2
hp100.o.bz2             hpfs.o.bz2              i82365.o.bz2
ibmtr.o.bz2             ibmtr_cs.o.bz2          ide_cs.o.bz2
iflash2+_mtd.o.bz2      iflash2_mtd.o.bz2       ile-2.7.tar.gz
imm.o.bz2               in2000.o.bz2            ipx.o.bz2
kernel.config.bz2       lance.o.bz2             lp.o.bz2
memory_cb.o.bz2         memory_cs.o.bz2         misc.o.bz2
miterm.c.bz2            mnsed.diff.bz2          ncpfs.o.bz2
ncr53c8xx.o.bz2         ne2k-pci.o.bz2          netwave_cs.o.bz2
ni52.o.bz2              ni65.o.bz2              nmclan_cs.o.bz2
paride.o.bz2            pas16.o.bz2             pax-2.2.beta9.tar.gz
pcmcia-full-config.bz2  pcmcia_core.o.bz2       pcnet32.o.bz2
pcnet_cs.o.bz2          plip.o.bz2              ppa.o.bz2
ppp.o.bz2               psaux.o.bz2             qlogic.o.bz2
qlogic_cs.o.bz2         qlogicfas.o.bz2         qlogicisp.o.bz2
restore.bz2             rsrc_mgr.o.bz2          rtl8139.o.bz2
sbpcd.o.bz2             sdla.o.bz2              seagate.o.bz2
serial_cb.o.bz2         serial_cs.o.bz2         slhc.o.bz2
smbfs.o.bz2             smc-ultra32.o.bz2       smc9194.o.bz2
smc91c92_cs.o.bz2       snarf.diff.bz2          sram_mtd.o.bz2
t128.o.bz2              tcic.o.bz2              tlan.o.bz2
tmscsim.o.bz2           tomshexd.c.bz2          trakker.o.bz2
tulip_cb.o.bz2          u14-34f.o.bz2           ufs.o.bz2
ultrastor.o.bz2         via-rhine.o.bz2         wavelan_cs.o.bz2
wd7000.o.bz2            xirc2ps_cs.o.bz2        yellowfin.o.bz2
zft-compressor.o.bz2    zftape.o.bz2
=====================================
-Tom Oehser, [EMAIL PROTECTED]

------------------------------

From: Heeeeeeeez back! <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.security
Subject: Re: *nix vs. MS security
Date: Wed, 25 Aug 1999 20:28:41 +0100

Thomas L|fgren <[EMAIL PROTECTED]> wrote:
> While we're at it, another frustration of mine is when replying to a
> post from someone with a ridiculous "real name" (such as the previous
> poster).  This makes quoting a bit difficult.

I suppose I could change that now... 
I only put it there originally because I lost my uni account and had weeks
of trouble being able to post using INN...

-- 
______________________________________________________________________________
| [EMAIL PROTECTED] |                                                |
|    Andrew Halliwell BSc   | "ARSE! GERLS!! DRINK! DRINK! DRINK!!!"         |
|             in            | "THAT WOULD BE AN ECUMENICAL MATTER!...FECK!!!!|
|      Computer Science     | - Father Jack in "Father Ted"                  |
==============================================================================
|GCv3.12 GCS>$ d-(dpu) s+/- a C++ US++ P L/L+ E-- W+ N++ o+ K PS+  w-- M+/++ |
|PS+++ PE- Y t+ 5++ X+/X++ R+ tv+ b+ DI+ D+ G e++ h/h+ !r!|  Space for hire  |
==============================================================================

------------------------------

From: root <[EMAIL PROTECTED]>
Subject: HELP ---  WINNT to Linux Access
Date: Wed, 25 Aug 1999 22:50:56 -0400
Reply-To: [EMAIL PROTECTED]

I run Windoze NT and Linux
i had to reformat my old drive in the process i lost
the program that let me access Linux ext2 partition
from within win NT.
I appears just like file manager and supported just
read only.
it was free available on the net about six months
ago...
i cannot find it now... nor do i remember the name


Please help

------------------------------

From: Mark Huffman <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,alt.os.linux.caldera,comp.os.linux,comp.os.linux.help,comp.os.linux.networking,comp.os.linux.questions
Subject: Re: usiing MS proxies server and linux
Date: Wed, 25 Aug 1999 23:12:00 -0400

> I am triin got get my linux box to go thru a MS proxies server, the HTTP
> goes thru fine on port 80 , but when I try to get smtp, pop, or nntp to go
> thru on thier respective ports , no go.....is this something to do with the
> winsocks? any help would be greatly appreciated..thanks larry

In order to use smtp and pop through MS proxy server you need the winsock
proxy client. Which, being a windows app, won't run on Linux.  We had a
similar problem at the office with an AS/400. Being that we already had a
dedicated Internet connection and a domain name, the solution was pretty
simple (though not free!)  We spent $425 and run our own windows-based
internal Internet mail server (SLMail from Seattle Labs).  Then you can use
your Linux mail client to check mail locally without going through the proxy.

Aside from running your own mail server, I can't think of any other way to do
it.

If anybody else can, I'd like to know too!


------------------------------

From: [EMAIL PROTECTED] (Niann Shiang)
Crossposted-To: comp.os.linux.network,comp.os.linux.setup
Subject: Network Printing ?
Date: Wed, 25 Aug 1999 23:57:49 -0400

I have successfully installed RH6.0 in Dell OptiPlex GX1 in my office
and network card works fine after following similar procedures in win95.
However, setup of network printing does not seem to be as
straightforward as for local printer (Have done it at home). Could
someone elaborate how to fill out the dialog box "Printer Server Name"
and "Print Queue Name" in analogy to win95 terminology ?  Any tricks ?
I already read both RH 6.0 installation and getting started guide none
of which seems to be helpful.     

------------------------------

From: David Taylor <[EMAIL PROTECTED]>
Crossposted-To: gnu.bash
Subject: Re: recursively replace carriage returns
Date: Thu, 26 Aug 1999 13:36:40 +1000

Esben Maal�e wrote:
> 
> >   for i in `find "$1" -type f`
> >   do
> >       tr '\015' '\012' < "$i" > "$i.clean"
> >       mv -f "$i.clean" "$i"
> >   done
> 
> Perhaps something like this would do the trick:
> 
>         for i in "$1"/* #where $1 is the directoryname
>         do
>                 if [ -f $1]; then
>                         DO YOUR STUFF :-)
>                 fi
>         done
> 
> As you can see from my other posting in this NG (shouldn't be that
> hard to find :-), I'm currently having problems tantamount to yours

Well your solution would only allow for spaces in $1 and not
for spaces in the subsequent files and directories that I'd
encounter recursively.

-- 
David

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to