Linux-Misc Digest #868, Volume #21               Sun, 19 Sep 99 11:13:07 EDT

Contents:
  Newbie Question ("Sridhar")
  Re: how to know my own IP? (Floyd Davidson)
  Re: how to know my own IP? (Ashok Aiyar)
  power saving (Mark Redding)
  uninstall tgz packages ("Aaron Seet")
  Re: Internet Connection (Mircea)
  Re: <<<Lets face it...Linux is for geeks like u n me>>> (William Wueppelmann)
  Re: No /etc/resolv.conf file. (Edwin Estrada)
  Re: am I doomed? (William Burrow)
  Re: Xircom Modem ("John Zantey")
  Re: /etc/bashrc file (jim wiegand)
  Re: Please Help with RPM ("Jill")
  Re: HELP!! Lost filesystem; Bad superblock! (Ahmet Ocakli)
  Re: Seting up IMP webmail (Jon Bloom)
  Re: Anyone else feel the need to fix up the clipboard in linux? (Eric Potter)
  Re: Diald troubles under 2.2.11 (Andrew Purugganan)
  Re: File permissions when mounting vfat or msdos partition (Shourya Sarcar)
  Re: Newbie Question (Patricia)

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

From: "Sridhar" <[EMAIL PROTECTED]>
Subject: Newbie Question
Date: Sun, 19 Sep 1999 08:39:03 -0400

How do I run 3rd party programs under Linux?
What is the command used to start or execute a program?


--
Sridhar

Contact: [EMAIL PROTECTED]



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

From: [EMAIL PROTECTED] (Floyd Davidson)
Subject: Re: how to know my own IP?
Date: 19 Sep 1999 12:14:17 GMT
Reply-To: [EMAIL PROTECTED]

Dr. Thomas Bengs <[EMAIL PROTECTED]> wrote:
>Bob Tennent <[EMAIL PROTECTED]> wrote:
>> On Fri, 17 Sep 1999 11:34:51 -0800, [EMAIL PROTECTED] wrote:
>>  >
>>  >I am using a dialup account to access Internet, ie. my IP is different
>>  >everytime I dialup. So how can I know my IP address? What kind of
>>  >software can return my IP to me when I dialup?
>>  >
>> ifconfig
>
>OK, I know it. But how can I get the IP address alone, to use it in
>other scripts, f.i. to lock ports for the Internet with ipchains?
>
>ifconfig diplays
>
>isdn0     Link encap:Ethernet  HWaddr 00:00:B4:35:C2:A1
>          inet addr:193.174.8.136  Bcast:193.174.8.255
>         Mask:255.255.255.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:11246 errors:0 dropped:0 overruns:0 frame:0
>         TX packets:11903 errors:0 dropped:0 overruns:0 carrier:0
>         collisions:1 txqueuelen:100
>         Interrupt:11 Base address:0x300

Use perl/sed/grep or whatever to grab the right address out of that.  Here is
one way (there are many):

For regular PPP links using a modem,

  ifconfig | grep P-t-P | (IFS=": " read A B C D; echo $C)

For your ISDN link  (can be modified for any network device, such as eth0),

  ifconfig | grep -A1 isdn0 | tail -1 | (IFS=": " read A B C D; echo $C)


  Floyd

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


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

From: [EMAIL PROTECTED] (Ashok Aiyar)
Subject: Re: how to know my own IP?
Date: 19 Sep 1999 12:49:00 GMT
Reply-To: [EMAIL PROTECTED]

On Sat, 18 Sep 1999 07:46:49 GMT,
    Dr. Thomas Bengs ([EMAIL PROTECTED]) wrote:
>OK, I know it. But how can I get the IP address alone, to use it in
>other scripts, f.i. to lock ports for the Internet with ipchains?
>
>ifconfig diplays
>
>isdn0     Link encap:Ethernet  HWaddr 00:00:B4:35:C2:A1
>          inet addr:193.174.8.136  Bcast:193.174.8.255
>         Mask:255.255.255.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:11246 errors:0 dropped:0 overruns:0 frame:0
>         TX packets:11903 errors:0 dropped:0 overruns:0 carrier:0
>         collisions:1 txqueuelen:100
>         Interrupt:11 Base address:0x300

Use something like the following shell script ...

#!/bin/bash
export DYNIP=`/sbin/ifconfig isdn0 | grep inet | cut -d: -f2 | cut -d' ' -f1`

Then use the variable $DYNIP in your ipchains script.

Later,
Ashok
-- 
Ashok Aiyar, Ph.D.
McArdle Laboratory for Cancer Research
[EMAIL PROTECTED]

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

