Linux-Misc Digest #939, Volume #24               Mon, 26 Jun 00 06:13:02 EDT

Contents:
  connecting to ISP with linux (acepea)
  Perl script for deleting files in sub-directories...? ("Rage Matrix")
  Re: Perl script for deleting files in sub-directories...? (Vilmos Soti)
  Available RAM (Nelson Muntz)
  Re: Changing hwclock settings to local and not UTC (Villy Kruse)
  Samba 2.0.7 supported on Linux 2.4 test kernel? ("Fan")
  .mp3's play choppy. (Nelson Muntz)
  Re: Shell scripting and chmod +s (Villy Kruse)
  Re: Opening Ports - Read (Neil)
  Re: How to let Apache_php3 server work well? (Neil)
  Re: linux as a client :-( (Neil)
  Re: tool for joining various (text) files, editing and splitting them (John Gianni)
  Re: stability of culture of helpfulness (Jim Marshall)
  WAP and apache ? (=?iso-8859-1?Q?Herv=E9?= VOISIN)
  Re: Struggling with postfix (Andrew Onifer)
  realplayer installation  (Nelson Muntz)
  Re: linux as a client :-( (John Thompson)
  Re: NIS+ (Peter Bunclark)

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

Subject: connecting to ISP with linux
From: acepea <[EMAIL PROTECTED]>
Date: Mon, 26 Jun 2000 00:17:00 -0700

hi, i connect to my isp just fine using win95. the server
assigns me an ip address configures the default gateway and the
DNS.
in linux i'm using kppp. however after i connect to the isp and
try to setup the proxy under netscape it tells me that the
address i entered is not valid..!!! (proxy1.myisp.net). well
that's exactly what i enter in netscape under '95 and it works.
what am i doing wrong??

thanks a bunch for ur help.

-Sid

Got questions?  Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com


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

From: "Rage Matrix" <[EMAIL PROTECTED]>
Subject: Perl script for deleting files in sub-directories...?
Date: Mon, 26 Jun 2000 08:32:18 +0100

Hi,

I have copied all my C++ programs, directories and all to my Linux drive.
The source is compatible, but I want to be able to delete all the *.exe
files from all the sub-directories. As I am learning Perl at the moment, I
thought it would be a cool thing to do to automate this tedious process. I
know that I should probably be asking this in a Perl NG, but how could I
implement such a script and what system calls would I need?

i.e. $ deletedir.pl somedirectory *.exe, where somedirectory is the starting
directory to search and delete from and *.exe is the type of file to delete.

Any Perl gurus around? :)

Jon

--
Jonathan M Baker
Tron Software
[EMAIL PROTECTED]
eFax: (0870)162-9849.
http://www.tronsoftware.freewire.co.uk
ICQ: 41682863




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

Subject: Re: Perl script for deleting files in sub-directories...?
From: Vilmos Soti <[EMAIL PROTECTED]>
Date: Mon, 26 Jun 2000 07:41:05 GMT

"Rage Matrix" <[EMAIL PROTECTED]> writes:

> I have copied all my C++ programs, directories and all to my Linux drive.
> The source is compatible, but I want to be able to delete all the *.exe
> files from all the sub-directories. As I am learning Perl at the moment, I
> thought it would be a cool thing to do to automate this tedious process. I
> know that I should probably be asking this in a Perl NG, but how could I
> implement such a script and what system calls would I need?

This is not really a Perl job.

find /find/exes/from -name '*.exe' -exec rm {} \;

Vilmos

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

Date: Mon, 26 Jun 2000 01:09:04 -0500
From: Nelson Muntz <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Available RAM

Hi,
I am on a dual-boot machine, and at the power-on self test it reports
160M (or a little more) of RAM. Under DOS or Windows98 it reports a
similar amount. When I run 'top' or 'free' under Slackware 7.0, 2.2.13
kernel, or the KDE task manager, it reports only 64M of RAM. Why isn't
it seeing the other 100M or so? I put in the 128M chip in the slot
myself, I know it's there, so why can't I access it? In the BIOS setup
there is some kind of option regarding memory over 64M, intended for
OS/2, I've set it both ways, and it still does not work. I've read all
the documentation that I thought might be relevant, but I didn't find
anything appropriate. What might be the problem? BTW it's an AMD K6-2
366Mhz, if that makes a difference.


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

From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: Changing hwclock settings to local and not UTC
Date: 26 Jun 2000 08:16:41 GMT

On Fri, 23 Jun 2000 09:07:40 -0600, Kerry Cox <[EMAIL PROTECTED]> wrote:

>It's running Red Hat 6.2.  Can someone please tell me where I can remove
>the UTC settings and make it be the localtime? Thanks.  I normally
>wouldn't ask but I have done the RTFM things for them all and consulted
>all the Red Hat books I have.  Just hitting a brick wall here.
>Thanks.



For redhat systems, run "setclock" after you have set the system clock.
The setclock knows what the right thing to do is with respect to 
UTC/localtime.  If you wan't to have the RTC clock running localtime
instead of UTC, or viceversa, run setup/Timezone configuration.


-- 
Villy

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

From: "Fan" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.protocols.smb
Subject: Samba 2.0.7 supported on Linux 2.4 test kernel?
Date: Sun, 25 Jun 2000 21:44:06 -0800

Is Samba 2.0.7 able to work properly on the 2.4 test kernels of Linux?

p.s. - I'm running Red Hat Linux 6.1.




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

Date: Mon, 26 Jun 2000 01:32:50 -0500
From: Nelson Muntz <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: .mp3's play choppy.

I love my .mp3's, I gotta have my .mp3's, I was running Windows95(tm)
and it played my .mp3's just fine. It would crash a lot, though, so I
got me Windows98(tm). It didn't crash nearly as much, but a funny thing
happened, it would play sound one second at a time, take a break for 2-3
seconds, play the next second of sound, and so on. It would do this for
all sound formats. Couple of months ago I got thoroghly fed up with
Microsoft(tm) and installed Slackware 7.0. Hasn't crashed yet, (!) but
when I try to play an .mp3 it sounds choppy, like the sound would drop
out for a litlle bit. I first tried Kmpg, and then Freeamp: Kmpg is
almost as bad as Winamp for Windows98 was, or a little better, while
Freeamp sounds like it's almost acceptable, but not quite. Mind you,
this is only when I do this under KDE, from the console Freeamp sounds
better than Windows 95 ever did, crisp and right on. Under KDE, however,
the more programs are open, the worse it sounds, but even with just the
player open it does not sound up to par. The processor is not entirely
outdated, it's an AMD K6-2 366Mhz, and there is at least 64M of RAM,
with plenty of swap space. I tried copying .mp3's onto a RAMdisk, and
playing them from /dev/ram, thinking it was a disk read problem, but
that made no difference. The kernel I am using is 2.2.14 (perhaps I did
not compile it for sound support correctly), my sound card is OPL3-SA3.
Perhaps I should also mention that my Linux installation is still on the
DOS partition (umsdos filesystem), but again, I think I've ruled out
disk read issues.  It is my understanding that it is possible to get
decent .mp3 playback under KDE, so what do you recommend I do?


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

From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: Shell scripting and chmod +s
Date: 26 Jun 2000 08:29:10 GMT

On Sun, 25 Jun 2000 12:50:27 -0700, John Reiser <[EMAIL PROTECTED]> wrote:
>> #include <stdlib.h>
>> 
>> int main(void) {
>> 
>>   system("/usr/local/bin/yourshellscript");
>> 
>>   return 0;
>> 
>> }
>
>Or, you can save a fork() by using something like
>-----
>#include <unistd.h>
>
>int main(int argc, char const *const argv[], char const *const envp[])
>{
>    return execve("/usr/local/bin/yourshellscript", argv, envp);
>}
>-----



It would be a good idea to clean up the environment so no potentially
harmful environment variables can make the shell program do unanticipated
things. 



Villy

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

From: Neil <[EMAIL PROTECTED]>
Subject: Re: Opening Ports - Read
Date: Mon, 26 Jun 2000 09:31:15 +0100
Reply-To: [EMAIL PROTECTED]

On Sun, 25 Jun 2000 00:20:06 +0000, westar <[EMAIL PROTECTED]> wrote:

>o How is it possible to open ports in Linux?
>  - For example how could I open port 23 or close 21 etc...

man inetd or read have a look at /etc/inetd.conf and edit out the services you
don't want then send a kill -HUP to the inetd PID.



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

From: Neil <[EMAIL PROTECTED]>
Subject: Re: How to let Apache_php3 server work well?
Date: Mon, 26 Jun 2000 09:33:08 +0100
Reply-To: [EMAIL PROTECTED]

On Sat, 24 Jun 2000 13:05:30 -0500, Marecki <[EMAIL PROTECTED]> wrote:

>You need to install some modules for php3/apache...
>in my case it was: 
>mod_php-.0.3-1.i386.rpm
>mod_php3-mysql-3.0.12-1.i386.rpm

nonsense, this is a simple apache config thing.

in the apache config, search for DirectoryIndexes and add index.php3. Also make
sure AddHandler directives for php3 files are not commented out.



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

From: Neil <[EMAIL PROTECTED]>
Subject: Re: linux as a client :-(
Date: Mon, 26 Jun 2000 09:36:25 +0100
Reply-To: [EMAIL PROTECTED]

On Sat, 24 Jun 2000 07:01:48 GMT, [EMAIL PROTECTED] () wrote:

>>2. Fonts are still a problem.  I installed Mandrake 7.1, with
>>   XFree86 4.0, and Netscape fonts still can't compete with Internet
>>   Explorer on Windows.  Is there some linux distribution that has
>
>       Stop trying to use the fonts that Windows-centric sites want
>       to force on you and this problem disappears.

install xfstt and add its the fonts in servers to your font path using xset -
man xset or read the README with xfstt for info. Its a 5 miinute job.



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

From: [EMAIL PROTECTED] (John Gianni)
Crossposted-To: comp.os.unix.misc,comp.unix.questions,comp.unix.shell
Subject: Re: tool for joining various (text) files, editing and splitting them
Date: Mon, 26 Jun 2000 09:48:58 GMT

On 23 Jun 2000 12:47:35 +0000, Uwe Brauer <[EMAIL PROTECTED]>
wrote:
>I am looking for a simple tool to join various (text) files (which say
>have the same extension, but are located in various directories) to a
>single file, editing them and finally splitt them again.
>
>Does anybocy know about such a tool, 

Try cut, paste, & comm (and, of course, vi, sed, awk, etc.)

1) Assume this is file /tmp/a:

 ---< snip here >---
   |\/\/\/|
   |      |
   |      |
   | (o)(o)
   C      _)
   | ,___| 
   |   /
   /____\
  /      \
   Viewer  
 ---< snip here >---

