Linux-Misc Digest #883, Volume #27               Thu, 17 May 01 08:13:01 EDT

Contents:
  Re: Interested listening to an interview with the creator of LINUX? (Thomas Corriher)
  [Q] Installing Linux on a Sun-Solaris box ("giuseppe")
  Re: OPENSSH    SFTP (Thomas Themel)
  Re: Star Office on Linux discussion? (Gerald Willmann)
  Re: Frustrated (Gerald Willmann)
  Re: Question about xinetd.conf ("tvn1981")
  Re: error msg when installing realplayer ("tvn1981")
  Re: System.map and multiple kernel versions. ("Wayne Osborn")
  Re: Need shell script help (Leo Liberti)
  Re: bANNER aDDS (Christian Capito)
  Re: Has anyone ever seen *disappearing* symlinks? (Christian Capito)
  Re: Root question (Christian Capito)
  r128_do_wait_for_idle failed! (Claus Atzenbeck)
  kmail crash in kde-2.1.1 ([EMAIL PROTECTED])
  Console WAV player wanted ("Kilian A. Foth")
  Re: Windows 2000 and Linux ("Martin Zirkel")
  Re: Has anyone ever seen *disappearing* symlinks? (Lack Mr G M)
  Re: A CPU cooler for Linux? ([EMAIL PROTECTED])
  Re: Losing free diskspace on nothing? (Frank de Bot)
  Re: RedHat7 "unable to handle kernel paging request" and other strange  errors - RAM 
problem? ("Gregor Kuhlmann")
  URGENT: Simple RPM problem! ("Dimitris Terzis")
  Re: RedHat7 "unable to handle kernel paging request" and other strange  errors - RAM 
problem? ("Gregor Kuhlmann")

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

From: [EMAIL PROTECTED] (Thomas Corriher)
Subject: Re: Interested listening to an interview with the creator of LINUX?
Reply-To: [EMAIL PROTECTED], abuse@[127.0.0.1]
Date: Thu, 17 May 2001 07:15:06 GMT

On Mon, 14 May 2001 13:38:19 +0100, Samantha Brown 
<[EMAIL PROTECTED]> wrote:

>For those interested in Linux - Silicon.com, the news site
>for IT and ebusiness professionals who interviewed Linus
>Torvalds exclusively, will be featuring full-length video
>interviews with the man himself on a microsite,
>'Linus Week',  (www.silicon.com/linusweek).

I went there.  First the site requires that you use Java, and
second, the site uses the Real Player plug-ins instead of
allowing the listener to use the Unix Real Player.  Maybe I
missed something, and maybe I'm wrong, but this looks pretty
dang stupid.  I don't think that many of us are going to
install Winders just to listen.

I do not go to web sites that try to force me to use Jave or
anything else.  I don't like stupid people and I don't like
bullies.

-- 
  From the desk of Thomas Corriher

  The real email address is:
  tcorriher at earthlink.
  net


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

From: "giuseppe" <[EMAIL PROTECTED]>
Subject: [Q] Installing Linux on a Sun-Solaris box
Date: Thu, 17 May 2001 07:30:41 GMT

I currently have Solaris 2.6 on a Sun Ultra sparc system.  I want to format
the disk and load Linux as the OS.
My only concern is an external drive that was added to the sun box, which I
don't neccessarily want to format.
The external drive is divided into two partitions and is used mostly as
backup storage.  No executables are on the external disk.
So my question is:
Would I still be able to access the external drive if I install Linux on the
system disk?




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

From: [EMAIL PROTECTED] (Thomas Themel)
Crossposted-To: at.linux,comp.os.linux.hardware,comp.os.linux.networking
Subject: Re: OPENSSH    SFTP
Reply-To: [EMAIL PROTECTED]
Date: Thu, 17 May 2001 09:39:52 +0200

Fellow human being Dominik Rudisch <[EMAIL PROTECTED]> wrote:
>Well, theres also SecureCRT, but thats commercial stuff. putty is
>Freeware AFAIK, at least for private use (dunno, but i guess you have
>to pay a license fee for commercial use...)

