Linux-Misc Digest #815, Volume #27                Wed, 9 May 01 03:13:02 EDT

Contents:
  GRUB: How to install to hard disk (without installing Linux) ? (Kenny McCormack)
  Re: How come... (Grant Edwards)
  Re: Network sniffer (Grant Edwards)
  Re: Network sniffer (Steven)
  Re: Linux Time problem? (Paul Kimoto)
  Viewing Win2k from Linux ("Scott Grant")
  Re: Netfilter, IPtables... what the heck is going on? (Dean Thompson)
  Re: Linux Time problem? ([EMAIL PROTECTED])
  Apple II ProDos filesystem:---Could it be accessed from Linux?? ("kellyboy")
  Re: Linux Time problem? (Dave Uhring)
  Re: GRUB: How to install to hard disk (without installing Linux) ? (Frank Ranner)
  Re: Linux Time problem? (Bill Unruh)
  Packet redirection question (Spiro Philopoulos)
  Re: Floppy disk setup to install custom MBR: etherboot + lilo (John in SD)
  BackSpace, Delete, Vim (I've read all the FAQ's) (Kevin)
  Re: Viewing Win2k from Linux ("Eric")

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

From: [EMAIL PROTECTED] (Kenny McCormack)
Crossposted-To: comp.os.linux.setup
Subject: GRUB: How to install to hard disk (without installing Linux) ?
Date: 8 May 2001 21:23:08 -0500
Reply-To: [EMAIL PROTECTED]

This is kind of O/T, but there has been discussion of GRUB here.

I have a machine with two versions of DOS (aka, Windows 98) installed (on
two separate partitions).  I have downloaded the GRUB floppy image (from
alpha.gnu.org) and it works flawlessly.  Using a Linux system, I have
mounted the floppy and edited menu.txt - so that I can now boot the floppy
and pick either (hd0,0) or (hd0,2).

So, then, naturally, I decided to try installing GRUB into the MBR of the
hard disk.  After booting the floppy, I hit c for a command line and tried:

        setup (hd0)

This seemed to work OK, but when I then boot the hard disk, it fails unless
the floppy is present - because GRUB is looking for /boot on the floppy.

Now, from what I can tell, GRUB, unlike LILO, doesn't fit entirely in the
MBR, and it looks for its stuff in a partition on the hard disk.  Which begs
the questions, "Which one?" and "How does it know where to look?"

And, to get to the real point, can I create a small ext2fs partition on the
disk, and put the stuff from the floppy there (doing all this from a Linux
boot/rescue floppy) - without installing Linux on the machine - and have
GRUB find the stuff there and work (w/o the floppy being present) ?

Will this all work?

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

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: How come...
Date: Wed, 09 May 2001 02:42:22 GMT

On 08 May 2001 10:55:04 -0400, Johan Kullstam <[EMAIL PROTECTED]> wrote:

>>>into the Black Sun and said: How come until today, Linux (or in
>>>general Unix) still does not have the "undelete" feature?
>> 
>> Historical reasons.  Unix was a multi-user system from the
>> very beginning, and storage space was very expensive back in
>> the early 70s.
>
>TOPS-20 was a multiuser system from the 70s.  it had undelete and kept
>a configurable number of back-up versions for you.

 1) I suspect that the original Unix systems were far more resource
    starved than were TOPS-20 systems.  

 2) There were always other "cooler" features to add.  ;)
 
>i liked the TOPS-20 system.  unix zealots will of course scoff.

Nah.  I never used TOPS systems, but from everything I've read
they were quite elegant.

-- 
Grant Edwards                   grante             Yow!  I joined scientology
                                  at               at a garage sale!!
                               visi.com            

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

From: [EMAIL PROTECTED] (Grant Edwards)
Crossposted-To: comp.security.firewalls,comp.os.linux.security,comp.os.linux.networking
Subject: Re: Network sniffer
Date: Wed, 09 May 2001 02:46:33 GMT

On Tue, 08 May 2001 20:13:15 GMT, Jonathan Kemp <[EMAIL PROTECTED]> wrote:

>I've heard about Sniffer Pro before...and I'm happy to get a second
>good opinion about it.  I think I'll give it a try.  Ethereal seems to
>retain the attention too...but I'll have to get myself a linux
>workstation, since all linux servers here runs without a GUI.

Ethereal runs under Win/NT, but I don't know about 2K or ME or
Whistler or the various other MS attempts at an OS).

-- 
Grant Edwards                   grante             Yow!  Is this an out-take
                                  at               from the "BRADY BUNCH"?
                               visi.com            

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

