Linux-Misc Digest #498, Volume #19 Thu, 18 Mar 99 05:13:13 EST
Contents:
Re: Procedural programming in ML (was: Microkernels are an ...) (Rickard Westman)
Re: 10G disk and fdisk/diskdruid problems ("Fredrik Persson")
Re: recover the user root? ("Quiney, Philip (EXCHANGE:HAL02:HM10)")
Re: kppp won't accept password (Clemens Beckstein)
Re: Microsoft throws in the towel on security ("Andy Doran")
Re: Problem APC UPS 1400 (klaus)
Re: NT telnet screen problem with emacs/vi (fred smith)
Re: linux sound recording sw (Rob Komar)
Re: More bad news for NT (Harry Lewis)
Re: Sharing swap partition? (Ulf Bohman)
Re: HELP! how do I undelete a file!?? (John DuBois)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Rickard Westman)
Crossposted-To: gnu.misc.discuss,comp.os.linux.advocacy
Subject: Re: Procedural programming in ML (was: Microkernels are an ...)
Date: 13 Mar 1999 14:29:04 GMT
In article <7c6j8a$3nj$[EMAIL PROTECTED]>, Roger Espel Llima wrote:
>In article <[EMAIL PROTECTED]>,
>Rickard Westman <[EMAIL PROTECTED]> wrote:
>>What I do know is that SML (Standard ML) is quite nice for
>>procedural programming. Like you, I am not too enthusiastic
>>about pure functional programming, but SML does not force that
>>paradigm down your throat. Programs in SML can be as
>>procedural as you want without looking ugly.
>
>Yeah, that sounds nice. The thing is though, if I'm not intending to
>program in the functional ididom, why go look for a functional language?
I didn't say that you should go look for a functional language,
just that it would be unwise to disqualify SML on the grounds that
it is a "functional language" (which is contestable, since SML
programs can and often use side-effect in the form of assignment
and I/O.)
>It's not like there's a scarcity of procedural languages out
>there, with wide support and all.
Yes, and they all have different characteristics. I don't think
you would lump them together and select one at random - you would
probably evaluate each language (w/ implementation) on its own
merits. I'm just saying that you might consider doing the same
with SML. It is a well-designed language with a set of high-level
features (e.g. automatic storage management, runtime-safety, static
typing without type declarations, parametric polymorphism,
exceptions, a powerful module system, pattern matching of
arguments, and more) which is more complete than in most other
procedural languages. These are, in my opinion, good features even
if your program is a non-functional one.
Regarding support, it's true that it is not a mainstream language,
but there is at least one commercial implementation and several
free ones. If you restrict yourself to mainstream languages, I'd
say that you find no language which is even close to matching the
high-level features of SML.
>Like I said, I'll consider using a functional programming language
>for a project if it's not my decision, or if it's a great, obvious
>advantage for such a project (e.g someone wants to formalize the
>specs and have them machine-proved, or something like that).
>Otherwise, I just don't see the point at all.
You talk about "functional languages" as if they were all the same.
But they aren't.
>>The fact that the language supports
>>functional programming does not imply that it is unsuitable
>>for procedural programming.
>
>I could also use C++ in a non-OO way, but why bother? It'd only made my
>code weird both to C and C++ hackers.
I disagree. Even if you don't buy into the OO gospel, you can
benefit from the improved abstraction features of C++ in a
procedural program, using objects as abstract datatypes. I don't
think it would be confusing to C++ programmers at all - on the
contrary, I think it would be easier for outsiders to understand
than the design of the typical C++ program which is often
complicated and intertwined.
--
Rickard Westman <[EMAIL PROTECTED]> "Beware of the panacea peddlers: Just
because you wind up naked doesn't
make you an emperor."
- Michael A Padlipsky
------------------------------
From: "Fredrik Persson" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.setup
Subject: Re: 10G disk and fdisk/diskdruid problems
Date: Thu, 18 Mar 1999 08:56:40 +0100
Hi!
I had this problem a week ago, I experienced _exactly_ the same things as
you are. I just couldn't figure it out. This was driving me nuts. The
solution (or should I say the blessing?) was Partition Magic 4.0. I know, it
is a Windoze application, but it is a great program still.
Lemme tell ya! There I was, chasing those extra 2GBs that I KNEW I had, but
niether DOS/Win98 fdisk nor linux fdisk/diskdruid saw those 2GBs. Installed
Partition Magic and there they were. Two clicks and my disk was partitioned
_exactly_ the way I wanted it to.
So, my recommendation would be for you (or your friend) to take a look at
that program.
And my wish is that someone writes an open-source Linux Partition Magic. I'd
love to do it myself, but these things are way over my head.
Oh, btw, two more things:
1) I got confused by the fact that you can have 1MB = 1024 kB OR 1MB = 1000
kB. This made me think that not even Partition Magic saw the entire disk.
2) What game was it that you son installed that required 1.4GB to run? Just
curious.
/Fredrik Persson
Bill Unruh wrote in message <7cpc65$gp8$[EMAIL PROTECTED]>...
>A friend is trying toinstall Linux on a PII-333 AsusMB system with a 10G
>IDE Fujitsu disk.
>When he uses the Win98 fdisk, he can format the whole disk as 1300 cyl
>and max heads and sectors. However all fdisk or disk druid ever tell him
>is that there are a max of 1024 cyl and 8GB of space.
>How does one get around this to be able to use the whole of the disk?
>According to the large disk howto, Linux is supposed to just use the
>flat disk model, without worrying about the cyl. But thee seems to be no
>way to persude fdisk or diskdruid to believe this. What is the trick?
------------------------------
From: "Quiney, Philip (EXCHANGE:HAL02:HM10)" <[EMAIL PROTECTED]>
Subject: Re: recover the user root?
Date: Thu, 18 Mar 1999 08:13:59 +0000
[EMAIL PROTECTED] wrote:
>
> I am in trouble now. I just deleted the user root by mistake. now I can
> not login as root any more and there are a bunch of problems associated
> with it. but I can login with other user ids. Is it possible to recover
> the user root? Or I have to reinstall the system?
>
> I am using mandrake 5.3 and has the kernel 2.2.1. I have a boot disk,
> but no root disk.
>
> Thank you for your advices.
>
> digger
You can start the system in single user mode by typing - at the lilo
prompt
linux single
This will give you a shell as root without needing a password. You
should now be able to manipulate /etc/passwd to allow a root login. Note
that in single user mode a lot of the system is not yet started (see
contents of /etc/rc.d/rc3.d for items which start in the default run
level 3).
This is of course useful to know if you forget the root password ;-)
When you are done type 'exit' and the system will continue to start up
as normal.
HTH
Regards
Phil Q
--
Phil Quiney Digital PowerLine,
[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: [EMAIL PROTECTED] (Clemens Beckstein)
Subject: Re: kppp won't accept password
Date: 18 Mar 1999 09:27:50 +0100
>>>>> "keith" == keith daniel salter <[EMAIL PROTECTED]> writes:
keith> i have recently installed kde and started trying to use
keith> kppp as i heard it was dead easy to set up. But after
keith> reading the instructions and the faq i can't find an answer
keith> to my problem. When I try to connect to my isp, it dials in
keith> and connects and sends my username, then it prints the
keith> password prompt and hangs there with the mesage in the
keith> debug window saying expect password.
keith> I have my password typed into the small window that kppp
keith> connects with, just under my username. I also have a login
keith> script which deals with the expect and send details which
keith> also contains my password. (actually why do i have to have
keith> 2 instances of my username and password?)
keith> I was using usernet before in windowmaker which worked fine
keith> (and still does) is it because i have already editted the
keith> resolv.conf file which causes funny things to happen? i'm
keith> using redhat 5.2 with kde 1.1. kppp seems like a really
keith> good dialup program with accounting and so i would really
keith> like to use it so any help would be greatly appreciated.
oh yeah... I have experienced similar problems... :-))
in my case the cause was that the provider authentication procedure
treated CR/LF like two times Enter and hence already assumed an empty
password... crazy...
there is a modem setting page somewhere in the kppp setup procedure
where you can tell kpp how to conclude modem commands; i set mine to
CR (or was it LF, anyhow different from CR/LF) and the result was no
more problems with the ppp authentication...
Hope this helps,
- Clemens
--
Prof. Dr. Clemens Beckstein http://www.minet.uni-jena.de/fakultaet/beckstein/
Friedrich-Schiller-Universitaet Jena Phone: Intl.+49/3641/9-46350 + 9-46301
Institut fuer Informatik Fax: Intl.+49/3641/9-46302
Ernst-Abbe-Platz 1-4, D-07743 Jena, Germany
------------------------------
From: "Andy Doran" <[EMAIL PROTECTED]>
Crossposted-To: microsoft.public.windowsnt.misc
Subject: Re: Microsoft throws in the towel on security
Date: Wed, 17 Mar 1999 21:01:01 -0000
This is all down to the way in which NT has been implemented in your
environment. You can rant away, but any operating system is only as good as
those who implement it (and I am by no means defending NT here). You could
apply your gripes to UNIX or any other OS...... maybe your real issue is
that the people responsible for implementing NT do not have the correct
level of understanding?
Andy
Michael D. Knight wrote in message <7coaej$9h7$[EMAIL PROTECTED]>...
>In <[EMAIL PROTECTED]> **Nick Brown <[EMAIL PROTECTED]>
writes:
>
>>http://www.news.com/News/Item/0%2C4%2C33558%2C00.html?dd.ne.txt.0310.02
>
>>Another "minor", "theoretical" NT security alert... nothing for anyone
>>to worry about unduly... but here's the killer extract:
>
>>>"This primarily would affect workstations, but most people are already
>local administrators on their workstations," Culp said, so the issue >would
be moot.
>
>>In other words, MS more or less admits that everyone has to run their NT
>>workstation as administrator to get any work done ! We already know
>>this - we have to make our Domain Users be local Admins so that they can
>>install a patch to (gasp) Office. But MS tries to have its cake and eat
>>it too - "NT workstation gives you the ability to reduce TCO by
>>eliminating support calls caused by the user screwing up the O/S", but
>>then you have to give them all privs to do anything non-trivial.
>
>One of my biggest complaints about our NT boxes at work! It is
>ridiculous! They have everything so locked down that the end user is
>stuck with what is there, you can't install anything, and frequently
>don't have access to tweak little everyday things you need.
>
>Example:
>
>I got my NT box with MS Office 95 installed on it. Whatever idiot
>installed it simply did the "Typical" install. The "Typical" install
>leaves out a bunch of stuff that most of the world actually uses. In
>my case, I was missing a number of graphics filters that ordinarily
>lets me insert a drawing from the CAD program we use into word or
>powerpoint.
>
>These filters are not part of the "Typical" install, so you have to do
>a custom install and explicitly choose the extra filters. When I
>discovered they were missing, I called our IT "helpless" desk. After
>arguing with me for an hour, I finally convinced the degreeless monkey
>on the other end of the phone that the filters really weren't
>installed. They told me I'd have to put in a work order.
>
>Already I'd wasted over an hour on a problem nearly anyone could have
>corrected themselves in less than 3 minutes...provided we actually had
>access to do so.
>
>Instead, I waited over 4 months to get the filters installed.
>
>I actually had a meeting with my supervisor and the head of the IT
>department. Our "head" of IT spent most of the meeting proclaiming
>how switching to NT had cut the number of calls to the helpdesk from
>over 100 per day to less than 20. I quickly pointed out (and my
>supervisor had the list of work orders in front of him) that the
>number of calls went down because now we are required to submit a work
>order to get anything done, and the number of those submitted since we
>switched to NT had increased by more than 7 times.
>
>Yeah, NT is a big help....to IT people only.
>
>I stick with my unix box at work, and try to keep the NT box unplugged
>as much as possible.
>
>Sorry for the rant.
>
>-Michael
>
>--
>COMBAT AIRCRAFT: A mix Michael David Knight F-4 | Phantom
II
>of sharp teeth, cold Gulfstream Aerospace /O\
>steel, cosmic warlords, Georgia Tech Aerospace
\_______[|(.)|]_______/
>and evil spirits mknight2@*spam*worldnet.att.net ++ O ++ o
------------------------------
From: klaus <[EMAIL PROTECTED]>
Subject: Re: Problem APC UPS 1400
Date: Thu, 18 Mar 1999 08:36:57 GMT
> klaus <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a Suse 6.0 linux-system and a UPS APC 1400. I installed the apcupsd
> 3.5.2.
>
> When power on the UPS fails the linux-system goes down (and remains to
> halted). If power is restored before batteries are empty, the linux-system
> remains halted (but it should then reboot!). If power is not restored, the
> linux-system (in halted-mode) and the UPS ramains up, until batteries are
> empty. When then power is restored the UPS is in a "stand-by"-mode and the
> linux-system does't get power.
>
> Has anyone had any success in setting up apcupsd correctly?
>
> Thanks,
>
> Klaus
>
I found the solution:
apcupsd 3.5.2 does not work correctly. The same configuration file does work
with apcupsd 3.4.9. I tested both with Suse 6.0 and Redhat 5.1.
Klaus
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: [EMAIL PROTECTED] (fred smith)
Subject: Re: NT telnet screen problem with emacs/vi
Date: Wed, 17 Mar 1999 22:59:33 GMT
Jim Valavanis ([EMAIL PROTECTED]) wrote:
: Hello,
: I was wondering how I can set the telnet screen from a winNT/98/95
: machine to behave like an xterm when running emacs or vi. If I enlarge
: the telnet screen emacs will not utilize the entire length of the
: screen. but only the standard (20? lines) .
: Can I set this up to utilize emacs or vi properly and use the entire
: screen no matter what size it is?
You may be able to do it like this:
LINES=43;export LINES
if you're using BASH as the shell and if the window really is 43 lines.
I've not tried it on Linux with the tools you mention, but I do similar
things on onther unixes with good results.
Fred
--
---- Fred Smith -- [EMAIL PROTECTED] -----------------------------
The Lord detests the way of the wicked
but he loves those who pursue righteousness.
============================= Proverbs 15:9 (niv) =============================
------------------------------
From: [EMAIL PROTECTED] (Rob Komar)
Subject: Re: linux sound recording sw
Date: 18 Mar 1999 08:22:49 GMT
Darrin Hodges ([EMAIL PROTECTED]) wrote:
:
: Does anybody know any good sound recording software for linux? Im thinking of
:converting all
:
: my LP`s to MP3
There's a good page of links for all sorts of Linux sound stuff at:
http://sound.lovebead.com/
You'll find a link there to a package called `Gramofile' which was written
expressly for converting music on LPs to wav files. You'll also find
some MP3 links there.
Cheers,
Rob Komar
------------------------------
From: Harry Lewis <[EMAIL PROTECTED]>
Subject: Re: More bad news for NT
Date: Thu, 18 Mar 1999 08:36:36 +0000
Reply-To: [EMAIL PROTECTED]
John Hasler wrote:
> Harry wrote:
> > You'd define a system policy and specify cmd.exe as the default
> > shell. Why, God only knows. It's a bit like buying a Lexus and then
> > deciding that all the electric motors for the back support etc and
> > all the extra trim is slowing the thing down.
>
> Putting a GUI on a server is like putting a Cadillac suspension on a pickup
> truck and then complaining when the springs bottom out when you put half a
> ton of gravel in the back. The Microsoft solution is to keep the Cadillac
> suspension and move up to a 5-ton, which can then just about handle that
> 1000 lb load.
>
> With a decent OS there is no real need for any UI at all on the server. The
> UI belongs on the sysadmin's workstation.
> --
> John Hasler This posting is in the public domain.
> [EMAIL PROTECTED] Do with it what you will.
> Dancing Horse Hill Make money from it if you can; I don't mind.
> Elmwood, Wisconsin Do not send email advertisements to this address.
This is a matter of opinion - according to Larry Ellison there's no need for an
OS on some servers. If you've got a server acting as a router then a GUI does
seem superfluous, but then I wouldn't use NT as a router. On the other hand, a
domain controller benefits from a GUI (as far as I'm concercerned). Basically
if you don't like a GUI, don't get NT. One size doesn't fit all.
Harry
------------------------------
From: Ulf Bohman <[EMAIL PROTECTED]>
Subject: Re: Sharing swap partition?
Date: Thu, 18 Mar 1999 09:56:27 +0100
I'm sharing the swap partition between RH50 and RH52 installations. No
probs.
/Ulf
Bjorn T Johansen wrote:
> Hi.
>
> I was just wondering if there is any reason why I shouldn't share a swap
> partition between to separate Linux installations (two separate Linux
> distribution as well)?
> What about sharing a RAID 0 partition between these two?
>
> Regards,
>
> BTJ
------------------------------
From: [EMAIL PROTECTED] (John DuBois)
Crossposted-To:
comp.unix.sco,comp.unix.sco.misc,comp.unix.shell,comp.unix.questions,comp.unix.xenix.sco
Subject: Re: HELP! how do I undelete a file!??
Date: 18 Mar 1999 08:46:52 GMT
In article <[EMAIL PROTECTED]>,
Alan W. Jurgensen <[EMAIL PROTECTED]> wrote:
>we've mistakenly deleted some SCO progress database files...
>
>HOW CAN WE UNDELETE THESE, IS IT POSSIBLE?
If you're running 3.2v5, do 'undelete -l' in the directory you deleted the
files from. If it prints the name of the files (followed by version numbers),
you're in luck. However, it probably won't; in order for versions to be saved,
file versioning has to be turned on on the filesystem and has to be enabled on
any directories you want it to work in. It's one of the "stealth" features of
the HTFS filesystem - little known, little used.
John
--
John DuBois [EMAIL PROTECTED] KC6QKZ http://www.armory.com./~spcecdt/
------------------------------
** 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
******************************