Linux-Misc Digest #38, Volume #25                 Tue, 4 Jul 00 06:13:03 EDT

Contents:
  MAKEDEV is different...Hmmm... (Hendrix)
  Error - cannot find the ppp daemon (alan)
  How-to PATCH ([EMAIL PROTECTED])
  Re: Printer driver ("Todd Lasman")
  A confusing, but interesting topic... (Hendrix)
  Netscape and RedHat 6.2 (Charles Leslie)
  Re: fonts problem in Netscape (Jim Jerzycke)
  Corel Linux
  makewhatis patch (Michal Szymanski)
  Re: What is 'setuid', and how to use it? (Thomas Hommel)
  Re: Corel Linux (Akira Yamanita)
  Re: ANSI Colors in a C program under Linux... (Richard Bos)
  Re: What is 'setuid', and how to use it? (Jim Marshall)
  IrcClient ("Thomas Hartmann")
  Re: Help! root directory mounted as readonly. What to do? (Joost Andrae)
  Re: Setting the Password Length (Stanislaw Flatto)
  Re: How-to PATCH (Eric)
  Re: ANSI Colors in a C program under Linux... (Floyd Davidson)

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

From: Hendrix <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: MAKEDEV is different...Hmmm...
Date: Tue, 04 Jul 2000 03:50:16 -0230

Hmm...

Why is it that when I use the MAKEDEV script to make a new /dev
directory I only get 706 files, but when I look in my Red Hat 6.1 /dev
directory I get over 2300 files...  This doesn't mean that I'll need to
'mknod' almost 2000 files does it...???*s*

The MAKEDEV options I used are:

MAKEDEV -v generic

Thanks,
-- 
Trevor Penney, 
A+, Network+ Certified
======================
"That's alright, I still got my guitar"... 
-James Marshall Hendrix (11/27/1942-09/18/1970)

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

From: alan <[EMAIL PROTECTED]>
Subject: Error - cannot find the ppp daemon
Date: Tue, 04 Jul 2000 06:30:03 GMT

Hi, 
     Well this is strange. I've just done a fresh Red Hat installation (not 
my first ever - I've been using it for about 6months) - and I'm getting 
'Error. Cannot find the ppp daemon'. Typing 'dsemsg' I see 'PPP line 
discipline registered', and checking usr/sbin I see kppp is there. When I 
click on that it says that 'kppp is already running under process -ID 758'. 
What is the problem, anybody?? I don't think I installed Samba. Would that 
(or missing some other similar package, though I think Samba was the only 
one not installed) have something to do with it. I encountered this  
problem once before, and I think I beat it by reinstalling with virtually 
everything... fun. 

Why would this problem be encountered with a very vanilla-type 
installation? 
                   This is urgent, please. 
                   -Alan

--
Posted via CNET Help.com
http://www.help.com/

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

From: [EMAIL PROTECTED]
Subject: How-to PATCH
Date: Tue, 04 Jul 2000 06:35:48 GMT

Hello ..

I know this may sound dumb, but I can't seem to apply a patch. I have
read the man pages, etc.

Basically I do a 'patch < patch.tar.gz'. It gives me a message telling
me that the patch file contains garbage (or something like that).Is
this incorrect or is the file corrupt? Do I have to be in the same
directory as the file I wan't to patch. I think I have also
tried 'patch -p<n> patch.tar.gz'.

This is probably a real newbie question, but I couldn't seem to find
any answers (and the man pages are a little vague). Any answers or
links to resources would be greatly appreciated.

Thanks
Rax


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: "Todd Lasman" <[EMAIL PROTECTED]>
Subject: Re: Printer driver
Date: Mon, 3 Jul 2000 23:41:47 -0700

I appreciate the response!  Thanks!

I visited the Ghostscript site, and I DID see reference to an "stp" driver
that supposedly works for the Epson Stylus Photo 700, but I can't seem to
find it.  The only thing I can download from that site is what seems to be a
standalone program that is actually a plugin for GIMP that prints to that
printer.  I haven't downloaded anything yet -- do you think the driver is
somehow bundled with this program?  Any idea how to get it to work with the
printtool that comes with Redhat 6.2?

