Linux-Misc Digest #587, Volume #27               Thu, 12 Apr 01 09:13:02 EDT

Contents:
  binary file ("Chakravarthy Sannedhi")
  Re: binary file (Chris Coyle)
  Diskless boot from floppy help (Dan Smith)
  Re: binary file (Floyd Davidson)
  Re: Diskless boot from floppy help ("Michael Jakscht")
  Blank screen ("Michael Jakscht")
  compress "-f" does not work under REDHAT (Farid Hamjavar)
  cannot mount 3.5"cdrw ("Wong Ching Kuen Frederick")
  Re: subnet question (Aaron Brice)
  Re: how to dis-partition? ("ekkis")
  Re: [HELP] mount cdrom ("Eric")
  Re: Using Sed : need of little help (Ashwin R. Bharambe)
  Cann't change ownership to uid 888? (61.155.111.81 [[EMAIL PROTECTED]])
  Re: Clock skew on compiles.... (Fester)
  Re: Cann't change ownership to uid 888? ("Eric")
  Re: How to measure elapsed time? ("Peter T. Breuer")
  RPM error (Ron Nicholls)
  Re: RPM error ("Eric")
  Re: Cann't change ownership to uid 888? (Lack Mr G M)
  kppp + users (Jos van t Hoff)
  Re: Diskless boot from floppy help (Dan Smith)
  dual boot redhat and Windows 2000 Server ("Adam Stawski")
  Re: Diskless boot from floppy help ("Eric")
  Re: Diskless boot from floppy help ("Michael Jakscht")
  Re: binary file (Rod Smith)
  Re: Blank screen (Bart Friederichs)

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

From: "Chakravarthy Sannedhi" <[EMAIL PROTECTED]>
Subject: binary file
Date: Wed, 11 Apr 2001 23:17:16 -0500

How can I make the screen back to normal once I open a I binary file
accidentally. Is there is any solution(command) for this not just logging
out and logging in.

TIA
Chakravarthy Sannedhi



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

From: Chris Coyle <[EMAIL PROTECTED]>
Subject: Re: binary file
Date: Thu, 12 Apr 2001 00:21:01 -0400

Chakravarthy Sannedhi wrote:
> 
> How can I make the screen back to normal once I open a I binary file
> accidentally. Is there is any solution(command) for this not just logging
> out and logging in.
> 
> TIA
> Chakravarthy Sannedhi

Chakravarthy,
you could try:

stty sane

I think that's supposed to do it (see man stty),
but it may not always work.

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

From: Dan Smith <[EMAIL PROTECTED]>
Subject: Diskless boot from floppy help
Date: 11 Apr 2001 23:16:34 -0400


I have read the HOWTo on the subject, but I can't seem to get it to
work correctly.

I don't want to use lilo yet, unless I have to, since it seems more
complicated and I don't understand how it works.

I have compiled a small kernel with 'make zImage'.  I have copied it
to the floppy with 'dd if=kern of=/dev/fd0 bs=1k'.  When I try to boot
it, the kernel starts to 'load' but I get an error telling me that
something is in an unsupported compressed format.  What's the deal?

In reference to the lilo way: If I'm creating a filesystem, how do i
assure that the kernel and compressed filesystem are in the right
spot?  When I do the 'dd' command with the seek, how am I assured that
it goes right after the kernel?  The HOWTO has me create a bunch of
directories, etc, which I would think would get in the way.

Thanks!

--Dan

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

From: Floyd Davidson <[EMAIL PROTECTED]>
Subject: Re: binary file
Date: 11 Apr 2001 20:50:05 -0800

"Chakravarthy Sannedhi" <[EMAIL PROTECTED]> wrote:
>How can I make the screen back to normal once I open a I binary file
>accidentally. Is there is any solution(command) for this not just logging
>out and logging in.
>
>TIA
>Chakravarthy Sannedhi

There are several different things that can happen to a terminal
when a binary file is displayed, and some of them are a little
difficult to reset.  Here is an alias you can put into your
~/.bashrc file which will cure almost anything.

