Linux-Misc Digest #949, Volume #24 Tue, 27 Jun 00 00:13:02 EDT
Contents:
Requirements for writing an operating system... ("-")
Powerd client for other systems? ("news.compuserve.com")
Re: insmod failed? (Michael Molson)
Re: stability of culture of helpfulness ([EMAIL PROTECTED])
Re: Requirements for writing an operating system... ([EMAIL PROTECTED])
Re: include math.h (Nikodemus Karlsson)
Re: 'Essential' files to backup (Bit Twister)
Re: Easy way to send files through FTP... (Grant Edwards)
Re: Internet backup services for Linux (Christopher Browne)
Cant create a partition with disk druid?? (newbie) ("Trent Cook")
Re: insmod failed? ("Devon Harding")
Re: Internet backup services for Linux (Mark Wang)
web based useradd function
Re: Who is loading the system and why? (Robert Heller)
Chinese character viewer/editor for Linux (Tan Chee Sin)
Re: Linux, Quake2 and a PS/2 Mouse (David Efflandt)
Re: Shell scripting and chmod +s (Dances With Crows)
----------------------------------------------------------------------------
From: "-" <[EMAIL PROTECTED]>
Subject: Requirements for writing an operating system...
Date: Tue, 27 Jun 2000 02:18:24 +0200
Hi There
I am a linux newbie and I am very much fascinated with the Linux Kernel. And
Linus Torvalds is a role model for me because I too want to write my own OS
one day.
I am still in school and I know quite a lot of stuff in computers but I am
just curious about what are the requirements in order to write an OS. Can
anyone out there advise me please? Reply to [EMAIL PROTECTED]
Thanks
------------------------------
From: "news.compuserve.com" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.setup
Subject: Powerd client for other systems?
Date: Mon, 26 Jun 2000 20:51:20 -0400
Has anybody seen a powerd client for non-Linux systems, in particular
Windows NT/2000 systems? I'd like to run several machines from a single
UPS, but the machines are a mix of Linux and Windows 2000 machines. I know
the Linux machine can act as a powerd server, signaling the other machines
when there's a change in the UPS status, but I can't seem to find a powerd
client. I found one reference on Deja to a client at
http://www.brianweb.dyn.ez-ip.net/~brian/ntpowerd/, but that link doesn't
seem to work; the browser times out trying to connect to the server.
------------------------------
From: Michael Molson <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.hardware,comp.os.linux.networking,comp.os.linux.questions,comp.os.linux.setup
Subject: Re: insmod failed?
Date: Tue, 27 Jun 2000 01:00:43 GMT
are you using RH? you must alias your eth1 to
the 3c509 module in /etc/conf.modules (modules.conf)
file.
ie alias eth1 3c509
mike molson
[EMAIL PROTECTED]
Devon Harding wrote:
> I'm getting "insmod eth1 failed" during boot-up, but i'm able to manually to
> bring up the ethernet like this:
>
> # insmod 3c509
> # ifconfig eth1 192.168.0.1
>
> How can I enable this through boot-up. The device it a 3Com 509b on eth1
>
> Thanks,
>
> -Devon
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: stability of culture of helpfulness
Crossposted-To: alt.os.linux,comp.os.linux.advocacy
Date: Tue, 27 Jun 2000 02:06:19 +0100
In comp.os.linux.misc Andrew N. McGuire <[EMAIL PROTECTED]> wrote:
> On Mon, 26 Jun 2000, [EMAIL PROTECTED] wrote:
> + In article <Pine.LNX.4.21.0006252222390.4371-
> + [EMAIL PROTECTED]>,
> + "Andrew N. McGuire " <[EMAIL PROTECTED]> wrote:
> + > You are a real piece of work. Learn to spell, get an idea of what
> + > you are talking about, then maybe post if you have something useful
> + > to contribute, troll.
> +
> + I believe that would make you the troll-ee. Nice spelling flame too!
> Not the 'troll-ee', but the *plonker*. :-) Big difference.
Being one who *PLONK*s, I hope.... (As in killfiles)
:)
--
______________________________________________________________________________
| [EMAIL PROTECTED] | "Are you pondering what I'm pondering Pinky?" |
|Andrew Halliwell BSc(hons)| |
| in | "I think so brain, but this time, you control |
| Computer Science | the Encounter suit, and I'll do the voice..." |
==============================================================================
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Requirements for writing an operating system...
Date: Tue, 27 Jun 2000 02:04:16 +0100
- <[EMAIL PROTECTED]> did eloquently scribble:
> Hi There
> I am a linux newbie and I am very much fascinated with the Linux Kernel. And
> Linus Torvalds is a role model for me because I too want to write my own OS
> one day.
> I am still in school and I know quite a lot of stuff in computers but I am
> just curious about what are the requirements in order to write an OS. Can
> anyone out there advise me please? Reply to [EMAIL PROTECTED]
It depends on who complex you want the OS to be.
Put in its simplest terms, all an OS is, is a software layer between the
hardware and the user that manages system resources in such a way that the
user is unaware of all the complex stuff going on in the background.
In the early days of home computers (1970s/1980s) the machines were so
simple there was barely an operating system worth mentioning.
Just a few simple IO routines to allow printing on the screen and loading
from magnetic media (And maybe a BASIC interpreter).
Even machines that had an OS usually had the OS disabled by more complex
software to make use of the machine at peak efficiency. (Remove the OS layer
and grab all hardware for yourself).
As you probably want to know about more modern OSes, these do (some or all
of) the following.
Memory management (Allocating memory to processes)
Hardware management (Allocating space for hardware drivers, and time to that
hardware)
Time Management (Time slicing. Pre-emptive or Co-operative multitasking).
Prevention of clashes (only one process to write to hardware at a time).
Virtual Memory management (controlling the use of swap space, and how memory
swapping is handled in the most efficient way possible...)
Windows excluded??? *snigger*
Go to the library and ask for books on Operating Systems (generic) or
Unix/Linux systems programming in particular.
--
=============================================================================
| [EMAIL PROTECTED] | Windows95 (noun): 32 bit extensions and a |
| | graphical shell for a 16 bit patch to an 8 bit |
|Andrew Halliwell BSc(hons)| operating system originally coded for a 4 bit |
| in |microprocessor, written by a 2 bit company, that|
| Computer Science | can't stand 1 bit of competition. |
=============================================================================
------------------------------
From: [EMAIL PROTECTED] (Nikodemus Karlsson)
Subject: Re: include math.h
Date: Mon, 26 Jun 2000 14:51:11 +0200
Reply-To: [EMAIL PROTECTED]
Thanks!
/Nikodemus
On 26 Jun 2000 11:21:06 GMT, Peter T. Breuer <[EMAIL PROTECTED]> wrote:
>Nikodemus Karlsson <[EMAIL PROTECTED]> wrote:
>: I want to include math.h in a c-program,
>
>Well, fine.
>
>: which library do I have link the prohgram with?
>
>You don't HAVE to link it with any. But I think you are
>asking "where are the math functions". They're in the
>math library, libm. So compile with -lm.
>
>This is a unix FAQ.
>
>Peter
------------------------------
From: [EMAIL PROTECTED] (Bit Twister)
Subject: Re: 'Essential' files to backup
Reply-To: This_news_group.invalid
Date: Tue, 27 Jun 2000 01:18:54 GMT
As root
rpm -Va|grep '..5'>/tmp/verify
Now, /tmp/verify contains what does not match what you installed.
Look through /tmp/verify and see what you realy want to save.
On Mon, 26 Jun 2000 11:36:31 GMT, [EMAIL PROTECTED]
><[EMAIL PROTECTED]> wrote:
>What are the 'essential' Linux configuration files I should backup so
>that I can restore Linux (Mandrake 7) to its current configuration if
>there is a
--
The warranty and liability expired as you read the message.
If the above breaks your system, it's yours and you keep both pieces.
Practice safe computing. Backup the file before you change it.
Do a, man every_command_here, before doing anything or running a script.
------------------------------
From: [EMAIL PROTECTED] (Grant Edwards)
Crossposted-To: alt.os.linux,comp.os.networking,comp.protocols.tcp-ip,comp.programming
Subject: Re: Easy way to send files through FTP...
Date: Tue, 27 Jun 2000 01:22:25 GMT
On Mon, 26 Jun 2000 19:08:22 -0500, Doug Priebe <[EMAIL PROTECTED]> wrote:
>> Is there a quick and easy method of sending a file to an FTP
>> site...!!!!!!! I looking for a shell script, perl script,
>> C/C++ program... Anything, as long as it is fairly simple...
>I normally use wget http://www.gnu.org/software/wget/wget.html
I thought wget would only "get" files from ftp sites and not
"put" files to ftp sites. I've not been able to figure out
from the wget man page how to send files...
--
Grant Edwards grante Yow! I have a very good
at DENTAL PLAN. Thank you.
visi.com
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: Internet backup services for Linux
Reply-To: [EMAIL PROTECTED]
Date: Tue, 27 Jun 2000 01:46:00 GMT
Centuries ago, Nostradamus foresaw a time when Mark Wang would say:
>Robie Basak <[EMAIL PROTECTED]> wrote:
>
>: Hmm. Assuming you just bought yourself a new hard drive, it's got to
>: be at least > 10 Gb or so. In which case, what kind of internet speed
>: do you have? If you've only just started considering it, have you made
>: sure you've calculated the time it'll take to do a full backup/money
>: it will cost?
>
>True, however, the size of the data that I really need backed up (ie,
>stuff that can't be re-installed or re-created easily) is small relative
>to this -- around 500 MB - 1 GB or so. Plus, the way most services work
>is that they just incrementally back up changed files, so after the first
>full backup, the amount of data is much smaller.
>
>I'm on a Ethernet connection, and a fast connection to the Internet
>backbone, so bandwidth shouldn't be an issue for me.
>
>If anyone knows _any_ suggestions, please let me know. Seems to me this
>is a potentially large market.
See:
<http://www.betterbackups.com/>
<http://www.zdnet.com/pcmag/features/utilities99/onlinebk03.html>
<http://www.miletus.com/Net-Archive.html>
And, particularly...
<http://directory.google.com/Top/Computers/Software/Internet/\
Site_Management/Backup/>
It sorta looks like <http://thedatabank.net/> is _not_ one of the
options to look at; if they can't keep their web site up, I'd question
the reliability of the backups...
--
[EMAIL PROTECTED] - <http://www.ntlug.org/~cbbrowne/>
This program posts news to billions of machines throughout the galaxy.
Your message will cost the net enough to bankrupt your entire planet.
As a result your species will be sold into slavery. Be sure you know
what you are doing. Are you absolutely sure you want to do this? [yn]
y
------------------------------
From: "Trent Cook" <[EMAIL PROTECTED]>
Subject: Cant create a partition with disk druid?? (newbie)
Date: Tue, 27 Jun 2000 01:47:23 GMT
Hi again,
I figured the best way to get out of my linux mess, was a complete fresh
install. Guess not, cause here is my problem:
I have 2 hard drives: one 13gig cut up for windows and one 5gig cut up for
linux.
The problem is that I can only create a swap partion on my 5 gig drive. I
have deleted all partitions in fdisk, disk druid, linux fdisk, delpart etc
etc and every time I come to disk druid in the setup. It says that I have
100% free space on my 5 gig drive, but when I try to create a /boot or a /
root drive it says there isnt enough space.
Oddly enough I can create swap files (as many , or as big as I want with the
5 gig drive?)
Why cant I make any other drives? I tried creating them with fdisk and
converting to linux but no go.
I did an Fdisk /mbr as well (just cause i ran out of things to try) but
nothing.
So I guess Linux doesnt want to go on my machine, but I am sure that there
must be something I can do.....isnt there?
Please Help!
Trent (newbie)
------------------------------
From: "Devon Harding" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.hardware,comp.os.linux.networking,comp.os.linux.questions,comp.os.linux.setup
Subject: Re: insmod failed?
Date: Mon, 26 Jun 2000 22:02:37 -0400
Here is a copy of my "conf.modules"
alias eth0 ne
options ne io=0x300 irq=10
alias eth1 3c509
options 3c509 io=0x320 irq=5
alias parport_lowlevel parport_pc
pre-install pcmcia_core /etc/rc.d/init.d/pcmcia start
I'm using RHL62
-Devon
"Michael Molson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> are you using RH? you must alias your eth1 to
> the 3c509 module in /etc/conf.modules (modules.conf)
> file.
> ie alias eth1 3c509
>
> mike molson
> [EMAIL PROTECTED]
>
> Devon Harding wrote:
>
> > I'm getting "insmod eth1 failed" during boot-up, but i'm able to
manually to
> > bring up the ethernet like this:
> >
> > # insmod 3c509
> > # ifconfig eth1 192.168.0.1
> >
> > How can I enable this through boot-up. The device it a 3Com 509b on
eth1
> >
> > Thanks,
> >
> > -Devon
>
------------------------------
From: Mark Wang <[EMAIL PROTECTED]>
Subject: Re: Internet backup services for Linux
Date: 27 Jun 2000 02:15:38 GMT
Christopher Browne <[EMAIL PROTECTED]> wrote:
: See:
: <http://www.betterbackups.com/>
: <http://www.zdnet.com/pcmag/features/utilities99/onlinebk03.html>
: <http://www.miletus.com/Net-Archive.html>
I've looked into most of them already. The problem is: These sites all
use proprietary client software which don't support Linux. As I clearly
stated in my original post (and since I'm posting this to a _Linux_
newsgroup), I am interested in seeing if there were any such services
which are comparable to these that DO support Linux.
: And, particularly...
: <http://directory.google.com/Top/Computers/Software/Internet/\
: Site_Management/Backup/>
-- Mark
--
Mark Wang "Darkness cannot drive out darkness; only
Stanford University '99 light can do that. Hate cannot drive out
[EMAIL PROTECTED] hate; only love can do that."
http://www.cs.stanford.edu/~mwang/ -- Martin Luther King, Jr.
------------------------------
From: <[EMAIL PROTECTED]>
Subject: web based useradd function
Date: Tue, 27 Jun 2000 02:30:03 GMT
Dear all,
I am fresh from unix or lunix platform and my boss has bought a web
mail program and force me to install, however, this program does not allow
user to register their username and password. As a free mail provider, I
have no idea on how I can write a cgi script to allow public to add the
user name with thier password. Can anyone suggest any link I can follow
to finish my task, thank you for your kindly help
Max
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: Robert Heller <[EMAIL PROTECTED]>
Subject: Re: Who is loading the system and why?
Date: Tue, 27 Jun 2000 02:16:23 GMT
David Steuber <[EMAIL PROTECTED]>,
In a message on Mon, 26 Jun 2000 17:00:02 GMT, wrote :
DS> [EMAIL PROTECTED] (J Bland) writes:
DS>
DS> ' Unless someone knows a way of listing things in the IO queue I think the
DS> ' best way of tracking something like this down is just to kill things off one
DS> ' by one until you find the culprit, although an educated guess can speeden it
DS> ' up.
DS>
DS> Well, it seems that apmd was the culprit. I noticed that it was
DS> listed twice in the ps aux listing. That aroused my suspicions. I
DS> stoped it with the /sbin/init.d/apmd stop command. The load averages
DS> then started to fall.
DS>
DS> The apm program still works. I don't see that I need apmd. I'm not
DS> exactly sure what it offers. The man page is of no help.
Is 'solo' a laptop or a desktop? If a desktop, apmd is mostly useless.
'apmd' is the Automatic Power Management daemon -- it takes care to
put your system into 'suspend' mode properly when you close the lid of
your laptop so you can conserve battery life and still have Linux be up
and generally sane. On a desktop, plugged into a hard connection to
the power grid, this is just a waste of effort -- desktop battery
backups (UPS) would be in powerd's world. Recent versions of RedHat
(6.x) and I guess SuSE as well have been shipping kernels with apm
BIOS support and seem to be installing apmd and setting it up to run
at boot. Which I guess makes things easier for people with laptops,
but is just extraneous crud for people with desktops and servers.
*I* guess some of the *newer* desktops have an small bit of the APM
BIOS stuff -- our newer Celeron, PII, and PIII boxes (i.e. Gateway
ATX/Slot 1 motherboards), power themselves down when shutdown -h
finishes, instead of just saying 'System Halted' like the they did with
RH 5.x.
I'm guessing that your machine's BIOS is/was confusing the apm code,
causing apmd to keep beating on it (creating a LA of 1).
DS>
DS> I've therefor modified /etc/rc.config to not start the ampd program at
DS> boot up. ( This is a SuSE 6.2 based system ).
DS>
DS> Problem solved, I guess.
DS>
DS> --
DS> David Steuber | Hi! My name is David Steuber, and I am
DS> NRA Member | a hoploholic.
DS>
DS> All bits are significant. Some bits are more significant than others.
DS> -- Charles Babbage Orwell
DS>
--
\/
Robert Heller ||InterNet: [EMAIL PROTECTED]
http://vis-www.cs.umass.edu/~heller || [EMAIL PROTECTED]
http://www.deepsoft.com /\FidoNet: 1:321/153
------------------------------
Date: Tue, 27 Jun 2000 11:16:52 +0800
From: Tan Chee Sin <[EMAIL PROTECTED]>
Subject: Chinese character viewer/editor for Linux
Does anyone know if there a Chinese character viewer / editor for Linux?
Thanks.
At the moment, I do not want to install a completely Chinese Linux.
Chee Sin
------------------------------
From: [EMAIL PROTECTED] (David Efflandt)
Crossposted-To: comp.os.linux.hardware
Subject: Re: Linux, Quake2 and a PS/2 Mouse
Date: 27 Jun 2000 03:38:19 GMT
Reply-To: [EMAIL PROTECTED]
On Mon, 26 Jun 2000 13:43:04 +0100, Ross Goodley <[EMAIL PROTECTED]> wrote:
>I have a similar prob with Q2 and mice with my 3DFx Card, run with svgalib,
>or under X... mouse works fine. Run with mesa or glide... no mouse.. zip
>nada.... any ideas anyone?
Did you try 'killall gpm' first? I haven't run q2 since RH 5.2 (that
drive is not in my computer at the moment), but a PS2 mouse worked fine
with a 3dfx Monster 3D. I used my Glidepad for aiming.
--
David Efflandt [EMAIL PROTECTED] http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/ http://cgi-help.virtualave.net/
------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Shell scripting and chmod +s
Date: 26 Jun 2000 23:32:33 EDT
Reply-To: [EMAIL PROTECTED]
On 26 Jun 2000 22:19:58 GMT, Dirk Reckmann
<<[EMAIL PROTECTED]>> shouted forth into the ether:
>I had a simmilar problem a few weeks ago, and found the 'sudo' workaround.
>But still i'm asking myself: Why doesn't the u+s bit work for scripts?
Because it's a *SECURITY RISK*!
There's a race condition when you're executing a shell script. If
you had a SUID script, things would happen kind of like so: (warning,
I could be completely off base on the details here!)
First, the shell assumes root privileges. Then it does a fork(), creating
a subshell in which the script will run. The child process retains root
privileges and executes the script. The parent process sets its UID and
GID back to normal. There is a small (but exploitable) window in which
the child process has root priviliges, but it hasn't started executing the
script yet. A clever person could potentially replace the script with an
arbitrary series of commands, leading to much evil.
Shell scripts are also vulnerable to buffer overruns.
The thing to do if you really really need a SUID script is to make a C
wrapper like so and chmod +s it:
#include <unistd.h>
int main(int argc, char **argv, char **envp)
{ execve("/path/to/script",argc,argv,envp); }
--
Matt G / Dances With Crows /\ "Man could not stare too long at the face
\----[this space for rent]-----/ \ of the Computer or her children and still
\There is no Darkness in Eternity \ remain as Man." --David Zindell "So did
But only Light too dim for us to see\ they become Gods, or Usenetters?" --/me
------------------------------
** 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
******************************