Linux-Misc Digest #540, Volume #26 Wed, 13 Dec 00 18:13:02 EST
Contents:
Re: ramdisk size ("Edmund C. Greene")
Re: allowing serial port logins when DCD (carrier detect) is not present ("trebor")
Re: sharing file linux and w2k ("Eric")
Linux plus Java apps ([EMAIL PROTECTED])
where is boot.b ("mark")
Re: (Newbie) Mandrake 7.2 less buggy than Red Hat 7.0? (Michel Catudal)
Re: Mouse & Keyboard locks ("D. Stimits")
Re: anyone got recommendations for laptops? ((Wm. Randolph Franklin))
KDE: starting job on specific desktop ((Wm. Randolph Franklin))
Re: IP Alias does not seem to work on 6.2 RH ("Steve Wolfe")
Kwintv (no sound) (Flo)
Mount fat-partition!! (Flo)
md driver troubles? (Greg B)
installing "standalone" app on linux (maybe aka "[semi-] embedded" system)? ("Marty
Ross")
Re: /etc/exports (Leonard Evens)
ulimit self imposed on cron job: how? (Tim Richardson)
Re: /etc/rc.d/rc0.d/K## scripts DO NOT WORK on RH 6.2 (Bryan Hoyt)
Re: RH Linux 7.0 Install Killed DOS -- HOW? (Bob Simon)
"ps -ef" lines truncated on the right (Hardy Merrill)
----------------------------------------------------------------------------
From: "Edmund C. Greene" <[EMAIL PROTECTED]>
Subject: Re: ramdisk size
Date: Wed, 13 Dec 2000 15:20:50 -0500
I would like to take this further.
I am trying to set up Linux to run on Network Computers (basically diskless
workstations). I would like to make a RAM disk of about 32Meg so that I could
copy often used applications (Netscape) to it so I can run it off of it. However,
when I try any of the methods mentioned it won't work. It seems that the limit of
a RAM disk is about 4Meg. Does anyone know how to make a 32Meg (contiguous) RAM
disk?
Also, I am using kernel 2.2.14 and have no choice about the kernel at the moment.
Any help would be appreciated.
Edmund C. Greene
Web Engineer
Boston College
[EMAIL PROTECTED]
David Efflandt wrote:
> On 11 Dec 2000 19:36:08 GMT, Timo Benk <[EMAIL PROTECTED]> wrote:
> >Hi
> >
> >On Mon, 11 Dec 2000 18:44:26 GMT, Peter T. Breuer <[EMAIL PROTECTED]> wrote:
> >>Timo Benk <[EMAIL PROTECTED]> wrote:
> >>>> As of kernel v1.3.48, the RAM disk driver was substantially changed.
> >>> I have read that, too, but what is the meaning of that?
> >>> Let's say i have got a ramdisk /dev/ram0. Now I create a filesystem on it:
> >>> mke2fs /dev/ram0
> >>> How can the size grow dynamically when there is a fs on it ???
> >>> The fs must grow too.
> >>
> >>No. The FS is mostly the meta info. The inodes and the inode tables. The
> >>blocks backing those inodes may exist (or not) in various senses.
> >
> >Now I'm really confused. How can I use such a ramdisk and change ( either by
> >myself or let it be done by the kernel ) the size of this ramdisk. I see
> >only two ways to do that:
> >
> >1. mke2fs /dev/ram0
> > mount /dev/ram0 /mnt
> > cp something /mnt
> >problem: how to change the size of the ramdisk if i need more space. I'm
> >pretty sure that this won't work dynamically.
> >
> >2. dd if=/dev/zero of=/tmp/tempfs.img
> > mke2fs /tmp/tempfs.img
> > mount /tmp/tempfs.img /mnt
> > cp something /mnt
> > umount /mnt
> > dd if=/tmp/tempfs.img of=/dev/ram0
> >
> >I think Louis meant that in his posting talking about using an image.
> >That way I can imagine that the kernel will grow the ramdisk to
> >the needed size, but I tried it and it doesn't work.
> >
> >So is that my fault or is it just impossible to change the ramdisk size
> >without rebooting or reloading the ramdisk module?
>
> The ramdisk can automatically resize if you copy an image to it, but if
> you put a filesystem on it I believe you have to specify the size of the
> filesystem. I just dynamically resized it and it worked without rebooting
> or manually reloading any modules.
>
> Here is before and after:
>
> /dev/ram 2.0M 512k 1.5M 25% /home/efflandt/seti-ram
>
> /dev/ram 3.9M 512k 3.4M 13% /home/efflandt/seti-ram
>
> I initially created it in /etc/rc.d/rc.local and resized it by simply
> copy and pasting each line to the prompt, but changing 2048 to 4096:
>
> # set up ramdisk for setiathome
> /bin/dd if=/dev/zero of=/dev/ram bs=1k count=2048
> /sbin/mke2fs -vm0 /dev/ram 2048
> /bin/mount -t ext2 /dev/ram /home/efflandt/seti-ram
>
> Then I copied the files to it, and changed permissions and ownership.
>
> --
> David Efflandt [EMAIL PROTECTED] http://www.de-srv.com/
> http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
> http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
--
[Edmund C. Greene <[EMAIL PROTECTED]>]
------------------------------
From: "trebor" <[EMAIL PROTECTED]>
Subject: Re: allowing serial port logins when DCD (carrier detect) is not present
Date: Wed, 13 Dec 2000 15:24:40 -0500
OK .. I think I found a workaround:
First, I edited /etc/gettydefs, adding the following additional entry:
noDCD_9600# B9600 CS8 CRTSCTS CLOCAL # B9600 SANE -ISTRIP HUPCL CRTSCTS
CLOCAL #@S login: #noDCD_9600
(the difference between this and F9600 is the addition of "CLOCAL")
Then, in /etc/inittab, I changed the ttyS0 line to:
S0:1345:respawn:/sbin/getty ttyS0 noDCD_9600
After restarting init and killing the old getty process for ttyS0, I was
able to get a login: prompt.
If anybody has another approach, or comments on my approach, pls send your
$.02
-Bob
"trebor" <[EMAIL PROTECTED]> wrote in message
news:918ieh$ebc$[EMAIL PROTECTED]...
> I am trying to login from a serial port using a remote access device which
> is not raising the carrier detect line. I'm not getting a login prompt at
> all - I'm assuming this is because DCD is not raised. Is there a way in
> gettydefs to tell getty to ignore DCD? I know this can be done once you've
> logged in, with 'stty -clocal', but my problem is BEFORE I login, while
> getty has control of the port. This is on Red Hat 5.2 system.
>
> Thanks,
> -Bob
> Andover, MA
>
>
------------------------------
From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: sharing file linux and w2k
Date: Wed, 13 Dec 2000 15:22:46 -0500
"Andy Heath" <[EMAIL PROTECTED]> wrote in message
news:lZPZ5.14119$I5.156243@stones...
> If I buy a laptop with w2k can I share files between
> linux and w2k some way. For example, could I have a
> FAT32 partition on the same disk written to by both OS's
> in the same way O can mount w95/8 partitions ?
>
> Andy
Well, for one thing, if you install Linux on another partition, you can
mount your w2k partition as a dos disk within linux, and swap from there.
------------------------------
From: [EMAIL PROTECTED]
Subject: Linux plus Java apps
Date: Wed, 13 Dec 2000 20:23:37 GMT
Currently I have several Java apps that I would like to run on Linux. My
setup allows the apps to reside on a FAT partition so it is accessible
from Windows and OS/2.
Unfortunately I can not seem to come up with a startup script that
allows Linux (Mandrake 7 with IBMJava2-13) to execute the apps.
The main app is the Jstreet mailer but I have several others that I
would like to be able to access also.
Does anyone have a generic script that I could use as a model to modify
for my own uses? Any help is appreciated!
>>>Ken<<<
Sent via Deja.com
http://www.deja.com/
------------------------------
From: "mark" <[EMAIL PROTECTED]>
Subject: where is boot.b
Date: Wed, 13 Dec 2000 12:49:52 -0800
Hi all,
I compiled the kernel today and when i tried to run lilo i got this error
message:
Fatal: boot.b no such file or directory.
I may have deleted this file by accident from /boot.
is there is a way i can recreate this file ?
what is the way out ?
note: i am running redhat 7.0
thanx
mark
------------------------------
From: Michel Catudal <[EMAIL PROTECTED]>
Subject: Re: (Newbie) Mandrake 7.2 less buggy than Red Hat 7.0?
Date: 13 Dec 2000 14:53:06 -0600
Garry Heaton a écrit :
>
> I'm about to select my first Linux/UNIX OS and have narrowed-down the choice
> to Mandrake 7.2 or Red Hat 7.0. I've heard Red Hat 7.0 is buggy. Is Mandrake
> therefore more stable? Are there any significant differences between the 2?
> I tend towards the ease of use end of the spectrum as I want to concentrate
> on Perl development not OS expertise.
>
> Also, can I run Apache for desktop development with both of these options? I
> read somewhere that Mandrame 7.2 is designed for the desktop, not the
> server, but I understand by this that I will still be able to use it as a
> desktop development environment with Apache but not as a server machine.
> Please correct if this isn't the case.
>
> Thanks
>
> Garry Heaton
SuSE 7.0 professional would be a better choice. Mandrake much like RedHat is famous for
its regular core dumps.
--
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://www.netonecom.net/~bbcat for all kinds of links and info
http://www.geocities.com/seinsiboire and
http://members.nbci.com/bbcat_rpm for SuSE 7.0 Linux RPM packages
------------------------------
Date: Wed, 13 Dec 2000 14:02:28 -0700
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Mouse & Keyboard locks
Stu wrote:
>
> I have a strange problem. Ocaisonally when I boot up my machine (about 1 in
> 5 but it seems random) my keyboard and mouse don't work. This is whether I
> boot into console or graphical login mode. I am sure it is not a hardware
> problem as the keyboard, at least, always works at the lilo prompt.
>
> Anyone any ideas what the problem may be ?
I had this happen for a while...turned out the cable was loose.
Depending on where I sat it wouldn't get bumped. Since I wasn't sitting
down till it booted it didn't show up until I actually sat down.
------------------------------
From: (Wm. Randolph Franklin) <[EMAIL PROTECTED]>
Subject: Re: anyone got recommendations for laptops?
Date: 13 Dec 2000 16:20:09 -0500
Reply-To: (Wm. Randolph Franklin) <[EMAIL PROTECTED]>
>From personal experience with a SR7K, I disrecommend using a Sony
VAIO because of Sony's terrible customer support and the various
proprietary features mentioned in another post.
Check the portable newsgroup; they like the Toshiba Portege.
----
(Wm. Randolph Franklin) <[EMAIL PROTECTED]>
------------------------------
From: (Wm. Randolph Franklin) <[EMAIL PROTECTED]>
Crossposted-To: comp.windows.x,comp.os.linux.x
Subject: KDE: starting job on specific desktop
Date: 13 Dec 2000 16:33:55 -0500
Reply-To: (Wm. Randolph Franklin) <[EMAIL PROTECTED]>
In KDE, is there a way to start a new job's window on a specific
desktop? I like to say something like
xterm -desktop 2 &
tho that actual option fails. I've searched all the docs I can
think of, w/o success. Thanks.
I tried the suggestion to use geom like this:
xeyes -geom +2000+0
to see if that forces xeyes to a specific desktop. However, it
does not, at least with kwm.
Thanks.
----
(Wm. Randolph Franklin) <[EMAIL PROTECTED]>
------------------------------
From: "Steve Wolfe" <[EMAIL PROTECTED]>
Subject: Re: IP Alias does not seem to work on 6.2 RH
Date: Wed, 13 Dec 2000 14:38:38 -0700
> Ok, we've got four 6.2 RH systems in various places. On all of them
> we have used linuxconf to add an IP alias to eth0. On two of the
> servers an ifconfig -a shows the alias, and on two of them it does
> not.
>
> Question 1: Should I not in fact see the aliased address in the
> ifconfig -a?
You should.
> Question 2: Any clues on what is not working?
If you have compiled your own kernel as opposed to the stock RH kernel,
you may not have included support for IP aliasing.
> Question 3: Can't I issue a manual ifconfig command to add the alias?
> The man page seems ambiguous on the syntax.
Yep. ifconfig eth0:1 {blah blah blah}
steve
------------------------------
From: Flo <[EMAIL PROTECTED]>
Subject: Kwintv (no sound)
Date: Wed, 13 Dec 2000 23:06:40 +0100
Hi
When I start kwintv I get a very good picture and at a few station
sound, but not at every time. when i start "program edit" and change the
frequenz (and then back to the old frequenz) of the station i get sound,
then i exit the edit-dialog and have sound and pic. But when I change
the station and back to the old station I don't have sound.
Can someone help me
thx
flo
------------------------------
From: Flo <[EMAIL PROTECTED]>
Subject: Mount fat-partition!!
Date: Wed, 13 Dec 2000 23:18:24 +0100
Hi
I want to mount a fat partiotion with a directory (daten and musik). to
daten should only my account have permission (read,write,execute) to
musik should an guest account have only read permission.
I dont know how to do this with mount (or can't i do that)
How can I solve my problem Please help me.
thx flo
------------------------------
From: Greg B <[EMAIL PROTECTED]>
Subject: md driver troubles?
Date: Wed, 13 Dec 2000 22:13:42 GMT
I am trying to install Debian 2.2. During CD boot system hangs after the
line:
md driver 0.36.6 MAX_MD_DEV=4, MAX_REAL=8
What is md driver and whight happen?
Thanks for any help,
Greg
Sent via Deja.com
http://www.deja.com/
------------------------------
From: "Marty Ross" <[EMAIL PROTECTED]>
Subject: installing "standalone" app on linux (maybe aka "[semi-] embedded" system)?
Date: Wed, 13 Dec 2000 03:48:07 +0200
Using RedHat 6.2:
I'm trying to create a standalone system so I'm trying to understand how
"init" works exactly. In the end, I want my linux box to boot directly into
this program, and not start any "login" prompts.
If I say, for example, that my "standalone" program runs at "runlevel 4" (so
that I can say "initdefault" is 4), and I insert a line into "inittab" that
says:
myprog:4:respawn:/mydir/myscript
where "myscript" sets my environment, loads my daemon processes, and runs my
application, the first daemon process I load gets terminated with "SIGTERM".
Why? By whom? (presumably, by "init"). But I don't understand. There IS
a previous line in the "inittab" that reads:
l4:wait:/etc/rc.d/rc 4
But I assume this happens BEFORE "myscript" is executed, so I don't see the
problem.
I have read many "startup" tutorials, and the "man" page and other tutorials
on "init" and "inittab", and still I can't figure out....
What is a good way to run a "standalone" application (and yes, it would be
nice if it had "normal" control of the console tty)? I don't want to run
"getty" or "login", yet I want some of the "controlling terminal" things
that are done here. Do I need to write a program to open the terminal
device and set it up myself? Boy, that sounds archaic!
Any help appreciated!
------------------------------
From: Leonard Evens <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Re: /etc/exports
Date: Wed, 13 Dec 2000 16:34:49 -0600
[EMAIL PROTECTED] wrote:
>
> In article <s5AZ5.18642$[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] wrote:
> > In comp.os.linux.misc Leonard Evens <[EMAIL PROTECTED]> wrote:
> > > Under RedHat 6.X and earlier there is no exportfs. It does appear
> [... stuff about differnet versions of RH ...]
> > I'll try to check at work tomorrow, I use Mandrake 7.1 here at
> > home. It definitely has exportfs.
>
> I just got to work and checked my RH machines here. Both RH 6.1 and 6.2
> have /usr/sbin/exportfs, at least using the install options that I
> selected.
>
> Leonard is correct that this is a fairly recent addition to most
> Linuxes, and one I really appreciate after using it in HPUX for years.
>
You are perfectly correct. It is part of the nfs-utils package.
I checked if I had it on my home machine on which I don't have that
package installed, which is why I didn't find it.
I also missed it under Linux, having used it regularly on Sun
workstations. I hadn't realized it was added some time in RH6.X.
> --
> Jim Buchanan [EMAIL PROTECTED] [EMAIL PROTECTED]
> =================== http://www.buchanan1.net/ ==========================
> "I don't think Microsoft is evil in itself; I just think that they make
> really crappy operating systems." -Linus Torvalds
> ========================================================================
>
> Sent via Deja.com
> http://www.deja.com/
--
Leonard Evens [EMAIL PROTECTED] 847-491-5537
Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208
------------------------------
From: Tim Richardson <[EMAIL PROTECTED]>
Subject: ulimit self imposed on cron job: how?
Date: Wed, 13 Dec 2000 22:30:46 GMT
I am an ordinary user on a webhosting Linux box (with shell access and
crontab -e access). It's kernel 2.0.x
Shell is bash.
I have a job I want to run from cron. However, sometimes this job hangs,
consuming lots of CPU. This is such a problem that it is unsocial of me
to run it from cron. Please assume I can't fix the problem with the
hanging (actually, I think I have, but I can't prove it). I want to use
ulimit to kill this job after say 60 seconds of CPU time.
I have experimented from an interactive shell with
ulimit -H -t 1
and then run the suspect perl script, but my job was not killed.
I would love some help,
regards,
Tim
--
Tim Richardson (search string: qweeblebeast)
Sent via Deja.com
http://www.deja.com/
------------------------------
From: [EMAIL PROTECTED] (Bryan Hoyt)
Subject: Re: /etc/rc.d/rc0.d/K## scripts DO NOT WORK on RH 6.2
Reply-To: [EMAIL PROTECTED]
Date: 14 Dec 2000 11:39:56 +1200
Who ever said Kevin Taylor couldn't write what follows?:
>
>I'm trying to get a script to run on startup and shutdown....it just
>creates a file on shutdown and deletes it on startup....this shouldn't
>be tough.
>
>However, I'm noticing that the script is NEVER executed on shutdown.
>Redhat just bypasses all those K scripts and runs it's
>/etc/rc.d/init.d/halt program.
>
>Does anyone know what's going on here?
Look in /etc/rc.d/rc
This is the script which runs all the K and S scripts in rc.$runlevel
Have a look at how it works, and you ought to be able to find out something
about your problem.
--
Bryan Hoyt
[EMAIL PROTECTED]
http://www.crosswinds.net/~artmusic
===================================
"Text processing has made it possible to right-justify any idea, even
one which cannot be justified on any other grounds."
-- J. Finnegan, USC.
------------------------------
From: Bob Simon <[EMAIL PROTECTED]>
Subject: Re: RH Linux 7.0 Install Killed DOS -- HOW?
Date: Wed, 13 Dec 2000 22:41:04 GMT
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Svend Olaf Mikkelsen) wrote:
> Bob Simon <[EMAIL PROTECTED]> wrote:
> >After installing Linux 7.0, LILO boots Linux fine, but DOS will not
> >start, even from a floppy.
> Get Findpart at http://inet.uni2.dk/~svolaf/utilities.htm, temporarily
> set the disk to none in BIOS, boot to a DOS floppy, do (assuming the
> disk is primary master):
>
> findpart pm fp.txt
>
> and insert (not attach) the content from fp.txt in an follow-up to
> this message.
> --
> Svend Olaf
>
Svend,
Thanks for offering to help but I can't run your program because I can't
boot DOS. Not even from a floppy. Is there a version that I can run
from Linux or is there a built-in Linux utility that will provide us
equivalent information?
Bob
Sent via Deja.com
http://www.deja.com/
------------------------------
From: Hardy Merrill <[EMAIL PROTECTED]>
Subject: "ps -ef" lines truncated on the right
Date: Wed, 13 Dec 2000 22:51:29 GMT
On Linux Redhat 6.1, when I do a "ps -ef" some process lines are
truncated because they were started with many options. How can I make
the lines "wrap" so that I can see each whole process line? I've tried
"ps -efw" and that doesn't work - I get the same as if I'd done "ps -ef"
without the "w". Ideas?
Thanks.
hmerrill
Sent via Deja.com
http://www.deja.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 by posting to comp.os.linux.misc.
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
******************************