2) And, assume this is file /tmp/b:

 ---< snip here >---
                                             
 +-------------+          +--------+
 |             |          |        |
 |    HI       |          |  -+-   |
 |             |          |   |    |
 +-------------+          |  -+-   |
      1x8.5               |  ___   |
                          |        |
                          +--------+
                          8.5x11
 ---< snip here >---

3) And assume you want to paste the two together seamlessly to obtain:

   |\/\/\/|                                                  
   |      |      +-------------+          +--------+
   |      |      |             |          |        |
   | (o)(o)      |    HI       |          |  -+-   |
   C      _)     |             |          |   |    |
   | ,___|       +-------------+          |  -+-   |
   |   /              1x8.5               |  ___   |
   /____\                                 |        |
  /      \                                +--------+
   Viewer                                 8.5x11


Here's one command that will do that instantly:
   csh%  paste /tmp/a /tmp/b > /tmp/c

or, without the tab between them:
   csh%  paste -d" " /tmp/a /tmp/b > /tmp/c
+--------------------------------------------------------------------------+
+---------------< cut here for the next related message
>------------------+
+--------------------------------------------------------------------------+
Given a directory of files (long and short names mixed up) such as:
     Digest_V97_96
     Digest_V97_97
     Digest_V97_98
     Digest_V97_99
     procmail-d_Digest_V97_#183
     procmail-d_Digest_V97_#184
     procmail-d_Digest_V97_#185
     procmail-d_Digest_V97_#186