From: Mark Redding <[EMAIL PROTECTED]>
Subject: power saving
Date: Sun, 19 Sep 1999 14:09:19 +0100

Every time I enable power saving on my desktop PC, and especially the
hard drive standby mode, once drive goes into standby mode, the system
refuses to respond to my keyboard attempts to resume the system.
I have tried this using both the BIOS settings, and then disabling the
BIOS and using the hdparm -S 12 /dev/hdc command instead. Each time it
locks the system.
Anyone encountered this before and found a solution to it.
I am currently using kernel 2.2.12 on a SuSE 6.0 based system, but this
has happened on previous 2.2 versions also.


-- 
Mark W J Redding
A crash reduces your expensive computer to a simple stone.

GPG KeyID: F6C8C7B0
GPG Key Server: http://pgp5.ai.mit.edu/pks-commands.html
GPG Fingerprint : 1D26 858F 358C CD8F E0AB  A2A2 83A3 799B F6C8 C7B0

Linux, use the source luke.
FreeBSD, the power to serve.

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

From: "Aaron Seet" <[EMAIL PROTECTED]>
Subject: uninstall tgz packages
Date: Sun, 19 Sep 1999 23:13:20 +1000

does anybody know how to uninstall tgz packages???



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

From: Mircea <[EMAIL PROTECTED]>
Subject: Re: Internet Connection
Date: Sun, 19 Sep 1999 09:22:10 -0400