<URL:http://www.chiark.greenend.org.uk/~sgtatham/putty/licence.html>
| In particular, anybody (even companies) can use PuTTY without
| restriction (even for commercial purposes) and owe nothing to me or
| anybody else. Also, apart from having to maintain the copyright notice
| and the licence text in derivative products, anybody (even companies)
| can adapt the PuTTY source code into their own programs and products
| (even commercial products) and owe nothing to me or anybody else.

Btw, the real reason for this message is that you people should stop
including at.linux in your worldwide-xpost-to-every-linux-group-there-is
threads as this is a German language newsgroup in the Austrian hierarchy.

Plus, if you do at least set Followup-To: somewhere useful.

Thank you for your attention.

FUp2 comp.os.linux.misc,
-- 
Thomas Themel     | "Tut mir leid, ich kann das nicht mehr Kern nennen,
Hauptplatz 8/4    |  seit die Routine zum Malen einer gestreift gef�llten
A-9500 Villach    |  Viertel-Ellipse Teil davon ist."
+43 676 846623 13 | - Felix von Leitner zum NT-Kernel

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

From: Gerald Willmann <[EMAIL PROTECTED]>
Subject: Re: Star Office on Linux discussion?
Date: Thu, 17 May 2001 10:06:45 +0200

On Thu, 17 May 2001, Michael Perry wrote:

> > I have used Applixware for a long time, which I like but I don't want to
> > pay for an upgrade if Star Office is free, and Applix is a little too
> > weak on features.

I faced the same decision - with Applixware I paid 40 bucks or so for the
upgrade while for Staroffice I would have needed to spend the same amount
on additional RAM.
                       Gerald


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

From: Gerald Willmann <[EMAIL PROTECTED]>
Subject: Re: Frustrated
Date: Thu, 17 May 2001 10:10:08 +0200

On Thu, 17 May 2001, Michael Perry wrote:

> > Mathematica (try to name a free app that can do what MMA does.  Just
> > try.  No, I'm sorry, MuPad, Octave, etc. while very useful, don't even
> > come close.  Despite it's tremendous power, it is a little tricky to get
> > MMA running sometimes on Linux, but the program itself is very mature.)

so what prevents you from buying and running Mathematica under Linux?
That's what I'm doing here at this very moment.
                                                   Gerald


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

From: "tvn1981" <[EMAIL PROTECTED]>
Subject: Re: Question about xinetd.conf
Date: Thu, 17 May 2001 04:08:22 -0400

Hi, I have a question about stopping auto start service ...
which one are ESSENTIAL for the system to boot - because I see really
weird looking one and I am afraid that if I disable them, something wrong
might happen.  

thanks 


In article <[EMAIL PROTECTED]>, "Christian Rose"
<[EMAIL PROTECTED]> wrote:

> Chakravarthy K Sannedhi wrote:
>> This is the first time I am using Red Hat 7.0. I know how the services
>> are started  and stopped that are controlled by inetd with Red Hat 6.2.
>> In that just we need to comment, uncomment and restart the inetd
>> service to make the changes to work. But I want to know how these
>> things are done under the new version. Let us suppose how can I disable
>> finger service running on my Red Hat 7.0 box.
> 
> As previously, you can use the simple "/usr/sbin/ntsysv" program to
> select which services you want started at startup and enabled. After
> that, you only have to "/etc/rc.d/init.d/xinetd restart" to restart
> xinetd and apply the changes.
> 
> Alternatively, if you really like digging in files yourself,
> /etc/xinetd.d/ is the directory you should look in. With xinetd, every
> installed service has its own file in this directory. Find the "finger"
> file and change "disable = no" to "disable = yes" in it. Then restart
> xinetd with "/etc/rc.d/init.d/xinetd restart".
> 
> 
> Christian

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

From: "tvn1981" <[EMAIL PROTECTED]>
Subject: Re: error msg when installing realplayer
Date: Thu, 17 May 2001 04:15:50 -0400