Todd




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

From: Hendrix <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,nf.comp.linux
Subject: A confusing, but interesting topic...
Date: Tue, 04 Jul 2000 04:04:29 -0230

Hi there,

How is linux installed from a distro?  For instance, is the packages
kept as an image, or is it compiled from source everytime the distro is
installed on a new system...  I can see doing a new compile being a very
good option, hence, the software can probe the new system in attempt to
customize the kernel, and other programs, to work better on that
partitcular machine...  But to do this, the library files, sources,
compiler and other required "compiliation" utilities need to be
available...  

Someone told me that Red Hat just installs everything from a binary (RPM
I guess) image.  Maybe the boot disk provides an interface to activate
the CD so that it acts like a working system to install and configure
the new system...

I've read over the various "projects" (such as linuxfromscratch, and
diylinux), and I noticed that these all have to be setup and installed
from an existing, and fully functioning, distribution (with libraries,
compilier etc...)....

I'm just wondering how this can be done while installing from CD...

Thanks for your time...
-- 
Trevor Penney, 
A+, Network+ Certified
======================
"That's alright, I still got my guitar"... 
-James Marshall Hendrix (11/27/1942-09/18/1970)

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

From: Charles Leslie <[EMAIL PROTECTED]>
Subject: Netscape and RedHat 6.2
Crossposted-To: comp.os.linux.questions,comp.os.linux.redhat,comp.os.linux.x
Date: Tue, 04 Jul 2000 07:02:25 GMT

I have the weird behavior from Netscape.  For some strange reason,=20
whenever, I'm using Netscape, my Xserver crashes.  I'm using the default=
=20
window manager, Gnome, with Redhat 6.2 and have installed the Metro-X=20
3.4.5 xserver.  My video card is an ATI Rage Fury MAXX.  Has anyone had =

this problem?  I've update Netscape to 4.73 and the problem still=20
persist.  There really isn't anything in the log except "Xserver lost=20
connection ..."

The windowing system is fine as long as I don't using Netscape.

thx
-charles

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

From: Jim Jerzycke <[EMAIL PROTECTED]>
Subject: Re: fonts problem in Netscape
Date: Tue, 04 Jul 2000 07:13:17 +0000

Uhhhh.....not to be a smarta** or anything, but where can one find this
document?



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

From: <[EMAIL PROTECTED]>
Subject: Corel Linux
Date: Tue, 04 Jul 2000 07:30:09 GMT

What do I need to do to install Netscape 6 on Corel Linux? I downloaded 
Netscape 6PR1 from the Internet, but it does not have an executable file. 
I tried to find documentation on how to install programs in Corel Linux, 
but was not successful.

--
Posted via CNET Help.com
http://www.help.com/

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

From: [EMAIL PROTECTED] (Michal Szymanski)
Subject: makewhatis patch
Date: 4 Jul 2000 07:55:03 GMT

Hi,

I've noticed that 'makewhatis' distributed with RH6.2 (man-1.5h1-1 RPM)
does not allow for manual pages directories mounted from another host,
read-only, which, especially for '/usr/local/man' is often in
networking environments.

'makewhatis' is run every day by cron, so the sys-man keeps getting
messages about not being able to write 'whatis' database on those
directories.

Below I put a very simple patch to 'makewhatis' to make it check
whether the directory it is about to process is writeable.

regards, Michal.

-- 
  Michal Szymanski ([EMAIL PROTECTED])
  Warsaw University Observatory, Warszawa, POLAND

==================================================================

--- makewhatis.orig     Wed Mar  1 01:03:36 2000
+++ makewhatis  Tue Jul  4 09:25:59 2000
@@ -143,6 +143,10 @@
         if [ x$verbose != x ]; then
            echo skipping $mandir - we did it already > /dev/tty
         fi
+     elif [ ! -w $mandir ]; then
+        if [ x$verbose != x ]; then
+           echo skipping $mandir - no write access > /dev/tty
+        fi
      else      
        here=`pwd`
        cd $mandir


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

