Linux-Misc Digest #971, Volume #23 Mon, 27 Mar 00 13:13:04 EST
Contents:
announce: library for event ques (Stefano Ghirlanda)
netscape (Jan)
Problem: mpg123 stalls everytime ("Catilina")
Re: hosnames in title var of Xterm (Dances With Crows)
Re: Kernel Compile? (Andreas Kahari)
Re: Ftape error - read only (scott)
RH 6.1 boot generates a FPU error (Jerry)
Re: BTW: Re: find and grep ? (Andreas Kahari)
Re: hosnames in title var of Xterm (Robie Basak)
Re: sed and substitute newline--how? (Andreas Kahari)
Re: hosnames in title var of Xterm (Floyd Davidson)
XView and itimerval problem!!!! (Sylvain Durand)
Re: sending mail with your ISP smtp server? (Michael Kelly)
IDE zip Drives (Ralph Blach)
Re: error, can't find shared library... (Markus Kossmann)
Re: Can Linux be setup to host web folders? (Rod Smith)
Re: Ditto Max Configuration? (Robie Basak)
----------------------------------------------------------------------------
From: Stefano Ghirlanda <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.c++
Subject: announce: library for event ques
Date: 27 Mar 2000 19:14:41 +0200
Hi,
I have put together a simple library called TimeQ.
>From the README:
TimeQ is a small (81 non-empty, non-comment lines) C++ library that allows
managing of events in a queue (actually, several queues, see below).
It is mainly intended as a tool for the simulation of complex,
but also simple, event-driven systems.
The key concept is that of an Event (files: TimeQ-Event.*) which happens
at a given time. Events are Add()'ed into a Manager object, which keeps
track of all events' *due time*. The Manager knows which event is due first
and processes all Events in order. Event can be added at any time, the only
restriction is that they can't be due in the past.
More details (but not so very much more) at my site:
http://ethology.zool.su.se/~stefano/software
The library is in ANSI C++ (I believe) but the intallation script is for
unix-like systems. Version is 0.1.1 - ALPHA!
Code is licensed under the GNU General Public License.
Stefano
--
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
email: [EMAIL PROTECTED], tel: +46-8-164055, fax: +46-8-167715
the free science campaign: http://ethology.zool.su.se/freescience
------------------------------
From: Jan <[EMAIL PROTECTED]>
Subject: netscape
Date: Mon, 27 Mar 2000 18:19:15 +0100
I know this is a bleedin stupid question, but does anyone know how to
make netscape beep when new mail comes in? I can't figure it out for
the life of me...
------------------------------
From: "Catilina" <[EMAIL PROTECTED]>
Subject: Problem: mpg123 stalls everytime
Date: Mon, 27 Mar 2000 19:22:27 +0200
Has anyone else experienced problems with mpg123? If i use my drive for
anything else while playing an mp3, it just stalls, and i have to press
ctrl-c to end it. I'm using debian 2.2, celeron 300, 128 MB ram.
Thanks for any advice!
C.
------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: hosnames in title var of Xterm
Date: 27 Mar 2000 12:24:32 EST
Reply-To: [EMAIL PROTECTED]
On Mon, 27 Mar 2000 09:08:12 +0100, Neil
<<[EMAIL PROTECTED]>>
shouted forth into the ether:
>
>In Suse linux, tcsh is configured in such as way as to display hostname
>and path in the title bar of Xterms.
>Is there a way to do this in bash for remote systems ? I've trawled around
>all the usual places but to no avail.
echo -e "\033]0;`hostname`:`pwd`\007"
Put that command in your PS1 and see how it goes....
--
Matt G / Dances With Crows \###| Programmers are playwrights
There is no Darkness in Eternity \##| Computers are lousy actors
But only Light too dim for us to see \#| Lusers are vicious drama critics
(Unless, of course, you're working with NT)\| BOFHen burn down theatres.
------------------------------
From: Andreas Kahari <[EMAIL PROTECTED]>
Subject: Re: Kernel Compile?
Date: Mon, 27 Mar 2000 17:25:18 GMT
In article <[EMAIL PROTECTED]>,
Mark Guzzo <[EMAIL PROTECTED]> wrote:
> I tried last night to compile the 2.3.15 kernel for my RH 6.1.
> Every goes fine until I run the command "make dep". I get some errors
> (sorry I do not have a screen shot right now, I'm at work). It gives
me
> an error and stops.
> Now I have gcc version 2.91.66 installed, could this be a problem?
>
> Mark
>
>
Did you install any patches? Did you do "make clean"?
The change doc for the 2.3 kernels says, about egcs:
Note that the latest compilers (egcs, pgcc, gcc 2.8) may do Bad
Things while compiling your kernel, particularly if absurd
optimizations (like -O9) are used. Caveat emptor. Currently, the only
C compiler available in a binary distribution is egcs. Version 1.0.3
seems okay; if you have to have a binary, you may be successful using
that. In general, however, gcc-2.7.2.3 is known to be stable, while
egcs and others have not been as thoroughly tested yet.
/A
--
# Andreas K�h�ri, <URL:http://hello.to/andkaha/>
# Scandinavinans, without us "thursday" wouldn't exist!
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: scott <[EMAIL PROTECTED]>
Subject: Re: Ftape error - read only
Date: Mon, 27 Mar 2000 17:30:11 GMT
I had already tried changing permissions to /dev/qft0, though I
forgot to say that in my original post. Anyone else have any idea? I
refuse to believe that no one out there knows the answer to this. (That
was a challenge, by the way!)
Scott
Robie Basak wrote:
>
>
> On Sat, 25 Mar 2000 19:30:10 GMT, scott said:
> >Whenever I try writing to my Iomega 3200 tape drive, I get an error
> >similar to the following;
> >
> >Cannot open /dev/qft0: Read-only file system
> >
> >(I have also used /dev/ftape and /dev/nqft0)
> >
> >I can rewind the tape, forward the tape, and read the contents of the
> >tape, but I can't write to it. And no, the write protect thingy on the
> >tape isn't "on". But the fact I can move the tape leads me to believe
that
>
> Have you checked the permissions of /dev/qft0? Try 'chmod 660 /dev/qft0'.
>
> >at least I installed everything correctly, and the system can see it. I
am
> >using RedHat 6.0 with a 2.2.14 kernel and ftape-4.x-1999_09_11, which I
> >know is unstable, but is the only one that will work with kernel
2.2.14. I
> >also installed ftape-tools-1.07.
> >
> >It doesn't seem like many people answer ftape questions, because I see
a
> >lot of previously asked questions have gone unanswered, but I am hoping
> >someone can help me. I am up to my ears in How-To's and FAQ's. And my
boss
> >is starting to think I am an idiot.
>
> You could ask the linux-tape mailing list, [EMAIL PROTECTED]
>
> Robie.
>
> >
> >
> >--
> >Posted via CNET Help.com
> >http://www.help.com/
>
>
> --
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: Jerry <[EMAIL PROTECTED]>
Subject: RH 6.1 boot generates a FPU error
Date: Mon, 27 Mar 2000 17:30:12 GMT
During boot for install, the kernel checks the FPU's ablitiy to generate
an exception.(#16). This function fails 7 of 8 times. Preventing the boot
from continuing. Are there any coppermine specific patches or parameters
I should be using? Installing Win98 results in a corrupted registry after
the final reboot and after any new drivers.
The system configurations is:
PIII-550E (socket 370 coppermine) on a matrix SSA(good for both celeron and
coppermine).
Abit VA6 (slot 1) motherboard
128M ram
~9G IDE harddrive
IDE cd
Voodoo 3 2000 pci display card
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: Andreas Kahari <[EMAIL PROTECTED]>
Subject: Re: BTW: Re: find and grep ?
Date: Mon, 27 Mar 2000 17:30:10 GMT
In article <[EMAIL PROTECTED]>,
Russ <[EMAIL PROTECTED]> wrote:
> Neil wrote:
>
> > On Mon, 27 Mar 2000 21:09:27 +1000, "Doug" <[EMAIL PROTECTED]>
wrote:
> >
> > >How do I give the output of something like
> > >find . -name '*html'
> > >to grep so that I can search through the contents of all the found
files.
> >
> > find . -name "foo.*" -print | xargs grep "stuff"
> >
> > grep -li is handier since it gives you filenames and in not case
sensitive
>
> Can anyone tell me how to do the above except *skip* a directory (I'd
like to
> grep everything but skip /mnt/vfat which takes a long time and is not
> necessary).
>
>
Use the '-prune' flag for 'find' (see man).
/A
--
# Andreas K�h�ri, <URL:http://hello.to/andkaha/>
# Scandinavinans, without us "thursday" wouldn't exist!
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Robie Basak)
Subject: Re: hosnames in title var of Xterm
Reply-To: [EMAIL PROTECTED]
Date: 28 Mar 2000 01:51:42 GMT
On Mon, 27 Mar 2000 09:08:12 +0100, Neil said:
>Hi
>
>In Suse linux, tcsh is configured in such as way as to display hostname and path
>in the title bar of Xterms.
>
>Is there a way to do this in bash for remote systems ? I've trawled around all
>the usual places but to no avail.
I believe you want http://sunsite.unc.edu/LDP/HOWTO/mini/Xterm-Title.html.
Robie.
>
>Neil
>
>
--
------------------------------
From: Andreas Kahari <[EMAIL PROTECTED]>
Subject: Re: sed and substitute newline--how?
Date: Mon, 27 Mar 2000 17:37:09 GMT
In article <[EMAIL PROTECTED]>,
Ron <[EMAIL PROTECTED]> wrote:
[cut]
> But the following DOES NOT WORK:
>
> tr 'this' '\n' <input.txt >output.txt
>
> This will change every 't' to '\n', every 'h' to '\n', every 'i' to
'\n', and
> every 's' to '\n'! A fun thing to do, but that's not what I wanted :)
>
> Thanks
> Ron from Michigan
Good, that shows someone reads what I write! ;-)
Yes, I realized I was wrong just after posting that stupid thing. But I
forgot about it right afterwards... sorry.
/A
--
# Andreas K�h�ri, <URL:http://hello.to/andkaha/>
# Scandinavinans, without us "thursday" wouldn't exist!
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Floyd Davidson <[EMAIL PROTECTED]>
Subject: Re: hosnames in title var of Xterm
Date: 27 Mar 2000 07:55:15 -0900
[EMAIL PROTECTED] (Steve) wrote:
>Neil wrote:
>>Hi
>>
>>In Suse linux, tcsh is configured in such as way as to display
>>hostname and path in the title bar of Xterms.
>>
>>Is there a way to do this in bash for remote systems ? I've
>>trawled around all the usual places but to no avail.
>
>I can get it to sort of work by using -n ${PWD} as in the
>example below,
>
>$ xterm -bg 'black' -fg 'green' -n ${PWD}
The -n option sets the icon title. Use -T to set the window title.
>The only problem with this is it doesn't change when you change
>directory, it only gives the directory from which you open the
>xterm.
I don't recommend doing it, but... here is something that could
be put into a .bashrc file (or whichever init file is used to
set the PS1 variable),
export PS1='\[\033]0;\h:\w\007\033[36m\]\h:\u \w >\[\033[m\]'
That will set the xterm title to "host:path", and it will change
every time you cd to a new directory. The significant part of
the above is "\033]0;\h:\w\007", which must be between
"\[ ... \]" brackets. In the above it has "\033]36m" appended
to it, which sets the foreground color to cyan.
Another variation would be "\033]0;\h:${PWD}\007" which will not
shorten ${HOME} to a tilde as the "\w" will do.
What I actually do use, is the rest of the above
export PS1='\[\033[36m\]\h:\u \w >\[\033[m\]'
Which sets my prompt to cyan color, and looks like this:
tanana:floyd ~/News >
Cyan shows up nicely with a background that is either white or
black. One variation is to make the root prompt a distinctly
different (and perhaps annoying) color.
A handy function to have in your .bashrc file (assuming that the
xterm title is not set using the prompt above) is
function ht {
echo -en "\033]0;${1}\007"
}
Which allows one to set the xterm title to whatever using the
command "ht whatever".
Floyd
--
Floyd L. Davidson [EMAIL PROTECTED]
Ukpeagvik (Barrow, Alaska)
------------------------------
From: Sylvain Durand <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x,comp.os.linux.development.apps,comp.sys.sun.admin
Subject: XView and itimerval problem!!!!
Date: Mon, 27 Mar 2000 18:52:34 +0200
Hello,
Sorry for cross posting but I am really stuck with this problem and I
could not find anything from multiple searches I have already done.
I have an application which was running fine within SOLARIS(SunOS
Release 5.4 Version generic[UNIX(R) System V Release 4.0]). I now need
to use this application within Linux (Red Hat Linux release 6.0, kernel
2.2.5), but although the programme does seem to compile within Linux, it
does not work with Linux.
This programme uses graphics (XView packages). The problem seems to be
with the notifier notify_set_itimer_func().
Following is some extract of the programme:
Call of the function "updating" in the programme main:
struct itimerval timer;
xv_set(Mwindow1->slider_time, XV_KEY_DATA, 1000, NULL);
updating(Mwindow1->slider_time, 20, NULL);
The window is killed straight away after this two previous lines.
displaying the following message:
XView warning: bad attribute, attr # 0x4000a1f8
XView warning: bad attribute, attr # 0x40004de3
XView warning: bad attribute, attr # 0x4000a1f8
XView warning: bad attribute, attr # 0x40004de3
Relevant functions:
Notify_value
update_r()
{
#if DIBU_LINEA
draw_lista_bis();
#endif
if (US_RASTRO == 0)
{
draw_lista_bis();
}
draw_r();
if(dibu_selector[PATH] == DIBUJA) draw_path();
if(dibu_selector[GOAL] == DIBUJA) draw_target();
if(dibu_selector[INCER] == DIBUJA)
{
draw_elipse();
draw_angle();
}
return NOTIFY_DONE;
}
/*
* Notify callback function for `slider_time'.
*/
void
updating(item, value, event)
Panel_item item;
int value;
Event *event;
{
int sec, usec;
Mwindow1_objects *ip = (Mwindow1_objects *) xv_get(item, XV_KEY_DATA,
INSTANCE);
if (value > 0)
{
sec = value / 1000;
usec = value % 1000;
timer.it_value.tv_sec = sec;
timer.it_interval.tv_sec = sec;
timer.it_value.tv_usec = (usec + 20) * 1000;
timer.it_interval.tv_usec = (usec + 20) * 1000;
notify_set_itimer_func(Mwindow1->window1, update_r,
ITIMER_REAL, &timer, NULL);
}
else notify_set_itimer_func(Mwindow1->window1, NOTIFY_FUNC_NULL,
ITIMER_REAL, NULL, NULL);
/* gxv_start_connections DO NOT EDIT THIS SECTION */
/* gxv_end_connections */
}
/*
* Notify callback function for `slider_time'.
*/
void
Mwindow1_slider_time_notify_callback(item, value, event)
Panel_item item;
int value;
Event *event;
{
Mwindow1_objects *ip = (Mwindow1_objects *) xv_get(item, XV_KEY_DATA,
INSTANCE);
/* gxv_start_connections DO NOT EDIT THIS SECTION */
updating(item, value, event);
/* gxv_end_connections */
}
Any idea about that problem? Is it a question of compatibility between
Linux and Solaris or is it a XView version issue? Whatever is the
problem how can I fix it?
Thank you very much for any kind of help: advises, other news group more
suitable, web pages, your personal experience and
knowledge...............
Sylvain.
------------------------------
From: Michael Kelly <[EMAIL PROTECTED]>
Subject: Re: sending mail with your ISP smtp server?
Date: Mon, 27 Mar 2000 12:52:02 -0500
>Go into -> File -> Settings
>then the Networks tab in that window,
>then select SMTP, and add your other details.
If only it were that simple.
Mike
--
"I don't want to belong to any club that would have me as a member."
-- Groucho Marx
------------------------------
From: Ralph Blach <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: IDE zip Drives
Date: Mon, 27 Mar 2000 12:54:14 -0500
Does Linux support IDE zip/jazz drivers?
Thanks
Chip
------------------------------
From: Markus Kossmann <[EMAIL PROTECTED]>
Subject: Re: error, can't find shared library...
Date: Mon, 27 Mar 2000 19:02:53 +0200
[EMAIL PROTECTED] wrote:
>
> Hello,
> i wanted to install pv-wave (wave) on linux and
> when I wanted to start wave I got the following
> errormsg:
>
> $> wave
> ..error in loading shared libraries :
> libtermcap.so.2
[...]
>
> Question: how can I tell the program wave to find
> libterm.so.2
> in the directory /usr/i486-linux-
> libc5/lib/libtermcap.so.2 ??
/usr/i486-linux-ibc5/lib contains only backwards compatibility libraries
for old libc5 programs. Does ldd say , that the program is linked
against libc5 ? I don't think so.
And linking a libc6 program with a libarary for libc5-programms is not a
good idea.
There should be a termcap package for libc6 coming with your
distribution. Install it to make your program running.
--
Markus Kossmann
[EMAIL PROTECTED]
------------------------------
Reply-To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Rod Smith)
Subject: Re: Can Linux be setup to host web folders?
Crossposted-To: comp.os.linux.networking,comp.os.linux.setup
Date: Mon, 27 Mar 2000 18:02:36 GMT
[Posted and mailed]
In article <[EMAIL PROTECTED]>,
Larry B <[EMAIL PROTECTED]> writes:
> I would like to use my linux box as a file server through the web via
> web folders. Can this be done? What packages would this involve? I have
> samba installed and working currently.
My hunch is that "web folders" is a Microsoft-ism for "web server." If so,
yes, Linux can do this. Just set up Apache or any of several other web
servers. Of course, you've got to have 24/7 connectivity, and preferably a
fixed IP address. This sort of connectivity poses security concerns for
ANY OS, but many Linux distributions configure themselves in a pretty
insecure way, so I strongly advise anybody using that sort of connection
with Linux to read up on security issues. I've got a few suggested
security book recommendations on one of my web pages:
http://www.rodsbooks.com/books/books-network.html
There are also books there on general Linux networking issues.
--
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux networking & WordPerfect for Linux
------------------------------
From: [EMAIL PROTECTED] (Robie Basak)
Subject: Re: Ditto Max Configuration?
Reply-To: [EMAIL PROTECTED]
Date: 28 Mar 2000 02:00:21 GMT
On Sun, 26 Mar 2000 22:36:44 -0600, Jeremy said:
>Hi, I just got a Ditto Max drive and I cannot get it to work. Anyone got
>that 4mps card to configure? isapnp sees it fine, it
Yes, it was somewhat particular about IO/IRQ/DMA; certain ones didn't
work for me. After some experimentation I got it working on IO 0x220,
IRQ 3, DMA 0 (I don't use COM2, so IRQ 3 is OK).
>is configured at 0x200, irq=5, dma=0. ftape sees it but responds "Device
>not configured" I cannot find any help in the
>manuals, no mention on configuring that card or the ditto max drive. Is
>there any special config options in the kernel (2.2.15)?
You need to get the latest (unstable) version of ftape to compile
under recent 2.2 kernels. The version that comes with the mainstream
kernel is an ancient version which doesn't support the Ditto Max.
>Am I suppose to set the options in the kernel setup or in the
>config.modules file? Can I use my standard FDC, what bitrate
>can it handle and how can I find out. I heard that PCI motherboards have
You can't use the standard FDC; it's too slow (500 kbps I believe) for
the Ditto Max, which goes down to 2000 kbps minimum. I can't run it at
the full 4000 kbps, and 3000 causes lots of tape overruns.
>problems with ftape, is that true and is there any way to find out if
>mine is one of them? Anyone have a web page on configuring the ditto
I have a GA-686BX (a PCI board) based on the Intel 440BX. It works
fine.
>max? - Thanks!!!
http://www.linuxtapecert.org - click on techhelp. If you have further
problems, try the linux-tape mailing list at
[EMAIL PROTECTED]
>
>Jeremy
>
>[EMAIL PROTECTED]
>
Robie.
--
------------------------------
** 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
******************************