alias sane='echo -e "\\033c";tput is2;stty sane line 1 \
            rows $LINES columns $COLUMNS'

The 'echo -e "\\033c"' does a reset on any ansi/vt100 type of
terminal.  The 'tput is2' will look up the is2 (terminal
initialization command) from TERMINFO or TERMCAP, and issue the
correct escape sequence.  Then the 'sane' command will reset the
terminal to standard "sane" values, plus it resets the line
discipline and there rows and columns values.

I haven't found anything that won't correct.

-- 
Floyd L. Davidson         <http://www.ptialaska.net/~floyd>
Ukpeagvik (Barrow, Alaska)                 [EMAIL PROTECTED]

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

From: "Michael Jakscht" <[EMAIL PROTECTED]>
Subject: Re: Diskless boot from floppy help
Date: Thu, 12 Apr 2001 06:54:02 +0200


Hi Dan!

Try it instead of making a kernel with zImage with
bzImage.

Michael



"Dan Smith" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
>
> I have read the HOWTo on the subject, but I can't seem to get it to
> work correctly.
>
> I don't want to use lilo yet, unless I have to, since it seems more
> complicated and I don't understand how it works.
>
> I have compiled a small kernel with 'make zImage'.  I have copied it
> to the floppy with 'dd if=kern of=/dev/fd0 bs=1k'.  When I try to boot
> it, the kernel starts to 'load' but I get an error telling me that
> something is in an unsupported compressed format.  What's the deal?
>
> In reference to the lilo way: If I'm creating a filesystem, how do i
> assure that the kernel and compressed filesystem are in the right
> spot?  When I do the 'dd' command with the seek, how am I assured that
> it goes right after the kernel?  The HOWTO has me create a bunch of
> directories, etc, which I would think would get in the way.
>
> Thanks!
>
> --Dan







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

From: "Michael Jakscht" <[EMAIL PROTECTED]>
Subject: Blank screen
Date: Thu, 12 Apr 2001 06:58:09 +0200


Hi!

How can I disable that Linux (SuSE) blanks the
screen after a few minutes?
Have you got an idea?

Thanks,

Michael





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

From: [EMAIL PROTECTED] (Farid Hamjavar)
Crossposted-To: ,comp.os.linux.setup
Subject: compress "-f" does not work under REDHAT
Date: 11 Apr 2001 23:08:01 -0600


Greetings,

If a file has zero size (i.e.  touch filename),
I can use "-f" with compress and compress it under
any commercial unix and all Linux distros I have access to
a and tried so far -- BUT NOT Redhat (7.x , 2.2.17-14).


Unfortunately, for detailed reasons, I need to use compress
to compress a certain files that from time to time
are empty (zero size).  I downloaded source for ncompress-4.2.4
and was hoping that I could spot the location that needs to be modified
so it can behave "normally" like the rest.

Any clue on modifying that code to make it behave normally
is appreciated. Or other suggestions to go around this situation?


Thanks,
Farid


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

From: "Wong Ching Kuen Frederick" <[EMAIL PROTECTED]>
Subject: cannot mount 3.5"cdrw
Date: Thu, 12 Apr 2001 13:48:04 +0800

i cannot mount the cdrw, with "no medium found". but for 5.25", it's ok. i
can read both cd in windows. i use easy cd creator 4 to write. does anyone
have some suggestion for this?



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

From: Aaron Brice <[EMAIL PROTECTED]>
Subject: Re: subnet question
Date: Thu, 12 Apr 2001 06:23:42 GMT

Ah yes, the route command seems to work on Win98 also.  I should've checked for
that one before posting..  Ah well, thanks for the help!

Siddharth Vajirkar wrote:

> NT has the 'route' command which you can use from your cmd prompt.
> route print  # prints out the routing table
> route ? #prints help...
>
> I don't have a Win98 machine to check, but try it out on your box.
> So you can then make a specific route from your Win box to Lin box, similar
> to what you just did.
>
> Hope that helps,
> Sid
> "Aaron Brice" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Thanks, that's much faster.  However, I'm assuming my Win98 computer is
> still
> > communicating to the linux computer through the cable modem.  Is there a
> > route table or equivalent in Win98?
> >
> > [EMAIL PROTECTED] wrote:
> >
> > > Aaron Brice <[EMAIL PROTECTED]> wrote:
> > > > different subnet from my original Win98 computer.  So I'm guessing
> that
> > > > instead of communicating through the 100Mbps hub, the stuff is being
> > > > routed through the cable modem??
> > >
> > > Check your route table. If your default route is set to the
> > > cable modem, then your communication is routed to the cable modem
> > > and then to the other machine. Change the route table adding a new
> > > route to the other machine on your NIC.
> > >
> > > man route for information on the route table.
> > >
> > > Davide
> >


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

From: "ekkis" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: how to dis-partition?
Date: Wed, 11 Apr 2001 23:24:12 -0700

"ekkis" <[EMAIL PROTECTED]> wrote in message
news:v18z6.237$[EMAIL PROTECTED]...
>
> too cool.  thx!  ok... since I don't have enough room on / to move /usr's
> contents I'll have to shrink /usr and give the space to /.  the docs for
> parted don't specifically state it but I imagine a resize kesps data.  if
> this isn't the case, please someone scream!
>
> here's my layout:
>
> (parted) print
> Disk geometry for /dev/hda: 0.000-19623.515 megabytes
> Disk label type: msdos
> Minor    Start       End     Type      Filesystem  Flags
> 1          0.031     23.532  primary   ext2        boot
> 2         23.533  19618.439  extended
> 5         23.563   8958.120  logical   ext2
> 6       8958.151  17892.707  logical   ext2
> 7      17892.738  18151.567  logical   ext2
> 8      18151.598  18410.427  logical   ext2
> 9      18410.458  18669.287  logical   linux-swap
>
> Filesystem           1k-blocks      Used Available Use% Mounted on
> /dev/hda8               256667     83514    159901  35% /
> /dev/hda5              9005272   3280128   5267696  39% /usr
>
> and what I mean to do.
>
> parted# resize 5 23.563  4490.842
> parted# move 6 4490.873 13425.429
> parted# move 7 13425.460 13684.289
> parted# resize 8 13684.320 18410.427
>
> does the above seem reasonable?
>
> 1k thx - e

ok, the trouble with the above plan is that in order to use parted on a
partition that partition (I think) has to be umounted.  here's what I get:

# parted
(parted) resize 5 23.563  4490.842
Warning: Partition is being used.
Ignore Cancel ? Ignore
Error: Filesystem was not cleanly unmounted!  Run e2fsch first!
(parted)

but if I try to:

# umount /usr
umount: /usr: device is busy

which happens even when I:

# init s

shoot... how do I unmount /usr (/dev/hda5) and /var and the other
filesystems I need to unmount in order to rearrange their partiations???

1k tia - e



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

From: "Eric" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: [HELP] mount cdrom
Date: Thu, 12 Apr 2001 08:38:04 +0200

> is ln command the link command?

There are manpages for these questions.
`man ln` should tell you all you need to know on ln

> >
> > rm /dev/cdrom
> > ln -s /dev/hda /dev/cdrom

`ln -s` creates a symbolic link

Eric



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

From: [EMAIL PROTECTED] (Ashwin R. Bharambe)
Subject: Re: Using Sed : need of little help
Reply-To: [EMAIL PROTECTED]
Date: Thu, 12 Apr 2001 04:07:23 GMT

Quoth Cedric Chausson, on Wed, 11 Apr 2001 00:22:19 +0200 (allegedly):
> Hello all,
> 
> I want to use sed to replace a string of character in a file. Basically
> it works cause I can see the correct text on the terminal screen after
> launching the command but the original file is not impacted.
> 
> The command I am using is 
> 
> sed 's/http\:\/\/server.fr\/grumpf/http:\/\/server.fr\/grompf/g'
> fichier.htm
> 

Use perl.