From: Steven <[EMAIL PROTECTED]>
Crossposted-To: comp.security.firewalls,comp.os.linux.security,comp.os.linux.networking
Subject: Re: Network sniffer
Reply-To: [EMAIL PROTECTED]
Date: Tue, 08 May 2001 22:55:45 -0400

On Tue, 08 May 2001 19:58:51 GMT, Christopher Jarosz
<[EMAIL PROTECTED]> wrote:

>Hi Gregory !!
>
>Why settle for second best.....Sniffer Pro from NAI is still the best as far as
>professional tools.....Shomitti is also excellent.  Just my opinion....of course, I do
>this for a living......
>
>chrisj
>

Sniffer Pro is the best that I have seen and used, but many times one
pays for extras that are not needed.  If you have the money, buy one
or two Sniffer Pros  ***AND*** several of the cheaper sniffers that
offer saving the file to a format supported by the SP's.

I use Ethereal at home and, so far, highly recommend it FOR HOME.



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

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Linux Time problem?
Date: 8 May 2001 23:30:39 -0400
Reply-To: [EMAIL PROTECTED]

[posted and e-mailed]

In article <[EMAIL PROTECTED]>, Dave LaPorte wrote:
> #date 0508200001 
> --> 05 = may, 08 = the 8th day, 20 = hh, 00 = mm, 01 = yy
> 
> after hitting enter as root, I can type #date <enter> and the correct
> date/time will be displayed, but here's the problem.
> 
>       As soon as the machine reboot's the time jumps like 20 - 25
> minutes ahead of what I originally set it prior to rebooting.? 

There are two clocks: the hardware clock, which you can set using
hwclock(8); and the system (software) clock, which you can set using
date(1).  The system clock is set from the hardware clock at boot time.

Apparently you are not resetting the hardware clock.  See the hwclock(8)
man page.

> The machine does reboot every day at 01:00:00
> hours every day.  

Why?!

-- 
Paul Kimoto
This message was originally posted on Usenet in plain text.  Any images, 
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.

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

From: "Scott Grant" <[EMAIL PROTECTED]>
Subject: Viewing Win2k from Linux
Date: Tue, 08 May 2001 20:50:17 -0700

In the past it was easy to read and write to Win98 from a Linux partition
on a dual boot machine.  One could mount the windows partition and access
it from Linux.  With win2k this seems to be much more difficult.  Any
simple methods to do this?  Apparently any attempt at writing to the
win2k file system is risky.  Any easy way to at least access the win2k
files?

                Scott Grant

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

From: Dean Thompson <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.networking,alt.linux.redhat,alt.linux,alt.os.linux,comp.os.linux.setup
Subject: Re: Netfilter, IPtables... what the heck is going on?
Date: Wed, 09 May 2001 13:58:59 +1000


Hi!,

[...]

> So -- My question is this:  How the heck are we supposed to know what to
> do with iptables?  The man page is almost useless here... it is simply
> too complex to contain in one man.
> 
> Also:  Can anyone tell me how to get my machine to masq without having a
> forward policy of ACCEPT?

To get masq'ing to work with iptables, try the commands:

# Unload the ipchains module.
/sbin/rmmod ipchains  ---> Sometimes needed because RH7.1 loads it

# Load the NAT module (this pulls in all the others).
modprobe iptable_nat

# In the NAT table (-t nat), Append a rule (-A) after routing
# (POSTROUTING) for all packets going out eth0 (-o eth0) which says to
# MASQUERADE the connection (-j MASQUERADE).
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

> Also:  What is the equivalent in IPTABLES of ipchains with a -y flag?

No idea here.
> 
> IS THERE ANYWHERE A PERSON CAN GO TO ON THE WEB, OR IN THE BOOKSTORE TO
> LEARN HOW TO USE THIS TOOL?

Yes, you can go to the following URLS:

Iptables and Masq'ing/NAT:
http://obrien.freeshell.org/files/howto/NAT-HOWTO.html

Iptables:
http://netfilter.samba.org/unreliable-guides/packet-filtering-HOWTO/packet-filtering-HOWTO.linuxdoc-9.html

See ya

Dean Thompson

-- 
+____________________________+____________________________________________+
| Dean Thompson              | E-mail  - [EMAIL PROTECTED] |
| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

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

From: [EMAIL PROTECTED]
Subject: Re: Linux Time problem?
Date: Wed, 09 May 2001 04:21:25 GMT

