Linux-Development-Sys Digest #890, Volume #7 Mon, 22 May 00 08:13:10 EDT
Contents:
Re: zip with password (Christian Winter)
Re: HELP: 8 Bit Linux ? (Leo Liberti)
Re: shutdown -r now (Leo Liberti)
Re: HELP: 8 Bit Linux ? (Joe Pfeiffer)
Re: linux tools advice ([EMAIL PROTECTED])
Re: linux tools advice ([EMAIL PROTECTED])
Re: shutdown -r now ("Quiney, Philip [HAL02:HH00:EXCH]")
Partition Magic for Linux (Nicola Attico)
Re: Checking for I'm swapped - number of pages swapped out ("Dmitry A. Antipov")
Re: serial port RTS control ? (Villy Kruse)
Re: inline-limit might be fun to try (Graham Stoney)
DEB: minimum install for compile ([EMAIL PROTECTED])
Re: Need ideas for university funded project for linux (Maciej Golebiewski)
Re: Why no defrag? (Jan Panteltje)
IEC 870 (Martin Alt)
Re: What !@#$ moron colorised g++? (Mike Dowling)
Re: HELP: 8 Bit Linux ? (Johan Kullstam)
Re: porting NT device drivers to linux (Marc SCHAEFER)
Re: linux tools advice (sergio)
Re: stack size (Markus Pietrek)
Re: linux tools advice (Ken Sodemann)
----------------------------------------------------------------------------
From: Christian Winter <[EMAIL PROTECTED]>
Subject: Re: zip with password
Date: Sun, 21 May 2000 21:28:16 +0200
[EMAIL PROTECTED] schrob:
[zip-crypt]
> It's also worth noting that breaking the zip encryption is a fairly
> trivial task which can be accomplished in a matter of minutes. If you
> really need more security than that and it's feasible, you should
> consider using a better cipher.
Well, it actually is a weak encryption, but encryption qualtity should
always be related to the question "who do I want to prevent from getting
my plaintext?". It's quite good from keeping one's little sister from
reading love letter mails or such stuff, as if there's only 1 file
in a zip archive, most zip-crackers have their problems. So unless
little sister knows how to do a known-plaintext-attack with an adopted
algorithm, zip-crypt is secure enough ;-)
Regards
Christian
------------------------------
From: Leo Liberti <[EMAIL PROTECTED]>
Subject: Re: HELP: 8 Bit Linux ?
Date: Mon, 22 May 2000 07:53:04 +0200
Dan Mathias wrote:
> Is there any 8 Bit Linux or Unix for the 68HC11 or 8088 cpu ?
>
There's Elks, but it's 16 bit. But it should run on 8088, I thought
these
had a way of mimicking the 16 bit registers (in fact, their normal
usage is 16 bit, isn't it?)
Leo
------------------------------
From: Leo Liberti <[EMAIL PROTECTED]>
Subject: Re: shutdown -r now
Date: Mon, 22 May 2000 07:56:17 +0200
Sake wrote:
> I compiled a single floppy ramdisk only system for my K6 machine out of the
> RH6.0. Everything works fine except the following:
> When I issued the "shutdown -r now" command, I got "You don't exist. Go
> away"
> message. and of couse the command doesn't reboot my machine. The machine is
> set
You have no passwd file. Even though you don't have getty or logins,
the passwd file is used by the system to identify you. Try using
this
root::0:0:root:/root:/bin/bash
bin:*:1:1:bin:/bin:
daemon:*:2:2:daemon:/sbin:
adm:*:3:4:adm:/var/adm:
operator:*:11:0:operator:/root:
nobody:*:99:99:Nobody:/:
as your /etc/passwd file.
Leo
------------------------------
From: Joe Pfeiffer <[EMAIL PROTECTED]>
Subject: Re: HELP: 8 Bit Linux ?
Date: 22 May 2000 00:52:26 -0600
Johan Kullstam <[EMAIL PROTECTED]> writes:
> Dan Mathias <[EMAIL PROTECTED]> writes:
>
> > Hello,
> >
> > Is there any 8 Bit Linux or Unix for the 68HC11 or 8088 cpu ?
>
> no. neither have memory management. why do you need to these ancient
> cpus? wouldn't a mips r3k be easier and better?
In the case of the HC11, it's a very sweet little processor for
applications that don't require a lot of computing power.
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
VL 2000 Homepage: http://www.cs.orst.edu/~burnett/vl2000/
------------------------------
Crossposted-To: comp.os.linux.development.apps
Subject: Re: linux tools advice
From: [EMAIL PROTECTED]
Date: Mon, 22 May 2000 07:17:25 GMT
David Steuber <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] (Kaz Kylheku) writes:
> ' Linux runs on PC's, therefore it is a ``PC environment''.
> Ah, but linux is most decidedly un-PC. PC is Microsoft. PC is
> bending to the will of authority. Linux users are most un-PC in this
> respect. We love freedom. We love choice. We do what we please and
> damn the social morays imposed by Microsoft and the idiots who worship
> the Bill.
On the contrary, this makes Linux very PC. It's free, so the poor,
downtrodden masses can finally have Equal Operating System
Opporunity. And Linux doesn't care if you're black, or white, or
green, so long as you can explain what "BogoMips" are.
> Why else are we ostracized by the invention of the winmodem? Why else
> would Microsoft try to shut us out by decomoditizing standards through
> organizations such as the ITU?
Preach it, Comrade! The Glorious Revolution is at hand! Death to the
Redmonites!
> Liberty above all! Beer above liberty!
> Yes, I am drunk. Want to make something of it?
You know you're a computer nerd when you get drunk and post to two
Linux development groups. About Linux. Intentionally.
--
Eric P. McCoy ([EMAIL PROTECTED])
non-combatant, n. A dead Quaker.
- Ambrose Bierce, _The Devil's Dictionary_
------------------------------
Crossposted-To: comp.os.linux.development.apps
Subject: Re: linux tools advice
From: [EMAIL PROTECTED]
Date: Mon, 22 May 2000 07:21:32 GMT
"sllai" <[EMAIL PROTECTED]> writes:
> 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.
As others have pointed out, Linux is a PC (among others) OS.
The short answer is that you can't. You have to develop, test, and
debug on Linux. With substantial work, you could change this, but
even then you'd need to recompile the source on the two OSes.
--
Eric P. McCoy ([EMAIL PROTECTED])
non-combatant, n. A dead Quaker.
- Ambrose Bierce, _The Devil's Dictionary_
------------------------------
From: "Quiney, Philip [HAL02:HH00:EXCH]" <[EMAIL PROTECTED]>
Subject: Re: shutdown -r now
Date: Mon, 22 May 2000 08:08:10 +0100
Sake wrote:
>
> Hi,
>
> I compiled a single floppy ramdisk only system for my K6 machine out of the
> RH6.0. Everything works fine except the following:
>
> When I issued the "shutdown -r now" command, I got "You don't exist. Go
> away"
> message. and of couse the command doesn't reboot my machine. The machine is
> set
> to run level 2 and no getty nor login are involved. The ini calls /bin/ash
> directly.
>
Hi,
If you are not logged in as root or your user name is not in
/etc/shutdown.allow then you cannot shutdown the machine via this
command.
Under Linux <ctrl><alt><del> will issue a shutdown command unless the
file /etc/inittab has been edited. This dosen't seem to work from the
'graphical' login (runlevel 5) but there is usually a way round this via
a menu option.
Regards
Phil Q
--
Phil Quiney CSIP Demonstrator
[EMAIL PROTECTED] Nortel Networks,
Telephone: +44 (1279) 402363 London Rd, Harlow,
Fax: +44 (1279) 402885 Essex CM17 9NA,
United Kingdom.
"This message may contain information proprietary to Northern
Telecom so any unauthorised disclosure, copying or distribution
of its contents is strictly prohibited."
------------------------------
From: Nicola Attico <[EMAIL PROTECTED]>
Subject: Partition Magic for Linux
Date: Mon, 22 May 2000 00:17:36 +0200
Hello people,
I really would like to implement something
like the windowish Partition Magic (TM) for Linux.
I don't know if I'm able to do it, but I would
like to try.
What do you think it is the difficult of this
project (easy/medium/difficult/impossible)?
Do you think can it be #interesting#?
Do you think it can be #useful#? (I don't know nothing
like that under the GPL? Am I wrong? FIPS do some
work but it restricted to DOS partitions if I remember
correctly)
Maybe is there already someone developing this proj.?
An finally, but NOT last......
is there someone interested?
Nicola
------------------------------
From: "Dmitry A. Antipov" <[EMAIL PROTECTED]>
Subject: Re: Checking for I'm swapped - number of pages swapped out
Date: Mon, 22 May 2000 12:24:38 +0400
Daniel Kiracofe wrote:
>
> "Dmitry A. Antipov" wrote:
> >
> > Hello all,
> > I have a PID of running process. How can I check for it's swapped or
> > not ?
>
> Linux, AFAIK, never swaps whole processes out. It only pages. That
> is, it will write 4k (on intel) out a time, but never the whole thing at
> once. Therefore, given any pid, the process is not swapped out...
>
> --
> /* Daniel */
> E-mail: [EMAIL PROTECTED]
> Webpage: http://www.cis.ohio-state.edu/~kiracofe
>
> "Fear is only afraid of the absence of itself" - Mediocrates
O.K, may be my first question was unaccurate :-(. I' looking for the way
to count
number of swapped out pages. Is this code piece correct or not ?
void foo (pid_t pid) {
struct rusage rusg;
ptrace (PTRACE_ATTACH, pid, ...);
getrusage (RUSAGE_CHILDREN, &rusg);
printf ("%d pages swapped out for %u\n", rusg.ru_nswap, pid);
ptrace (PTRACE_DETACH, pid, ...);
}
--
Dmitry Antipov <[EMAIL PROTECTED]>
RosNet JSC +7 (095) 7558560 (ICQ UIN:70767592)
------------------------------
From: [EMAIL PROTECTED] (Villy Kruse)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: serial port RTS control ?
Date: 22 May 2000 09:06:28 GMT
On Sun, 21 May 2000 00:10:02 +0200, Fred <[EMAIL PROTECTED]> wrote:
>> Yes it is. When its input buffer is full, the host driver will assert RTS
>> to tell the other end to stop transmitting.
>
>Really ? I'm not sure !
>RTS means "Request To Send" so it must be activate *before* sending data and
>wait for "Clear To Send", isn't it ?
>
Historicaly that is correct. However, after full duplex modems became the
only types used then you would operate with the modem carrier permanently
on, and Request to Send becane non-functional. The function of the RTS
signal was to turn on or off the modem carrier and the function of the CTS
signal was to tell the sender when the modem carrier has stabilised and that
sending could proceed.
These two signals have now lost its old function and are now used to
control data flow: CTS will control sending and RTS will control the
corresponding CTS signal on the other end.
The old SCO unix did have a stty setting that would make CTS and RTS
function it its old original purpose: to implement half-duplex modem
communications, and as such it doesn't support modern hardware flow
control except for printer flow control.
Villy
------------------------------
From: Graham Stoney <[EMAIL PROTECTED]>
Subject: Re: inline-limit might be fun to try
Date: 22 May 2000 09:08:58 GMT
Graham Stoney wrote:
> If you're interested in minimizing your kernel size, compile with "-Os"
> instead of "-O2" and check out the patches at:
> http://members.xoom.com/greyhams/linux/patches/2.2
In article <[EMAIL PROTECTED]>,
Eric Taylor <[EMAIL PROTECTED]> wrote:
>I tried your suggestion of the -Os and was rather
>disapointed. It shrunk my kernel by only 8192 bytes.
Optimisations which improve performance also tend to reduce code size, so
you don't get a huge size difference when you ask for one instead of the
other. The difference will grow as gcc's optimisations improve, and the
patches I mentioned make a much bigger difference.
>(a suspicious number?? maybe its not actually doing what we would expect).
No, it's not suspicious. The linked description file tends to round things to
a page size (4096 bytes typically), so optimisation-induced changes only
appear in the final vmlinux output file in 4096-byte quanta.
>The normal size, before compression is 1.8 megs for my config.
>I also tried -fno-inline and this fails to link properly.
Functions marked "inline" must be inlined, because no out-of-line versions
are produced. This is why the kernel must be compiled with at least minimal
optimisations, and why one compiled with -fno-inline doesn't link. If you care
about code size, don't just increase -O2 to -O3 either: code size blows out
when -O3 turns -finline-functions on to try and inline everything.
>I noticed that there is a discussion in Stallmans Gcc book
>about using inline and extern together. He suggests that
>to use this, one puts the definitions in both a header file
>with inline and extern, and another copy w/o inline and
>extern in a library file. This technique might provide
>a way to easily turn on/off various inlining. However, I
>don't have the time to experiment further.
It's doable, but nobody has bothered and it increases maintenance overheads,
so the change wouldn't be accepted even if anyone did care enough to do it.
Besides, the present situation makes it difficult to accidentally ship a
non-optimised kernel.
Regards,
Graham
------------------------------
From: [EMAIL PROTECTED]
Subject: DEB: minimum install for compile
Date: Mon, 22 May 2000 08:55:24 GMT
Hi anyone know what minimum .deb install + order of install
I need to compile on debian 2.2. At the moment I got errors
compiling c, such as ld cannot find crt0.o or something like that..
I guess I'm missing some library .deb
email any answers to mailto:[EMAIL PROTECTED]
Thnaks,
L8R
Bill
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Maciej Golebiewski <[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 11:11:01 +0200
"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).
------------------------------
From: [EMAIL PROTECTED] (Jan Panteltje)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Why no defrag?
Date: Mon, 22 May 2000 09:54:12 GMT
>-----BEGIN PGP SIGNED MESSAGE-----
>
>=== Nothing above this line is part of the message. ===
>
>"Frank" <[EMAIL PROTECTED]> wrote:
>:I suppose anyone can write one:
>:
>:int main(void)
>:{
>: fprintf(stdout, "Defragmenting drives... ");
>: sleep(900);
>: fprintf(stdout, "done\n");
>: return(0);
>:}
>
>(sighs)
>
>Don't forget:
>
>#include <stdio.h>
>#include <unistd.h>
>
If fact you should write :
return 0;
This cause return is not a function.
Jan
------------------------------
From: Martin Alt <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.development.apps,comp.sw.components,de.comp.os.unix.linux.hardware
Subject: IEC 870
Date: Mon, 22 May 2000 12:05:10 +0200
Hi,
Does anybody knows about a driver/module for the IEC870 Bus?
Preferably IEC870-5-1
Thanks
Martin
------------------------------
From: [EMAIL PROTECTED] (Mike Dowling)
Subject: Re: What !@#$ moron colorised g++?
Date: 22 May 2000 10:31:58 GMT
On Mon, 22 May 2000 04:06:36 GMT, Thaddeus L. Olczyk <[EMAIL PROTECTED]> wrote:
[rant that I could have written myself snipped..]
>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.
>
>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?
I don't see this. I'm not a C++ programmer, so all I did was
$ g++ sdfg
and got error messages to the effect that sdfg does not exist, but no
colour.
Methinks the problem lies with your system, not Linux.
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[26,27]
are valid. If email to mikeN bounces, try mikeN+1.
------------------------------
Subject: Re: HELP: 8 Bit Linux ?
From: Johan Kullstam <[EMAIL PROTECTED]>
Date: Mon, 22 May 2000 11:04:07 GMT
Joe Pfeiffer <[EMAIL PROTECTED]> writes:
> Johan Kullstam <[EMAIL PROTECTED]> writes:
>
> > Dan Mathias <[EMAIL PROTECTED]> writes:
> >
> > > Hello,
> > >
> > > Is there any 8 Bit Linux or Unix for the 68HC11 or 8088 cpu ?
> >
> > no. neither have memory management. why do you need to these ancient
> > cpus? wouldn't a mips r3k be easier and better?
>
> In the case of the HC11, it's a very sweet little processor for
> applications that don't require a lot of computing power.
sure it is. but if you want to run a heavy-weight (relative to the
hc11) OS like linux, you might want something with more oomph.
--
J o h a n K u l l s t a m
[[EMAIL PROTECTED]]
Don't Fear the Penguin!
------------------------------
From: Marc SCHAEFER <[EMAIL PROTECTED]>
Subject: Re: porting NT device drivers to linux
Date: 22 May 2000 08:21:49 GMT
Mario Klebsch <[EMAIL PROTECTED]> wrote:
: loaded into the kernels address space. I assumed, that if an NT driver
: needs a DLL, NT will be able to load the DLL into kernel space. The
And how is the `chicken and egg' problem solved within NT ?
Such as:
- I need the SCSI driver aic7xxx to access the filesystem, and
the aic7xxx needs to access the file system to get the DLL ?
Linux solution is to have nonpageable kernel drivers, and user-level support
(through daemons, ioctl(), kernel threads) for this.
Now, on Linux you have the initrd, so in theory you could have such
dependancies. I don't know enough on the NT/2000/pro/not pro boot process
to know if a similar concept could be applied.
(and additionnally, there are cases where you don't have a filesystem at
all).
------------------------------
From: sergio <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: linux tools advice
Date: Mon, 22 May 2000 12:11:05 +0100
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.
>
> sllai
Yes you can develop on MS Windows, OS/2 or Solaris and then run native
on Linux (no windows of dos emulator required). Look at XEBOT it will
let you build apps visually by dragging and dropping controls like
buttons, list boxes, sliders etc. onto a control frame. The Linux
version comes in two flavours, X11 and SVGALIB. The X11 version runs on
top of X11 (X windows) while the SVGALIB version controls the video
hardware directly (no X11 overheads).
http://www.xcprod.com/titan/XEBOT
Regards
Sergio Masci
------------------------------
Date: Mon, 22 May 2000 13:34:31 +0200
From: Markus Pietrek <[EMAIL PROTECTED]>
Subject: Re: stack size
GAUTIER Christopher wrote:
>
> Hello,
> I'm using gcc on Linux Mandrake, and I would some info about handling
> stack with gcc, ie:
>
> does each program has his stack (like in DOS) ? In this case, how do you
>
> specify the size of the stack ?
Try "man ulimit" and "man setrlimit"
>
> or
>
> does the OS provide a common stack for everyone ?
Of course each program has its own (protected) stack!
--
Markus Pietrek
Tel: +49-761-47094-13
Fax: +49-761-47094-29
Web: http://www.concept.de
Concept Engineering GmbH
Boetzinger Strasse 29
D-79111 Freiburg/Germany
------------------------------
From: [EMAIL PROTECTED] (Ken Sodemann)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: linux tools advice
Reply-To: [EMAIL PROTECTED]
Date: 22 May 2000 12:00:47 GMT
On Mon, 22 May 2000 08:54:15 +0800, sllai <[EMAIL PROTECTED]> wrote:
>what do I need to develop an GUI application in linux system.
o an appropriate GUI library (GTK and QT are two very good examples)
Plus, everything else you would need for any app devl (GUI or not):
o a compiler (or inturpreter, depending on the language picked)
o an editor
o a debugger
o version control
I would also suggest you use automake/autoconf to help make your life
easier (trust me, once you get past the learning curve, they DO make
your life easier).
Of course, your Linux distr probably includes all of this (be sure to
install the "development" series stuff for the GUI libs, etc), so you
should be good to go...
>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 will assume that by "PC environment" that you mean Windows. While you
technically could do that, I fail to see what the point would be. You
would be stuck with the crappy Windows based tools, in the crappy
Windows environment. Then you would have to do a file transfer, compile,
and debug on Linux (even if you used the cygwin stuff and cross platform
GUI lib like QT you would want to do this just to be sure)...
All in all, you would just be making more work for yourself just so you
could use a brain-damaged environment like Windows. I fail to see the
point...
--
Ken Sodemann
[EMAIL PROTECTED]
http://www.execpc.com/~stuffle
------------------------------
** 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
******************************