Is there a standard setting on these color because on my rh , red is dead
link, green is executable file , blue is dir .. etc 


In article <[EMAIL PROTECTED]>, "Professor J
Frink" <[EMAIL PROTECTED]> wrote:


> 
> The program should now run. If you have colour set on your ls
> executables usually show up as a red colour.
> 
> Frink

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

From: "Wayne Osborn" <[EMAIL PROTECTED]>
Subject: Re: System.map and multiple kernel versions.
Date: Thu, 17 May 2001 16:53:10 +0800

In article <[EMAIL PROTECTED]>, "Mike Castle"
<[EMAIL PROTECTED]> wrote:

> In article <[EMAIL PROTECTED]>, Wayne Osborn
> <[EMAIL PROTECTED]> wrote:
>>Just curious as to the requirement for /boot/system.map when you have
>>multiple kernel versions setup in lilo.
> 
> I keep mine in /lib/modules/`uname -r`/System.map
> 
> mrc
> 
Thanks Mike,

My whole confusion is this: I can theoretically have 2.2.16 and 2.4.4
kernels in /boot and with lilo select either at boot time. What do I do
with the System.map files for both these kernels?  

Thanks for your help.

-- 
  Wayne A. Osborn, SCADA Engineer.[dnar AT iinet DOT net DOT au]
  Registered Linux User #212818.  [2.2.16-22-Win4Lin-686] [i686]
  4:50pm  up 2 days,  4:46,  5 users,  load average: 4.03, 4.15, 4.20
  ...In the long run, every program becomes rococco, and then rubble.
                -- Alan Perlis

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

From: Leo Liberti <[EMAIL PROTECTED]>
Subject: Re: Need shell script help
Date: Thu, 17 May 2001 10:33:14 +0000



On Wed, 16 May 2001, Barry Treahy, Jr. wrote:

> Among other problems, I have these two.  If I define the shell at the
> top of the script using #!/bin/bash -x I get these errors when
> attempting to run the script:
> 
> sh: -^M: bad option

I cannot reproduce this. My bash (v. 2.03.0(1)) works perfectly with scripts
that start with #!/bin/sh

> sharks:/usr/local/sbin# ./ping-monitor
> '/ping-monitor: syntax error near unexpected token `pinghost()
> '/ping-monitor: ./ping-monitor: line 17: `function pinghost()

I can't reproduce this either. I cut your code snippet and run it with no
problem.

However, I can offer one possible solution, suggested by that strange ^M
character in the sh: bad option error.

The problem might be given by the fact that SAMAG might have posted the
scripts from a Windows-based ftp client forgetting to set "ascii transfer
mode". That means that the scripts you're trying to get bash to run has each
line ending with a ^M, and bash doesn't like this. Try running the script
through dos2unix and see if that solves the problem. 

Leo

PS Here follows the script as taken from my (working) installation.

========


#!/bin/sh
#
# Name:         monitor
# Author:       Leo Liberti
# Purpose:      To monitor activity on another computer and if
#               it crashes, to take its place
# Source:       bash
# License:      GPL
# History:      000821  work started
#

# USER DEFINABLE VARS
# install directory of monitor
BINDIR=/usr/local/lib/monitor/bin
# logfile directory
LOGDIR=/usr/local/lib/monitor/log
# this controls whether monitor exits after
# a ping fails, or reenters main loop
EXITAFTERFAILURE=yes
# interval in seconds between pings
PINGINTERVAL=30m
# END OF USER DEFINABLE VARS

################# functions #################

function pinghost() {
  ping -c 1 $1 > /dev/null 2>&1
}

################### main() ##################

# check cmd line
if [ "$1" == "" ]; then
        echo "$0: error: syntax: $0 <hostname|IPaddr> [yes|no]"
        exit 1
fi
HOST=$1

if [ "$2" != "" ]; then
        EXITAFTERFAILURE=$2     
fi