David Coleman wrote:
> (..)
> I just installed SuSE 6.2 and everything went fine. Everything works great
> (well, except the sound card, but I haven't really worked on it, yet) including
> the GUI, kppp will connect to my ISP, but then nothing will see this connection.
> Netscape, mail clients, ect just give me "Server Not Found". Anyone have any
> clues where to start on this?
> 

You could start by entering your ISP's DNS in kppp. Apart from that, it
should work.

MST

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

From: [EMAIL PROTECTED] (William Wueppelmann)
Subject: Re: <<<Lets face it...Linux is for geeks like u n me>>>
Date: Sun, 19 Sep 1999 12:35:52 GMT

In our last episode (18 Sep 1999 04:59:26 GMT),
the artist formerly known as Andrew Purugganan said:
>I am looking at the posts here and in other linux-related groups. Isn't 
>it true that 99% of the people posting and/or responding have to be a bit 
>technically savvy and a bit adventurous with their hardware? That's why 
>I'm so inclined to believe that there will always be a market for 
>WIndows, and a similar segment for Linux, and Mac, etc much like there 
>will always be rock n roll, jazz, polka, etc.
>Maybe it's time we stop this 'Linux will eat M$ for breakfast!' 
>trash-talk. The reality is, the OS shouldn't be in your face, but instead 
>it's quietly humming in the background, and letting you accomplish your 
>work/objective.

You have to keep in mind that:

bash != Linux
X != Linux

        The command shell is independent of the operating system, at least
        on Unixes it is.  Shells like bash, ksh and zsh are popular among
        tehcnical users because they provide a lot of power, but one does
        not need to use any of these interfaces in order to use a system
        powered by Linux.

vi != Linux
emacs != Linux

        There are a lot of traditional tools tied to Unix like vi, grep,
        awk and sed.  But much like you don't have to use Word if you run
        Windows, you don't have to use vi if you run Linux.  Once
        again, these tools are popular among the technically inclined
        because they are efficient and powerful.  But there is no reason
        that you must learn them in order to use a system running Linux.

editing text files != Linux

        The average Windows user has no idea how to edit the registry; they
        use `Wizards' and other front ends that try to take care of the
        technical details silently.  Most technical users prefer to edit
        config files themselves because they want the degree of control
        over their system that can only be had by telling the system
        directly what to do, but there is no reason why a system running
        Linux could not be configured in much the same way as a Windows
        system is configured.

Red Hat != Linux

        The same goes for Debian, Mandrake and SuSE.  We're all probably
        guilty of talking about Linux as though it were a complete system,
        but it isn't and this distinction between the kernel and the
        distribution becomes important when we're talking about Linux
        replacing other kinds of operating systems.  Slackware Linux won't
        replace MS Windows on the desktops of casual computer users, but a
        system running a Linux kernel may well do exactly that.  I wouldn't
        be at all surprised if within the next 3 or 4 years one or more
        Windows alternatives based around a Linux kernel were marketed to
        the public, and I wouldn't be surprised if many of them didn't have
        Linux in their name (consider "Netwinder" as a server example of
        this).

The Windows kernel, by contrast, is a buggy, bloated and, for lack of a
better word, a piece of steaming crap.  There are a number of people who
have praised the Windows shell and GUI (I'm not one of them, but there are
a lot of people who think it's great stuff), but I haven't heard anyone
praising the Windows kernel itself, except in relation to other versions of
the Windows kernel (e.g. 95 sucks less than 3.0). 

-- 
It is pitch black.
You are likely to be spammed by a grue.

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

Date: Sat, 18 Sep 1999 23:37:31 +0000
From: Edwin Estrada <[EMAIL PROTECTED]>
Subject: Re: No /etc/resolv.conf file.

Dave Critelli wrote:

> Hello:
>
> When my kppp app boots I get a message that says no /etc/resolv.conf
> file found.  Subsequently the dialer connects to my ISP but Communicator
> wont fetch any web pages.  Do I need a resolv.conf file?  If so where to
> I get it and what do I need to add to it to get it to work?
>
> Thank you.
> Dave

you can  start from scratch and put your ISP's DNS numbers in there.
    eg
 nameserver your.isp's.dns.number
 nameserver your.isp's.second.dns.number
 search

save it in /etc/resolv.conf


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

From: [EMAIL PROTECTED] (William Burrow)
Subject: Re: am I doomed?
Date: 19 Sep 1999 14:04:17 GMT
Reply-To: [EMAIL PROTECTED]

On Sun, 19 Sep 1999 06:11:29 GMT,
Dan the kernel trap <dsquibb9@*spamkiller*gte.net> wrote:
>This is a dual P-pro 200 system on a pr440-fx motherboard. 
>The computer is about a week old, and I'm a little worried it might be
>a hardware problem. The disk is 2.5 yrs old. 
>There is probably a way to boot such that I can get around the fsck
>core dump problem, right?

With the boot floppy you made during install, right?  Of course, you can
always pop by one of the distro sites and pick up their rescue disk --
Slackware's is what I use.  

If Oopses and Aiees persist, suspect a dying CPU, board or other
component.


-- 
William Burrow  --  New Brunswick, Canada             o
Copyright 1999 William Burrow                     ~  /\
                                                ~  ()>()

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

From: "John Zantey" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: Xircom Modem
Date: Mon, 20 Sep 1999 00:17:34 +1000

Hi,
Try using the XIRC2PS_CS driver. It comes with RH5.1+



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

From: jim wiegand <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.admin
Subject: Re: /etc/bashrc file
Date: Sun, 19 Sep 1999 14:23:50 GMT

"Stuart R. Fuller" wrote:

> Jose ([EMAIL PROTECTED]) wrote:
> : I know that the /etc/bashrc file can be used if the for "system wide"
> : initializing before the person logs into the the system, but is there
> : a file I can use for when the person logs out?  I don't want to use
> : the files that are in the person's home directory.
>
> Well, you can probably do something like ensuring that a user has a
> ~/.bash_logout file in their directory at login time, and if not, give them
> one.  If they do, then ensure that it has the stuff you're interested in.
> There does not appear to be a system-wide logout script, though.
>
> What are you wanting to do in this system-wide logout script?  If it's
> something security related, or otherwise important, remember that they are
> easily bypassed.  For example, to "logout" without executing the system-wide
> logout script (if one existed):
>
>         # kill $$
>
> easily defeats your script.
>
> So, what problem are you trying to solve?
>
>         Stu

Umm... do you mean
    # kill -HUP $$
or even
    # kill -9 $$
since the shell catches SIGTERM?

-jim


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

From: "Jill" <[EMAIL PROTECTED]>
Subject: Re: Please Help with RPM
Date: Sun, 19 Sep 1999 09:42:02 -0700

Never mind.  Finally got it.  It is /usr/local/httpd.  Was able to run the
demo from my Windows over ethernet.


Jill <[EMAIL PROTECTED]> wrote in message
news:7s2jmi$3i$[EMAIL PROTECTED]...
>     Sorry for my newness at this.   I entered 'rpm -ivh
> apache-1.3.3-1.i386.rpm' and it flashed a bunch of '#######' on the screen
> and then quit.  I interepreted it as a positive sign, but any idea where
it
> installed it, if it actually did?
>
>
> Anita Lewis <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Put the cdrom in and as root type mount /mnt/cdrom.  Then cd
> > /mnt/cdrom/RedHat/RPMS
> >
> > ls XF* to see what packages there are.
> >
> > Hopefully you will have already looked to find what Server your card
> > needs.  You can find that somewhere in the docs, but I'm not sure where.
> > You can also find a list at www.xfree.org.  Because you do not want to
> > install ALL of this stuff.  You want XFree86-3.3.2...rpm for sure.  Also
> > 75dpi and 100dpi.  I'd recommend getting XF86Setup too.  XF86Setup
> > is a nice tool for configuration of X. Oh, you will need the libs too
> >
> > So that's XFree86, 100dpi, 75dpi, libs, XF86Setup, and of course the
> > server you need like SVGA or S3 or whatever.  I don't see docs listed in
> > my RH5.2 manual in the back.  If that is there, I'd take it too.
> >
> >  rpm -ivh XFree86..whatever.rpm  It will probably have to be done in
some
> > order and you will know because it will give failed dependencies and you
> > will have to go do another one first - like maybe libs will need to be
> > first.  I'm not sure what the order would be.
> >
> > I don't know Apache, but all I see in the book is apache and
apache-devel;
> > so that one will be either just the one or possibly devel is required
for
> > what you will be doing.
> >
> > Anita
> >
> > On Sun, 19 Sep 1999 06:38:42 -0700, Jill <[EMAIL PROTECTED]> wrote:
> > >    I installed only the command line version of RH 5.2 with the
purpose
> of
> > >running Oracle 8.  I ommitted some packages due to disk space
> limitations.
> > >I now find that I have enough diskspace to add the windowing
environment
> and
> > >apache.
> > >    But I am totally confused as to how to go about doing this.  The
RPM
> > >syntax confuses me.  Could someone explain to me, at least in general
> terms,
> > >or even better, specfic terms, what I am doing?
> > >
> > >Thanks for your time.
> > >
> > >Jill C.
> > >
> > >
>
>



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

From: Ahmet Ocakli <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,alt.os.linux
Subject: Re: HELP!! Lost filesystem; Bad superblock!
Date: Sun, 19 Sep 1999 15:47:00 +0200

"Ryan T. Rhea" wrote:
> 
> Due to a power failure, I am unable to mount an ext2 filesystem.  It
> contains very important data that I need to recover.  Here is the
> message I get from mount:
> 
>     [root@garcia ryan]# mount -t ext2 /dev/loop4 /mnt
>     mount: wrong fs type, bad option, bad superblock on /dev/loop4,
>     or too many mounted file systems
> 
> So next I try e2fsck and dumpe2fs:
> 
>     [root@garcia ryan]# e2fsck /dev/loop4
                                 ^^^^^^^^^^

i'm sure you have done this, but just for the case,
/dev/loopX are loopback devices, and you have to set these up with
losetup



> Obviously, something is foul with the superblock.  I
> tried running the '-r' (repair) option with e2fsck.  I also tried the
> '-b' (alternative superblock) option with 8193 and 16385 as the
> superblocks.  I got those from the man page - I don't know if there are
> other superblocks I could try.

it depends on how big your 'partition' is.
normally there is a copy of the superblock every 8192 blocks
eg. 8193, 16385, 24577, 32769, ...


good luck
-

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

From: Jon Bloom <[EMAIL PROTECTED]>
Crossposted-To: aus.computers.linux,comp.os.linux.networking,comp.os.linux.setup
Subject: Re: Seting up IMP webmail
Date: Sun, 19 Sep 1999 08:34:07 -0400

Matt wrote:
> 
> Has anyone had any success installing and configuring IMP/Horde under Redhat
> 6.  I have tried about a dozen times, checked the database structure and SQL
> create statements.... no luck.  As soon as I try to log in I get an access
> denied error.
> 
> Warning: Access denied for user: 'impmgr@localhost' (Using password: NO) in
> ./lib/db.lib on line 213

That's a MySQL password error. See the MySQL reference doc, section 6:
"How do MySQL privileges work"?

It looks like either a password is required for user impmgr on host
localhost or that user isn't allowed access to the database being used.

Jon
--
Jon Bloom, KE3Z
[EMAIL PROTECTED]
Electronic Publications Manager (Software, CD-ROMs and Web site)

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

From: [EMAIL PROTECTED] (Eric Potter)
Subject: Re: Anyone else feel the need to fix up the clipboard in linux?
Date: 19 Sep 1999 14:43:16 GMT

-~=Darek M=~- enlightened this group thus:
> One think I liked about Windows better than Linux is its
> universal clipboard. You could copy a URL and paste it
> anywhere, in another browser window, mIRC, etc. And all
> programs used Ctrl+C and Ctrl+V to copy and paste.
> 
> In linux however, when you copy a line of text from Ksirc
> for example and try to paste it in a text editor, you can't.
> I find this to be a real pain as it is inconvenient to type
> out URLs one got from IRC and is unable to just copy and
> paste them in Netscape, which by the way uses Alt+C and
> Alt+V.
> 
> Could it be a reality in the future that linux would have
> the same universal clipboard as Win that held the info and
> let you paste it in Netscape, BitchX, a terminal or an ftp
> client like Igloo?
> 
> * Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
> The fastest and easiest way to search and participate in Usenet - Free!
> 

Sometimes a problematic cut and paste situation as you just described can be
solved by using the program "xclipboard" as an intermediate step, i.e. select
the text from app#1 and paste into xclipboard with a middle click.  Then 
re-select the text from xclipboard and paste into app#2.



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

From: [EMAIL PROTECTED] (Andrew Purugganan)
Subject: Re: Diald troubles under 2.2.11
Date: 19 Sep 1999 14:45:06 GMT

Ken Williams ([EMAIL PROTECTED]) wrote:

: PPP normall works fine.  I run Diald, it runs fine too.  I try to bring the 
: link up with lynx or something and it dials but at the end I get crazy stuff.

does it ever grab your lynx start or home page? has it ever been 
successful doing that? sometimes all it needs is a single entry repeated 
3 or 5 times in the script to get a lock on
sorry if I'm not much help, but I subscribed to the diald mailing list 
for a couple of weeks before I decided not to upgrade my version, 
considering what distro I'm kinda stuck with. There's people there 
dealing with your version of diald, and I'm sure somebody can help you 
--
Andy Purugganan 
annandy AT dc DOT seflin DOT org
e-mail reply always appreciated, but i'll still be lurking here


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

From: Shourya Sarcar <[EMAIL PROTECTED]>
Subject: Re: File permissions when mounting vfat or msdos partition
Date: Sun, 19 Sep 1999 19:43:05 +0530

This is how I do it !
my /etc/fstab line reads
/dev/hda1      /mnt/c     vfat      auto  0 2

use chmod -v 777 /mnt/c as root
===============================


On Sun, 19 Sep 1999, Robert Heller wrote:
>[EMAIL PROTECTED] (BJW7TOAEM),
>  In a message on 18 Sep 1999 21:55:32 GMT, wrote :
>
>B> I am running Red Hat 6 on my system.  I have Linux on one partition and another
>B> partition I use for Windows.  I mount the windows partition to /mnt/c but only
>B> root can write to it and I would like to make it so other users can write to
>B> it.  How do I change the permissions, so that other users can write to the
>B> windows partition when it is mounted in Linux?  Thanks in advance for your
>B> answers!
>
>Since MS-Windows does not implement owners or permissions, Linux has to
>'fake it'.  This is done with options to mount (either on the mount
>command itself or via /etc/fstab).  Look at 'man 8 mount':
>
>       ...
>
>Mount options for fat
>       (Note: fat is not a separate filesystem, but a common part
>       of the msdos, umsdos and vfat filesystems.)
>
>       ...
>
>       uid=value and gid=value
>              Set the owner and group of all files. (Default: the
>              uid and gid of the current process.)
>
>       umask=value
>              Set the umask (the bitmask of the permissions  that
>              are  not  present). The default is the umask of the
>              current process.  The value is given in octal.
>
>       ...
>
>
>B> 
>B> -John
>B> John H.
>B> Twinkling Of An Eye Ministries Web Site
>B> http://members.aol.com/BJW7TOAEM/index.html
>B>                                                    
>
>
>
>
>
>
>    
>-- 
>                                     \/
>Robert Heller                        ||InterNet:   [EMAIL PROTECTED]
>http://vis-www.cs.umass.edu/~heller  ||            [EMAIL PROTECTED]
>http://www.deepsoft.com              /\FidoNet:    1:321/153


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

From: Patricia <[EMAIL PROTECTED]>
Subject: Re: Newbie Question
Date: Sun, 19 Sep 1999 16:53:44 +0200

Sridhar wrote:
> 
> How do I run 3rd party programs under Linux?
> What is the command used to start or execute a program?
> 
> --
> Sridhar
> 
> Contact: [EMAIL PROTECTED]
Hi Sridhar

depends of the 3rd party
if its dos use dosemu
if its windows there is also a emulator but forgot the name (somting
like win..)
if its linux use $ ./program
HTH ;-)
Patricia
-- 
Red Hat Linux release 6.0 (Hedwig)
Kernel 2.2.5-15

  4:52am  up  19:01,  3 users,  load average: 1.27, 1.33, 1.26

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


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