Linux-Misc Digest #725, Volume #18               Fri, 22 Jan 99 16:13:18 EST

Contents:
  Re: Lost with RPM and installing new applications RH Linux 5.2 (Jeremy Mathers)
  Re: A newbie versus "vi" (w joseph mantle)
  Re: Minor bug with more !? (Jeremy Mathers)
  Re: Programming in Linux...Help! (Thomas Boggs)
  Re: A newbie versus "vi" (Matthias Warkus)
  Re: Wardialer War Dialer WARDIALER WARDIAL windows95 windows98 (Matthias Warkus)
  Linux printing problem ([EMAIL PROTECTED])
  Re: Bob's Ignorance -- Or Is It Flamebait? (Donal K. Fellows)
  IP Masquerading compiled in kernel on RH5.0? (Darren Ford)
  Re: Installing Linux from Hard Disk (Matt Kressel)
  Re: formating FAT16 (Matt Kressel)
  Re: Help !!! How to access FAT32(WIn95) from Linux (Matt Kressel)
  Re: Linux is not even in Windows 9X's class. (Dustin Puryear)
  Re: Consumer Poll Says Microsoft Is Good For Consumers (James Youngman)
  Re: problems with netscape and my Debian box (J.H.M. Dassen (Ray))
  Re: C2 security in Linux (James Youngman)
  Re: Linux instead of Windows - just one problem (Phil Brutsche)
  Re: A newbie versus "vi" (Tim Smith)
  Re: "Look and feel" question... ([EMAIL PROTECTED])

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

From: [EMAIL PROTECTED] (Jeremy Mathers)
Subject: Re: Lost with RPM and installing new applications RH Linux 5.2
Date: Thu, 21 Jan 1999 14:28:47 GMT

In article <[EMAIL PROTECTED]>,
Sechylmanos <[EMAIL PROTECTED]> wrote:
...
>The best thing to do would be to read the RPM Man page... (man rpm @ the
>console) but this will get you started...

The RPM man page sucks.  (This from one who generally thinks man pages
are just fine).

There are just 3 RPM commands you need to know:

        1) rpm -qilp <package file>
           List the contents of an RPM file
           E.g., rpm -qilp foo.bar.orange-fish-3.2.1.2.2.4.5.rpm

        2) rpm -qilf <file on your system>
           Check to see from which RPM a file on your system came.
           E.g., rpm -qilf /bin/ls

        3) rpm -Uvh <package file>
           Install an RPM file
           E.g., rpm -Uvh foo.bar.orange-fish-3.2.1.2.2.4.5.rpm

The RPM man page should include the above 12 lines in a "Quick Start" section.

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

From: [EMAIL PROTECTED] (w joseph mantle)
Crossposted-To: comp.os.linux.setup
Subject: Re: A newbie versus "vi"
Date: 22 Jan 1999 18:14:31 GMT

Traveller <[EMAIL PROTECTED]> writes:

>w joseph mantle wrote:

>> I don't like vi either, although not because it doesn't
>> have the pull down menus, rather that it requires extra
>> keystrokes every time you switch between the two
>> main modes.

>Actually I remember reading somewhere that 'vi' was created to be sort
>of like WP, with the concept that if
>you're fingers can fly around a keyboard why bother reaching for a
>mouse.

I agree. Taking your hands off of the keyboardk, grabbing the
mouse, pulling down a menu, and selecting an item takes about
20 to 50 times longer than hitting ^b.

But vi is not that great either.  If I'm inserting in the middle
of a line and want to insert at the end of the line I need
to hit escape (to go into command mode), hit $ (to go to 
the end of the line), and hit a (to return to insert mode).

In a normal full screen editor you can get to the end of 
the line with a single control key.  Part of the problem with
vi is that the escape character is usually far away from 
home position on the keyboard.   I'd say it takes 3 times
as much time to do these steps in vi.

joe  


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

From: [EMAIL PROTECTED] (Jeremy Mathers)
Subject: Re: Minor bug with more !?
Date: Thu, 21 Jan 1999 14:31:16 GMT

In article <[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]> wrote:
>Jesus M. Salvo Jr. <[EMAIL PROTECTED]> wrote:
>> ls -al --color | more
>> instead of coloring the actual file that it is linked to. ;34 seems to
>> be part of the color code for navy blue as shown with ls -al --color
>
>If your pager doesn't support colour then this won't work properly.
>You can use --color=tty so suppress colourization of piped-to commands.

