Linux-Misc Digest #37, Volume #25                 Tue, 4 Jul 00 02:13:02 EDT

Contents:
  Re: Opera 4.0a core dump (Christopher Browne)
  Re: floppy in DOS format (Jonathan M Hill)
  Re: Maby a dumb file question (Kari Pahula)
  Re: newsreader for Linux? (Christopher Browne)
  Re: Debian 2.1 upgrade failed !!! ([EMAIL PROTECTED])
  Re: Debian 2.1 upgrade failed !!! ([EMAIL PROTECTED])
  Re: Move my disk from /dev/hda to /dev/hdb (Brent Burton)
  Apache allow subdirectories? and how save *.zip? (Stan Towianski)
  ANSI Colors in a C program under Linux... (Hendrix)
  Re: Shell Script (Harlan Grove)
  Re: Apache allow subdirectories? and how save *.zip? (Akira Yamanita)
  Re: ANSI Colors in a C program under Linux... (Bjoern Frantzen)
  Re: ANSI Colors in a C program under Linux... (Jim Marshall)
  What is 'setuid', and how to use it? (Hendrix)

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

From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: Opera 4.0a core dump
Reply-To: [EMAIL PROTECTED]
Date: Tue, 04 Jul 2000 04:18:39 GMT

Centuries ago, Nostradamus foresaw a time when Praedor Tempus would say:
>I finally decided to try out the Opera browser.  I downloaded the
>opera 4.0a browser, both deb and bzip2 file.  First, I tried installing
>the deb file with kpackage.  Segfault.  I upgraded kpackage and now 
>cannot even start kpackage without a segfault (before the upgrade,
>I could start it and dick with rpms).  
>
>I gave up on kpackage and went with the always trustworthy bzip file
>version.  I decompressed opera into its binary and tried to start it.
>Core dump.  
>
>Has anyone managed to get Opera 4.0a installed and running on linux?
>
>I have Mandrake 7.1, latest updates.  Kernel is 2.2.16, glibc is
>glibc-2.1.2-9mdk.

I don't think the issue has anything much to do with the packaging
mechanism, but rather with "dueling libraries."

I installed Opera on a Debian-based system, and, with a bit of
entertainment getting appropriate prerequisite packages installed, got
it "running."

Opera looked nice enough, but the first remote URL I'd try to hit
would result in it crashing.

It's probably that whatever C++ libraries you've got installed do not
_perfectly_ match what Opera expects to have.  There is not yet any
ABI standard for C++, so that any change of _any_ of the following
appears to result in ludicrous breakage of code:
 - Differing versions of GCC
 - Differing versions of libstdc++
 - Differing versions of Qt libs

GCC 3.0 is supposed to introduce some improvements in this regard, but
that's vaporware at this point.
-- 
[EMAIL PROTECTED] - <http://www.hex.net/~cbbrowne/linux.html>
>Ever heard of .cshrc?
That's a city in Bosnia.  Right?
(Discussion in comp.os.linux.misc on the intuitiveness of commands.)

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

From: [EMAIL PROTECTED] (Jonathan M Hill)
Subject: Re: floppy in DOS format
Date: 4 Jul 2000 03:50:53 GMT

[EMAIL PROTECTED] wrote:
: Bryan Kelly <[EMAIL PROTECTED]> wrote:
: > mount a floppy
: > I am a Windows user and am learning how to use Linux.  I now need to copy
: > files between my Win 98 machine and Linux machine.  My only transport
: > mechanism is floppy,
: 
: The /etc/fstab file has a default for the mount. Usually set for Linux
: disks. If you want to mount something else, you have to specify:

Hello;

     Yes the fstab file can be set to define a default file type and other
stuff as well for your floppy drive.  Rather than learning how to modify the
fstab, I suggest that you su to superuser and then use a convenient tool like
linuxconf.  I like linuxconf as it neatly organizes the details for you.

                                                    Jonathan Hill
                                                    [EMAIL PROTECTED]


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

From: Kari Pahula <[EMAIL PROTECTED]>
Subject: Re: Maby a dumb file question
Date: 4 Jul 2000 04:41:00 GMT