# main loop
while true 
do 
        # ping loop
        while pinghost $HOST
        do    
          # dump mark to log file
          echo "monitor: $HOST: alive at `date "+%y%m%d%H%M%S"`" >> \
                $LOGDIR/monitor-$HOST
          sleep $PINGINTERVAL  
        done

        # if we're here it means that host has not responded to ping!
        # take action
        echo "monitor: $HOST: NOT RESPONDING at `date "+%y%m%d%H%M%S"`" >> \
                $LOGDIR/monitor-$HOST
        # execute appropriate action script
        if [ -x $BINDIR/$HOST-noping ]; then
          echo "monitor: $HOST: spawning script $HOST-noping" >> \
                $LOGDIR/monitor-$HOST
          $BINDIR/$HOST-noping &
        fi
        if [ EXITAFTERFAILURE==yes ]; then
          echo "monitor: $HOST: exiting monitor"
          exit 2
        else
          echo "monitor: $HOST: continuing the monitoring"
        fi
done

exit 0


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

From: Christian Capito <[EMAIL PROTECTED]>
Subject: Re: bANNER aDDS
Date: Thu, 17 May 2001 11:03:56 +0200

Hi Earl,

on Thursday 17 May 2001 07:42, Earl Basham quoth:

> i am using bannerfilter for squid which works great but does any one know

Are you using junkbuster (www.junkbuster.com)? Its blockfile is updated on 
a weekly basis.

Chris

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

From: Christian Capito <[EMAIL PROTECTED]>
Subject: Re: Has anyone ever seen *disappearing* symlinks?
Date: Thu, 17 May 2001 11:10:35 +0200

on Wednesday 16 May 2001 17:33, Vilmos Soti quoth:

> Hmmm. Maybe restoring an old backup? Or a script recreates the symlinks?
> 

BACKUP!!! was the first thing I screamed when I found out what was 
happening. but that's not a solution.
Our admin has got tripwire looking over the thing now, but that's just 
observing the symptoms.

Point is: since when do symlinks disappear and old directories reappear?
This is NOT supposed to happen. I'm in real luck that it's not happening on 
our productive web server...

I would almost consider backing up, wiping the partition, reformatting it 
with reiserfs and restoring everything.
If the phenomena continues, I'll consult my voodoo doll }-))

Chris

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

From: Christian Capito <[EMAIL PROTECTED]>
Subject: Re: Root question
Date: Thu, 17 May 2001 11:16:25 +0200

on Thursday 17 May 2001 05:33, Spiro Philopoulos quoth:

> install -m 444 libnistnet.a /usr/local/lib
> install: cannot create regular file `/usr/local/lib/libnistnet.a':

I think that the problem lies in "-m 444". This means that all can read, 
but nobody can write it. And if even the root can't write it, well then 
can't create it either ;-)

chris@delila:~ > touch libnistnet.a
chris@delila:~ > chmod 0444 libnistnet.a
chris@delila:~ > ls -al libnistnet.a
-r--r--r--   1 chris    users           0 Mai 17 12:12 libnistnet.a
chris@delila:~ >


cheers 

chris

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

From: Claus Atzenbeck <[EMAIL PROTECTED]>
Subject: r128_do_wait_for_idle failed!
Date: Thu, 17 May 2001 12:14:54 +0200

I have Mandrake 8.0. /var/log/messages shows the following message several 
times:

May 17 09:40:13 thor kernel: [drm:r128_do_wait_for_idle] *ERROR* 
r128_do_wait_for_idle failed!

What is going wrong? What am I supposed to do?
Claus

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

From: [EMAIL PROTECTED]
Subject: kmail crash in kde-2.1.1
Crossposted-To: comp.os.linux.setup
Date: Thu, 17 May 2001 10:23:44 GMT

Greetings!

I went through blood, sweat and tears to get KDE-2.1.1.1 installed
finally crowned with qualified success last night.

Doing so required 'force' and 'nodeps' all applied in the 'right' order,
none of it documented. ('--test' is your friend though!)

One main reason for all of this was to get the newest version of kmail
going. Now I find it crashes immediately after starting!

I'm thinking what I have to do is take the koffice rpm and 'force' and
'nodeps' the darned thing into place. 

It feels risky. 

Any insight or advice. Is there _any_ installation documentation anywhere
on this wide virtual planet?

Please help if you've got a clue to spare, thanks!

Got some other problems with KDE-2 but they're rather minor aesthetic
issues (e.g, no pictures on some of the icons on the little panel bar on
the bottom of the screen - figure I've got to edit some config files in
the bye and bye).

F. 

========================================================
     Felmon John Davis          
     Union College /  Schenectady, NY
     os/2 - ma kauft koi katz em sack
========================================================

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

From: "Kilian A. Foth" <[EMAIL PROTECTED]>
Subject: Console WAV player wanted
Date: 17 May 2001 10:28:49 GMT

Is there, or failing that, how do I write a player that can

 - run without X
 - play WAVs
 - display the time in the file correctly
 - seek forward and backward interactively?
      
If I end up doing it myself, I would use ncurses for interactivity,
libsndfile for WAV decoding and... what lib for sound playback?

-- 
These modern kids don't know the simple joy of saving 
four bytes of page-0 memory on a 6502 box.

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

From: "Martin Zirkel" <[EMAIL PROTECTED]>
Subject: Re: Windows 2000 and Linux
Date: Thu, 17 May 2001 12:36:09 +0200

Hi,

that is quit simple, you only have to share the modem connection.
Therefore you have only to set the ip-address of machine A
to 192.176.0.1 and make the modem device sharable.
To enable Internet Connection Sharing on a network connection:

  1.. In Control Panel, double-click Network and Dial-Up Connections.
  2.. Right-click the connection you want to share, and then click
Properties.
  3.. On the Sharing tab, click to select the Enable Internet Connection
Sharing for this connection check box.
  4.. If the connection you are sharing is a Dial-up connection and you want
the connection to dial automatically when another computer on your home
network attempts to use external resources, click to select the "Enable
on-demand dialing" check box.
After that, you have to set the on machine B the gateway to
192.176.0.1
thats all.

Martin
I never have read so many stupid answers  !!!!!!!!!!!!!!!!!!!!!!

"mark" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:yglI6.8620$[EMAIL PROTECTED]...
> Hi all,
>
> I have two machines at home, machine A is running windows2000 and is
> connected to the internet. machine B is running redhat Linux 7.1. what i
> want to do is connect the two machines together, and I would also like to
> connect machine B to the internet as well. how should i go about doing
this
> ?
>
> thanx a lot
> mark
>
>



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

From: [EMAIL PROTECTED] (Lack Mr G M)
Subject: Re: Has anyone ever seen *disappearing* symlinks?
Date: Thu, 17 May 2001 11:46:21 BST

In article <[EMAIL PROTECTED]>, Christian Capito 
<[EMAIL PROTECTED]> writes:
|> 
|> Point is: since when do symlinks disappear and old directories reappear?

   Snapshots?

|> This is NOT supposed to happen.

   True.  What filesystem is on the disk.  Does the system report any
hardwware errors for this disk?

|> If the phenomena continues, I'll consult my voodoo doll }-))

   Perhaps something is resetting the system clock backwards?  (:-)).


--
========= 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: [EMAIL PROTECTED]
Subject: Re: A CPU cooler for Linux?
Date: 17 May 2001 19:05:35 +0800

>>>>> "Dave" == Dave Mundt <[EMAIL PROTECTED]> writes:

    Dave>       Hum...It appears that the software works by either
    Dave> halting the CPU, or, throttling it back so it runs slower.
    Dave> Linux does neither of these things, AFAIK...so since the CPU
    Dave> is running all the time, and, at full speed, of COURSE it
    Dave> will be a bit warmer.

Well?  What do  you mean by "at full speed"?  Do  you mean the Windows
CPU cooler program could reduce the clock rate of the CPU?

When the Linux kernel scheduler  has nothing to do (e.g. all processes
are sleeping or  waiting for I/O), it will HALT  the CPU.  Many people
had the experience  that their Pentium systems had  cooler CPU's under
light load when in Linux than when in Windows 95.

Nowadays, with  more advanced power  management, maybe the  CPU cooler
program in  Windows is  doing more than  just HALTing.  Linux  has APM
support,  too.  If  enabled, you  could  "cat /proc/apm"  to find  out
something.



-- 
Lee Sau Dan                     ���u��(Big5)                    ~{@nJX6X~}(HZ) 
.----------------------------------------------------------------------------.
| e-mail: [EMAIL PROTECTED]                     http://www.csis.hku.hk/~sdlee |
`----------------------------------------------------------------------------'

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