Take a list of just the new long-name-with-pound-sign digest files,
e.g., 
     procmail-d_Digest_V97_#183
     procmail-d_Digest_V97_#184
     procmail-d_Digest_V97_#185
     procmail-d_Digest_V97_#186

And change those files to shorter-without-pound-sign web-friendly
files:
     Digest_V97_183
     Digest_V97_184
     Digest_V97_185
     Digest_V97_186

Using vi:
     csh%   cd /net/iss/usr/local/public/doc/procmail_users/digest
     csh%   ls procmail-d_Digest_V* > /tmp/file1
     csh%   vi /tmp/file1

:%s/procmail-d_Digest_V\([0-9]*\)_#\([0-9]*\)/Digest_V\1_\2/
            :w!/tmp/file2
            :q!
     csh%   vi /tmp/file1
            :%s/.*/mv &
     csh%   paste /tmp/file1 /tmp/file2 > /tmp/foo
     csh%   chmod u+x /tmp/foo
     csh%   !$ 
            Where the command file foo is now executed, performing:
            mv procmail-d_Digest_V97_#187   Digest_V97_187
            mv procmail-d_Digest_V97_#188   Digest_V97_188
            mv procmail-d_Digest_V97_#189   Digest_V97_189
            mv procmail-d_Digest_V97_#190   Digest_V97_190

