Linux-Misc Digest #386, Volume #26               Sat, 25 Nov 00 22:13:01 EST

Contents:
  none (nitin sharma)
  Re: another bash scripting question (Floyd Davidson)
  Re: shutdown vs halt (Floyd Davidson)
  Problems mounting mixed mode CDs (Wolfgang Fritz)
  Re: ncpfs is obsolete (w.r.t. Novell 5).  Is there anything to replace it? ("John D. 
Peedle")
  Re: Where can I get a pre-built POSE for Linux ? (Arctic Storm)
  Re: bash scripting question (Manfred Bartz)
  Big boot / superblock disk problem ... ("Emmanuel Beranger")
  Re: Configuring Linux for ADSL (Sympatico) (Glitch)
  Re: another bash scripting question (Manfred Bartz)
  Re: "J" bug in ghostscript (Gary Krupa)
  Apache problem ([EMAIL PROTECTED])
  Re: Where can I get a pre-built POSE for Linux ? (Kelly Price)
  Grub set up? ("Philo")
  Re: Graphical Terminal for Linux? (Robert Davis)
  Re: Linux terminal problems with SCO (Olaf Zaplinski)

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

Date: 25 Nov 2000 19:12:44 +0000
From: nitin sharma <[EMAIL PROTECTED]>
Subject: none
Crossposted-To: 
comp.os.linux.powerpc,comp.os.linux.development.system,de.comp.os.unix.linux.misc,no.it.os.unix.linux.diverse,uk.comp.os.linux

i am extremely sorry for reposting the same querry on the forum. this is because i am 
unable to get the newsgroup site on my network. so kindly also copy the response to my 
mail account as in the abouve situation this is the only way the requested information 
can reach me. kindly bear with me.
my querry was:
i want to install the flavours of linux on my system.kindly specify the files i should 
download from the respective sights.

linuxppc from http://download.sourceforge.net/mirrors/linuxppc/

yellowdoglinux from 
ftp://ftp.yellowdoglinux.com/pub/yellowdoglinux

debianlinux from 

http://www.debian.org/

how to install the operating system from the files downloaded from the sites.



Chequemail.com - a free web based e-mail service that also pays!!!
http://www.chequemail.com

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

From: Floyd Davidson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.admin,comp.os.linux.help,comp.os.linux.questions
Subject: Re: another bash scripting question
Date: 25 Nov 2000 10:00:03 -0900

[EMAIL PROTECTED] wrote:
>hi
>
>here's a simple script to help me identify all the files with
>size=0bytes in the current directory:
>
>for file in `ls -1`;
>  do
>    if [ ! -s $file ];
>       then
>               ls -l $file;
>    fi
>  done
>
>this script fails for filenames that contain multiple words, eg. a
>filename like "my file.txt" or my\ file.txt.
>
>how can i fix this?
>thanks
>ali

Use the "find" command to locate files with 0 size, and use the
-exec option to invoke "ls -l":

  find . -size 0 -maxdepth 1 -exec ls -l '{}' \;

There are no doubt some pretty easy ways to feed the output of
"ls -l" to awk and accomplish the same thing.  Perl would also
be easy...

Perhaps worth noting is that "find" can also select files that
are greater than or smaller than a given size.  Read the "find"
man page for more ideas!

-- 
Floyd L. Davidson                          [EMAIL PROTECTED]
Ukpeagvik (Barrow, Alaska)

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

From: Floyd Davidson <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake,alt.os.linux
Subject: Re: shutdown vs halt
Date: 25 Nov 2000 10:19:21 -0900

Dan Amborn <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] ( Black Dragon ) wrote:
>><[EMAIL PROTECTED]> `unix nut' said:
>>
>>: Another way to shutdown is to set to run level 0.  login as
>>: root and type "init 0" this will cleanly and instantly shut
>>: system down.
>>
>>
>>This is probably over-kill but it's become a habit. I always
>>take the machine down to run level 1 (single user), sync the
>>file system, and then issue the halt command. On the rare
>>occasions that I need to shut it down that is. :-)
>
>What exactly is the -t switch good for anyway?

>From the man page for shutdown:

    All processes are first notified that the system is going
    down by the signal SIGTERM.  This gives programs like vi(1)
    the time to save the file being edited, mail and news
    processing programs a chance to exit cleanly, etc.

The -t option allows adjustment of the time between when SIGTERM
is sent and when the next runlevel is actually invoked.  Unless
your system is running a process that takes significant time to
properly terminate, there seems to be no benefit to using the -t
option.

>I use the command
>
>shutdown -r +2 now 

The "+2" and the "now" options are conflicting.  Without trying
it or looking at the source code it's hard to say which is
used, but probably the last one on the command line.

>and as far as I can tell its no different than
>
>shutdown -r -t2 +2 now

The -t option specifies seconds, hence it would be hard to
notice the difference between this and the above command.

>I haven't played much with the shutdown command until recently
>so I am still learning its proper use.

Reading the man pages is more practical than actually invoking
shutdown!

-- 
Floyd L. Davidson                          [EMAIL PROTECTED]
Ukpeagvik (Barrow, Alaska)

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

From: Wolfgang Fritz <[EMAIL PROTECTED]>
Subject: Problems mounting mixed mode CDs
Date: Sat, 25 Nov 2000 21:28:56 +0100

Hi,

trying to "reduce" some old LPs to CD format, I ran into a problem that
seems to be so trivial that I couldn't find the answer on the net :-) I
recorded the LP to .wav files (one for each track), scanned the covers
and reduced them to CD size with GIMP. Because the audio data of an LP
usually does not exceed about 450M, I decided to use the remaining space
to burn the GIMP files of the cover to the CD also.

First attempt:

ISO-Image is track 1, audio tracks are tracks 2 and up.
Result: I can mount the ISO image, but the CD player tries to play track
1 as audio data, which gives some minutes of silence until the first
audio track starts. I can skip the data track, but I'd like it better if
the CD would start playing immediately after I put it into the CD
player. So I tried 

Second attempt:

Burned the iso image as the last track of the CD after the audio tracks.
Result: CD starts playing immediately, but I could not find a way to
mount the data track.
cdrecord -toc gives
first: 1 last 6
track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 0 mode:
-1
track:   2 lba:     16427 (    65708) 03:41:02 adr: 1 control: 0 mode:
-1
track:   3 lba:     72529 (   290116) 16:09:04 adr: 1 control: 0 mode:
-1
track:   4 lba:    112956 (   451824) 25:08:06 adr: 1 control: 0 mode:
-1
track:   5 lba:    137273 (   549092) 30:32:23 adr: 1 control: 0 mode:
-1
track:   6 lba:    165378 (   661512) 36:47:03 adr: 1 control: 4 mode: 1
track:lout lba:    209197 (   836788) 46:31:22 adr: 1 control: 4 mode:
-1

so I tried
mount -t iso9660 -o root=165378 /dev/scd0 /cdrom
and
mount -t iso9660 -o root=836788 /dev/scd0 /cdrom
but that results in the following error message:
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
       or too many mounted file systems

It seems to me that the root=xxx options is ignored at all because I can
mount an usual data CD with any value of xxx.
mount -V shows
mount: mount-2.9t

Kernel is 2.2.16.

What's wrong? Any help or a pointer to TFM would be nice.

Wolfgang

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

From: "John D. Peedle" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: ncpfs is obsolete (w.r.t. Novell 5).  Is there anything to replace it?
Date: Sat, 25 Nov 2000 20:53:23 -0000

> There's a Linux client available on the Novell site.  I haven't tried it
> but you might want to take a looksie.

Wish!!

Unless I'm totally blind, there is only a NICI client for Linux which is not
what is looked for here. I believe that  it is possible to get ncpfs working
with IP. If you can't figure it out from the (unfortunately limited)
documentation, I suggest that you get in touch with Petr Vandrovec who
maintains it. His email address is also in the documentation. He is very
helpful indeed.



================
John D. Peedle
RHCE - so I'm biased!
Registered Linux User 167460




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

From: Arctic Storm <[EMAIL PROTECTED]>
Crossposted-To: 
comp.sys.palmtops.pilot,alt.comp.sys.palmtops.pilot,comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: Where can I get a pre-built POSE for Linux ?
Date: Sat, 25 Nov 2000 21:21:59 GMT

I downloaded the rpm of FLTK, and it installed smoothly.
However, when I try to install the rpm of POSE, I get the following
error.
error: failed dependencies:
        libstdc++-libc6.1-2.so.3 is needed by pose-3.0a4-1mdk
So, I installed glibc-2.2-5.i386.rpm.
I still get the same error when I try to install the POSE rpm.
How can I resolve the dependencies error?

----


* "Arctic Storm" <[EMAIL PROTECTED]> wrote:

> I installed FLTK from source as instructed.  I downloaded the POSE tar
> and extracted it. After "./configure" command, when I issue the "make"
> command, I see pages of text scrolls by, and at the end, I get an error
> "make: ***
> [all-recursive] Erro 1", and a couple of other errors.

What are the errors you are getting?
Did you isntall all dependcies as mentioned in the article?
Please post the errors so we can tackle the problem together.

> I issued the command "make install" as root, anyway,

If "make" fails, all succeeding commands are bound to fail as well.

> Where can I find a  pre-built binaries of the POSE?  Building
> from source is too difficult.  I'm rather surprised that pre-built
> binaries for Linux on Pentium isn't readily available, considering the
> vast number of people who could benefit from the convenience. Any help
> would be appreciated. Thanks.

ftp://rpmfind.net/linux/contrib/libc6/SRPMS//pose-3.0a4-1mdk.src.rpm

That's a source-rpm, but you build a normal rpm from this one.

Oh, and here's a normal rpm:
ftp://rpmfind.net/linux/contrib/libc6/i686/pose-3.0a4-1mdk.i686.rpm

-Jan

-- 
Jan Schaumann <http://www.netmeister.org>

There are two major products to come out of Berkeley:
LSD and UNIX. We don't believe this to be a coincidence.

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

Crossposted-To: comp.os.linux.admin,comp.os.linux.help,comp.os.linux.questions
Subject: Re: bash scripting question
From: Manfred Bartz <[EMAIL PROTECTED]>
Date: Sat, 25 Nov 2000 22:02:59 GMT

Robert Jones <[EMAIL PROTECTED]> writes:

> > > > i need to execute a process and assign it's pid to a variable.
> > > > eg. if i run xchat, say, and it has pid 1234, how can i store
> > > > this value in a variable when the process begins execution?

> Manfred Bartz wrote:
> 
> > $ pidof xchat
> > 12033
> >
> > Same caveat as before, it will not work properly if you have multiple
> > instances of the same program.

> Really?
> [rj@localhost rj]$ /sbin/pidof mingetty
> 27043 26989 604 603 602
> [rj@localhost rj]$ ps -C mingetty
>   PID TTY          TIME CMD
>   602 tty4     00:00:00 mingetty
>   603 tty5     00:00:00 mingetty
>   604 tty6     00:00:00 mingetty
> 26989 tty3     00:00:00 mingetty
> 27043 tty2     00:00:00 mingetty
> [rj@localhost rj]$

Maybe you need to refer back to the original question.

1. how do you know which one is the process you just started?

2. how does it uniquely identify the process you just started?

3. when you assign this to a shell variable, how do you ensure that
   anything you then do with that shell variable only works on the 
   one process you intend to handle?

-- 
Manfred


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

From: "Emmanuel Beranger" <[EMAIL PROTECTED]>
Subject: Big boot / superblock disk problem ...
Date: Sat, 25 Nov 2000 23:04:18 +0100

Hi,

I seem to have lost my superblock on my /dev/hdb1 disk, which I used as
usual Linux system. The thing is : At boot, it somehow does not find the "/"
root folder, and tells me to run e2fsck with alternate superblock. However,
when I does this, it tells me my disk had been unproperly unmounted and
"repairs" it. If I redo the thing, I get the same.
However, a plain "fsck" will show a clean /dev/hdb1 !

And, more : I can mount and navigate my disk from the other Linux on
/dev/hda !

I have tried to run FIPS : it can write the table, but for some reason, it
complains that it can't re-read it !


Heeeeeelp !



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

Date: Sat, 25 Nov 2000 17:55:27 -0500
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: Configuring Linux for ADSL (Sympatico)

maybe check linuxdos.org, they have a cable modem howto. they might have
an adsl howto as well but not sure.
ever try doing a search on the Net?????

WME wrote:
> 
> I checked Slackware's website, but didn't find anything for that !! Any
> ideas?
> 
> Thanks

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

Crossposted-To: comp.os.linux.admin,comp.os.linux.help,comp.os.linux.questions
Subject: Re: another bash scripting question
From: Manfred Bartz <[EMAIL PROTECTED]>
Date: Sat, 25 Nov 2000 23:29:33 GMT

[EMAIL PROTECTED] writes:

> here's a simple script to help me identify all the files with
> size=0bytes in the current directory:
> 
> for file in `/bin/ls -1`;
>   do
>     if [ ! -s $file ];
>        then
>                ls -l $file;
>     fi
>   done
> 
> this script fails for filenames that contain multiple words, eg. a
> filename like "my file.txt" or my\ file.txt.

As another poster suggested, the find command is more appropriate for
the apparent purpuse of you script.

But I suspect you want to learn shell programming, in that case:

1. The first line can be simplified to
        for file in *
   BTW, try:
        echo *
   it makes a poor man's ls in rare situations where ls is not 
   available.  8-)

2. Surround the $file with double quotes like this: "$file"

3. The ! (also called ``bang'') is a special char in most shells and
   many other commands and needs to be escaped if running this from
   the command line or if ``source''-ing it.  You don't have to do
   this inside a script, but it won't hurt either.

   man source

4. ls is often aliased or it is defined as a shell function, so you
   end up invoking ls with options that you did not intend to be used.
   In shell scripts it is usually best to use full path names for
   commands, e.g. /bin/ls

Putting all this together:

        for file in *; do 
          if [ \! -s "$file" ]; then 
            /bin/ls "$file"
          fi
        done

Using LOGICAL-AND you could also write it like this:

        for file in *; do test \! -s "$file" && /bin/ls "$file"; done

test and [ are synonymous.  They are available as separate commands.
But most often you would use the shell built-in versions which is the
default if you don't specify the full path.

Note that /usr/bin/[ is usually a hardlink or symlink to /usr/bin/test.

man test

-- 
Manfred

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

Crossposted-To: comp.lang.postscript,alt.os.linux
From: Gary Krupa <[EMAIL PROTECTED]>
Reply-To: Gary Krupa <[EMAIL PROTECTED]>
Subject: Re: "J" bug in ghostscript
Date: Sun, 26 Nov 2000 00:07:50 GMT

Bill,

Thanks for the quick reply.

I've been using apsfilter, which in turn uses ghostscript printing to
standard output, to print text files. I found that when trying to print
ascii files without a filter, the accents (for foreign words) wouldn't
print properly. In all ways except with "J" at the beginning of a line, the
files now print just the way I want them to.

There are lines in my /etc/printcap file that contain different parameters
for each filter.


Gary

On 25 Nov 2000, Bill Unruh wrote:

> In <[EMAIL PROTECTED]> HoSghaj2 
><[EMAIL PROTECTED]> writes:
> 
> 
> ]When I try to print a file containing the character "J"
> ]at the beginning of a line anywhere in the file, e.g.
> 
> ]November 24, 2000
> 
> ]John,
> 
> ]Happy Thanksgiving. I'm looking forward to our next meeting.
> 
> ]Gary
> 
> 
> ]the file won't print. I haven't tested every printable 
> ]character in this manner, but I've printed a good many files
> ]with ghostscript, and the "J" is the only character I know
> ]of so far that causes ghostscript not to work.
> 
> ]Does anyone have any idea of how to fix this?
> 
> 
> 
> Exactly how are you printing these files? I assume you mean that you are
> trying to print an ascii file through the printer which uses ghostscript
> as a filter. However, with ascii text it should not be using
> ghostscript, but rather translating it directly . How exactly are your
> printer filters set up?
> 


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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.help
Subject: Apache problem
Date: Sun, 26 Nov 2000 00:44:27 GMT

I noticed that my server admin email addres was set to
"root@localhost".  I went into linuxconf to change it.

When I did that i did the usual activate the changes option upon
exiting linuxconf.

I then tried to access a page from another computer and then got the
message:

Forbiden
You dont have permission to access /index.html on this server.

I then restarted linuxconf to look see if anything looked screwy to
me.  It didn't.

When I went to exit it propted me to activate the changes.  The thing
is that I didn't make any.  I selected make the changes anyway.

Just to see what happened I started linuxconf and quit right away.  It
prompted me to activate the changes again and I selected it.  I went
through this several times.

What is wrong?

Mark Healey
marknews(the 'at' thing)healeyonline.com

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

From: [EMAIL PROTECTED] (Kelly Price)
Crossposted-To: 
comp.sys.palmtops.pilot,alt.comp.sys.palmtops.pilot,comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: Where can I get a pre-built POSE for Linux ?
Date: 26 Nov 2000 01:57:38 GMT

=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1

On Sat, 25 Nov 2000 16:58:54 GMT, Arctic Storm
 <[EMAIL PROTECTED]> probably wrote (unless it was a Kook):
>I'm trying to get the Palm OS Emulator to work, but running into great
>difficulty building POSE.
>I have RedHat Linux 7.0.
>I'm reading "Embedded Linux Journal", page 38.  For some odd reason, the
>month or the issue number is not conspicuously displayed on the cover,
>and it has a picture of MachZ chip/board.
>

It's their first issue.

Make sure you have all the development libraries nessisary, and then compile
POSE.  Don't trust binaries too much.

When you do the make, do it with:

        make | tee errors.txt

If you get an error with make, post to us the last 20 or so lines and we can
help out.

- -- 
p   |\      _,,,---,,_      Kelly "STrRedWolf" Price 
u   /,`.-'`'    -.  ;-;;,_  http://stalag99.keenspace.com
r  |,4-  ) )-,_..;\ (  `'-' WolfSkunks for a better Linux Kernel
r '---''(_/--'  `-'\_)  fL  NO UNSOLICATED COMMERCIAL EMAIL
[ Spammers may elect to opt-out of the 'net by sending me their spam ]
                          [ TINUFNS -- TINLC ]
=====BEGIN PGP SIGNATURE=====
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6IG2mQrURUZqteUgRAlznAKCoKEEgDWMH5QJ39l0eFCTZtlaJCQCeLuQb
gGTt9m8J2yBC7t6m3iu+S7w=
=8Cdw
=====END PGP SIGNATURE=====

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

From: "Philo" <[EMAIL PROTECTED]>
Subject: Grub set up?
Date: Sat, 25 Nov 2000 20:07:04 -0600

i'm still having trouble setting up grub

at the grub prompt i first entered:
root (hd0,7)

then at setup i've tried both   (hd0)
                     and                (fd0)

but neither way can i boot up
i saw another post about having to have a  /boot/grub/menu.lst

but i have no menu.lst

obviously i need to read up on grub...but nothing i've found yet
when i did a web search for    grub leads me to a clear and informative
discussion???

thank you


--

Philo

website: www.plazaearth.com/philo



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

From: Robert Davis <[EMAIL PROTECTED]>
Subject: Re: Graphical Terminal for Linux?
Date: Sat, 25 Nov 2000 20:26:32 -0500

I installed vnc and it works great for this purpose.
The x-server and X-client can be "broken" between windows and unix but vnc does
the network break after the X-server. So the X-server and X-client work on the
unix box and are matched by default. Vnc just takes the graphical part and
renders it on the windows machine.

Also Vnc is freeware and X-servers seem to want money for one that
works(compatible) well on windows.
http://www.uk.research.att.com/vnc

bob


Buck Turgidson wrote:

> I need to install Oracle on linux machine on a network.  The installer uses
> a GUI Java interface.  Is there a terminal emulator I could run on MS
> Windows that is graphical in nature that would allow me to do this without
> having to hook up a monitor to this particular machine?
>
> I can telnet into it with no problems.
>
> Thanks!

--
"If you were supposed to understand it, we wouldn't call it code."

[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://people.ne.mediaone.net/rsdavis
http://rsdavis.ne.mediaone.net
n42 58.476 w70 55.454



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

From: Olaf Zaplinski <[EMAIL PROTECTED]>
Subject: Re: Linux terminal problems with SCO
Date: Sun, 26 Nov 2000 04:06:16 +0100

[EMAIL PROTECTED] wrote:
> 
> Does any body know how to get a linux native character terminal to
> work properly with a SCO server ???
> [...]

did you try 'export TERM=ansi; telnet scobox.domain.org' ?

Olaf

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


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