From: Frank de Bot <[EMAIL PROTECTED]>
Subject: Re: Losing free diskspace on nothing?
Date: Thu, 17 May 2001 11:41:43 GMT

Dances With Crows wrote:

> On Wed, 16 May 2001 21:51:00 GMT, Frank de Bot staggered into the Black
> Sun and said:
> >On my linux server I'm running diablo. I feed it with pullnews. At the
> >beginning of this day I've freed up to 600MB of diskspace. Then I started
> >to feed diablo and after a while ALL my free space was gone! diablo had
> >only used 50/60 MB on articles. With du -h --max-depth=1 I couldn't
> >locate any directories that were filling up... Does anyone how this is
> >possible? And how can I get my free space back?
> 
> Slack space and/or inodes.  If you're running a news swerver, or indeed
> any application that creates thousands of small files, you can run into
> these problems.  Basically, since each file occupies at least 1 disk
> block even if it contains only 1 byte, each file has a minimum size of
> 4K.  (ext2fs defaults to 4K blocks unless you have a really huge
> partition, or you tell it otherwise.)  If you have a 400,000 4K-block
> filesystem, and 399,000 1K files, you will have 1,301,000 K free on disk
> theoretically, but only 1,000K free really.

Diablo put's all articles in big files. I couldn't locate any more than 75 
files which contains some what like 60,000 articles in the spool directory.
This really can't be the problem...

> 
> Inodes are not usually a problem, but the number of inodes is set at
> filesystem creation time.  This number defaults to more than most people
> would ever need, but if you are not most people, you could run out of
> inodes if you have lots and lots of files.
> 
> If you are running into either of these problems, I encourage you to
> take a look at ReiserFS.  It was designed for operating on filesystems
> with lots of small files.  Its "tail packing" saves lots of slack space,
> and it doesn't have those inode problems (AFAIK!  Someone please squawk
> if I'm wrong here), plus you get journaling for free....
> 
> >(Ps. I've posted the same question in several places, since I didn't knew
> >exactly where I had to come with the problem...)
> 
> When you post to several places, please cross-post instead of
> multiposting, and keep the number of groups you cross-post to at or
> below 4.  Cross-posting saves bandwidth and annoys fewer people.
> 

I didn't mention newsgroups... Have you seen this message in any other 
newsgroup? :-)

When I restart my PC I've got all my freespace back. I forget to say this..




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

From: "Gregor Kuhlmann" <[EMAIL PROTECTED]>
Subject: Re: RedHat7 "unable to handle kernel paging request" and other strange  
errors - RAM problem?
Date: Thu, 17 May 2001 14:04:38 +0200

Hi,

thanks for your reply.

I am currently trying more conservative memory timing settings, perhaps a
BIOS update might also help.

I already installed the latest RedHat released kernel and modules
(2.2.19-7.0.1).



- Gregor