From: Thomas Hommel <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Re: What is 'setuid', and how to use it?
Date: Tue, 04 Jul 2000 09:57:18 +0200

Hi
If you execute a program, it nomally will run with your privileges, it
uses your UID and GID.
Sometimes it�s necessary that normal users have to execute programs with
root (or other users) privileges and that is what the setuid bit does.
If it is set, a program isn�t executed with the rights of the caller but
with the rights of the owner of the file.
You can change the setuid and setgid bit with `chmod [+/-]s <file>�
If you want to restrict dialout to certain users, make pppd owned by
root:dialout (or another special group) and set the setuid and setgid
bits. Then add all allowed users to the group dialout.

Tom 

Hendrix wrote:
> 
> Hi guys,
> 
> Could someone please explain to me what the 'setuid' bit is?  Whenever I
> try to let one of my users access 'pppd' a messages comes up saying that
> the 'setuid' isn't (or must be) set...!!!  Where can I find out how to
> use 'setuid'?  Also, does anyone know how I can let "select" users on my
> home LAN to be able to connect to the internet with 'pppd'?  Thanks...
> --
> Trevor Penney,
> A+, Network+ Certified
> ----------------------
> "That's alright, I still got my guitar"...
> -James Marshall Hendrix (11/27/1942-09/18/1970)

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

From: Akira Yamanita <[EMAIL PROTECTED]>
Subject: Re: Corel Linux
Date: Tue, 04 Jul 2000 08:12:30 GMT

[EMAIL PROTECTED] wrote:
> 
> What do I need to do to install Netscape 6 on Corel Linux? I downloaded
> Netscape 6PR1 from the Internet, but it does not have an executable file.
> I tried to find documentation on how to install programs in Corel Linux,
> but was not successful.

Decompress the file.

tar zxpvf netscape-v600pr1*.tar.gz

It will create a new directory claled "netscape-v600pr1..blahblahblah"
Go into the directory (cd netscape-v600pr1*) and look for an executable
file. I don't have it on my system so I can't tell you what it may be
called. Most likely, there is a README file which will have
installation instructions.

Two likely installation procedures:

./configure
make install

OR

./install.sh

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

From: [EMAIL PROTECTED] (Richard Bos)
Crossposted-To: alt.os.linux,comp.lang.c
Subject: Re: ANSI Colors in a C program under Linux...
Date: Tue, 04 Jul 2000 08:26:22 GMT

Hendrix <[EMAIL PROTECTED]> wrote:

> I think that a C program can be written with ANSI escape
> characters in order to colorize a screen, and I believe that this would
> be included in the ANSI Standard of the C language...  It isn't graphics
> functions, it just uses the ANSI escape sequences to print...  

Nope. ANSI wrote more standard than just the one, you know. The ANSI C
standard is one; the ANSI escape characters are (I presume) from
another, and have nothing to do with ANSI C (now by preference called
ISO C, btw, since it was ISO that did the last standard, ANSI being one
member of ISO).
FWIW, my computer (an MS-DOS box) will not display ANSI escapes as
intended, even though I compile ANSI C all the time.

Richard

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

From: [EMAIL PROTECTED] (Jim Marshall)
Crossposted-To: alt.os.linux
Subject: Re: What is 'setuid', and how to use it?
Date: Tue, 4 Jul 2000 01:15:07 -0700
Reply-To: [EMAIL PROTECTED]

In alt.os.linux on Tue, 04 Jul 2000 03:19:11 -0230, 
 Hendrix <[EMAIL PROTECTED]> wrote:
>Hi guys,
>
>Could someone please explain to me what the 'setuid' bit is?  Whenever I
>try to let one of my users access 'pppd' a messages comes up saying that
>the 'setuid' isn't (or must be) set...!!!  Where can I find out how to
>use 'setuid'?  Also, does anyone know how I can let "select" users on my
>home LAN to be able to connect to the internet with 'pppd'?  Thanks...

The setuid bit makes an executable run as the user who owns it, regardless
of who is actually running it. "chmod u+s pppd" will make pppd run as root
(assuming root owns it), no matter who actually runs it. "Setuid" is a
contraction I guess, of "set user id". You can also "setgid" executables
(with "chmod g+s pppd", for example) so that they always run as the
group that owns them.

One thing you could do be to to "chown root.wheel pppd", "chmod u+s
pppd", "chmod o-x pppd", and then add users you trust to the wheel
group. This way pppd will run as root, but only users in the
wheel group will be able to use it. (You could make a special "ppp"
group for this purpose, too).

This whole situation arises because pppd needs root-level permissions
in order to be able to do its thing. Wouldn't be a problem if only
root were going to run it, but that's not practical, for obvious
reasons. Man chmod (also man setuid for the setuid system call;
it's pretty readable as far as these things go).
-- 
Slackware 7.0 Linux
  1:01am  up 1 day,  3:38,  3 users,  load average: 0.04, 0.02, 0.00

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

From: "Thomas Hartmann" <[EMAIL PROTECTED]>
Subject: IrcClient
Date: Tue, 4 Jul 2000 10:33:52 +0200

What's the greatest IRC Client under X11 with Gnome and Enlightenment

I'm using SuSE Linux 6.3

regards
-Tom



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

From: Joost Andrae <[EMAIL PROTECTED]>
Subject: Re: Help! root directory mounted as readonly. What to do?
Date: Tue, 04 Jul 2000 07:38:59 GMT

Hello David,

what about e2fsck'ing /dev/hda5 ?

btw.: crossposting is not polite...

Regards, Joost Andrae

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 03.07.00, 18:37:30, David <[EMAIL PROTECTED]> wrote=
=20
regarding Help! root directory mounted as readonly. What to do?:


> Hi folks,
> I have a problem: My Compaq Presario 1215 laptop with
> RedHat 6.0, Kernel 2.2.5-15 on it has been forced to
> shut off because the battery went empty and I forgot
> to plug in the power adaptor soon enough. When I tried
> to reboot it, it didn't mount the harddisk as
> read/writeable such that no file can be opened or
> written on the hd. Excerpt:
> --
> autorun...
> ... autorun done
> VFS: Mounted root (ext2 filesystem) readonly.
> --

> So, the file mtab cannot be written, for example.
> That's bad and I don't know how to unmout and remount
> it writeable. In linuxconf I get the error message:
> "modprobe: cannot locate module block-major-8" and
> "modprobe: cannot locate module block-major-48".
> Any change in linuxconf won't be committed.

> fstab looks ok:
> --
> /dev/hda5     /                ext2           exec,dev,suid,rw,usrquot=
a 1=20
1
> /dev/hda6     swap             swap           defaults                =
  0=20
0
> /dev/fd0      /mnt/floppy      auto           noauto,users            =
  0=20
0
> /dev/cdrom    /mnt/cdrom       iso9660        noauto,users            =
  0=20
0
> none          /proc            proc           defaults                =
  0=20
0
> none          /dev/pts         devpts         mode=3D0622             =
    0=20
0
> --

> the existing mtab shows the root dir as "rw" but
> in fact it isn't:
> --
> /dev/hda5 / ext2 rw,usrquota 0 0
> none /proc proc rw 0 0
> none /dev/pts devpts rw,mode=3D0622 0 0
> /dev/hdc /mnt/cdrom iso9660 ro,noexec,nosuid,nodev 0 0
> --


> The other problem is that no log files can be written
> to the disk which makes it almost impossible to debug
> the thing.

> Anybody out there who has a clue how to proceed?

> Looking forward to answers and thanks in advance - David.

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

From: Stanislaw Flatto <[EMAIL PROTECTED]>
Subject: Re: Setting the Password Length
Date: Tue, 04 Jul 2000 09:29:54 GMT

Robert Love wrote:
> 
> >>>>> "Stan" == Stanislaw Flatto <[EMAIL PROTECTED]> writes:
> 
>     Stan> Robert Love wrote: [snip] You heard about the practical
>     Stan> joker who responded to "Password" with "penis".  The
> 
> Lets not be using the word "snip" in any sentence with penis, eh?
> 
> --
> =============================================================
> | Support Signature Minimalism                              |
> =============================================================
Agreed.
-- 
    ******* Stanislaw ********
Monolog - one person talking to himself,
dialog - two people talking to themselves. 
                         -Shaike Ofir-

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

From: Eric <[EMAIL PROTECTED]>
Subject: Re: How-to PATCH
Date: Tue, 4 Jul 2000 08:57:24 GMT
Reply-To: [EMAIL PROTECTED]

Have you tried unpacking the patch package ?
at the command prompt enter:
  mkdir unpack
  mv patch.tar.gz unpack
  cd unpack
  tar -zxvf patch.tar.gz
now a new directory is created, enter that and read the README
file that is most likely there for further instructions

Eric


[EMAIL PROTECTED] wrote:
> 
> Hello ..
> 
> I know this may sound dumb, but I can't seem to apply a patch. I have
> read the man pages, etc.
> 
> Basically I do a 'patch < patch.tar.gz'. It gives me a message telling
> me that the patch file contains garbage (or something like that).Is
> this incorrect or is the file corrupt? Do I have to be in the same
> directory as the file I wan't to patch. I think I have also
> tried 'patch -p<n> patch.tar.gz'.
> 
> This is probably a real newbie question, but I couldn't seem to find
> any answers (and the man pages are a little vague). Any answers or
> links to resources would be greatly appreciated.
> 
> Thanks
> Rax
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.

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

From: Floyd Davidson <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.lang.c
Subject: Re: ANSI Colors in a C program under Linux...
Date: 04 Jul 2000 01:01:30 -0800

Hendrix <[EMAIL PROTECTED]> wrote:
>Hi folks,
>
>I recently noticed that the command line 'linuxconf' program has
>text-based colors in its interface...  How would it be possible for me
>to utilize these colors in my own C, or C++, program?  I remember doing
>this with ANSI colors back when I used to run my own PCBoard from
>DOS...  I was also experienced in using the QuickBASIC color statement
>to print ANSI colors on SCREEN 0 (text mode)...  Whenever I ask
>questions about color and graphics in "comp.lang.c" they send me
>elsewhere and say that it is compiler specific...???  I do not agree
>with this!!!

They are precisely right, and you have a slight misperception which
mostly amounts to symantics.

>I think that a C program can be written with ANSI escape
>characters in order to colorize a screen, and I believe that this would
>be included in the ANSI Standard of the C language...  It isn't graphics
>functions, it just uses the ANSI escape sequences to print...  

The ANSI/ISO Standard for the C programming language does not
include the  ECMA-48/ISO 6429/ANSI X3.64 Standards for terminals.

However, the real problem is that on different platforms
(different Operating Systems or even perhaps different compilers
on the same OS) any functions which are provided specifically
for manipulating colors on the terminal screen are *necessarily*
non-portable (and hence non-ANSI/ISO Standard C) if for no other
reason than the fact that Standard C itself has no notion
whatever of a terminal screen, much less what color it is!

>I don't know, I may very well be wrong, but if I'm not, could someone
>please help me figure this out...  If it is possible to present ANSI
>colors in a C program (and still complie to the ANSI C Standard) then
>could someone show me a "Hello World" kind of program that has a blue
>background with yellow writing (much like the 'linuxconf' console
>program)...  Thanks a bunch for reading my ramblings...*s*

Typically that is done using the terminfo (or termcap) database to
determine which escape codes your particular terminal recognizes
(and indeed, if it even has color).  Probably the most common package
to do that with is ncurses.  All of the above means that such a
program cannot be a strictly conforming (in the pedantic sense)
ANSI/ISO Standard C program.  Typically the way to handle using such
non-Standard code is to separate it into a platform specific module
and compile different modules for different platforms.

If you would like to see a demo program illustrating how to use
the terminfo data base (without invoking the entire ncurses package)
to determine terminal characteristics and terminal attributes
such as colors (and others such as cursor addressing etc.), just
say so and I'll email you such a program.  It isn't terribly long,
but a bit more than commonly is posted to a newsgroup.

  Floyd

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

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


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