Linux-Misc Digest #738, Volume #25 Mon, 11 Sep 00 20:13:02 EDT
Contents:
un-eject a CD? Too far to walk over to shove it back in ("Dan Jacobson")
Re: un-eject a CD? Too far to walk over to shove it back in (Chris J/#6)
Re: setting up a router (Jonathan Voigt)
Re: Alias in a shell skript ("Andrew N. McGuire ")
Init runlevel other than 1 (Radu Serban)
Re: Zip 100 Parallel Port Drive (Peter Rodriguez)
Re: Init runlevel other than 1 ("Peter T. Breuer")
Re: setting up a router (Peter Greenwood)
Re: un-eject a CD? Too far to walk over to shove it back in (OtiGoji)
Re: can't open apps (James Franklin)
Re: you can turn the power off now ([EMAIL PROTECTED])
Re: Multi-session CD's without -eject (cdrecord) ([EMAIL PROTECTED])
Re: TCP port 947B ("Andrew N. McGuire ")
Re: Linux test available for download (Robert Lynch)
Re: you can turn the power off now (Leonard Evens)
Re: Init runlevel other than 1 (Radu Serban)
Re: TCP port 947 ("Andrew N. McGuire ")
Re: umount: /usr: device busy (Lloyd Bryant)
Re: End-User Alternative to Windows (Ian Pulsford)
----------------------------------------------------------------------------
From: "Dan Jacobson" <[EMAIL PROTECTED]>
Crossposted-To: alt.horror.video,alt.movies.monster,comp.os.linux.hardware
Subject: un-eject a CD? Too far to walk over to shove it back in
Date: Mon, 11 Sep 2000 19:42:14 +0800
> >appears from the examples that multi-session uses the -eject option to
> >cause the CD to be ejected along the way. I'm assuming that this is so
By the way, I just thought of a script for a horror movie: user gets
remotely hacked and suddenly his two CD drives start alternatively opening
[ejecting] and closing just like the dresser drawers in legacy horror
movies.
By the way#2. I remember in windows, many programs would gratuitously
eject the CD after finishing, with no command available to push it back
in, causing me to have to walk over to the PC 10 meters away and shove it
back in. Surely in Linux there's a [shell?] command to shove a CD back
in? Folowups-to: comp.os.linux.misc
--
www.geocities.com/jidanni E-mail: restore ".com." �n����
Tel:+886-4-5854780; starting in year 2001: +886-4-25854780
------------------------------
From: [EMAIL PROTECTED] (Chris J/#6)
Subject: Re: un-eject a CD? Too far to walk over to shove it back in
Reply-To: [EMAIL PROTECTED]
Date: 11 Sep 2000 23:09:02 +0100
Dan Jacobson <[EMAIL PROTECTED]> wrote:
>
>By the way#2. I remember in windows, many programs would gratuitously
>eject the CD after finishing, with no command available to push it back
>in, causing me to have to walk over to the PC 10 meters away and shove it
>back in. Surely in Linux there's a [shell?] command to shove a CD back
>in? Folowups-to: comp.os.linux.misc
I wrote a utility to do this :)
http://www.nccnet.co.uk/~sixie/linux/cdrom-1.1.tar.gz
Keep meaning to add all sorts of stuff to it but at the moment just two
tools: 'eject' and 'load' :)
Chris...
--
@}-,'-------------------------------------------------- Chris Johnson --'-{@
/ "(it is) crucial that we learn the difference / [EMAIL PROTECTED] \
/ between Sex and Gender. Therein lies the key / \
/ to our freedom" -- LB / www.nccnet.co.uk/~sixie \
------------------------------
From: Jonathan Voigt <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.security,comp.os.linux.setup
Subject: Re: setting up a router
Date: Mon, 11 Sep 2000 22:14:58 GMT
unless your route table is set up properly, you won't even see the external
interface from windows...
the gateway should be the nic they can see... the router/linux box does all the
routing/forwarding between the two nics/subnets
Darren Welson wrote:
> I am setting up a router/firewall on my home LAN. I have a Linux box acting
> as the router and windows boxes going through the linux box. On my windows
> boxes which NIC should I point to as my gateway, the internal LAN NIC, or
> the external (internet) NIC?
------------------------------
From: "Andrew N. McGuire " <[EMAIL PROTECTED]>
Subject: Re: Alias in a shell skript
Date: Mon, 11 Sep 2000 17:12:19 -0500
On Mon, 11 Sep 2000, ThomasWalz quoth:
T> I set in a shell skript an alias and use it in the
T> same skript.
T>
T> Example "Aliastst"
T> --------------------------------------
T> #!/bin/sh
T>
T> alias showdir='ls'
T>
T> echo "Show Def. of alias showdir : `alias | grep showdir` "
T>
T> showdir
T> --------------------------------------
T>
T> If i run Aliastst only by typing its name
T> in a new subshell the alias showdir seems not
T> to be defined.
I assume you mean something like this scenario:
bash-2.03$ alias showdir='ls'
bash-2.03$ showdir
GNUstep Mail docs file mail packages src test themes
bash-2.03$ bash
bash-2.03$ showdir
bash: showdir: command not found
bash-2.03$
If I understand you correctly, you are trying to export an alias.
You cannot. Drop the aliases, and use shell functions instead,
they can be exported:
bash-2.03$ function showdir()
> {
> ls
> }
bash-2.03$ showdir
GNUstep Mail docs file mail packages src test themes
bash-2.03$ export -f showdir
bash-2.03$ bash
bash-2.03$ showdir
GNUstep Mail docs file mail packages src test themes
bash-2.03$
anm
--
BEGIN { $\ = $/; $$_ = $_ for qw~ just another perl hacker ~ }
my $J = sub { return \$just }; my $A = sub { return \$another };
my $P = sub { return \$perl }; my $H = sub { return \$hacker };
print map ucfirst() . " " => ${&$J()}, ${&$A()}, ${&$P()}, ${&$H()};
------------------------------
From: Radu Serban <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.portable
Subject: Init runlevel other than 1
Date: Mon, 11 Sep 2000 15:13:55 -0700
Hi,
I just finished installing RedHat6.1 on my laptop (Akia
P200 with a NeoMagic 12XD video card). If I use anything
else but init runlevel 1 (I tried 2,3,5) the computer hangs and
all I can see are some numbers that keep scrolling. I have to
hard reboot the computer (nothing else works).
Anyone can help me with that? Is there any other information
that I should provide?
Another problem (maybe related):
If I boot with boot: linux 1, everything seems to be working until
I get to starting X. I got an XF96Config file written exactly for
the type of laptop that I have. However, if I try to run /etc/X11/X
all I get is a grey background with a cross cursor. On the other hand,
if I run /usr/X11R6/bin/xdm everything looks fine. I noticed that in
/etc/inittab (at the end of the file) it says something about running
xdm in runlevel 5. So I suppose that somehow I fix my runlevel problem
X will be started through xdm (when using runlevel 5).
Any suggestions welcome.
Thanks,
--Radu
------------------------------
Date: Tue, 12 Sep 2000 09:22:37 +1200
From: Peter Rodriguez <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.development.system
Subject: Re: Zip 100 Parallel Port Drive
This has become quite an interesting thread.
As it happens, from my point of view, the PnP switch was irrelevant. The
Parallel Port option I chose was the important thing, and all I know is
that it worked :-)
--
Peter Rodriguez
136, Kolmar Road, Papatoetoe LINUX RULES
Auckland, NEW ZEALAND
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.portable
Subject: Re: Init runlevel other than 1
Date: 11 Sep 2000 22:25:14 GMT
Radu Serban <[EMAIL PROTECTED]> wrote:
: P200 with a NeoMagic 12XD video card). If I use anything
: else but init runlevel 1 (I tried 2,3,5) the computer hangs and
: all I can see are some numbers that keep scrolling. I have to
: hard reboot the computer (nothing else works).
: Anyone can help me with that? Is there any other information
Run each script in the bootup sequence until you find what does it.
Then don't do it any more.
: If I boot with boot: linux 1, everything seems to be working until
: I get to starting X. I got an XF96Config file written exactly for
Err .. surely you have quite a job getting your system in a usable
state from runlevel 1! What about starting DNS, configuring loopback,
etc. etc. etc. What happened to all the gettys!
: the type of laptop that I have. However, if I try to run /etc/X11/X
: all I get is a grey background with a cross cursor. On the other hand,
That's perfect. That's what you're supposed to get from X alone. Start
some X clients now, like a window manager!
: if I run /usr/X11R6/bin/xdm everything looks fine. I noticed that in
Well, I'd feel quesy about running xdm like that, but OK.
: /etc/inittab (at the end of the file) it says something about running
: xdm in runlevel 5. So I suppose that somehow I fix my runlevel problem
: X will be started through xdm (when using runlevel 5).
You suppose correctly but irrelevantly.
Peter
------------------------------
From: [EMAIL PROTECTED] (Peter Greenwood)
Crossposted-To: comp.os.linux.networking,comp.os.linux.security,comp.os.linux.setup
Subject: Re: setting up a router
Date: 11 Sep 2000 22:31:03 GMT
In article <8pjck6$qkr$[EMAIL PROTECTED]>,
"Darren Welson" <[EMAIL PROTECTED]> writes:
>I am setting up a router/firewall on my home LAN. I have a Linux box acting
>as the router and windows boxes going through the linux box. On my windows
>boxes which NIC should I point to as my gateway, the internal LAN NIC, or
>the external (internet) NIC?
The internal one.
--
Peter Greenwood [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (OtiGoji)
Date: 11 Sep 2000 22:34:27 GMT
Subject: Re: un-eject a CD? Too far to walk over to shove it back in
Am I supposed to post:
eject (open) Ctrl + E and
close Ctrl +E?
What? What?
I'm getting tired of AOL shenanegins myself.
Otius " ...it requires to be still further and more familiarly enlarged upon,
in order to be adequately understood, and moreover to take away any incredulity
which a profound ignorance of the entire subject may induce in some..." Gojius
------------------------------
From: [EMAIL PROTECTED] (James Franklin)
Subject: Re: can't open apps
Reply-To: [EMAIL PROTECTED]
Date: 11 Sep 2000 16:34:09 -0600
On Mon, 11 Sep 2000 16:27:19 GMT, [EMAIL PROTECTED] wrote:
>I am running Caldera's OpenLinux eDesktop 2.4 and I didn't like their
>Ksaferppp so I installed the regular Kppp. It works great but once I
>make a ppp connection I can no longer open any more apps. Once I end
>the connection I can open apps.
>
>I am a Linux newbie but I have been working with computer for over 10
>years. Any help would be appreciated.
>
>--John
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
You want to unselect the option to set your hostname upon connection. Changing
your hostname in the middle of your X session causes problems.
Kppp,Setup,Select Connection,Edit,The option is on one of those tabs, can't
recall and can't look it up because my connection is active.
--
James
A Daily Quip, Quote, or Fortune:
In a forest a fox bumps into a little rabbit, and says, "Hi,
Junior, what are you up to?"
"I'm writing a dissertation on how rabbits eat foxes," said the
rabbit.
"Come now, friend rabbit, you know that's impossible! No one
will publish such rubbish!"
"Well, follow me and I'll show you."
They both go into the rabbit's dwelling and after a while the
rabbit emerges with a satisfied expression on his face. Comes along a
wolf. "Hello, little buddy, what are we doing these days?"
"I'm writing the 2'nd chapter of my thesis, on how rabbits devour
wolves."
"Are you crazy? Where's your academic honesty?"
"Come with me and I'll show you."
As before, the rabbit comes out with a satisfied look on his face
and a diploma in his paw. Finally, the camera pans into the rabbit's cave
and, as everybody should have guessed by now, we see a mean-looking, huge
lion, sitting, picking his teeth and belching, next to some furry, bloody
remnants of the wolf and the fox.
The moral: It's not the contents of your thesis that are
important -- it's your PhD advisor that really counts.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: you can turn the power off now
Date: Mon, 11 Sep 2000 22:31:34 GMT
my SuSE 6.2 displays the message 'run level 0 has been reached'. It
goes thru a whole shutdown thang involving the TERM signal being sent
to all the active processes, and the system trying to unmout all
mounted devices.
Additionally, I think the idea with Linux is not to turn your machine
off, hence you hear a lot of stories of people running Linux for
days/months on end before a single reboot. Course, this is not really
the norm for your home PC, and possibly it goes against the grain of
the whole KDE/GNOME ideal of getting an easy-to-use Linux system on the
home PC.
I'm not too hot on Linux yet, so someone else will be able to give a
more comprehensive reply, but I've never experienced any troubles
shutting down my laptop, except that there's no auto-power off like in
Windows.
Perhaps a little hacking is in order to make the message more straight
forward...? (just don't ask me to do it...;-)
In article <8pjkmn$[EMAIL PROTECTED]>,
"Dan Jacobson" <[EMAIL PROTECTED]> wrote:
> Recommendation: whereas windows has the comfy 'you can safely turn the
> power off now' screen [funny, why doesn't it also tell us when to
turn the
> power back on? :-)]; and whereas Linux seems to only have the two
words
> "power off" come out on the screen [is it telling me to turn the power
> off, or is it saying that it turned the power off, and if so, why is
my
> computer still whirring?]
> Therefore: Linux should be more clear. [At least my distribution and
> probably yours.]
> --
> www.geocities.com/jidanni E-mail: restore ".com." �n����
> Tel:+886-4-5854780; starting in year 2001: +886-4-25854780
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Multi-session CD's without -eject (cdrecord)
Crossposted-To: comp.os.linux.hardware
Date: 11 Sep 2000 18:55:05 -0400
In comp.os.linux.hardware Dances With Crows <[EMAIL PROTECTED]> wrote:
> it seems as though most CD-R(W)s can retract the
> tray automatically when the drive is accessed. Try ejecting the tray,
> then issuing a "mount" command--for most drives, the tray will slide in.
See if you have an "eject" programme in your distribution.
If so, try the manual page on "eject".
eject -t
is the CD-ROM close tray command.
------------------------------
From: "Andrew N. McGuire " <[EMAIL PROTECTED]>
Subject: Re: TCP port 947B
Date: Mon, 11 Sep 2000 17:54:09 -0500
On Mon, 11 Sep 2000, Rodney Hendricks quoth:
RH> Does anyone know what service listens on tcp port 947.
RH> I have what i think is a fairly stock redhat 6.2 setup, and i'm trying to
RH> clean up any services i don't need running.
RH>
RH> As well as this, i have 113 (identd right?), and 111 (portmap?). What would
RH> i need ident for....pros/cons.
RH> And what would i need the portmapper for, given im using this configuration
RH> for a router/firewall, no nfs/nis.
Well, port 947 is unassigned, but check for rpc.mountd.
I dont think you should need rpc.portmap for anything on
a firewall system.
anm
--
BEGIN { $\ = $/; $$_ = $_ for qw~ just another perl hacker ~ }
my $J = sub { return \$just }; my $A = sub { return \$another };
my $P = sub { return \$perl }; my $H = sub { return \$hacker };
print map ucfirst() . " " => ${&$J()}, ${&$A()}, ${&$P()}, ${&$H()};
------------------------------
From: Robert Lynch <[EMAIL PROTECTED]>
Subject: Re: Linux test available for download
Date: Mon, 11 Sep 2000 16:18:23 -0700
Reply-To: [EMAIL PROTECTED]
Tony Lawrence wrote:
>
> For some time now, I have made my 530+ question Linux Skills
> Test available at http://aplawrence.com/linuxtest.html
>
> The complete test is now also available for download at
> http://aplawrence.com/download.html
>
> --
> Tony Lawrence ([EMAIL PROTECTED])
> SCO/Linux articles, help, book reviews, tests,
> job listings and more : http://www.pcunix.com
It does not seem to me from going to your ftp site, that the
Linux downloads are there, only SCO.
Bob L.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
------------------------------
From: Leonard Evens <[EMAIL PROTECTED]>
Subject: Re: you can turn the power off now
Date: Mon, 11 Sep 2000 18:00:55 -0500
Dan Jacobson wrote:
>
> Recommendation: whereas windows has the comfy 'you can safely turn the
> power off now' screen [funny, why doesn't it also tell us when to turn the
> power back on? :-)]; and whereas Linux seems to only have the two words
> "power off" come out on the screen [is it telling me to turn the power
> off, or is it saying that it turned the power off, and if so, why is my
> computer still whirring?]
> Therefore: Linux should be more clear. [At least my distribution and
> probably yours.]
If you have power management running and it is working, the
halt command should actually turn off the computer. But if it
is not running or their is some glitch, it will be safe to
turn the computer off after the second message indicating the
system is halted. One follows the other in seconds. I suspect
it is safe to turn the computer off after the first message,
but I haven't tried it recently.
> --
> www.geocities.com/jidanni E-mail: restore ".com." �n����
> Tel:+886-4-5854780; starting in year 2001: +886-4-25854780
--
Leonard Evens [EMAIL PROTECTED] 847-491-5537
Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208
------------------------------
From: Radu Serban <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.portable
Subject: Re: Init runlevel other than 1
Date: Mon, 11 Sep 2000 16:39:49 -0700
"Peter T. Breuer" wrote:
> Radu Serban <[EMAIL PROTECTED]> wrote:
> : P200 with a NeoMagic 12XD video card). If I use anything
> : else but init runlevel 1 (I tried 2,3,5) the computer hangs and
> : all I can see are some numbers that keep scrolling. I have to
> : hard reboot the computer (nothing else works).
> : Anyone can help me with that? Is there any other information
>
> Run each script in the bootup sequence until you find what does it.
> Then don't do it any more.
>
> : If I boot with boot: linux 1, everything seems to be working until
> : I get to starting X. I got an XF96Config file written exactly for
>
> Err .. surely you have quite a job getting your system in a usable
> state from runlevel 1! What about starting DNS, configuring loopback,
> etc. etc. etc. What happened to all the gettys!
>
> : the type of laptop that I have. However, if I try to run /etc/X11/X
> : all I get is a grey background with a cross cursor. On the other hand,
>
> That's perfect. That's what you're supposed to get from X alone. Start
> some X clients now, like a window manager!
>
> : if I run /usr/X11R6/bin/xdm everything looks fine. I noticed that in
>
> Well, I'd feel quesy about running xdm like that, but OK.
>
> : /etc/inittab (at the end of the file) it says something about running
> : xdm in runlevel 5. So I suppose that somehow I fix my runlevel problem
> : X will be started through xdm (when using runlevel 5).
>
> You suppose correctly but irrelevantly.
>
> Peter
Thanks Peter,
It turned out that the problem was 'apmd'. For now I just renamed
that script (S16apmd in my case) to something else such that it's
not started anymore by rc (in runlevels 3 or 5).
--Radu
------------------------------
From: "Andrew N. McGuire " <[EMAIL PROTECTED]>
Subject: Re: TCP port 947
Date: Mon, 11 Sep 2000 18:47:28 -0500
On Mon, 11 Sep 2000, Rodney Hendricks quoth:
RH> Does anyone know what service listens on tcp port 947.
Port 947 is unassigned, but look for rpc.mountd.
man rpcinfo as well.
RH> I have what i think is a fairly stock redhat 6.2 setup, and i'm trying to
RH> clean up any services i don't need running.
Good idea.
RH> As well as this, i have 113 (identd right?), and 111 (portmap?). What would
RH> i need ident for....pros/cons.
I turned identd off on my firewall (I am not an IRC guy,
but I think most IRC servers look for it). Could be wrong.
I have never needed identd for anything (personally).
rpc.portmap I would turn off as well. On my firewall, I
have 0 services running (except sshd to login, but even
then I only allow certain RFC 1918 private addresses).
RH> And what would i need the portmapper for, given im using this configuration
RH> for a router/firewall, no nfs/nis.
Nothing, most likely.
RH> And is it just me, or is redhat 6.2 considerably more secure "out of the
RH> box" than its predecessors? My setup had no finger nor telnet server
RH> running as default which is good....i used to have to specifically turn
RH> those off under older versions.
Sorry, can't answer that (don't use RedHat).
RH> TIA
RH> --
~~
"-- "
Best Wishes,
anm
--
BEGIN { $\ = $/; $$_ = $_ for qw~ just another perl hacker ~ }
my $J = sub { return \$just }; my $A = sub { return \$another };
my $P = sub { return \$perl }; my $H = sub { return \$hacker };
print map ucfirst() . " " => ${&$J()}, ${&$A()}, ${&$P()}, ${&$H()};
------------------------------
Date: Mon, 11 Sep 2000 18:32:35 -0500
From: Lloyd Bryant <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: umount: /usr: device busy
Davide Bianchi wrote:
>
> Ok, I don't know what happened today, but now I can't shutdown the
> server (Linux kernel 2.2.17) because the umount keep telling me
> that the /usr is busy, so it wont' umount....
>
> I've already killed all the deamons, basically there is nothing
> alive... How can I know what is using /usr ?
>
> Any idea ?
>
> Davide
as root:
'fuser -vm /usr'
This should allow you to identify the process(es)
that are currently hitting the usr filesystem...
Lloyd Bryant
[EMAIL PROTECTED]
------------------------------
Date: Mon, 11 Sep 2000 21:52:16 +1000
From: Ian Pulsford <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy
Subject: Re: End-User Alternative to Windows
And free source code.
RogerB wrote:
> A stable kernel,some scripts and a truck load of binaries.
>
> On Mon, 11 Sep 2000 12:37:38 GMT, Ingemar Lundin <lundiningemar_NOSPAM_
> >@hotmail.com> wrote:
> >
> >REALLY?
> >
> >And what makes that Linux?
> >
> >A shell, some scripts and a fistful of binaries?
> >
> >/IL
> >
> >> So is Windows 9x
> >>
> >>
> >> #####################################################
> >> My email address is posted for purposes of private
> >> correspondence only. Consent is expressly NOT given
> >> to receive advertisements, or bulk mailings of any
> >> kind.
> >> #####################################################
> >
> >
------------------------------
** 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
******************************