"Tim" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
> Your problem could be RAM based, try running a memory test program.
> However I have had similar problems which were caused by a kernel bug.
> Upgrading to a more recent kernel eliminated the errors.
>
> Tim
>
> Gregor Kuhlmann wrote:
> >
> > Hi,
> >
> > I am running a server on a RedHat 7 box with a Pentium-III @ 800 MHz on
Via
> > Apollo Pro chipset (motherboard type unknown since I have no physical
access
> > to the machine). SCSI subsystem is an Adaptec AIC 7892 (U2W-LVD?), NIC
is a
> > LiteON LNE100TX.
> >
> > Since installing the machine about 3 weeks ago I experienced regular
errors
> > and lockups, including - but not limited to - the following:
> >
> > * file names changing single characters (e.g. "libcrypt.so" was suddenly
> > named "libtrypt.so")
> > * "unable to handle kernel paging request" errors, each time from
different
> > processed and virtual addresses
> > * no network transfer but machine still up, i.e. local console login
> > possible and all necessary processes running, NIC properly configured
> > * programs (both system programs and "homebrewn" ones) cause unexpected
> > "segmentation faults" (but work fine when started a couple of minutes
later
> > with the same parameters/input files)
> >
> > I suspect a problem with the system RAM (perhaps also chipset related)
> > and/or SCSI termination.
> >
> > Any help would be very much appreciated!
> >
> > - Gregor



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

From: "Dimitris Terzis" <[EMAIL PROTECTED]>
Subject: URGENT: Simple RPM problem!
Date: Thu, 17 May 2001 13:05:41 +0100
Reply-To: "Dimitris Terzis" <[EMAIL PROTECTED]>

Hi folks...

(I have posted this in couple of the other Linux newsgroups and got no
answer, hope someone can give me a solution because I 've spent endless
hours on it, can't figure out how to do it and I have a server which I can't
use until it's done)

So, what happens is that I want to update a script in a remote server which
only allows software uploading via RPM. I try to create that RPM on a
simiraly configured Linux box, 2.2.14 Kernel in both, with RPM 3.0.2 (and
now with 3.0.5, same problem). The only thing I want this RPM to do is copy
a single file in its proper location.

So, I create a very simple spec file, update.spec, like this:

=======================================================================
Summary: Blah blah
Name: update
Version: 1.0
Release: 0
Copyright: GPL
Group: System Environment/Base
Source: script.tar.gz
# Patch: null.patch (nothing to patch anyway!)
BuildRoot: /home/rpm/SOURCES

%description
More blah blah

%prep

%setup

#%patch

%build

%install
cp /SOURCES/script <destination_dir>

%files
/SOURCES/script

%defattr(755,root,root)

%doc

%changelog
=======================================================================

Notice that, because I don't have root access, I use my own path for sources
etc., instead of the default
/usr/src/redhat. So, the command I invoke is
          rpm --define '_topdir /home/rpm' --define
'_tmppath/home/rpm/tmp' -ba update.spec

Now, here's what I get back:

=======================================================================
Executing: %prep
+ umask 022
+ cd /home/rpm/BUILD
+ cd /home/rpm/BUILD
+ rm -rf update-1.0   <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Spurious
+ /bin/gzip -dc /home/rpm/SOURCES/script.tar.gz
+ tar -xvvf -
-rw-r--r-- dimitris/dimitris   10240 2001-05-16 19:07 script
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd update-1.0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ERROR
/home/rpm/tmp/rpm-tmp.39233: update-1.0: No such file or directory
Bad exit status from /home/rpm/tmp/rpm-tmp.39233 (%prep)
=======================================================================

Obviously, the error occurs because of the failed "cd", but since the rm -rf
command happens as a default action, I can't override it. Besides, not
exactly being experienced with RPMs, I 'm almost certain there are other
problems with my oversimplistic spec file.

Could someone then provide a better version that compiles and works (i.e.,
copies the script to the desired location, after a "rpm -iVh")?

Many thanks,

Dimitris




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

From: "Gregor Kuhlmann" <[EMAIL PROTECTED]>
Subject: Re: RedHat7 "unable to handle kernel paging request" and other strange  
errors - RAM problem?
Date: Thu, 17 May 2001 14:08:18 +0200

Hi,

> The rest sounds a bit like bad RAM, try compiling a kernel,
> it shouldn't stop with the message: gcc caught fatal signal 11.

Good idea, I will try this...

> Did you check the various file in /var/log for some more hints?

the only error messages I got were some "unable to handle kernel paging
request" and "failed to read past end of device" errors. In most cases, the
machine just rebooted by itstel or simply locked up.

- Gregor




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


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