[EMAIL PROTECTED] (Dave LaPorte) writes:
>       Could someone help me wit the following.  I have a RedHat v6.0
> linux box set up as a proxy/webserver.  The box runs several scripts
> including one that publishes some reports for people off of cron's.
> The problem is I need to have the clock set correctly for cron to run
> the scripts at the correct times.  I have checked the bios system
> clock and made sure it's set for US/Central time ( not GMT ) and the
> correct date and time.

Well, then there's your problem.  Set the BIOS clock to UTC aka GMT,
and it should do the Right Thing.

> I have set the linux OS time via the 'time'
> utility within KDE, Also  I have tried setting the time via the 
> date command  with no success!
> 
> here's how I have been setting the time ( as root  always! ) using the
> date command. for ie: MAY 8 20:00:00 2000
> 
> #date 0508200001 
> --> 05 = may, 08 = the 8th day, 20 = hh, 00 = mm, 01 = yy
> 
> after hitting enter as root, I can type #date <enter> and the correct
> date/time will be displayed, but here's the problem.
> 
>       As soon as the machine reboot's the time jumps like 20 - 25
> minutes ahead of what I originally set it prior to rebooting.?  This
> is absolutely bizarre.  I have another Linux machine, exactly the same
> config, and I have set the date and time the same way and that machine
> holds the correct time.  I don't get it.  I have even tried shutting
> off all the crons and resetting the time, and emeaditly rebooting (
> thinking that the 5 or so cron entrys might be screwing up the
> machine, but the same old thing just keeps happening).  Also,  I doubt
> that the bios battery has gone bad on this machine, because the
> machine is on 24/7.  The machine does reboot every day at 01:00:00
> hours every day.  
> 
>       If anyone has any idea as to what I'm doing wrong please let
> me know I am totally frustrated.

Try the command "man hwclock"; that may prove fruitful...

Another thing you might try doing is to download ntp (or xntp); see
<http://www.ntp.org/> for info, and <http://rpmfind.net/> for links to
RPMs for it.  NTP syncs against outside time servers, 

Part of the shutdown process with NTP is to save the calculated clock
out to the BIOS/hardware clock, so that the time should be
appropriately kept.

Is there some really good reason to reboot daily?  That seems an odd
thing to do, too...
-- 
(reverse (concatenate 'string "gro.gultn@" "enworbbc"))
http://www.ntlug.org/~cbbrowne/resume.html
Why is  it that when  you're driving and  looking for an  address, you
turn down the volume on the radio?

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

From: "kellyboy" <kellyboy@nospanner>
Subject: Apple II ProDos filesystem:---Could it be accessed from Linux??
Date: Tue, 8 May 2001 23:34:18 -0500

I have a bunch of Apple II disks from long long time ago...

..Im wondering if there are ways to access ProDos disk from Linux...??

I"ve been searching on the Net about that but I get mixed info...

I still have old IIc+ in the attic. and I would like to access those
files...

any idea how I do that???

And what exactly is Apple II emulation and does it "really" work on Linux?

kellyboy

--




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

From: Dave Uhring <[EMAIL PROTECTED]>
Subject: Re: Linux Time problem?
Date: Tue, 8 May 2001 23:38:58 -0500

[EMAIL PROTECTED] wrote:
> 
> Is there some really good reason to reboot daily?  That seems an odd
> thing to do, too...

When you grow up with Windoze you learn to do strange things.


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

From: Frank Ranner <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: GRUB: How to install to hard disk (without installing Linux) ?
Date: Wed, 09 May 2001 14:37:50 +1000

Kenny McCormack wrote:
> 
> This is kind of O/T, but there has been discussion of GRUB here.
> 
> I have a machine with two versions of DOS (aka, Windows 98) installed (on
> two separate partitions).  I have downloaded the GRUB floppy image (from
> alpha.gnu.org) and it works flawlessly.  Using a Linux system, I have
> mounted the floppy and edited menu.txt - so that I can now boot the floppy
> and pick either (hd0,0) or (hd0,2).
> 
> So, then, naturally, I decided to try installing GRUB into the MBR of the
> hard disk.  After booting the floppy, I hit c for a command line and tried:
> 
>         setup (hd0)
> 
> This seemed to work OK, but when I then boot the hard disk, it fails unless
> the floppy is present - because GRUB is looking for /boot on the floppy.
> 
> Now, from what I can tell, GRUB, unlike LILO, doesn't fit entirely in the
> MBR, and it looks for its stuff in a partition on the hard disk.  Which begs
> the questions, "Which one?" and "How does it know where to look?"
> 
> And, to get to the real point, can I create a small ext2fs partition on the
> disk, and put the stuff from the floppy there (doing all this from a Linux
> boot/rescue floppy) - without installing Linux on the machine - and have
> GRUB find the stuff there and work (w/o the floppy being present) ?
> 
> Will this all work?
you can have grub on a fat disk, in \boot\grub
>From memory you point to it using
root (hd0,0)
setup (hd0)

Regards, Frank Ranner

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

From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: Linux Time problem?
Date: 9 May 2001 05:39:36 GMT

In <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Dave LaPorte) writes:

]       Could someone help me wit the following.  I have a RedHat v6.0
]linux box set up as a proxy/webserver.  The box runs several scripts
]including one that publishes some reports for people off of cron's.
]The problem is I need to have the clock set correctly for cron to run
]the scripts at the correct times.  I have checked the bios system
]clock and made sure it's set for US/Central time ( not GMT ) and the

