Linux-Development-Sys Digest #892, Volume #7 Mon, 22 May 00 18:13:16 EDT
Contents:
Re: linux tools advice ("Stuart D. Gathman")
Re: Problem with aha152x module (Rick Ellis)
Re: source code of shutdown (Rick Ellis)
Re: ping souce code (Diego Betancor)
Re: What !@#$ moron colorised g++? ([EMAIL PROTECTED])
Re: What !@#$ moron colorised g++? (Chetan Ahuja)
Re: Signal in Linux? (Rick Ellis)
Re: Need ideas for university funded project for linux (D G)
shm broken in recent (.99pre) kernels? (Aaltonen Timo)
Re: Need ideas for university funded project for linux ("Anthony W. Youngman")
Re: Need ideas for university funded project for linux ("Anthony W. Youngman")
Re: Need ideas for university funded project for linux (JEDIDIAH)
----------------------------------------------------------------------------
From: "Stuart D. Gathman" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: linux tools advice
Date: Mon, 22 May 2000 13:30:44 -0400
sllai wrote:
> what do I need to develop an GUI application in linux system. Must I develop
> it in linux environment or can I do it in the PC environment and then
> transfer it into the linux based system.
I have had success developing on *nix (AIX, Linux) and running on Windoze by
using the Java system. I'm not sure why you would want to do the reverse, but
with Java you can. If your development machine has lots of RAM (128 M), you
can use a GUI IDE such as Forte (free as in free beer from Sun). The Forte
binary runs on Windoze and on Linux - that is a big feature of Java.
If you have less RAM (like me), I recommend 'Vim' (www.vim.org) and the JDK.
------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: Problem with aha152x module
Date: 22 May 2000 17:52:59 GMT
In article <lFEU4.896$[EMAIL PROTECTED]>,
David Ronis <[EMAIL PROTECTED]> wrote:
>Hi, I've built 2.2.15 on a very fast i686 which has an aha152x SCSI
>card.
>
>I finally managed to get everything to work [the card is a dog though
>and was a pain to configure], with the driver configured as a module.
>
>However, if I set things up so that the driver auto-installs, then my
>app first fails to recognize it, but will do so if I restart. For
>example, xsane will first not show my scanner, (UMAX Astra 1200S), but
>will when if I try immediately again.
>
>It looks like something is timing out too quickly. Any suggestions?
Have you looked at the driver source? There are some options you
might want to try.
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: source code of shutdown
Date: 22 May 2000 18:27:22 GMT
In article <8gadfr$mg8$[EMAIL PROTECTED]>,
Sake <[EMAIL PROTECTED]> wrote:
>Where can I find the source code of the shutdown utility and/or its
>relatives
>(halt, reboot, poweroff)
They are in the util-linux archive. You can find it
at http://metalab.unc.edu/pub/Linux/system/misc
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: [EMAIL PROTECTED] (Diego Betancor)
Subject: Re: ping souce code
Date: Mon, 22 May 2000 18:22:24 GMT
Just in case anyone is interested I think I did find the solution,
at least for me.
1. get the ping.c that is in
http://metalab.unc.edu/pub/Linux/system/network/netkit-base-0.16.tar.gz
together with ping there is inetd and something else that I didnot
needed to change
2. In ping.c there is a function call pinger that sends the ping.
In this funcion just after the sendto() I wrote
if (options & F_VERBOSE){
(void)printf("Seq:%u to %s ",icp->icmp_seq, hostname);
fflush(stdout);
}
now when verbose it prints the seuence number everytime that it
send a packet and not just when it receives one (pr_pack()).
Hope it is usefull to someone. Diego
[EMAIL PROTECTED] (Diego Betancor) wrote:
> True,
> but would it not be nice if you can set a timeout and it would tell
>you that the time out is reached? so looking at a screen (from far)
>you can see if you are having problems.
>
> Diego
>
>
>[EMAIL PROTECTED] (Mike Dowling) wrote:
>
>>On Thu, 18 May 2000 18:48:23 GMT, Diego Betancor <[EMAIL PROTECTED]> wrote:
>>>Hi,
>>>
>>> ping is great but when it fails it does not tell you like windows
>>>that says something about timeout. The only way that I know is
>>>counting the number of packets and looking for one that is missing.
>>> does anyone know where I can get the source for ping to change it?,
>>>or does anyone already done it?
>>
>>Windows yielding an error message that is both comprehensible and
>>correct? It has never happened to me!
>>
>>Perhaps this could be a case in point. Ping uses the icmp protocol,
>>and, to the best of my knowledge (and I will bow to the more
>>knowledgeable) icmp protocols don't time out. Timeouts are the domain
>>of tcp protocols where sessions are established.
>>
>>Ping is supposed to send off a an echo request about once per second.
>>The packets are numbered, and when a given request is answered, it is
>>listed with facts like the time it took, etc. But it can and should
>>wait 'til kingdom come if the packet is not echoed or it is not
>>interputed.
>>
>>Cheers,
>>Mike
>>--
>>My email address [EMAIL PROTECTED] above is a valid email address.
>>It is, in fact, a sendmail alias; the digit 'N' is incremented regularly.
>>Spammed aliases will be deleted. Currently, mike[25,26]
>>are valid. If email to mikeN bounces, try mikeN+1.
>
>Diego Betancor @ Duo Business Communications
>for email: dbetancor is my userid and my company's domain is duocom.net
>** Do not send me unsolicited commercial e-mail spam of any kind **
Diego Betancor @ Duo Business Communications
for email: dbetancor is my userid and my company's domain is duocom.net
** Do not send me unsolicited commercial e-mail spam of any kind **
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: What !@#$ moron colorised g++?
Date: Mon, 22 May 2000 18:46:52 GMT
On Mon, 22 May 2000 04:06:36 GMT Thaddeus L. Olczyk <[EMAIL PROTECTED]> wrote:
| The thing is that I don't object to making computers "easy to use".
| What I object to is making computers "easy to use" for less
| sophisticated users, while making it "hard to use" for more
| sophisticated users. And I don't think you have to make it hard
| to use for the experts to make it easy to use for the nonexperts.
This seems to be related to efforts by some people to control those
who use computers by discarding the things that allow us to customize
things the way we want, all in the name of "uniformity".
| Unfortunately Linux seems to be going this same way. I suspect
| this is due to MS hating programmers who have come over to linux
| and dragged their MS mentality with them. For those who want to
| change linux to Windows, I say this: fuck off. Linux doesn't need you
| and is better off without you. There are those who will improve Linux
| without making it hard to use for experts.
I doubt this because I have seen this idiocy from people who have never
worked with Microsoft. I won't dispute that Microsoft certainly does
encourage it, and can be responsible for it being more rampant than it is
now. But it would exist even if Microsoft did not. It's all part of the
dumbing down of computing. The real problem is that it is being coupled
with uniformity that forces everyone to the least common denominator.
| This I think is a praticular case in point. Programmers are supposed
| to be expert users. What do they need to have error messages colorised
| for? Frankly I don't want to see people who need crutches like having
| the error message, file name, and file line number in different colors
| programming for Linux. And the !@#$%^& colorisation is screwing
| me up.
For some people that may be an advantage. I do find the messages from
a huge make from my 600+ function library to be very cluttered, and would
jump at ways to make errors easy to detect. I use -Werror to just make
it halt when it can (usually does). Were it not for the fact that my
vision requires I use specific colors on CRTs to get contrast into a
single color plane, I might very well like the colorization thing. But
it would certainly mess me up, too (I haven't seen it in gcc and I had
to turn it off in ls).
| Error messages piped to a file have all sorts of crappy escape
| codes embedded, making it impossible to read. Error messages generated
| when compiling from emacs are screwed up for the same reason.
| I can't use next-error. Can anyone help me to fix this?
The key is there needs to be a way to turn it off. Once that is in place
then the debate is whether it should default on or off and I would not
have a problem with either course on that.
--
| Phil Howard - KA9WGN | My current boycotts: Amazon.Com, DVDs, Mattel, Sony
| [EMAIL PROTECTED] +----------------------------------------------------
| Dallas - Texas - USA | My current websites: linuxhomepage.com, ham.org
------------------------------
From: Chetan Ahuja <[EMAIL PROTECTED]>
Subject: Re: What !@#$ moron colorised g++?
Date: 22 May 2000 19:20:56 GMT
[EMAIL PROTECTED] spoke thusly:
> On Mon, 22 May 2000 04:06:36 GMT Thaddeus L. Olczyk <[EMAIL PROTECTED]> wrote:
> The key is there needs to be a way to turn it off. Once that is in place
> then the debate is whether it should default on or off and I would not
> have a problem with either course on that.
Actually there is a way... ( but I'm not sure it works) In my
mandrake7 distro, gcc is actually a perl script which runs the
"backend" gcc and colors the output. Near the top of this script are
the following comments:
# colorgcc will only emit color codes if:
#
# (1) Its STDOUT is a tty and
# (2) the value of $TERM is not listed in the "nocolor" option.
#
# If colorgcc colorizes the output, the compiler's STDERR will be
# combined with STDOUT. Otherwise, colorgcc just passes the output
#from
# the compiler through without modification.
And of course this nocolor option is specified in a . file in your
home directory. Read the gcc script for more details. Yes I share
your irritation at the *default* being color instead of the plain
gcc output. I use emacs for all programming and it screwed up the
emacs bug reader ( which means that the script was not working right
according to it's own comments since STDOUT should not be a tty when
the process is forked from emacs) Although I can see why this idea
could be apealing to some people with different tastes. I would
urge all the distro makers to change the default gcc to NOT be
colored but may be make it easy to change to colored output for those
who want it.
Chetan
------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: Signal in Linux?
Date: 22 May 2000 19:44:19 GMT
In article <[EMAIL PROTECTED]>,
Markus Pietrek <[EMAIL PROTECTED]> wrote:
>> I would like to know about the signal handling in Linux.
>> Can the daemon program recevie the signal (such as SIGTERM?).
>> I try one daemon (written by me) and find it cannot work ?
>> Do anyone have the same experience ?
>When a program is running as a daemon, this means that it has closed
>it stdin,stdout and stderr (it doesn't needs a console).
It is much safer to reopen stdin,stdout and stderr to /dev/null so the
handles don't get used by something else. Otherwise one could get a
nasty surprise.
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: D G <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Mon, 22 May 2000 13:13:52 -0700
JEDIDIAH wrote:
>
> On Sat, 20 May 2000 13:05:15 GMT, Full Name <[EMAIL PROTECTED]> wrote:
> >On 18 May 2000 09:50:55 +0400, [EMAIL PROTECTED] (Victor Wagner)
> >wrote:
> >
> >>
> >>: 1. A streamlined, easy install process;
> >>
> >>Disagree. System should be installed by competent techinicans in
> >>computer shops. Windows is not any more easy to install than say
> >>Mandrake 7.0, only user do it much more frequently, so get used to it.
> >>
> >
> >What can someone say to such a stupid statement.
>
> That you are a moron.
>
> Windows and DOS are where they are today because most people
> don't have to deal with installing them.
Windows and DOS are where they are for entirely different reasons.
Besides, I can go buy a pre-installed linux system and not have to deal
with installing it.
> Any little quirk in
> your setup and any WinDOS, Solaris, BeOS or Linux install can
> quickly become nasty.
>
> This is a side effect of the PC being a random collection of
> spare parts. That adds a level of complexity to the whole
> situation that is very difficult to just 'program around'.
Any OS will give you problems if you're hardware is quirky. The ideal
install program in my mind will give you the option to install only the
basic features of the OS initially. This way, it can install on any
system. Then you reboot, go into the OS and from there you can optimize
as needed (X (or video), sound, modem, network, etc.).
--
DG
e-mail is: [EMAIL PROTECTED]
(remove the Z's--they're what I do when I read SPAM!)
------------------------------
From: Aaltonen Timo <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.kernel
Subject: shm broken in recent (.99pre) kernels?
Date: Mon, 22 May 2000 23:25:22 +0000
Hi!
I have a nasty problem in my box (Debian woody, 2.3.99pre8,
Pentium200MMX, 64MB). After a clean boot everything works fine, but
after awhile disk access gets very slow. Hdparm gives timing
buffer-cache read -result of appr. 1.5MB/s...
It is most noticeable when I copy large chunks of data from a drive to
another. I�ve heard some people having the same problem... Copying speed
slows down to 200kB/s, despite the drives are large and fast (Seagate
17GB and a brand new Maxtor 40GB).
So, is this a well-known bug, or am I hallucinating =)
t
------------------------------
From: "Anthony W. Youngman" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Mon, 22 May 2000 19:00:50 +0100
Reply-To: "Anthony W. Youngman" <[EMAIL PROTECTED]>
In article <[EMAIL PROTECTED]>, Horst von
Brand <[EMAIL PROTECTED]> writes
>On Fri, 19 May 2000 20:20:25 +0100,
> Anthony W. Youngman <[EMAIL PROTECTED]> wrote:
>
>[...]
>
>>Also, aiui, rpm is sadly broken compared to dpkg... If a package has a
>>"required" dependency registered with dpkg, you can be pretty sure that
>>trying to run the dependent package will fail if the required package
>>isn't installed. On the other hand it was a devil of a job to install
>>SuSE *without* installing OSS and ISDN4LINUX because rpm said these
>>packages were "required" - on a bare-bones system with no sound or isdn
>>card. And I gather it's rpm's fault, not SuSE - those packages may be
>>required, therefore they must be marked as required, therefore the
>>system tries to force you to install them :-(
>
>Sorry, no. Neither dpkg nor rpm can find out on their own which packages are
>required for others to work (at least not in the general case). If the
>package maintainer gives the wrong dependencies, it's his fault.
You misunderstand me ...
I am led to believe (in other words I may well be wrong...) that rpms
basically have a required/not-required status. If the system MAY require
a package, then either it is flagged as required and the system tries to
make you install it, or it's not flagged and gets ignored.
dpkg has far finer graining - required (ie it'll break without it), and
various other grainings. So in my example OSS and ISDN4LINUX should be
flagged optional. SuSE/rpm apparently has no way of marking something as
optional.
In other words, it's not the package maintainer's fault if the
maintenance package has no way of correctly marking-up the dependency.
--
Anthony W. Youngman - wol at thewolery dot demon dot co dot uk
Witches are curious by definition and inquisitive by nature. She moved in. "Let
me through. I'm a nosey person.", she said, employing both elbows.
Maskerade : (c) 1995 Terry Pratchett
------------------------------
From: "Anthony W. Youngman" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Mon, 22 May 2000 19:02:56 +0100
Reply-To: "Anthony W. Youngman" <[EMAIL PROTECTED]>
In article <[EMAIL PROTECTED]>, Maciej Golebiewski
<[EMAIL PROTECTED]> writes
>"Anthony W. Youngman" wrote:
>> And as a result of SuSE predating RedHat, SuSE rpms are incompatible
>> with RedHat ones :-( I wish they'd switch to dpkg, but I bet there would
>
>Since when? I always install RedHat as the base system (SuSe's layout of init
>scripts etc. gives me a headache) and then install application rpms from SuSe.
>Everything is working seamlessly (mostly).
Every time I've tried to install an RH rpm on SuSE, it's given me
dependency nightmares. SuSE use a different rpm naming convention, and
apparently that's the cause :-(
--
Anthony W. Youngman - wol at thewolery dot demon dot co dot uk
Witches are curious by definition and inquisitive by nature. She moved in. "Let
me through. I'm a nosey person.", she said, employing both elbows.
Maskerade : (c) 1995 Terry Pratchett
------------------------------
From: [EMAIL PROTECTED] (JEDIDIAH)
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Mon, 22 May 2000 21:43:45 GMT
On Mon, 22 May 2000 13:13:52 -0700, D G <[EMAIL PROTECTED]> wrote:
>JEDIDIAH wrote:
>>
>> On Sat, 20 May 2000 13:05:15 GMT, Full Name <[EMAIL PROTECTED]> wrote:
>> >On 18 May 2000 09:50:55 +0400, [EMAIL PROTECTED] (Victor Wagner)
>> >wrote:
[deletia]
>> Any little quirk in
>> your setup and any WinDOS, Solaris, BeOS or Linux install can
>> quickly become nasty.
>>
>> This is a side effect of the PC being a random collection of
>> spare parts. That adds a level of complexity to the whole
>> situation that is very difficult to just 'program around'.
>
>Any OS will give you problems if you're hardware is quirky. The ideal
"Random collection of spare parts" is about as quirky as one
can get...
[deletia]
--
In what language does 'open' mean 'execute the evil contents of' |||
a document? --Les Mikesell / | \
Need sane PPP docs? Try penguin.lvcm.com.
------------------------------
** 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.development.system) 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-Development-System Digest
******************************