Note: I can also ls & sed instead of vi & ed:
     csh%  cd /net/iss/usr/local/public/doc/procmail_users/digest
     csh%  ls -1 procmail-d_Digest_V* | sed -e 's/.*/mv &/' >
/tmp/file1
     csh%  ls -1 procmail-d_Digest_V*\
           |sed -e
's/procmail-d_Digest_V\([0-9]*\)_#\([0-9]*\)/Digest_V\1_\2/'\
           > /tmp/file2
     csh%  paste /tmp/file1 /tmp/file2 > /tmp/foo
     csh%  chmod u+x !$
     csh%  !$
           Which then executes the command file "foo" performing:
            mv procmail-d_Digest_V97_#187   Digest_V97_187
            mv procmail-d_Digest_V97_#188   Digest_V97_188
            mv procmail-d_Digest_V97_#189   Digest_V97_189
            mv procmail-d_Digest_V97_#190   Digest_V97_190
+--------------------------------------------------------------------------+
+---------------< cut here for the next related message
>------------------+
+--------------------------------------------------------------------------+

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

From: [EMAIL PROTECTED] (Jim Marshall)
Crossposted-To: alt.os.linux,comp.os.linux.advocacy
Subject: Re: stability of culture of helpfulness
Date: Mon, 26 Jun 2000 01:56:31 -0700
Reply-To: [EMAIL PROTECTED]

In alt.os.linux on Sun, 25 Jun 2000 22:34:43 -0500, 
 Andrew N. McGuire  <[EMAIL PROTECTED]> wrote:
>On 25 Jun 2000, Tim Palmer wrote:
>
>+ Maybe youd be abal to rite better coad to.
>
>You are a real piece of work.  Learn to spell, get an idea of what
>you are talking about, then maybe post if you have something useful
>to contribute, troll.
>
>anm

Gotta be a troll. Nobody can spell that poorly without trying.

-- 
Slackware 7.0 Linux
  1:55am  up 2 days,  3:33,  5 users,  load average: 0.01, 0.01, 0.00

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

From: =?iso-8859-1?Q?Herv=E9?= VOISIN <[EMAIL PROTECTED]>
Subject: WAP and apache ?
Date: Mon, 26 Jun 2000 11:12:49 +0200

Hi.

I've heard Apache was enable to be a WAP server ... Is that true without
a gateway like kannel (www.kannel.org) ?
I'm looking for some docs & HowTo's in order to make my apache server
wap enable.

Thanks for any help ....


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

