Linux-Misc Digest #270, Volume #26                Thu, 9 Nov 00 02:13:01 EST

Contents:
  Re: How to uninstall Netscape 4.75 ? (Arctic Storm)
  Re: running telnet automatically (Neil Cherry)
  Re: kde2 on RH 6.2 (Ed Hurst)
  Re: Can't get "ln -sf" to work ("Aitch")
  KDE help!! (dan)
  Re: poweroff doesn't power off ("Cliff J.")
  Re: divx? (William McBrine)
  Re: kde2 on RH 6.2 (Wayne Pollock)
  Re: Cant start X (second time I'm asking this) ([EMAIL PROTECTED])
  Reformating (Cindy)
  Re: The significance of group "nobody" or user "nobody" (Wayne Pollock)
  Inspiron setup and Disk use  (Joe Cao)
  Re: stat.h -? ([EMAIL PROTECTED])
  Re: mmap() vs. lseek() on /dev/mem ("Spam Me Not")
  multithreads + multiprocessors (NAGAYOSHI HAYASHI)
  RH7.0 'ls' bug? ([EMAIL PROTECTED])

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

From: Arctic Storm <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: How to uninstall Netscape 4.75 ?
Date: Thu, 09 Nov 2000 04:10:31 GMT

I have RedHat Linux 7.0, which came with Netscape 4.75.
I downloaded Netscape 4.76 from the Netscape site, which was in gzip
format.  I used the script ./ns-install to install it.

==============
Michel Catudal wrote:
> 
> Arctic Storm a �crit :
> >
> > I just downloaded Netscopae 4.76 and installed it.
> > How do I uninstall the older version?  Netscape 4.75?
> > I want to reclaim some hard drive space by removing version 4.75.
> > And also, how can I make 4.76 launch when I click on the Netscape icon
> > on the command bar?
> >
> 
> Which distribution are you using?
> 
> If you installed RPM version you don't need be concerned as it should be replaced
> with the new version. If you installed the tar version just delete the .old
> files and directories.
> 
> --
> Tired of Microsoft's rebootive multitasking?
> then it's time to upgrade to Linux.
> http://www.netonecom.net/~bbcat/
> We have software, food, music, news, search,
> history, electronics and genealogy pages.

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

From: [EMAIL PROTECTED] (Neil Cherry)
Subject: Re: running telnet automatically
Reply-To: [EMAIL PROTECTED]
Date: Thu, 09 Nov 2000 04:17:05 GMT

On Thu, 09 Nov 2000 02:59:30 GMT, Sean wrote:
>[EMAIL PROTECTED] wrote:
>> 
>> I'm trying to develop a Perl script that connects on a remote host using
>> telnet, logs in, runs some commands and logs out. The commands' outputs
>> will be processed by the script and then printed. This script must run
>> in a web server (Apache).
>> Does it worth to use sockets in the Perl script? Or is there any
>> solution to automatize the running of commands through telnet (maybe
>> using telnet scripts...)?

>I have researched the same subject. You cannot directly access the
>telnet application with a Perl script b/c telnet is a user 'interactive'
>application. Strange thing is, ftp has built in support for seperate
>scripts and it seems just as interactive as telnet.

You can access telnet via Expect (Expect.pm, I think) and then log in
but you would be better off with the telnet.pm listed below.

>Anyway, the best solution is to use the Perl telnet module. I believe it
>is called Telnet.pm. Search for it. It has the telnet protocols built
>into the module so that it doesn't need the 'interactive'
>/usr/bin/telnet application to operate.


-- 
Linux Home Automation           Neil Cherry             [EMAIL PROTECTED]
http://members.home.net/ncherry                         (Text only)
http://meltingpot.fortunecity.com/lightsey/52           (Graphics)
http://linuxha.sourceforge.net/                         (SourceForge)

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

From: Ed Hurst <[EMAIL PROTECTED]>
Subject: Re: kde2 on RH 6.2
Date: Wed, 08 Nov 2000 22:32:20 -0600

Dan Amborn wrote:

> On Tue, 07 Nov 2000 11:32:19 -0500, Ramin Sina
> <[EMAIL PROTECTED]> wrote:
>
> >Now that kde2 rpms are available for RH 6.2 (
> >http://dot.kde.org/973526972/   if anyone is interested), I was
> >wondering if anyone has had any problems after upgrading or should I
> >expect a smooth upgrade?
> >
> >Thanks
> >Ramin Sina
> >Kernel  2.2.16-3
>
> Worked good for me.  I removed the old RPMs first and then did the
> upgrade.  No problems at all.
>
> --
>
> Dan Amborn
> [EMAIL PROTECTED]
>

I'll be a dissenting voice: I had no problems getting my system to
install KDE2 as and upgrade over KDE1.1.2. That was the only thing that
worked right. KDE2 loaded up as many background services as Gnome. Thus,
it was no less a resource hog than Gnome, and a good bit slower. Also,
many parts of it crashed with alarming frequency. Even the stupid bug
reporter crashed! I always lost the desktop withing the first 5 minutes
of logging on. Any attempt to personalize the appearance only aggravated
things. Further, my whole system, under every GUI, became rather
unstable. I'm really NOT impressed. I removed it all and re-installed
KDE 1.1.2. At least it works, and my system has become stable once
again.

Ed


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

Reply-To: "Aitch" <[EMAIL PROTECTED]>
From: "Aitch" <[EMAIL PROTECTED]>
Subject: Re: Can't get "ln -sf" to work
Date: Thu, 09 Nov 2000 04:41:41 GMT


"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message
news:8uctmb$vdk$[EMAIL PROTECTED]...

> 2) His procedure makes perfect sense. He's trying to show that that -sf
> doesn't overwrite the link when it points to a directory.

The 'ln -sf ' command will allow overwrite when the symlink is pointed to a
file, not a directory. Maybe it's broken, maybe they intended it to be that
way. The only solution I can see is that he remove the old link, and create
a new one. If he feels it's too much work to use the 'rm' command, he can
email [EMAIL PROTECTED] Maybe they will fix it.

Hope I don't go to jail for this...



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

Date: Wed, 08 Nov 2000 23:47:27 -0500
From: dan <[EMAIL PROTECTED]>
Subject: KDE help!!

Hi,

I'm running kde 1.1.2 on XF86-4.0.1, (redhat 7) and everytime I try to
drag and drop, I will get an option to either copy, move or link, when I
choose copy, or move the whole X server crashes and shuts down, and then
I'm back to the terminal.  Any suggestions?

Dan


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

From: "Cliff J." <[EMAIL PROTECTED]>
Subject: Re: poweroff doesn't power off
Date: Wed, 08 Nov 2000 22:55:20 -0600

How would I get 'shutdown -h <time>' to automatically power off? The 'poweroff'
command
works fine for me.

WeBKiLLeR wrote:

> Robert Lynch wrote:
>
> > "Kilian A. Foth" wrote:
> > >
> > > Stefan Silberstein <[EMAIL PROTECTED]> wrote:
> > >
> > > > "Kilian A. Foth" wrote:
> > >
> > > >> When I use poweroff (on my SuSE 7.0), I get the proper shutdown
> > > >> behaviour right until
> > > >>
> > > >> "The system will be halted immediately.
> > > >>  Master Resource Control: Runlevel 0 has been          reached"
> > > >>
> > > >> but no actual powering off. I vaguely recall that immediately after
> > > >> installation this would actually power off the system (and I know for
> > > >> a fact that the board can do it, since the Evil OS does it, too). What
> > > >> could I be overlooking here?
> > > >>
> > > >> --
> > > >> Pain and disappointment are inevitable. Misery is optional.
> > >
> > > > The "normal" kernel doesn�t support auto-power-down.
> > > > With SuSE 6.4 and 7.0 comes a kernel which supports APM.
> > > > Install that one or compile a kernel with the support build in.
> > >
> > > Hmmmm. Since it used to work, and I definitely didn't install a new
> > > kernel, the functionality must be there. How to re-enable it?
> >
> > On RH7 (NOT SuSE) there seems to be a new (?) check in the init
> > scripts:
> > ===
> > HALTARGS="-i -d"
> > if [ -f /poweroff -o ! -f /halt ]; then
> >  HALTARGS="$HALTARGS -p"
> > fi
> >
> > eval $command $HALTARGS
> > ===
> > maybe you have a "/halt" file?
> >
> > HTH. Bob L.
> >
> > --
> > Robert Lynch-Berkeley CA [EMAIL PROTECTED]
>
> i think you should poweroff using :    halt -p
> that works fine for me
>
> if it won't work you have to recompile your kernel with APM support for soft
> poweroff


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

From: William McBrine <[EMAIL PROTECTED]>
Subject: Re: divx?
Date: Thu, 09 Nov 2000 04:58:16 GMT

Janet <[EMAIL PROTECTED]> wrote:
> Also, are there any good DivX players for Linux?  (I'm having a heck
> of a time trying to compile aviplay.)

Aviplay is it. (XMPS is just based on aviplay, and there aren't any others,
AFAIK.) What trouble are you having? I had quite a bit myself, but it was
worth the hassle.

BTW, even if you don't end up using aviplay, the mtrr hack described in
VIDEO-PERFORMANCE in the doc directory is really worthwhile -- my Matrox
G400 went from 28 to 115 on the benchmark, and it made a very visible
difference in other movie players (like xmovie), as well as aviplay.

-- 
William McBrine <[EMAIL PROTECTED]>

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

From: Wayne Pollock <[EMAIL PROTECTED]>
Subject: Re: kde2 on RH 6.2
Date: Thu, 09 Nov 2000 00:05:14 -0500

My system is stable but very slow.  I wonder if the culprit is KDE
or the new QT libraries or what?  (And the new Mahjongg doesn't work
correctly. :-(

-Wayne Pollock

Ed Hurst wrote:
> I'll be a dissenting voice: I had no problems getting my system to
> install KDE2 as and upgrade over KDE1.1.2. That was the only thing that
> worked right. KDE2 loaded up as many background services as Gnome. Thus,
> it was no less a resource hog than Gnome, and a good bit slower. Also,
> many parts of it crashed with alarming frequency. Even the stupid bug
> reporter crashed! I always lost the desktop withing the first 5 minutes
> of logging on. Any attempt to personalize the appearance only aggravated
> things. Further, my whole system, under every GUI, became rather
> unstable. I'm really NOT impressed. I removed it all and re-installed
> KDE 1.1.2. At least it works, and my system has become stable once
> again.

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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.x,comp.os.linux.help
Subject: Re: Cant start X (second time I'm asking this)
Date: Thu, 09 Nov 2000 05:29:16 GMT

On Wed, 8 Nov 2000 19:26:57, "Peter T. Breuer" <[EMAIL PROTECTED]> 
wrote:

> In comp.os.linux.help [EMAIL PROTECTED] wrote:
> : For some reason I suddenly can't start X.  When I try I get a message
> : saying:
>
> :         Authentication failed - cannot start X server
> :         Perhaps you do not have console ownership?
>
> Perhaps you don't! Sounds like the first thing to check. That and if
> Xwrapper is still suid. Then I'd check to see if /tmp is full.

Perhaps I'm not making it clear what a novice I am.  "Xwrapper'?,
"suid"?

> : What do I do?
>
> Look.
>
> If all else fails strace X as it starts up (this is actually darn tricky
> because of the suid thing, and will require you to read the strace
> manual closely).
>
> Peter


Mark Healey
mark1(the 'at' thing)healeyonline.com

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

From: Cindy <[EMAIL PROTECTED]>
Subject: Reformating
Date: Thu, 09 Nov 2000 05:30:05 -0000

I hope I can make this sound right...My grandson tried to put Linux on his 
computer which already had Win 98 and when he tried to boot it up the 
screen says something about invalid partition.......I have tried to 
reformat the harddrive and it will let me but won't let me put win98 back 
on. How do I get rid of this invalid partition thing and get the harddrive 
back to  1 drive.


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

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

From: Wayne Pollock <[EMAIL PROTECTED]>
Subject: Re: The significance of group "nobody" or user "nobody"
Date: Thu, 09 Nov 2000 00:19:35 -0500

They are used in various server programs.  Most server programs must
be run initially as root (usually in order to "listen" on well-known
ports, or to use other protected resources).  But, if the service
had any exploitable security hole, some evil person might gain
root privledges on you system.  The common solution is to start
the service as root, obtain privledged resources, then create
a child process that does the actuall work as a different, unprivledge
user.  The original process usually dies.  Common examples of
services that work this way include Apache (httpd) and mySQL.
So you often have a need for a plain ol' user account and group for
such services.

On Unix platforms it is common to use either user "nobody" or
a special user account created expressly for that purpose (with
login disabled for that account), and group "wheel".  On Linux
group nobody is usually used instead of wheel.

Not it is probably safer, and really just as easy, to use a
seperate group and user for each service.  For example if httpd
must updagte a file (such as "htpasswd" files) from a CGI program,
then the file must be read/write for the user (or less often group)
that httpd runs as.  If you use "nobody" then you end up granting
privledges to that user.  Now if some other service also runs
as user "nobody", some evil person might be able to modify your
htpasswd file (used for secure web site via http authentication
protocols).

Summary: leave thosee groups and users alone.  Make sure login
is disabled on all those acccounts (try using /usr/bin/false for
the account's shell).  When adding a new service, configure that
service to use new user and group ids, not "nobody" or the others.

-Wayne Pollock

mike wrote:
> 
> Hi,
>     I have seen the use of user "nobody" in /etc/passwd
> and group "nobody" in /etc/group.
>     Also there is "wheel", "sync" "operator".

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

From: Joe Cao <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.portable,comp.os.linux.setup
Subject: Inspiron setup and Disk use 
Date: Wed, 08 Nov 2000 22:26:15 -0800

Hello,

I just installed a redhad 7.0 on my Dell Inspiron 4000.  I setup the X
window fine. But I don't know which server it uses, XMarch64?
How can I know that? Now the problem is whenever I move mouse or hitting

arrow keys (in X window
or not), I can hear a low zzzzzz...  clicking sound.  It
doesn't seem to be from
the speaker, because when I plug in the headphone, I
can still hear it. Is it a problem the notebook?  When I use windows, I
don't hear it.  Also when I am running
"x11perf -pointer", I don't hear it also.  But after
the "x11perf" window disapperas, the sound comes back.  It's very
annoying.  Please let me know how to fix it.

The second question.  Seems like the system (Gnome on Redhat 7.0)
constantly
writes to hard disk.  I can hear the disk operation every 5 seconds or
so while
the system is idle.  How do I
find out what's being writing or read from the disk?  How do I disable
it?  I don't
think the system has to use the disk that much.

Thanks a lot!

Joe


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

From: [EMAIL PROTECTED]
Subject: Re: stat.h -?
Date: Thu, 09 Nov 2000 06:21:06 GMT

Thanks. It is OK now. I got a stat.h copied from another machine, and
the card is now fuctional.

However, how this issue came up is still a mystery to me.

Any clues?



In article <8ua1i0$5lp$[EMAIL PROTECTED]>,
  "Peter T. Breuer" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> :   I am comparitively a novice at the art of installing packages by
> : compiling them. Since the graphics card that I have is an Intel 815,
I
> : had to try to install the agpgart module. But when I tried to make
it,
> : it said "unterminated character constant" in many lines
> : of /usr/src/linux/asm/stat.h.
> : So I opened it, found that it was nearly 20 MB, did a 'file', which
> : told me that it was a tar archive, so I extracted it - and a
directory
> : named /gdb with many source files was extracted. All this may be
fine,
> : but how do I compile the original code, in a way that it
> : includes /asm/stat.h?
>
> Your post is incomprehensible. Try again.
>
> If you have a tar archive, untar it, read the README inside, and do
what it
> says.
>
> Note that /usr/src/linux/asm/stat.h is most definitely NOT a tar
> archive!  So I don't know what you are on about ...
>
> Getting a directory called gdb made rather suggests that you had a tar
> archive of gdb (gnu debugger). Why?
>
> Peter
>


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

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

From: "Spam Me Not" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.system
Subject: Re: mmap() vs. lseek() on /dev/mem
Date: Thu, 09 Nov 2000 06:38:51 GMT

It doesn't work because /dev/mem explicitly disallows it:
from /usr/src/linux/drivers/char/mem.c:

static ssize_t read_mem(struct file * file, char * buf,
99                         size_t count, loff_t *ppos)
100 {
101         unsigned long p = *ppos;
102         unsigned long end_mem;
103         ssize_t read;
104
105         end_mem = __pa(high_memory);
106         if (p >= end_mem)
107                 return 0;
[snip]
This means that you can't read any values with physical addresses higher
than the largest physical
regular RAM address in the system.  Most if not all bus addresses usually
are mapped above
the end of physical RAM in the system in most bus architectures, including
PCI.

You could write your own "/dev/mem"-like device that doesn't have this line
in it and it should probably
work fine.  You may have to be careful about issuing memory barriers for
your device driver to work
correctly, depending on your particular CPU, chipset, and, device
characteristics.

Jeff Andre <[EMAIL PROTECTED]> wrote in message
news:8ucmtr$s3j$[EMAIL PROTECTED]...
> Gary Parnes ([EMAIL PROTECTED]) wrote:
> : Okay, I don't know what subtlety I'm missing here...
>
> : I'm trying to access kernel memory from user space.  A simple way to
> : access kernel RAM is, of course, using lseek() on /dev/mem as root.
> : lseek'ing lets me browse the virtual memory space on an x86 box (from
> : 0xC0000000 up to end of RAM) quite nicely.  But if I want to browse the
> : memory mapped portions of a PCI peripheral, I end up having to use
> : mmap() with the physical bus address of the PCI peripheral.
>
> : What I'm looking for is a common way to access both kernel RAM and PCI
> : memory space.  The lseek technique doesn't seem to work in the PCI
> : memory space, and the mmap() technique doesn't seem to work in kernel
> : RAM space.  I've tried playing with all sorts of permutations, but
> : nothing seems to work.
>
> : Why am I encountering problems?
>
> What problems are you having?  As a debugging tool I'm about to write
> a read/llseek interface to a PCI's memory.
>
> --
> Jeff Andre



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

From: NAGAYOSHI HAYASHI <[EMAIL PROTECTED]>
Subject: multithreads + multiprocessors
Date: 9 Nov 2000 06:43:44 GMT

hi :

I would like to ask does the linux kernel 2.2.X or above
supports processor affinity for threads ?  That is, the
programmer can specify/bind/lock a particular thread to
one particular processor.  If it is, can anyone tell me
how to ?  If it isn't, is there any tools that can
help in doing that ?

many many thanks.

cheers,
Kai


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

"Ah, 'All things come to those who wait.'
They come, but often come too late."

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

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

From: [EMAIL PROTECTED]
Crossposted-To: alt.os.linux
Subject: RH7.0 'ls' bug?
Date: Thu, 09 Nov 2000 06:48:12 GMT

/bin/ls --version gives: ls (GNU fileutils) 4.0x

when run by root on a filename.rpm file,
"/bin/ls -F --color" displays it in red color, while when run by a
non-privilaged user, same command doesn't color the filename.rpm
(permissions: -rw-r--r--)

This just seems weird.

Wroot


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

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


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