[EMAIL PROTECTED] wrote:
>Hi all. Cant seam to remove a file that was placed on my system by a
>hacker.

man chattr

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

From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: newsreader for Linux?
Reply-To: [EMAIL PROTECTED]
Date: Tue, 04 Jul 2000 04:54:20 GMT

Centuries ago, Nostradamus foresaw a time when John Hasler would say:
>William Wueppelmann writes:
>> Everyone knows that mail is the ultimate MUA,...
>
>I had to drag my wife kicking and screaming away from mail to mutt.  After
>about six months she is beginning to grudgingly admit that it might have a
>few desireable features.  I also had to drag her away from rn for news.
>She still hates trn, but I refused to maintain rn anymore.

Has she a sister? [he hesitates to ask...]

trn was _rather_ a lot more powerful than rn; I hope you're not suggesting
that if there was still a version of readnews around that she'd prefer
its even more spartan user interface...

>> ...if you can't happily read news using sed and more,...
>
>Sed?  Wrong tool.

Indeed.  I'd think the relevant tools to be find, grep, and more...

For a little while, I forwarded my news spool through ifilter, and
then used MH to read it.  The quality of filtering wasn't quite up to
scratch, and the time required was pretty phrenetic...
-- 
[EMAIL PROTECTED] - <http://www.ntlug.org/~cbbrowne/linux.html>
"Parentheses?  What  parentheses? I  haven't  noticed any  parentheses
since my  first month of Lisp  programming.  I like to  ask people who
complain about  parentheses in  Lisp if they  are bothered by  all the
spaces between words in a newspaper..."
-- Kenny Tilton <[EMAIL PROTECTED]>

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

From: [EMAIL PROTECTED]
Subject: Re: Debian 2.1 upgrade failed !!!
Date: Tue, 04 Jul 2000 04:47:50 GMT



> I have tried Tomsrtbt floppy as that has both lilo and libc on
> it.  So after mounting my Debian partition on /mnt and entering
> 'lilo -r /mnt ' lilo does run but displays the following:
> 'first boot sector doesn't have a valid LILO signature'.

(As noted in the FAQ,) use:

   chroot /mnt /sbin/lilo

instead of lilo -r /mnt because you will get a version conflict between
boot.b and the lilo executable...

> barry (dot) samuels
> @
> btinternet (dot) com
>
>


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

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

From: [EMAIL PROTECTED]
Subject: Re: Debian 2.1 upgrade failed !!!
Date: Tue, 04 Jul 2000 04:47:05 GMT



> I have tried Tomsrtbt floppy as that has both lilo and libc on
> it.  So after mounting my Debian partition on /mnt and entering
> 'lilo -r /mnt ' lilo does run but displays the following:
> 'first boot sector doesn't have a valid LILO signature'.

(As noted in the FAQ,) use:

   chroot /mnt /sbin/lilo

instead of lilo -r /mnt because you will get a version conflict between
boot.b and the lilo executable...

> barry (dot) samuels
> @
> btinternet (dot) com
>
>


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

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

From: [EMAIL PROTECTED] (Brent Burton)
Subject: Re: Move my disk from /dev/hda to /dev/hdb
Date: 4 Jul 2000 05:05:24 GMT

Gerry Snyder <[EMAIL PROTECTED]> wrote:
| My idea is to make another /etc/fstab with all the hda's changed to
| hdb's, called fstab.hdb, and copy the original to fstab.hda . Then do
| something similar with lilo.config but have one version with one version
| each with all files/partitions on hda and hdb, with (at least) versions
| of the latter with writing the boot sector on hda, hdb, and fd0 .
| 
| I know I need to think more about the transition process, but are there
| other files I need to worry about?

/etc/fstab is really the only file that identifies by partition.  Once
mounted, everything is referenced from / as you know.  Other files that
will matter but are not required for bringing up the system would be,
for example, backup scripts that you may have.

You mention using LILO for this.  When I moved disks around like this some
time ago, LILO wouldn't configure simply because the blocks it expects other
kernels to reside in (say for your new, nonexistent hdb) don't exist.