perl -pi -e 's/http\:\/\/server.fr\/grumpf/http:\/\/server.fr\/grompf/g'
fichier.htm 

will do the job.

For details of why this works, consult the camel book.

Hth,
Ashwin.
--
Senior Undergraduate Student,                        <[EMAIL PROTECTED]>
Computer Science and Engg., IIT Bombay.    http://www.cse.iitb.ernet.in/~ashu

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

Subject: Cann't change ownership to uid 888?
From: 61.155.111.81 [[EMAIL PROTECTED]]
Date: Thu, 12 Apr 2001 07:21:18 GMT


Hi, everyone.
I've got a disgusting problem, help me.
Sometimes,when I untar some file and it tells me 
"cann't change ownership to uid888,grpid8911"
so,I type" who is 888" it tells me it's root. But I AM THE ROOT!!
Any one know why?please email me,I'll greatly appreciate your help!

==================================
Poster's IP address: 61.155.111.81
Posted via http://nodevice.com
Linux Programmer's Site

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

From: [EMAIL PROTECTED] (Fester)
Subject: Re: Clock skew on compiles....
Reply-To: [EMAIL PROTECTED]
Date: Thu, 12 Apr 2001 07:58:17 GMT

I saw Ian Northeast rant about the following:
>Bill Unruh wrote:
>> 
>> In <[EMAIL PROTECTED]> dave <[EMAIL PROTECTED]> writes:
>> 
>> >How do I fix this?
>> 
>> >make: *** Warning:  Clock skew detected.  Your build may be incomplete.
>> 
>> You changed your clock. the compiler found files which were altered in
>> the future ( Ie at a time later than the time at which the compiler was
>> running). This usually happens because of clock problems or changes.
>
>I have seen this when building in an NFS mounted filesystem, even though
>the client and server clocks are pretty closely synchronised. I've never
>seen it cause a problem though.
>

Yeah, I get this every time I build since the source is usually on an nfs 
partition that is off by about a minute or so from the computer doing the 
building. It has never caused any problems for me, so don't worry about 
it.

-- 
-- Fester

"Actually, I think I'll go with your multiple orgasms theory." - Tomo
=====================================================================



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

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: Cann't change ownership to uid 888?
Date: Thu, 12 Apr 2001 11:57:14 +0200

> I've got a disgusting problem, help me.
> Sometimes,when I untar some file and it tells me
> "cann't change ownership to uid888,grpid8911"
> so,I type" who is 888" it tells me it's root. But I AM THE ROOT!!

?
I never heard of that "who is" command.

Anyway, don't unpack it on a FAT FS.

Eric



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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: How to measure elapsed time?
Date: Thu, 12 Apr 2001 09:59:27 GMT

MH <[EMAIL PROTECTED]> wrote:
> What is the simplest method for measuring elapsed time?  For example, 
> starting a script or program, or executing a command, and measuring the 
> time it takes to complete?

time command

Peter

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

Date: Thu, 12 Apr 2001 20:25:58 +1000
From: Ron Nicholls <[EMAIL PROTECTED]>
Subject: RPM error

Attempted to install a RPM of opera
and got an error "uexpected query source"

-- 

-
-
- Regards RonN

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

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: RPM error
Date: Thu, 12 Apr 2001 13:01:58 +0200

> Attempted to install a RPM of opera
> and got an error "uexpected query source"
>

So?
You made a mistake.
What did you do?

Eric



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

From: [EMAIL PROTECTED] (Lack Mr G M)
Subject: Re: Cann't change ownership to uid 888?
Date: Thu, 12 Apr 2001 12:15:36 BST

In article <OHcB6.142768$[EMAIL PROTECTED]>, 61.155.111.81 [[EMAIL PROTECTED]] 
writes:
|> 
|> Hi, everyone.
|> I've got a disgusting problem, help me.
|> Sometimes,when I untar some file and it tells me 
|> "cann't change ownership to uid888,grpid8911"
|> so,I type" who is 888" it tells me it's root. But I AM THE ROOT!!

