Linux-Misc Digest #16, Volume #20 Sun, 2 May 99 02:13:08 EDT
Contents:
Re: CTRL-S (Scott Lanning)
Re: CTRL-S (William Burrow)
Re: R U The Finest & Brightest Linux Guru?? read on.... (jik-)
Re: Email program wanted (Patrick Dylan Donahue)
how do i detect if x is running? (digs)
Re: Kernel 2.2.6 (MrLoke)
Re: Assembler in GNU's C++ compiler (Victor Wagner)
Re: how do i detect if x is running? (Paul Kimoto)
Re: Help moving /home and /var (Paul Kimoto)
Re: [SURVEY] Who has an internal modem in his linux box ? (mezcal)
Re: Fdsk/df BUG. FIXED (with a red face) (David Stanaway)
Re: Dual Boot (Twinson)
Re: Installing Programs (Paul Kimoto)
Re: Computer virus threat to Linux? (Lev Babiev)
Re: glibc 2.1 + downgrade + staroffice (Paul Kimoto)
Help moving /home and /var ([EMAIL PROTECTED])
Re: how do i detect if x is running? (Matthew Bafford)
Re: GNU reeks of Communism (Prins Olivier)
DVD movies on Linux ? ("Roy Varghese")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Scott Lanning)
Subject: Re: CTRL-S
Date: 2 May 1999 03:59:12 GMT
William Wueppelmann ([EMAIL PROTECTED]) wrote:
: Of course, that was a long time ago, and maybe I'm remembering things
: differently from what they really were.
Ooh ooh, I have an anecdote! (longish)
When I was at my undergrad university, my lab had a PC, and we used
something called ProComm (a terminal application) to connect to the
"system" (and the internet/web). At that time, I knew relatively
little about computers. Anyway, ProComm was how I got my email;
otherwise, I'd have to go CLEAR DOWNSTAIRS to login. One day,
I suddenly couldn't type anything. So...I thought I'd just kill
the connection, then log back in (sysadmins just LOVE when you
leave runaway processes running, anyway--try it sometime!). But
this time, I couldn't log back in; the prompt wouldn't even appear.
Normally, I'd just wait till the grad student in our group fixed
it; however, he was gone for a week. So, there I am, unable to access
my email for three days (well, without walking CLEAR DOWNSTAIRS...).
This was harsh, as I was running a laser in a dark room, nothing else
to do but read USENET, etc..
So, after three days, in desperation, I went to plead my case to
the sysadmins. Ever the friendly people, one of them trekked back
upstairs with me--on the other side of the building--to see if he
could fix it. He walks into the lab, takes one look at the computer,
hits CTRL-Q, and the terminal magically awoke!! He just kinda grinned,
then explained all about blocking the terminal input, and how they
hopefully would get rid of those orange cables soon.
(BTW I believe I hit CTRL-S when trying to save something
in emacs.)
------------------------------
From: [EMAIL PROTECTED] (William Burrow)
Subject: Re: CTRL-S
Date: 1 May 1999 22:21:44 GMT
Reply-To: [EMAIL PROTECTED]
On Sat, 01 May 1999 16:45:27 GMT,
William Wueppelmann <[EMAIL PROTECTED]> wrote:
>In our last episode (30 Apr 1999 15:36:53 +0100),
>the artist formerly known as Jonas said:
>>Stu <[EMAIL PROTECTED]> writes:
>>
>>> I've noticed that within a virtual console CTRL-S disables the keyboard.
>>> I am sure this is not a bug, so what is its purpose. I can only think
>>> that it could be to lock the console for whilst away from the keyboard,
>>> but if so how do you unlock it ?
>>
>>I'm not sure exactly what the purpose of it is, but whilst messing
>>around with it, I found that pressing CTRL-Q sends whatever you typed
>>after CTRL-S to the console. Pressing CTRL-C after CTRL-S seems to
>>cancel the CTRL-S situation and returns you to your normal prompt.
>>
>>Anybody know what this is for? Is it just for some sort of keyboard
>>capture or delayed command entry?
>
>It suspends and resumes flow to the terminal. IIRC, whatever you type gets
>put in a queue, and the terminal reads from the queue. When you suspend
>flow, the terminal stops reading from the queue, but the server can still
>keep filling the queue up. When you resume flow, the terminal continues to
>read.
You'll also notice the ScrollLock light coming on. Linux is one of the
few OSes to actually use the ScrollLock for what it was intended.
(Some applications have used it in the past for sometimes bizarre
purposes.)
--
William Burrow
Copyright 1999 William Burrow
------------------------------
Date: Sat, 24 Apr 1999 06:12:50 -0700
From: jik- <[EMAIL PROTECTED]>
Subject: Re: R U The Finest & Brightest Linux Guru?? read on....
are you doing this as root? Usually only root can see things in the
sbins directories. Also, it could be that you don't have permission to
use one of those commands, or bash can't find it. Often times bash just
says file not here when its one of the calls made in the file your
executing.
Is the first line of this file:
#!/bin/sh
?
Without more info that is the full extent of my helpfulness
------------------------------
From: [EMAIL PROTECTED] (Patrick Dylan Donahue)
Subject: Re: Email program wanted
Date: 24 Apr 1999 09:24:00 -0400
In article <7fqqqg$mqi$[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]> wrote:
>Is there an email program (rpm's preferred) that can check multiple POP3
>servers?
>
>Thanks in advance,
>TW
>
Fetchmail should do what you want. It will pull mail from POP3 servers and
send it to local mail spools of folders for you to read with the e-mail
program of your choice.
Patrick
--
--
[EMAIL PROTECTED] Patrick Dylan Donahue
Science is a way of talking to the universe in words which bind it to a
common reality. Magic is a method of talking to the universe in words that
it can not ignore.
--Neil Gaiman, the Books of Magic
------------------------------
From: [EMAIL PROTECTED] (digs)
Subject: how do i detect if x is running?
Date: 2 May 1999 04:33:35 GMT
Reply-To: nts-online.net
Hi-
I'm trying to write a script that will choose an editor for mutt based on
my enviroment.
If at the console I'd like to use vim
if using x11 then nedit
The use of the DISPLAY variable wont work because that could be
defined in /etc/profile or elsewhere.
Is there maybe a XSESSION variable?
I'm lost here..
--
later on,
digs
:wq
------------------------------
From: MrLoke <[EMAIL PROTECTED]>
Subject: Re: Kernel 2.2.6
Date: Sat, 24 Apr 1999 15:30:58 +0200
I appreciate the help, thanks.
MrLoke
--
ad astra per aspera
------------------------------
From: [EMAIL PROTECTED] (Victor Wagner)
Crossposted-To: linux.dev.c-programming,comp.os.linux.development.apps
Subject: Re: Assembler in GNU's C++ compiler
Date: 1 May 1999 22:36:26 +0400
In comp.os.linux.development.apps Toke Gaarde Schmidt <[EMAIL PROTECTED]> wrote:
: I am using the built-in C++ compiler when programming under LINUX and I
: would like to incorporate small pieces of assembler code into C++ code.
: I have searched for a manual covering the reserved words in GNU's C++
: compiler and their meaning but without succes. Do anyone know a link or
: two?
There is builtin assembler in the gcc. Really GCC does translate into
assembler first, and then invoke the GNU assembler to produce actual
binary code.
But this assembler have completely different syntax - arguments are
reversed and some special chars like % are used to denote registers.
However I doubt that assembler on Linux worth learning for you.
Direct hardware access is prohibited by OS protection mechanism anyway,
all system services are available as C functions and GNU C optimizer
does good job on computational algorithmes, so there are few chances
that you could write faster code than GCC would do for you.
: Specific I would like to know how this small piece of code can be
: written in GNU's C++:
: #include <iostream.h>
: void main()
: {
: cout << "LINUX is fun? ";
: .
: .
: mov ah,09
: mov al,59
: mov bl,07
: int 10
^^^^^^^ Forget about this silly things. Linux is real operating
system and wouldn't allow you to access bios interrupts from
user-space. Moreover, you are trying to access 16bit bios from
32-bit program, which couldn't lead to something useful.
: .
: .
: }
: Best regards from Odense, Denmark
: Toke
--
========================================================
Victor Wagner @ home = [EMAIL PROTECTED]
I don't answer questions by private E-Mail from this address.
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: how do i detect if x is running?
Date: 2 May 1999 01:05:27 -0500
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, digs wrote:
> I'm trying to write a script that will choose an editor for mutt based on
> my enviroment.
>
> If at the console I'd like to use vim
> if using x11 then nedit
>
> The use of the DISPLAY variable wont work because that could be
> defined in /etc/profile or elsewhere.
But DISPLAY should not be set if there is no display. It is wrong
to set it elsewhere.
Anyway, you could try to run some program that requires that X be
available, for example
if xrdb -query > /dev/null 2>&1 ; then
# it worked; X is available
nedit "$@"
else
vim "$@"
fi
--
Paul Kimoto <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Help moving /home and /var
Date: 2 May 1999 01:15:01 -0500
Reply-To: [EMAIL PROTECTED]
In article <7gg957$r1c$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> I am using Redhat with kernel 2.2.6. I have setup raid-5 which is mounted in
> /mnt/raid. I would like to move /home and /var to /mnt/raid. /home is its
> own partition (/dev/hda6) and var is on /.
There is no standard way to combine two filesystems into one;
you must decide how you'd like to do it. You could have
/mnt/raid/home and /mnt/raid/var, and make symbolic links from
/var and /home to those places, or you could mount the raid
device on /var, move /home to /var/home, and make a symbolic
link from /home. There must be other (reasonable) possibilities,
too.
Once you decide, the general recipe is something like
1) mount the new device somewhere (temporary)
2) copy the filesystem(s) from the old to the new place
(you can use cpio, tar, cp -R, or some other program;
cpio has the best reputation for this purpose)
3) edit /etc/fstab
4) umount the old device(s)
5) mount the new device(s)
--
Paul Kimoto <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED] (mezcal)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: [SURVEY] Who has an internal modem in his linux box ?
Date: Sun, 02 May 1999 05:18:28 GMT
On Thu, 29 Apr 1999 09:51:55 +0200, David Guyon Martin
<[EMAIL PROTECTED]> wrote:
>Do you have an internal modem working with linux ?
Yes
>Is there any trouble or dissadvantage ?
None. All features of mine work under linux via AT commands.
Advantage: Internal has less latency or "lag" than externals (great
for game playing)
Disadvantage: have to power down whole computer to turn off modem (bad
when/if modem locks up, but no big deal)
>What kind of modem is it: constructor, series, ... ?
USR courier I-modem (an ISDN terminal adapter that works with both
analog and ISDN)
>( I am about to buy one )
Great. Good luck. Don't buy a "winmodem".
>Thanks,
>
>David
>
>( remove .nospam.please to reply by e-mail )
>
------------------------------
From: [EMAIL PROTECTED] (David Stanaway)
Crossposted-To: aus.computers.linux
Subject: Re: Fdsk/df BUG. FIXED (with a red face)
Date: 2 May 1999 05:18:48 GMT
>
>>>
>>>OK then,
>>>
>>>What happens if you mount hdc3 off the root directory ?
My face is all red now *blush*
Looking at my fstab just then, I realised that
/usr/local
had an entry before
/usr
This is the cause of the problem.
I never once saw any errors mounting local filesystems when booting though.
I am sorry I troubled you guys with this stupid mistake of mine.
David Stanaway
------------------------------
From: Twinson <[EMAIL PROTECTED]>
Subject: Re: Dual Boot
Date: Sun, 02 May 1999 14:01:45 +0800
Reply-To: [EMAIL PROTECTED]
First defrag your MS OS so that all the data in the hard drive are moved
to the front portion of the partition.
Next, boot to DOS mode and use the FIPS in the RedHat 5.2 CD-ROM
\dosutils\ directory to split the partition into two. You can specify
the size of each partition.
Next, run the Linux installation from the RedHat CD-ROM. It is very
convenient if your system allows booting fro the CD-ROM. The Linux
installation process will load a Linux Loader program (lilo) which acts
like a boot manager. This allows you to choose the OS to load during
booting.
When "lilo boot:" appears the next moment you re-start the PC, press
<tab> key to see the available OSes which you can choose.
Siva Vasanthan wrote:
>
> Hi Can you help.
>
> I bought a new PC and it came with Microsoft OS. Ideally, I want to run
> Microsoft Windows & Linux in the same mechine. I know there is a way
> here you can select the OS when the PC boots up and you can't see the
> Linux partion from MS Windows and vice versa.
>
> Does anyone know hot to setup this partions and Dual Bootup system? Are
> there and utilities in Windows95 to setup the dual bootup. FDISK in
> Win95 won't allow to create two Primary partions in the system.
>
> Thanks in advance.
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Installing Programs
Date: 2 May 1999 01:20:01 -0500
Reply-To: [EMAIL PROTECTED]
[posted and e-mailed]
In article <[EMAIL PROTECTED]>,
Lian PL wrote:
>I bought the LInux Library CD Rom and the README file gives instructions:
>
> To install " sh install.sh"
>
> When I was in LInux I mounted the Cd Rom into /mnt/Cdrom the I followed
> the instructions, but permission to install was denied.
Did you receive an error message? Perhaps the installation procedure
requires root permissions.
> I have tried Chmod a+x install.sh
This should fail since CD ROMs are read-only.
--
Paul Kimoto <[EMAIL PROTECTED]>
------------------------------
From: Lev Babiev <[EMAIL PROTECTED]>
Subject: Re: Computer virus threat to Linux?
Date: Sun, 02 May 1999 01:14:59 -0400
> >Why would this matter? The *only* time you'd have to worry about a Word
> >macro trojan horse (which Word macro 'viruses' really are) is if you're
> >running as root. As long as you run them under just your normal 'mortal'
> >user account, they *CANNOT* destroy your entire system, but at *worst*
> >only erase everything in your home directory.
>
> I have to assume you didn't read this over before sending it.
>
> Do you really think that the loss of one's home directory *doesnt'
> matter*?!
The big difference is that since virus only has write permissions to
your
home directory, it can't infect system-wide setup, thus it will not
spread
to other users. It would also not be able to infect document templates
and
thus would be somewhat confined. It's not complete protection, yet
better
then virus having full access to your whole system.
- Lev
--
==============================================================================
"I don't think Microsoft is | mailto:[EMAIL PROTECTED]
evil in itself; I just think they |
make really crappy | irc: CrazyLion, #linuxlounge @ EFnet
operating systems." |
- Linus Torvalds | Linux forever!
==============================================================================
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: glibc 2.1 + downgrade + staroffice
Date: 2 May 1999 01:30:23 -0500
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, Jeremy Weinberger wrote:
> Does anybody know what is going on with glibc 2.1?
> 1. ftp.gnu.org isn't providing it right now. Here's what's on the ftp
> site:
> glibc-2.1 has been (temporarily) removed, until some
> political issues are worked out.
The issue was that glibc-2.1 had to be compiled by egcs, not
gcc-2.8.1. The problem is going away because (1) glibc-2.1.1
will be compatible with gcc-2.8.1, and (2) the egcs team is
taking over gcc maintenance. You can find the source code
at ftp.us.kernel.org/pub/software/libs/glibc.
> Can somebody please provide some advice on the appropriate method for
> downgrading to glibc 2.0? Is it as simple as rebuilding libc-2.0.so and
> relinking libc.so.6 to it? Is there anything that actually requires 2.1
> or runs better using the newer library? Why in the heck isn't it
> completely backwards-compatible? Because I can boot and run all my other
> software, I'm assuming that other things linked against glibc 2.0 were
> not broken. What's different about staroffice that it breaks?
It uses symbols internal to the glibc-2.0 implementation that
were improperly exposed to user programs. These symbols are no
longer available in glibc-2.1. (The glibc people say that these
symbols were never documented as being available for use.)
--
Paul Kimoto <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED]
Subject: Help moving /home and /var
Date: Sun, 02 May 1999 01:18:32 GMT
Hi
I am using Redhat with kernel 2.2.6. I have setup raid-5 which is mounted in
/mnt/raid. I would like to move /home and /var to /mnt/raid. /home is its
own partition (/dev/hda6) and var is on /. Can someone help me, I don't know
where to begin. Thanks
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: [EMAIL PROTECTED] (Matthew Bafford)
Subject: Re: how do i detect if x is running?
Reply-To: [EMAIL PROTECTED]
Date: Sun, 02 May 1999 05:36:30 GMT
On 2 May 1999 04:33:35 GMT, digs <[EMAIL PROTECTED]>
lucked upon a computer, and thus typed in the following:
: Hi-
: I'm trying to write a script that will choose an editor for mutt based on
: my enviroment.
Put
export EDITOR=nedit
in whatever file is run when you start X (or login using *dm).
--Matthew
------------------------------
From: Prins Olivier <[EMAIL PROTECTED]>
Subject: Re: GNU reeks of Communism
Date: Fri, 30 Apr 1999 11:00:20 +0200
Jim Richardson wrote:
> On 27 Apr 1999 10:48:42 -0600,
> bgeer, in the persona of <[EMAIL PROTECTED]>,
> brought forth the following words...:
>
> >[EMAIL PROTECTED] (Jim Richardson) writes:
>
> >For curiousity's sake, read a dictionary definition of "fascism".
> >Most [USA} business enterprises are operated on criteria that parallel
> >fascism. What do you make of that?
> >
>
> that you have a poor understanding of the nature of fascism.
>
>
I have to agree with Jim here....i think it would be a little farfetched to see
the enterprises as fascist coorporations (fascism is the adoration of violence,
fascist see violence as the only way the rule a country, also part of fascism is
that those who use completely any class differences in their society).....i do,
however, think that the USA as a whole is a fascist/police state, that could also
be because of a wrong image that i have of the usa ( because of tv perhaps), but
that is how most people i know think about it, and that is the image that
america's international politics give me ( Serbia etc.....)
Prins Olivier
--
Running Windows on a PIII, is like driving a $200,000 Porsche only backwards.....
------------------------------
From: "Roy Varghese" <[EMAIL PROTECTED]>
Subject: DVD movies on Linux ?
Date: Mon, 26 Apr 1999 12:37:26 -0500
Crossposted-To: comp.os.linux.x
Can I play DVD movies on Linux? If so what do I need to set it up?
On the hardware side, I have a ASUS Riva TNT v3400 video card
and a Hitachi GD2500 DVD drive. No MPEG card. On the s/w...
I have RH 5.2 installed (XFree 3.3.3.1) and am running GNOME as the WM.
All answers appreciated.
-Roy
Please remove the NOSPAM before replying.
------------------------------
** 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
******************************