What I did was create one kernel boot floppy, and used rdev to configure the
root device to hdb.  You'll also want to create a rescue floppy that boots
to shell with basic tools, so that if you nuke the changeover you can mount
your hdb or hda and fix up the fstab* files as necessary.  The rescue disk
is an excellent butt-saving tool anyway.  (And there are docs on this.)

So once you have your floppies created and labeled, test them.  Boot
the rescue floppies so you know how it works; know exactly how 'mount'
works; know how the editor installed on the rescue disk works.

Once that's done, you're ready to go.  Shutdown and move hda to hdb by
swapping Master/Slave jumpers, and install the new hda.  Make sure the BIOS
is set identically for hdb as it was before.  Boot your rescue disk(s), and
try to mount the root partition on hdb read-write. Copy over the new
fstab.hdb, sync it, umount it.

At this point, hopefully you've successfully mounted hdb and now it's
fstab points to the right place.  Pop in the kernel floppy for hdb
and see what happens...  Since you've already proven hdb will mount
correctly, the system should come up provided fstab is correct.  At
this point LILO can be reconfigured (and make a LILO floppy while you're
at it, as Win2K will nuke your MBR on hda).

So that's the process I remember.  It's a simple conversion, but has many
places to go wrong if one is sloppy.  Pause a few seconds before smacking
Return on each command.  And, as always, make a backup prior to doing this.

cheers,
-bpb


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

From: Stan Towianski <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Apache allow subdirectories? and how save *.zip?
Date: Tue, 04 Jul 2000 05:11:13 GMT

Hi,

I installed linux mandrake 7.1 and it nicely set up a working
Apache-Extranet server  1.3.12
I just changed a couple of lines in the /etc/httpd/conf/httpd.conf file
regarding my DocumentRoot.

It points to the standard /home/httpd/html.  I have a simple link in my
index.html like:
<a href="/html/whatever.zip">whatever</a>
With netscape 4.73 I go to localhost, then add index.html and that works
fine.  But when
I pick the link, it does not ask me where to save whatever.zip like
I want.  It gives me:

Not Found

The requested URL /html/whatever.zip was not found on this server.


It will find another html link.  I at first created a subdirectory
called ./html/files.  It says
the same thing if I put the file in there, and I think it did not even
find an html file in here.
I know these might be 2 different problems.

I cannot find anything in the apache doc.s that tellls me if it
automatically lets you go into subdirectories
of html or not.  I looked at the <Directory> command, but it does not
say, and I cannot find anything
about how it will handle *.zip files.  I thought *.zip files were
automatically asked to be saved, or is my
netscape not set up with a mime-type for *.zip?  Do I have to do that
manually?

1.) I want to have an <a href> link to a (zip) file so when the user
clicks it he will be asked to download and save it.
2.) How can I tell Apache to let me use subdirectories of /html or how
can I tell it a list of directories I want to use?

Any help will be appreciated.

Stan Towianski
[EMAIL PROTECTED]



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

From: Hendrix <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.lang.c
Subject: ANSI Colors in a C program under Linux...
Date: Tue, 04 Jul 2000 02:38:28 -0230

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!!!  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...  

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*

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

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

From: Harlan Grove <[EMAIL PROTECTED]>
Subject: Re: Shell Script
Date: Tue, 04 Jul 2000 05:24:07 GMT

In article <8jrmu7$l6k$[EMAIL PROTECTED]>,
  Clif J. Smith <[EMAIL PROTECTED]> wrote:
...
>I've got a file with systems listed down a column.  I want to perform
>an action for each system, one after another.  For example, with
>the following file contents:
>
>system1;miscdata
>system2;miscdata
>system3;miscdata
>system4;miscdata
>
>I want to use the system in each line to perform a number of functions,
>then move to the next system.  I've done this before, I think using a
>combination of cuts and a while, but can't remember how.

cut -d\; -f1 some_file | xargs -l -t some_script

where some_file is the file containing the list of systems shown in your
post and some_script is a script containing the commands you want to
run. With the -l option, xargs will feed each system to some_script as
its first (and only) command line argument. The -t option displays those
command lines.

If you have to use a while loop,

while read str
do
  sys="${str%%;*}"
  # do stuff with $sys
done < some_file