|> Any one know why?please email me,I'll greatly appreciate your help!

   If you are logged in as root (not a good idea in general) then
typing:

 who is 888

will tell you you are root.  "who is 888" is the equivalent to "who am
i".  "who" just acts in this way when it is passed two parameters -
*any* two parameters (RTFM).

   Now, as to *why* you can't change ownership, that is another matter -
but do you *want* the file ownership set to reflect something that makes
no sense on you system?

-- 
========= Gordon Lack =============== [EMAIL PROTECTED]  ============
This message *may* reflect my personal opinion.  It is *not* intended
to reflect those of my employer, or anyone else.

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

From: Jos van t Hoff <[EMAIL PROTECTED]>
Subject: kppp + users
Date: Thu, 12 Apr 2001 13:55:02 +0200

Hi,

I've been trying to give users (other than root) the right to use kppp.
I've created a group and changed the rights of kppp so users in that
group can use it and I've created a file /etc/kppp.allow and added the
users in that file, I even tried using sudo, but none has worked so far.
I keep getting the message
Xlib: connection to server refused
How can I give other users permission to use kppp?


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

From: Dan Smith <[EMAIL PROTECTED]>
Subject: Re: Diskless boot from floppy help
Date: 12 Apr 2001 06:48:10 -0400

That's the way I made the kernel.  I can verify this by saying that
the image was arch/i386/zImage (instead of bzImage).

Any other ideas?

--Dan

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

From: "Adam Stawski" <[EMAIL PROTECTED]>
Subject: dual boot redhat and Windows 2000 Server
Date: Thu, 12 Apr 2001 22:06:44 +1000

hi there,
    I am looking to dual boot linux redhat with Windows 2000 Server.
I have redhat already installed on the drive, and I need to created a new
FAT32 partition
on this drive so that the W2K boot CD can see this FAT partition to install
to.

Can  I split my /usr directory because it is around 10Gb?  Can I split this
partition then reformat
the unused portion to FAT??

Please help!

Thanks,  Adam.



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

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: Diskless boot from floppy help
Date: Thu, 12 Apr 2001 14:13:58 +0200

> That's the way I made the kernel.  I can verify this by saying that
> the image was arch/i386/zImage (instead of bzImage).
>
> Any other ideas?

No the same one.
What Michael probably meant was to try `make bzImage` instead.

Eric



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

From: "Michael Jakscht" <[EMAIL PROTECTED]>
Subject: Re: Diskless boot from floppy help
Date: Thu, 12 Apr 2001 14:25:28 +0200


Yes sorry, of course I meant "make bzImage",
maybe I didn't write it in the right way.

Michael


"Eric" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:9b4666$n5d$[EMAIL PROTECTED]...
> > That's the way I made the kernel.  I can verify this by saying that
> > the image was arch/i386/zImage (instead of bzImage).
> >
> > Any other ideas?
>
> No the same one.
> What Michael probably meant was to try `make bzImage` instead.
>
> Eric
>
>



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

From: [EMAIL PROTECTED] (Rod Smith)
Subject: Re: binary file
Date: Thu, 12 Apr 2001 12:40:52 -0000
Reply-To: [EMAIL PROTECTED]

[Posted and mailed]

In article <9b3a97$ot5$[EMAIL PROTECTED]>,
        "Chakravarthy Sannedhi" <[EMAIL PROTECTED]> writes:
> How can I make the screen back to normal once I open a I binary file
> accidentally. Is there is any solution(command) for this not just logging
> out and logging in.

Typing "reset" will usually work.

-- 
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux & multi-OS configuration

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

From: Bart Friederichs <[EMAIL PROTECTED]>
Subject: Re: Blank screen
Date: Thu, 12 Apr 2001 13:05:11 GMT

Michael Jakscht wrote:

> How can I disable that Linux (SuSE) blanks the
> screen after a few minutes?
> Have you got an idea?
setterm -blank 0

Bart
-- 
=======================================================================
The internet is a too slow way of doing things you'd never do without
it.
                                              Bart Friederichs, 1998
=========================================================================

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


** 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