That is a mistake. Linux is designed for the central clock to be on GMT.

Also use a service such as xntp or chrony to set your clock from the
net. chrony also allows you to have your hardware clock monitored wrt
the web and when you start it up again 
chronyc -r -s
it will use the correction to set the system time as close as possible
to the correct time, correcting for harware clock errors.

]       As soon as the machine reboot's the time jumps like 20 - 25
]minutes ahead of what I originally set it prior to rebooting.?  This

Probably some stupidity in /etc/adjtime
]that the bios battery has gone bad on this machine, because the
]machine is on 24/7.  The machine does reboot every day at 01:00:00
]hours every day.  

Why? This is silly. A Linux machine can be left running 24 hrs a day, 7
days a week 52 weeks a year... with no problems.


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

From: Spiro Philopoulos <[EMAIL PROTECTED]>
Subject: Packet redirection question
Date: Wed, 09 May 2001 00:48:58 -0500
Reply-To: [EMAIL PROTECTED]

I'm new to Linux and I'm trying to found out if there is a way in Linux
to have IP packets destined for a certain host be redirected by that
host to another IP address? I've looked around and read about things
like REDIRECT in ipchains e.g. but none does what I'm looking for. Any
info/help would be greatly appreciated. Thanks.


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

From: John in SD <[EMAIL PROTECTED]>
Subject: Re: Floppy disk setup to install custom MBR: etherboot + lilo
Reply-To: [EMAIL PROTECTED]
Date: Wed, 09 May 2001 06:00:53 GMT

On 08 May 2001 19:40:26 +1000, [EMAIL PROTECTED] wrote:

>Hi All
>
>I am trying to create a disk to automate a what at first seemed fairly
>simple task.
>
>I am trying to get a whole lot of machines to mount, via NFS, their
>root, and boot from that. I have managed to have success using
>etherboot with the image on a floppy. Now, I want to use an etherboot
>"boot rom" on my hard drive instead of on a floppy. No problem, go to
>www.rom-o-matic.net , and generate and download a lilo boot rom. Make
>a lilo.conf file with an "image=/boot/boot.lzrom", reboot, works fine.
>
>Now, the disk I am trying to create automatically boots up in these
>(very old) machines. It is a very simple disk, and all I want it to do
>is call lilo to install this boot rom in the MBR of my hard
>drive. These drives are all <200M. Lilo can't detect their settings
>(C/H/S), and so won't install a boot loader.

LILO has the "linear" option for just such a situation.  I am assuming that
the geometry of the disks is available at boot time on int 0x13 fn 8.

--John


> So, what OTHER ways are
>there of installing an MBR? I've tried dd'ing, "cat XX > /dev/hda",
>and nothing seems to work. Does anybody understand where I am coming
>from? I just want my etherboot rom in the MBR of my hard drive.
>
>I have tried "cat hdload.bin.pre ne.lzrom > /dev/hda", but even THAT
>doesn't work (hdload.bin.pre is the hard drive loader that comes with
>etherboot).
>
>If anyone can help me, please do!
>
>FU2NG
>
>Brett.


LILO version 21.7 (24-Feb-2001) source at
http://www.ibiblio.org/pub/Linux/system/boot/lilo
patches to -2 at ftp://brun.dyndns.org/pub/linux/lilo

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

Crossposted-To: comp.editors,alt.os.mandrake.misc
From: [EMAIL PROTECTED] (Kevin)
Reply-To: [EMAIL PROTECTED]
Subject: BackSpace, Delete, Vim (I've read all the FAQ's)
Date: Wed, 09 May 2001 05:56:17 GMT