[yes, I'm anal about double quoting values of shell variables]


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

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

From: Akira Yamanita <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: Apache allow subdirectories? and how save *.zip?
Date: Tue, 04 Jul 2000 05:30:10 GMT

Stan Towianski wrote:
> 
> <snip> 
> It points to the standard /home/httpd/html.  I have a simple link in my
> index.html like:
> <a href="/html/whatever.zip">whatever</a>
> With netscape 4.73 I go to localhost, then add index.html and that works
> fine.  But when
> I pick the link, it does not ask me where to save whatever.zip like
> I want.  It gives me:
> 
> Not Found
> 
> The requested URL /html/whatever.zip was not found on this server.
> 
> It will find another html link.  I at first created a subdirectory
> called ./html/files.  It says
> the same thing if I put the file in there, and I think it did not even
> find an html file in here.
> I know these might be 2 different problems.

What do you mean it will find another html link? What's the full
explicit path and how are you referencing it?

example: /home/httpd/html/whatever.zip is linked using "/whatever.zip".

> I cannot find anything in the apache doc.s that tellls me if it
> automatically lets you go into subdirectories
> of html or not.  I looked at the <Directory> command, but it does not
> say, and I cannot find anything
> about how it will handle *.zip files.  I thought *.zip files were
> automatically asked to be saved, or is my
> netscape not set up with a mime-type for *.zip?  Do I have to do that
> manually?
> 
> 1.) I want to have an <a href> link to a (zip) file so when the user
> clicks it he will be asked to download and save it.

If /home/httpd/html is the document root and whatever.zip is in
/home/httpd/html then /html/whatever.zip as the link is wrong.
The link should simply point to whatever.zip if the HTML file
is in the same directory. If you're referencing a file from a
different directory, you'll need to use the appropriate relative
path or the full path.

> 2.) How can I tell Apache to let me use subdirectories of /html or how
> can I tell it a list of directories I want to use?

Subdirectories inherit the access rights and options from above.

Can you give better examples as to where on the filesystem the
file is located (/home/httpd/html/files/whatever.zip) and how
the file is referenced from the HTML document as a link?
(/files/whatever.zip)

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

From: [EMAIL PROTECTED] (Bjoern Frantzen)
Crossposted-To: alt.os.linux,comp.lang.c
Subject: Re: ANSI Colors in a C program under Linux...
Date: Tue, 4 Jul 2000 07:42:56 +0200
Reply-To: [EMAIL PROTECTED]

Hendrix <[EMAIL PROTECTED]> wrote:
>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

Use ncurses, Slang or the likes, as these libraries has already done all the
hard work for you.

See the source code for linuxconf, or the lxdialog from the kernel
(/usr/src/linux/scripts/lxdialog) how colours can be done in a portable way.

>with this!!!  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...  

And what happen when I use a terminal that doesn't understand all your fines
ANSI esc sequences? It's not nice to see

ESC[2JESC[0;0H
ESC[0;1;37;47m
ESC[0;30;47m#####ESC[1;37m#########ESC[1;37;40m
ESC[0;1;37

-- 
        Bj�rn Frantzen

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

From: [EMAIL PROTECTED] (Jim Marshall)
Crossposted-To: alt.os.linux,comp.lang.c
Subject: Re: ANSI Colors in a C program under Linux...
Date: Mon, 3 Jul 2000 22:51:26 -0700
Reply-To: [EMAIL PROTECTED]

In alt.os.linux on Tue, 04 Jul 2000 02:38:28 -0230, 
 Hendrix <[EMAIL PROTECTED]> wrote:

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

====================================
#include <stdio.h>

int main ()
{
printf("\033[33m\033[1;44mHello Colors\033[0m\n");
}
====================================

"man dircolors" is one source for the escape codes used for ansi
colors (I'm sure there are others, too). Of course, if you were
going to write a program using colors, you'd use variables to
avoid having to type those ugly escape codes in every time.

-- 
Slackware 7.0 Linux
 10:38pm  up 1 day,  1:15,  5 users,  load average: 0.00, 0.00, 0.00

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

From: Hendrix <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: What is 'setuid', and how to use it?
Date: Tue, 04 Jul 2000 03:19:11 -0230

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)

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


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