Linux-Misc Digest #621, Volume #25 Wed, 30 Aug 00 08:13:02 EDT
Contents:
Re: Linux spontaneously changes time ("Steve Burt")
Re: system hangs (Andreas Kahari)
Re: Headless X86 Linux system (Andres Soolo)
Re: removing control characters from text files (NDQ)
Re: setuid (M. Buchenrieder)
Re: Two monitors HOWTO? (Geoff Short)
Re: pppd CHAP and BTConnect ([EMAIL PROTECTED])
Modem connections - how to automatically check if disconnected? ("Martin Mallett")
Re: Start a process on second CPU? (Geoff Short)
Email from Shell/Telnet prompt? ("NoSpam")
Re: Email from Shell/Telnet prompt? (Andreas Kahari)
Zip 100 & RedHat 6.2 (Peter Rodriguez)
Re: Email from Shell/Telnet prompt? (ray)
Re: Headless X86 Linux system ("Peter T. Breuer")
Re: Start a process on second CPU? (Geoff Short)
Re: Pro*C ([EMAIL PROTECTED])
Re: About Linux 2.4.0 (ray)
Re: ping to ISP gets no answer (Rasputin)
Re: setuid (Rasputin)
Re: Zip 100 & RedHat 6.2 (Rasputin)
Linux/unix programs 3312 ([EMAIL PROTECTED])
----------------------------------------------------------------------------
From: "Steve Burt" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.questions
Subject: Re: Linux spontaneously changes time
Date: Wed, 30 Aug 2000 11:00:19 +0100
Christopher Wong <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> One of my Red Hat 6.2 systems is spontaneously changing its system
> clock. I'm quite puzzled at this, since it is hardly running anything,
> not even crond. The only major app running is Sun's Java runtime
> (1.2.2). Here are some clues:
>
> 1. Always changes by -4hrs. My local time zone is EST5EDT. So it looks
> timezone-related. It used to change by -5hrs when my hardware clock
> was off by an hour.
>
> 2. Hardware real-time clock is unchanged (set to local time).
>
> 3. My Java app calls Runtime.currentTimeMillis(), for anyone who is
> familiar with it.
>
> 4. It is connected to a LAN.
>
> Would anyone care to guess what on earth is resetting my system clock,
> or even where I would begin to look? Thanks in advance,
>
My (Red Hat 6.1) machine spontaenously changes date - the time stays
correct, but the date advances by about 2-4 days.
It does this often (but not always) when rebooted.
(I did have a funny problem with the time zone, but that was fixed by
installing all the TzSet stuff)
------------------------------
Crossposted-To: comp.os.linux.setup
Subject: Re: system hangs
From: [EMAIL PROTECTED] (Andreas Kahari)
Date: 30 Aug 2000 11:53:57 +0100
In article <[EMAIL PROTECTED]>, Theresa <[EMAIL PROTECTED]> wrote:
>Do you mean /boot is 23 megs?
>
>Thomas
>
I was more astonished by the two (!) 517 Mb (!!) swap partitons...
Usually it's enough with something between one and two times the
physical memory. For home use, 64 Mb should be enough. I only use more
when I crash an application (such as unstable Gimp), and that's only
for a short period (long enough to fill the swap partition and to dump
core).
/A
>Norman Zhang wrote:
>
>> I am trying to install Red Hat 6.2 on my Intel system. The system has two
>> SCSI hard drives. I setup the system in the following manner,
>>
>> /boot sda1 23M Linux native
>> <swap> sda8 517M Linux swap
>> <swap> sdb7 517M Linux swap
>> /root sdb9 23M Linux native
>> / md0 1506M RAID1[sda5,sdb1]
>> /home md1 800M RAID1[sda7,sdb6]
>> /var md2 902M RAID1[sda6,sdb5]
>> /tmp md3 502M RAID1[sdb8,sda9]
>>
>> The process went smoothly. At the very end the system hangs with the
>> following message, "Performing post install configuration..." Does anyone
>> what gives? Your help is greatly appreciated.
>>
>> Norman
>
--
Andreas Kähäri, <URL:http://hello.to/andkaha/>.
All junk e-mail will be reported to the appropriate authorities.
========================================================================
The important thing is not to stop questioning.
------------------------------
From: Andres Soolo <[EMAIL PROTECTED]>
Subject: Re: Headless X86 Linux system
Date: 30 Aug 2000 10:08:14 GMT
fred smith <[EMAIL PROTECTED]> wrote:
> As far as I know, you need (or at least ought to have) a monitor/video
> card/keyboard for the boot process if for no other reason than to allow
> you to view the POST and any BIOS errors that may occur.
If your BIOS allows it, you don't need neither a monitor, nor a keyboard,
nor a video card. Linux doesn't care; it'll run equally well. You
might also remove the video card and virtual console drivers from your
kernel and reduce the kernel size, allowing more free memory for your
application.
By the way, if you're creating a non-user-maintainable application, you
might also want to disconnect floppy and CD drives--unless they're
necessary for the application to work, of course.
> Does anyone have any experience with headless X86 Linux boxes, or
> can someone point me to HOWTOs or other docs on the subject?
Probably many people here have--it's quite common for unattended
servers to run headless.
--
Andres Soolo <[EMAIL PROTECTED]>
There's nothing worse for your business than
extra Santa Clauses smoking in the men's room.
-- W. Bossert
------------------------------
From: NDQ <[EMAIL PROTECTED]>
Subject: Re: removing control characters from text files
Date: Wed, 30 Aug 2000 12:13:16 +0200
Reply-To: NDQ <[EMAIL PROTECTED]>
Lincoln Marr wrote:
>
> Hi,
>
> I'm running HP-UX 10 (not sure if this is the right group but couldn't find
> any other!!)
> I'm currently working on a Perl CGI script which stores information in pipe
> delimited flat ascii files. The records are separated by newlines (\n). The
> input for the database comes from a web form, one field is a textarea. In
> perl I've substituted any carriage returns/newlines in the textarea with the
> html equivalent, which works fine. The problem i'm having is that the
> control character ^M also appears in the file, so after modifying it several
> times through the web the record gains a huge long string of ^M and
> unwanted html.
>
> Is there anyway I can either stop the control characters from being put into
> the file in the first place or remove them using 'tr' or 's' perhaps? I
> tried writing a script to substitute \012 and \015 with nothing, but that
> didn't work... any other suggestions? I'm kinda stumped on this and figured
> that it wouldn't differ too much on my HP-UX box than on a linux system.
>
> Thanks
>
> --Lincoln
To remove "^M" on my Linux box, I used :
$ tr -d '\r' < input_file > output_file
--
NGUYEN-DAI Quy
------------------------------
From: [EMAIL PROTECTED] (M. Buchenrieder)
Subject: Re: setuid
Date: Wed, 30 Aug 2000 08:29:34 GMT
Jeff Davis <[EMAIL PROTECTED]> writes:
[...]
>The problem is that it doesn't seem to
>be working right. Do I have to use a C program to get it to setuid
>right?
[...]
Either that or use suidperl, or use sudo (preferred).
Michael
--
Michael Buchenrieder * [EMAIL PROTECTED] * http://www.muc.de/~mibu
Lumber Cartel Unit #456 (TINLC) & Official Netscum
Note: If you want me to send you email, don't munge your address.
------------------------------
From: Geoff Short <[EMAIL PROTECTED]>
Subject: Re: Two monitors HOWTO?
Date: 30 Aug 2000 10:19:15 GMT
Bruno Barberi Gnecco <[EMAIL PROTECTED]> wrote:
: I'd like to install two monitors here, using two video cards.
: Both are PCI. Is there any HOWTO or documentation explaining how I do
: it? Have anyone around done it?
I've done it using XFree4.0, although it was with one AGP and one PCI
card. Check for the (limited) documentation on Xinerama. Briefly:
Stick one card in, configure X as usual.
Swap to other card, configure X again. This gives confidence that all is
working!
Replace first card, merge the two XF86config files and start X with the
-xinerama flag -- voila!
There aren't many cards which are well supported for this - I used two
Matrox Millenium cards.
Geoff
--
============================================================================
Ever sit and watch ants? They're always busy with Geoff Short
something, never stop for a moment. I just [EMAIL PROTECTED]
can't identify with that kind of work ethic. http://kipper.york.ac.uk/~geoff
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: pppd CHAP and BTConnect
Date: Wed, 30 Aug 2000 10:09:33 GMT
Thanks for the help guys!
I got it sorted with pppsetup, which I had to install as the machine is
not running the very latest Slackware.
Don't know exactly where the problem was until I get chance to properly
examine the config files created by pppsetup.
Cheers
Andy
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Martin Mallett" <[EMAIL PROTECTED]>
Subject: Modem connections - how to automatically check if disconnected?
Date: Wed, 30 Aug 2000 11:31:23 +0100
Hi
I am the proud owner of a humble 56k modem and live in a backwards country
where my ISP disconnects you every 2 hours. Question is, is there a way to
check to see if I'm online? At the moment, I crontab every 15 mins and try
to force a connection. This is OK and works but hardly subtle - can I only
force a connection when there isn't one already established?
Also, how can I get my system to recognise a busy tone and redial as
necessary?
I use redhat 6.1 and dial up using eznet at the moment. I have no worries
about changing dialup software (well...within reason :). Any ideas and/or
pointers in the right direction?
Thanks
Martin
------------------------------
From: Geoff Short <[EMAIL PROTECTED]>
Subject: Re: Start a process on second CPU?
Date: 30 Aug 2000 10:33:46 GMT
[EMAIL PROTECTED] wrote:
: Does anybody know how to specify which CPU to start a process on?
It's not possible AFAIK to specify a CPU with the SMP implementation.
: I know that the latest kernels distribute processes evenly over multiple
: CPU's, but i really, REALLY want to start a specific process on a specific
: cpu.
Well, use the source, Luke! If you're that bothered about it, you
probably know enough to hack the kernel to do what you want -- everything
is in kernel/sched.c
: And, is there anyway to find out wich processes are running on which CPU?
Recent versions of procps will tell you the most recent CPU used by a
process. Load meters such as xosview will also give a CPU utilisation.
Geoff
--
============================================================================
Ever sit and watch ants? They're always busy with Geoff Short
something, never stop for a moment. I just [EMAIL PROTECTED]
can't identify with that kind of work ethic. http://kipper.york.ac.uk/~geoff
------------------------------
From: "NoSpam" <[EMAIL PROTECTED]>
Subject: Email from Shell/Telnet prompt?
Date: Wed, 30 Aug 2000 09:24:36 +0100
Hi,
Is it possible to send an e-mail from the Shell/Telnet prompt which I can
put in ".sh" script?
An example would be great?
Is it possible to specify FROM/TO and SUBJECT?
The script is run automatically via cron but it does not confirm the
successfully running of the script which I would like it to do. As the
server is shared via an ISP I can not change any settings on the machine
itself.
Cheers
Paul.
------------------------------
Subject: Re: Email from Shell/Telnet prompt?
From: [EMAIL PROTECTED] (Andreas Kahari)
Date: 30 Aug 2000 12:50:41 +0100
In article <8oioi6$6kl$[EMAIL PROTECTED]>,
NoSpam <[EMAIL PROTECTED]> wrote:
>Hi,
>
>Is it possible to send an e-mail from the Shell/Telnet prompt which I can
>put in ".sh" script?
>
>An example would be great?
>
>Is it possible to specify FROM/TO and SUBJECT?
>
>The script is run automatically via cron but it does not confirm the
>successfully running of the script which I would like it to do. As the
>server is shared via an ISP I can not change any settings on the machine
>itself.
>
>Cheers
>
>Paul.
>
>
Read the manual for the 'mailx' command.
/A
--
Andreas Kähäri, <URL:http://hello.to/andkaha/>.
All junk e-mail will be reported to the appropriate authorities.
========================================================================
The important thing is not to stop questioning.
------------------------------
Date: Wed, 30 Aug 2000 22:52:32 +1200
From: Peter Rodriguez <[EMAIL PROTECTED]>
Subject: Zip 100 & RedHat 6.2
I have got an Iomega Zip 100 (Parallel version) running perfectly under
RedHat 6.0 with a line added to .bash_profile - " modprobe imm >&
/dev/null " However on another machine running RedHat 6.2, this doesn't
work. Any ideas, anybody?
All information gratefully received
--
Peter Rodriguez
2/219, St. George Street, Papatoetoe
Auckland, NEW ZEALAND LINUX RULES
------------------------------
From: ray <[EMAIL PROTECTED]>
Subject: Re: Email from Shell/Telnet prompt?
Date: Wed, 30 Aug 2000 10:59:14 GMT
NoSpam wrote:
> Hi,
>
> Is it possible to send an e-mail from the Shell/Telnet prompt which I can
> put in ".sh" script?
>
> An example would be great?
>
> Is it possible to specify FROM/TO and SUBJECT?
>
> The script is run automatically via cron but it does not confirm the
> successfully running of the script which I would like it to do. As the
> server is shared via an ISP I can not change any settings on the machine
> itself.
>
> Cheers
>
> Paul.
Try starting with something like this:
echo Hello |sendmail myname@myaddie
--
Ray R. Jones
Errors have been made. Others will be blamed.
[EMAIL PROTECTED]
HTTP://gordo.penguinpowered.com
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Headless X86 Linux system
Date: 30 Aug 2000 11:14:33 GMT
Peter Mitchell <[EMAIL PROTECTED]> wrote:
: One of the problems is that some of the functions keys don't
: work. Another is that even su doesn't let you do everything.
Absolute nonsense. Of course it does. (man su).
: On mine it would not let me halt or shutdown (for instance).
It doesn't let you do anything. It changes your effective uid to 0.
If you want to get a native root environment as well, use su -.
: I haven't tried sudo yet though. Some of these things can be
Sudo is a much better idea!
: set as permissions granted or denied somewhere (is it
: hosts.allow?) Neverthe less it is still useful.
It is as useful or otherwise as being root can be, since that is what
it does for you. Therefore, use sudo instead.
Peter
------------------------------
From: Geoff Short <[EMAIL PROTECTED]>
Subject: Re: Start a process on second CPU?
Date: 30 Aug 2000 11:23:00 GMT
Geoff Short <[EMAIL PROTECTED]> wrote:
: [EMAIL PROTECTED] wrote:
: : Does anybody know how to specify which CPU to start a process on?
: It's not possible AFAIK to specify a CPU with the SMP implementation.
Ooops,I should have guessed someone would have done it. Try:
http://isunix.it.ilstu.edu/~thockin/pset/
Geoff
--
============================================================================
Ever sit and watch ants? They're always busy with Geoff Short
something, never stop for a moment. I just [EMAIL PROTECTED]
can't identify with that kind of work ethic. http://kipper.york.ac.uk/~geoff
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Pro*C
Date: Wed, 30 Aug 2000 11:24:08 GMT
I understand that, but I don't want to install all of Oracle, I just
need the Pro*C precompiler and don't have the disk space for a full
install at this time.
Carson
In article <[EMAIL PROTECTED]>,
Balbir Sanghera - Sun UK - Application Developer
<[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> >
> > HI
> >
> > I was wondering if anyone could tell me if there is a Pro*C or
> > equivalent pre-compiler available for Linux.
> >
> > Thanks, in advance,
>
> There is for Oracle, It comes with oracle server
>
> bal.
>
--
Carson R. Wilcox
Senior Architect
DMR Consulting Group
[EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: ray <[EMAIL PROTECTED]>
Subject: Re: About Linux 2.4.0
Date: Wed, 30 Aug 2000 11:38:13 GMT
Leonard Evens wrote:
> Benoit Smith wrote:
> >
> > Greetings,
> >
> > I am about to install the latest Linux kernel, but I'm not sure that
> > the apps that I install later (most built for 2.2.x) will be compatible
> > with the new 2.4.x series. Please could someone enlighten me about that ?
> >
> > Any help would be appreciated,
> >
> > Benoit Smith
>
> I don't think anyone can give you a definitive answer to that
> question. But I think it is save to assume that any application
> which may not be compatible with the latest kernel will be upgraded
> pretty quickly to a compatible version. The vast majority of
> applications will probably remain compatible. Since you can
> have both a 2.2 kernel and the new kernel, you don't really have
> much to lose by trying.
>
> --
>
> Leonard Evens [EMAIL PROTECTED] 847-491-5537
> Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208
Exactly. Don't replace the kernel, simply add the 2.4.0. I have run each
of the -test kernels except test3, I have a box full of apps, nothing has
broken, here. (yet)
IMPORTANT! After -test5 some change has occurred in the dir paths to the
modules. /usr/lib/modules/uname -r
looks different in it's layout. My experience was that I had to upgrade my
modutils to the newest one to ever FIND them. There is documentation on this
in the tree /DOCS/CHANGES. This is RH6.2
--
Ray R. Jones
Errors have been made. Others will be blamed.
[EMAIL PROTECTED]
HTTP://gordo.penguinpowered.com
------------------------------
From: [EMAIL PROTECTED] (Rasputin)
Subject: Re: ping to ISP gets no answer
Reply-To: [EMAIL PROTECTED]
Date: Wed, 30 Aug 2000 11:58:31 GMT
[EMAIL PROTECTED] <Peter Schmelz> wrote:
>Hallo,
>I need some help.
>
>I've installed Suse 6.4 with i4l. When I dial to the ISP, I get a
>connection and a dynamic IP. The device ippp0 is then installed with the
>new IP. An ifconfig also shows the new IP. But when I ping to the ISP, I
>don't recive any packages.
>I don' t know, where the mistake is.
>Thanks for a hint!!
Hint: have you got a defaultroute set up?
--
Rasputin.
Jack of All Trades - Master of Nuns.
------------------------------
From: [EMAIL PROTECTED] (Rasputin)
Subject: Re: setuid
Reply-To: [EMAIL PROTECTED]
Date: Wed, 30 Aug 2000 12:00:25 GMT
[EMAIL PROTECTED] <Theresa> wrote:
>My understanding is that setuid can only be used for binaries, not scripts.
>
>Thomas
>
Don't think that's right. Although suid scripts are supposedly a bad idea
(as you can read the script to find badly constructed code that would
allow you to run arbirary code), I don't think they're diallowed by the system.
>Jeff Davis wrote:
>
>> I have a simple problem:
>> I have an internet connection (dialup) that needs to be activated by
>> users. I tried making a simple shell script or perl script that executed
>> the shell command to start the connection (the script is owner root and
>> setuid, I did chmod 4755 tmp.sh). The problem is that it doesn't seem to
>> be working right. Do I have to use a C program to get it to setuid
>> right?
>>
>> Thanks,
>> Jeff Davis
>
--
Rasputin.
Jack of All Trades - Master of Nuns.
------------------------------
From: [EMAIL PROTECTED] (Rasputin)
Subject: Re: Zip 100 & RedHat 6.2
Reply-To: [EMAIL PROTECTED]
Date: Wed, 30 Aug 2000 12:01:57 GMT
[EMAIL PROTECTED] <Peter Rodriguez> wrote:
>I have got an Iomega Zip 100 (Parallel version) running perfectly under
>RedHat 6.0 with a line added to .bash_profile - " modprobe imm >&
>/dev/null " However on another machine running RedHat 6.2, this doesn't
>work. Any ideas, anybody?
>
>All information gratefully received
Possibly it's not supprted by the default kernel.
A recompile would probably sort it.
--
Rasputin.
Jack of All Trades - Master of Nuns.
------------------------------
From: [EMAIL PROTECTED]
Subject: Linux/unix programs 3312
Date: 30 Aug 2000 11:45:48 GMT
mailto:[EMAIL PROTECTED]
I sell
Slackware Linux 7.1 (support for udma 66)
Mandrake Linux 7.1 (support for UDMA 66)
FreeBSD 4.1
Debian 2.2
Linux & Unix Books CD ( 88 books in html format)
SuSE Linux 6.4 (kernel 2.2.14) 6 CDs ( support ultra ata 66)
SuSE Linux 6.4 for ALPHA (kernel 2.2.14) 5 CD-ova
Slackware 7.0 (kernel 2.2.13)
Red Hat 6.2 (kernel 2.2.14)
Corel Linux 1.0 (kernel 2.2.12)
Bonus: Corel Draw 3.5, Word Perfect 8.0 ...
Linux Software compilation
CD(audio/record):cdrecord,alsaplayer,blandeenc,cdda2wav,cdparanoia
III,demcd,freeamp, gtoaster, kmp, mp3tool, ripperX,
xaudio, xmms
Games: battalion, blackpenguin, quake2
Internet: gnomeicu, licq, mail, Xdownloader, Xchat, apache, flash_linux,
netscape6
Baze: mysql,Informix
Multimedia: DJvuedit, gimp, imagick, Q-cad
Office: lyx, linux-ar-4, WordPerfect8, cooledit, StarOffice 5.1
Utils: wine, apsfilter, bzip, enlightenment, xscreensaver, AVP
WinLinux, XFree86 v.4 (download) and much more
and many other linux and windows programs ...
mailto:[EMAIL PROTECTED]
xj
------------------------------
** 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
******************************