Use "less -r" as your pager, to make it pass control characters through.

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

From: Thomas Boggs <[EMAIL PROTECTED]>
Subject: Re: Programming in Linux...Help!
Date: Thu, 21 Jan 1999 09:37:30 -0500

-=Rage Matrix=- wrote:

> I am writing a small encryption / decryption program for ASCII text files
> under Linux. However, I want to compare two string values. I used this to
> start with...
>
> #include <string.h>
> #include <stdlib.h>
>
> int main()
> {
>  char password1[9];
>  char password2[9];
> ...

> if (password1 != password2)

> {

>   cout << "No Match\n";
>   cout << "Terminating...\n";
>   return (1);
>  }
> ...

>
> However, this always gives "No Match", even when the passwords are the
> same. A friend told me that this is because the string variables are
> actually pointers that cannot be compared. He said to use:-
>
> string password1;
> string password2;
>
> But this doesn't work either. The GNU G++ compiler says that string is not
> defined in string.h. Do I need a different string header file or is there
> another way to compare two strings.
>
> Any help would be great.
>
> Cheers all!
>
> -- Jon.

Your comparison is not comparing the strings, it is comparing the pointers
(i.e., the addresses of the strings), which will always be different.  To
compare the strings, try

if (!strcmp(password1,password2))

which will be true whenever the strings are different.  Check out the man page
for strcmp for particulars.

- Thomas


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

From: [EMAIL PROTECTED] (Matthias Warkus)
Crossposted-To: comp.os.linux.setup
Subject: Re: A newbie versus "vi"
Date: Thu, 21 Jan 1999 00:14:54 +0100
Reply-To: [EMAIL PROTECTED]

It was the 20 Jan 1999 21:15:54 GMT...
..and w joseph mantle <[EMAIL PROTECTED]> wrote:
> Emacs is supposed to be the savior.  But I don't like
> it either.  The backspace key pulls up the help menu.
> And if you redefine the backspace key, it then takes
> two or three keystrokes to pull up the help menu.  And
> many of the commands are counter intuative.

On SuSE at least, Emacs is preconfigured as not to confuse backspace and the
help character. Hell, even Delete works like it should on my machine.

Emacs and bash are probably the only programs I run that didn't need
hand-tuning to make Backspace and Delete work right.

mawa
-- 
Matthias Warkus    |    [EMAIL PROTECTED]    |    Dyson Spheres for sale!
My Geek Code is no longer in my .signature. It's available on e-mail request.
It's sad to live in a world where knowing how to program your VCR actually
lowers your social status...

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

From: [EMAIL PROTECTED] (Matthias Warkus)
Crossposted-To: alt.revenge,alt.music.beastie-boys,comp.os.linux.networking
Subject: Re: Wardialer War Dialer WARDIALER WARDIAL windows95 windows98
Date: Thu, 21 Jan 1999 00:18:56 +0100
Reply-To: [EMAIL PROTECTED]

It was the Wed, 20 Jan 1999 20:13:17 GMT...
..and [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> 
> I only have one thing to say - get it!
> http://www.jps.net/toolarge/wardialer/index.htm

*PLONK*

mawa
-- 
Matthias Warkus    |    [EMAIL PROTECTED]    |    Dyson Spheres for sale!
My Geek Code is no longer in my .signature. It's available on e-mail request.
It's sad to live in a world where knowing how to program your VCR actually
lowers your social status...

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

From: [EMAIL PROTECTED]
Subject: Linux printing problem
Date: Thu, 21 Jan 1999 13:50:29 GMT

hi everybody,  i have a small problem with a laserjet 5 and linux. bsd-lpr is
installed as  printing system, as well as the apsfilter. the system was up
and running for  about two years until it was moved to a new server case a
few days ago.  and guess what? the printer doesn't work anymore. i checked
the hardware  connections, printer connection etc, everything ok.  the lpr
software is also running, when starting a print job, it is queued  (as
usual), can be viewed in the queue, removed and everything.  lpq reports a
"lp is ready and printing", but the printer doesn't do anything.  it
sometimes shows a "receiving data" on the display, sometimes not but doesn't 
print.

 and yes, the printer is connected to the right p.port (LPT1, /dev/lp1)

   any suggestions?

   thanx in advance,
      .:jay.

============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

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

From: [EMAIL PROTECTED] (Donal K. Fellows)
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.advocacy
Subject: Re: Bob's Ignorance -- Or Is It Flamebait?
Date: 21 Jan 1999 14:31:59 GMT

In article <77bhj6$aio$[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]> wrote:
> Jerry Lynn Kreps <[EMAIL PROTECTED]>:
>> What are "regexps"?
> 
> Regular expressions. Like A*B being A<any number of characters>B....
> Only with lots of bells, trumpets, violins and whistles on top.

No.  You described a glob.  Globs can be thought of as regexp's kid
brother.  For regexps

  A*B matches any number of A characters (including none) and a B.
      This can be anywhere in the match string.

  A+B is just like the above, except there must be at least one A
  A?B is just like the above, exceot there must be 0 or 1 A
  ^A*B requires the match to happen at the beginning of the string.
  A*B$ requires the match to happen at the end of the string.
  ^A*B$ requires that the whole string be matched.

  A(BC)*F matches AF ABCF ABCBCF ABCBCBCF ...
  A[ABC]F matches AAF ABF or ACF
  A[A-Z]F matches AAF ABF ACF ADF ... AZF
  A[^ABC]F matches AxF where x can be replaced by any character
           _except_ A, B or C 
  . matches any character at all (except newline in some RE
    implementations.  See your local documentation for details.)

The above are virtually always implemented.  The following are less
common.

  (AB?C)\1 matches ACAC or ABCABC
  ABC|DEF matches either ABC or DEF
  A(BC|DE)F matches ABCF or ADEF
  A{4} matches AAAA
  A{4,7} matches AAAA AAAAA AAAAAA or AAAAAAA
  A{,4} matches A AA AAA AAAA or the empty string (a trivial match!)
  A{4,} matches AAAA AAAAA AAAAAA ...

There are even more sophisticated features available as well in some
implementations (Perl springs rapidly to mind here.)

No regular expression can precisely match a string of A chars followed
by a string of B chars where there must be exactly the same number of
A characters as B characters.  That lies strictly beyond their power
(you need a stack-machine parser for that, whereas all regexps are
recognised by finite state automata.  Ask someone else to explain
automata theory if you are really interested...)  The only place where
this really bites in practise is when trying to match up brackets and
parentheses.  You usually don't need that sort of thing for textual
messages of the kind you get via email or news.

Donal.
-- 
Donal K. Fellows    http://www.cs.man.ac.uk/~fellowsd/    [EMAIL PROTECTED]
Department of Computer Science, University of Manchester, U.K. +44-161-275-6137
--
   "And remember, evidence is nothing." - Stacy Strock <[EMAIL PROTECTED]>

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

From: Darren Ford <[EMAIL PROTECTED]>
Subject: IP Masquerading compiled in kernel on RH5.0?
Date: Fri, 22 Jan 1999 19:37:17 GMT

Does anyone know if IP Masquerading is compiled into the kernel in RH
5.0 distribution?
How can I tell?

Thanks


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

From: Matt Kressel <[EMAIL PROTECTED]>
Subject: Re: Installing Linux from Hard Disk
Date: Fri, 22 Jan 1999 19:21:40 GMT

Aurelien Jarno wrote:
> 
> I'm planning to buy Linux RH 5.2 or SuSE 5.3. I have noc CD-ROM drive, but
> somebody can copy the contents of the CD-ROM on my hard-disk in a FAT
> partition.
> Is it possible in this conditions to install LINUX ? How ?
> 


Yes,

RedHat will ask where the packages reside, just say on a hard drive
partition.

-Matt


-- 
Matthew O. Kressel | INTERNET: [EMAIL PROTECTED]
+---------  Northrop Grumman Corporation, Bethpage, NY ---------+
+---------  TEL: (516) 346-9101 FAX: (516) 346-9740 ------------+

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

From: Matt Kressel <[EMAIL PROTECTED]>
Subject: Re: formating FAT16
Date: Fri, 22 Jan 1999 19:05:06 GMT

Robert Land wrote:
> 
> I'm searching for a tool which is able to format FAT16 while running
> XWindows.
> 
> Any comments are greatly appreciated
> 
> Robert

mkfs -t msdos PARTITION   <-- PARTITION is the partition you want to
format ,i.e. /dev/hda1

-Matt


-- 
Matthew O. Kressel | INTERNET: [EMAIL PROTECTED]
+---------  Northrop Grumman Corporation, Bethpage, NY ---------+
+---------  TEL: (516) 346-9101 FAX: (516) 346-9740 ------------+

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

From: Matt Kressel <[EMAIL PROTECTED]>
Subject: Re: Help !!! How to access FAT32(WIn95) from Linux
Date: Fri, 22 Jan 1999 19:13:15 GMT

Phil Edwards wrote:
> 
> You most certainly can! Assuming that you have Win95 installed in the
> first primary partition of your first (E)IDE hard disk, then:
> 
> cd /
> mkdir /win95
> mount -t vfat /dev/hda1 /win95
> 
> ought to do it. If you want this mounted permanently, i.e. every time
> you boot Linux, then put this in /etc/fstab:
> 
> /dev/hda1   /win95   vfat   defaults   1   1
> 
> I have to confess that I'm not too sure what the "1   1" on the end of
> the line are for - perhaps someone who know a bit more about the subject
> can enlighten us!
> 
> HTH!
> 


>From the fstab man page, it has to do with the "dump" command and the
order in which fsck is run on the partitions.

-Matt

-- 
Matthew O. Kressel | INTERNET: [EMAIL PROTECTED]
+---------  Northrop Grumman Corporation, Bethpage, NY ---------+
+---------  TEL: (516) 346-9101 FAX: (516) 346-9740 ------------+

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

From: Dustin Puryear <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.advocacy
Subject: Re: Linux is not even in Windows 9X's class.
Date: Fri, 22 Jan 1999 13:21:26 -0600

Chris Bergeron wrote:
> 
> >    Eric> oh... and in the first place DOS was designed to _sell_ not
> >    Eric> to work. IBM got too impatient and decided to 1. go with the
> >    Eric> shit 8088 processors that that Intel were selling them for a
> >    Eric> 'better deal' and 2. go with Billy boy's "QDOS" excuse for
> >    Eric> an operating system that was stolen from Seattle Computer
> >    Eric> Products anyway. Then came the whole thing about IBM
> 
> >I don't have a jones for Microsoft but I do might irritated at the
> >perpetuation of this falsehood.  Gates did not steal the OS in any
> >way.  If you can't make a case without resorting to falsehood, you
> >don't have a case to make.
> 
> Actually, I believe that DOS code was taken from original CP/M instructions.
> I can substantiate this claim after I do more research, I'm sure.

Much of the _original_ DOS code was either taken from CP/M or created in
such a way as to ease the porting of CP/M applications - I forget which.

Regards, Dustin

-- 
Dustin Puryear * [EMAIL PROTECTED] * ICQ 6644253 
Help Crack Government Encryption: http://www.distributed.net
Useless Invention: Avalanche prevention goggles.



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

From: James Youngman <[EMAIL PROTECTED]>
Crossposted-To: 
alt.destroy.microsoft,comp.os.linux.advocacy,comp.os.os2.advocacy,gnu.misc.discuss,uk.comp.os.linux
Subject: Re: Consumer Poll Says Microsoft Is Good For Consumers
Date: 19 Jan 1999 22:39:40 +0000

[EMAIL PROTECTED] (Mayor Of R'lyeh) writes:

> On 18 Jan 1999 18:24:27 +0100, David Kastrup
> <[EMAIL PROTECTED]> chose to bless us
> all with this bit of wisdom:
> 
> >Anybody that has not by now noticed that they are playing the part of
> >a real messy, ugly and mean bully using all sorts of dirty tricks in
> >order to smash their opponents in the software industry with a
> >vengeance while not just relying on the renowned high quality of their
> >products should have his head examined.
> 
> Anybody who hasn't noticed that's how big business is done everywhere
> needs to get out more. 

Well, the software company that *I* work for is successful (very
successful!) simply by being better at the things it does than anybody
else.  Perhaps your experience of business is limited.

-- 
ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet

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

From: [EMAIL PROTECTED] (J.H.M. Dassen (Ray))
Subject: Re: problems with netscape and my Debian box
Date: 22 Jan 1999 19:59:44 GMT

Chris Stolte <[EMAIL PROTECTED]> wrote:
>I'm running Debian 2.0 and am having a really difficult time getting netscape 
>to run. The problem is that when I try to run the netscape executable, I get:
>
>"can't load library libXt.so.6"

Have you tried using the netscape installer package available in the
"contrib" section of Debian archives? It ensures you have all the libc5
libraries installed that the libc5 version of netscape needs.

HTH,
Ray
-- 
Cyberspace, a final frontier. These are the voyages of my messages, 
on a lightspeed mission to explore strange new systems and to boldly go
where no data has gone before. 

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

From: James Youngman <[EMAIL PROTECTED]>
Subject: Re: C2 security in Linux
Date: 21 Jan 1999 22:21:48 +0000

Jerry Hamilton <[EMAIL PROTECTED]> writes:

> Has anyone addressed this?  Are there some contacts
> for more information?

"Linux" is not a frozen product, and so cannot be certified in this
way (i.e. there will never be a C2 certificate for just "Linux").
Also, the certification costs a great deal of money.  What I can tell
you is that some of the certification bodies themselves use Linux...

-- 
ACTUALLY reachable as @free-lunch.demon.(whitehouse)co.uk:james+usenet

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

From: Phil Brutsche <[EMAIL PROTECTED]>
Subject: Re: Linux instead of Windows - just one problem
Date: Fri, 22 Jan 1999 13:07:06 -0600

On Fri, 22 Jan 1999, Ben Sandler wrote:

> I'm running an all-Linux shop here.  There's someone (the boss) who
> wants one machine for himself just to do data entry in Excel.  I'm sure
> if I sat him down at a Linux box with Star Office and told him it's just
> like Windows, he'd be fine.  That is, until I told him that he needs to
> type mount /mnt/floppy before he uses his floppy disk, and umount
> /mnt/floppy afterwards.  Is there any simple way to have the floppy
> drive automatically mounted and umounted, without running development
> kernels or hacking at it for 3 days and 3 nights?  I'm running RedHat
> 5.1, standard install out of the box.
You could try to use the automount daemon, amd.  When he tries to access
/mnt/floppy, the daemon will automatically mount /dev/fd0, and will try
every five minutes or so to unmount /dev/fd0 until it succeeds.  I think
the time delay is configurable.

There's also autofs, although I'm not sure whether or not that's 2.2+
only.

======================================================================
Phil Brutsche           [EMAIL PROTECTED] | [EMAIL PROTECTED]

Microsoft:  "Where do you want to to today?"
Linux:  "Where do you want to go tomorrow?"


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

From: [EMAIL PROTECTED] (Tim Smith)
Crossposted-To: comp.os.linux.setup
Subject: Re: A newbie versus "vi"
Date: 21 Jan 1999 06:24:32 -0800

Ed Young  <[EMAIL PROTECTED]> wrote:
>if [ $TERM = "linux" ]
>then
>  alias vi=vim
>else
>  alias vi=gvim
>fi

Actually, gvim becomes vim automatically if you try to run it outside of X,
so you only need one alias.

--Tim Smith

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

From: [EMAIL PROTECTED]
Subject: Re: "Look and feel" question...
Date: 22 Jan 1999 11:40:43 PST
Reply-To: [EMAIL PROTECTED]

IIRC, the Look and feel of Windows is based on a published
set of standards called CUA (Common User Access).  The
CUA spec was developed at IBM and later adopted by MS.
The spec undergoes changes quite often.  Compare Win98
with Win 3.1 for instance.  For that matter, Compare Win 3.1
with OS/2 3.0.
You should not feel that you have to copy the CUA guidlines
exactly.  But I would think it prudent that you do not supprise
the user with somthing compleatly differant.  The user will,
be expecting at least some adhearence to the CUA guidlines.


In <[EMAIL PROTECTED]>, Mark Stolz <[EMAIL PROTECTED]> writes:
>Hi All--
>
>I'm going to use Tcl/Tk to build a front end for some compiler tools
>and had a question/observation about the look and feel.
>
>It seems that a lot of the new software being developed for/ported to
>Linux is adopting the Windows95 look and feel. While there are certain
>elements of this that I like, for the most part I have a problem with
>it. I don't want to feel that I need to be locked in to the Windows
>interface paradigm in order for my code to be accepted/used by the
>general public. It seems pretty limiting, not to mention ironic given
>the Linux/MS relationship.
>
>So the questions...
>
>Are there any general GUI standards, from an application point of view,
>that the general Linux community prefers?
>
>I'm not really interested in Desktop A vs. Desktop B discussions as much
>as trying to figure out how to make an application usable/acceptable
>across the board. Any views/ideas about this?
>
>--Mark


--
Just my $0.02 worth.
Hope this helps,
Gordon

PS:
To reply: replace 'X.bleeb' with 'greeder'.


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


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