I use a Solaris 2.8 Ultra 10 at work and a Linux 2.2.19 Pentium
at home.  I routinely run xterms on the local machine that's
logged in to the remote machine -- at any given time the machine
defined as "local" could be either, and the remote one would be
the other.  It's important if the backspace and delete keys
behave the same way on the Solaris and Linux machines regardless
of which one is local or remote.  Up through when I was running
Redhat 5.2 I never had to think about this, since everything
worked fine.  Then I upgraded to Mandrake 7.02 and Vim has never
been the same since.  On both machines the backspace and delete
keys work locally for all applications, including Vim.  On both
machines the backspace and delete keys are swapped in Vim when
running remotely, but only when running vim, gvim is fine.
Remote shells behave just fine as do other remote app's.

I got a lot in good information from these two documents
<http://www.ibb.net/~anne/keyboard.html>
<http://www.ibb.net/~anne/keyboard/keyboardprev.html>

Initial undesired behavior is that in remote Vim sessions the
backspace key deletes the character under the cursor, instead of
the character preceding the cursor, and the delete key deletes
the character preceding the cursor, instead of the character
under the cursor.

The Vim help files suggested adding ":fixdel" to my ~/.vimrc so
I did this on both machines.  This renders acceptable behavior
on the Solaris machine.  That is the local Solaris behavior and
remote Linux behavior are fine like this.  The Linux machine is
terrible like this.  The local Linux behavior has the backspace
and delete key affects swapped in Vim (again gvim is fine).  The
remote Solaris behavior is that neither the backspace nor delete
keys work, but ^H works alright.

Below the lines of "====" is some configuration information for
each machine when running locally and remotely.  One observation
I have is that editing the /etc/sysconfig/keyboard file changing
"BACKSPACE=Delete" to "BACKSPACE=BackSpace" has no effect.
Another observation I have is that the Linux local backspace key
sends ^?, the local stty erase character is set to ^H and yet
backspacing still works.  This seems odd to me.

Can anyone suggest a way to get uniform behavior on both
machines, whether operated remotely or locally?

Thanks very much for any aid....

===========================================================================

Linux local console & xterm
    infocmp | grep kbs          --> kbs=\177
    infocmp | grep kdch1        --> kdch1=\E[3~

Linux xterm with remote login (ssh) to Solaris machine
Linux local console & Linux xterm
    stty erase ^H

Linux local shell & vi
    backspace key ^?
          del key ^[[3~

Linux local X11
    physical "backspace" key generates keycode 22
    physical "delete" key generates keycode 107
    backspace key
        KeyPress event, serial 21, synthetic NO, window 0x4000001,
        root 0x26, subw 0x0, time 597234493, (25,74),
        root:(776,96), state 0x10, keycode 22 (keysym 0xff08, BackSpace),
        same_screen YES, XLookupString gives 1 characters:  "
    del key
        KeyPress event, serial 24, synthetic NO, window 0x4000001,
        root 0x26, subw 0x0, time 597197233, (90,114),
        root:(841,136), state 0x10, keycode 107 (keysym 0xffff, Delete),
        same_screen YES, XLookupString gives 1 characters:  ""

===========================================================================

Solaris local console & xterm
    infocmp | grep kbs          --> kbs=\b
    infocmp | grep kdch1        --> <nothing>

Solaris xterm with remote login (ssh) to Linux machine
Solaris local console & Linux xterm
    stty erase ^H

Solaris local shell & vi
    backspace key ^H
          del key ^?

Solaris local X11
    physical "backspace" key generates keycode 50
    physical "delete" key generates keycode 73
    backspace key
        KeyPress event, serial 23, synthetic NO, window 0xa400001,
        root 0x2a, subw 0x0, time 568685318, (116,26),
        root:(182,136), state 0x0, keycode 50 (keysym 0xff08, BackSpace),
        same_screen YES, XLookupString gives 1 characters:  "
    del key
        KeyPress event, serial 21, synthetic NO, window 0xa400001,
        root 0x2a, subw 0x0, time 568743838, (127,73),
        root:(215,205), state 0x0, keycode 73 (keysym 0xffff, Delete),
        same_screen YES, XLookupString gives 1 characters:  ""

===========================================================================

-- 
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be
affiliated.



-- 
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.

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

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: Viewing Win2k from Linux
Date: Wed, 9 May 2001 08:33:56 +0200

> In the past it was easy to read and write to Win98 from a Linux partition
> on a dual boot machine.  One could mount the windows partition and access
> it from Linux.  With win2k this seems to be much more difficult.  Any
> simple methods to do this?  Apparently any attempt at writing to the
> win2k file system is risky.  Any easy way to at least access the win2k
> files?

Reading them is no problem.
For writting, make a FAT partition for sharing files between both OS's.

Eric



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


** 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 by posting to comp.os.linux.misc.

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