From: [EMAIL PROTECTED] (Andrew Onifer)
Subject: Re: Struggling with postfix
Date: 26 Jun 2000 09:16:30 GMT
Reply-To: [EMAIL PROTECTED]

On Mon, 26 Jun 2000 04:11:45 GMT, AlexPGP <[EMAIL PROTECTED]> wrote:
>My proposed solution is to figure out how I can *force* 'twain' to relay
>through my ISPs mail server, because if I can do that, the problem goes
>away, since my ISP's mail server will accept mail from my static IP
>address.
>
>Of course, if there's a better way to do this, I'm all ears.

Have you checked the postfix faq?  http://postfix.merit.edu/faq.html

I have a line in main.cf that says "relayhost = mail.mindspring.com"  I
think that's all you need, but I don't have a linux box sitting between me
and my ISP.

                                jay

-- 
"The movie really heightens the lack of interest in the film" 
                                    --Crow T. Robot
Andrew J. Onifer III                       [EMAIL PROTECTED]
http://www.bigfoot.com/~aonifer/       PGP key on WWW page

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

Date: Mon, 26 Jun 2000 02:21:44 -0500
From: Nelson Muntz <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: realplayer installation 

I'm running Slackware 7.0, and I have been trying to install RealPlayer
, unsuccessfully. I downloaded version 7 beta from http://real.com, as a
self-installing executable. It opened up a window, prompted me for the
install directory, and a few seconds later said, "Install failed for
unknown reason." So I went all the way down to version 5.0, (according
to them, versions 3.0 and above should all work), untarred it, and added
an "export LD_LIBRARY_PATH=$HOME/rvplayer5.0" line to my profile file,
as per instructions.  At this point, the binary should run (there's
other stuff to do to get it to work as a netscape plug-in, etc),
however, all I got was, " rvplayer: can't load library 'libXmu.so.6'  "
so then I did a "ldd rvplayer" and it said:

      "libXmu.so.6 => not found
        libXt.so.6 => not found
        libXext.so.6 => not found
        libX11.so.6 => not found  ..."

so then just to test it I did an "ldd /usr/X11R6/bin/xeyes" and it
returned:

      "libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40018000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x4002a000)
        ...
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40091000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4009d000) ..."
        ( I omitted some lines from the above output in both cases)

I am somewhat new to Linux and don't really understand the workings of
the ld.so, but I did read all the man pages, and it seems that if it
could find the libraries in the second instance, it should be able to
load them when I try to run RealPlayer. I must be missing something here
and the installation instructions don't tell me what it is. What else do
I have to do?


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

From: John Thompson <[EMAIL PROTECTED]>
Subject: Re: linux as a client :-(
Date: Sun, 25 Jun 2000 08:31:50 -0500

Charles Philip Chan wrote:
 
> >>>>> "Edward" == Edward Lee <[EMAIL PROTECTED]> writes:
> 
>     > Blame RH for properiety extensions.
 
> RPM is GPL'ed.

...and works with any linux distro, if you want to use it.

-- 

-John ([EMAIL PROTECTED])

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

From: Peter Bunclark <[EMAIL PROTECTED]>
Crossposted-To: alt.solaris.x86,comp.unix.solaris,comp.unix.admin,alt.os.linux
Subject: Re: NIS+
Date: Mon, 26 Jun 2000 10:37:46 +0100

Michael Abadjiev wrote:

> TomC wrote:
>
> > Hi, I have more than 5 redhat server in my company and every time a new
> > staff come then I need to add account in each server. It is very
> > inconvenience. I think that can I add a solaris NIS+ server and all the
> > linux clients join to it and share the information. Can I? Any HOWTO
> > will talk about this?
> > Thanks
>
> I think you mean NIS (YP) not NIS+ there is a HowTo take a look at it and
> if you still have a problem let me know.
> Regards,
> Michael Abadjiev

It's somewhat less well packaged up, but a Solaris NIS+ server
with Linux clients runs quite happily.   The faint-hearted might wish
to stick with NIS until the distributers bundle NIS+.

Pete.


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


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