Linux-Misc Digest #581, Volume #26 Mon, 18 Dec 00 16:13:04 EST
Contents:
Re: Setting my hardware clock to atomic clock? ("Dan Jacobson")
Re: ".bz2" extensions ("Dan Jacobson")
Re: Please help with redhat script ("Christopher M. Long")
Re: blindly accepted net advice--> blew away filesystem ((Wm. Randolph Franklin))
Printing ("Stephan Boyce")
Re: Problem with tar/ssh (LFessen106)
Re: Please help with redhat script (Paul Kimoto)
perl and red hat 7 installation question ("River Storm")
Re: RH6.1/586 binaries won't load on RH7/686? (Paul Kimoto)
linux disk copies and vmware ("Eric Sheesley")
Re: MODULES (Thomas Matthews)
[FW-1] How to allocate kmalloc/fw_kmalloc/fwhmem ? ([EMAIL PROTECTED])
RedHat 7.0 and tulip driver problem ([EMAIL PROTECTED])
Re: pine and spam mails (Eduardo Chappa)
Re: MySQL socket problem (Stephen Hui)
Re: Question about KDE2 (ozetechnology)
Re: It's me that needs the upgrade (a bit long) ([EMAIL PROTECTED])
----------------------------------------------------------------------------
From: "Dan Jacobson" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake,comp.protocols.time.ntp
Subject: Re: Setting my hardware clock to atomic clock?
Date: Tue, 19 Dec 2000 01:29:10 +0800
"Garry Knight" <[EMAIL PROTECTED]> ���g��l��
news:910okt$apr$[EMAIL PROTECTED]...
> In article <DvMY5.22123$[EMAIL PROTECTED]> "Paul"
> <[EMAIL PROTECTED]> wrote:
>
> > lcooke wrote:
> >
> >> I want to use cron to run a util to check the time via the net and
> >> set my clock when/if there's a difference in the hardware clock.
>
> > Hi Larry, This one works for me. This sets the OS time and the BIOS
> > time.
> >
> > rdate -s clock-1.cs.cmu.edu && hwclock --systohc
>
> Another command that does the same job is ntpdate. And why use cron
> when the only time you'll want it to run is when you connect? What I
> did was create /etc/ppp/ip-up.local which contains
> ntpdate ntp0.freeserve.net && hwclock --systohc
> The ip-up.local script is called from /etc/ppp/ip-up which is run
> whenever ppp connects to the net. cron would be of more use if you were
> connected to a LAN with an NTP server.
by the way, in man hwclock it says
To see if it is on or off, use the command adjtimex --print and
look at the value of "status". If the "64" bit of this number
(expressed in binary) equal to 0, 11 minute mode is on.
Otherwise, it is off.
and I do
$ /sbin/adjtimex -p
[...] status: 64
which makes me wonder what the English of the man page is trying to
say. Does "status:64" mean the 11 minute thing is on or off?
by the way, the The Clock Mini-HOWTO looked promising, but
seemed not to tell us dummies exactly what to do simplewise.
I installed the ntp rpm from the 2nd mandrake 7.2 CD
and notices that it doesn't put its man pages on the system, but one can dig
them
out of its 'doc' directory... as seen in rpm -ql ntp
--
www.geocities.com/jidanni E-mail: restore ".com." �n����
Tel:+886-4-5854780; starting in year 2001: +886-4-25854780
------------------------------
From: "Dan Jacobson" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake,gnu.utils.help
Subject: Re: ".bz2" extensions
Date: Tue, 19 Dec 2000 02:04:28 +0800
> do a
>
> bzip2 -cd foo.bz2 | less
>
> Voila. contents of the bzip2 compressed file.
It turns out there's plenty of ways,
it's just that the mandrakesoft guys or whatever, didn't link the manpages
so there would be a man page/apropos for each command...
rpm -qlf $(which bzless)
/usr/bin/bunzip2
/usr/bin/bzcat
/usr/bin/bzgrep
/usr/bin/bzip2
/usr/bin/bzip2recover
/usr/bin/bzless
/usr/bin/bzme
/usr/include/bzlib.h
/usr/lib/libbz2.a
/usr/lib/libbz2.so
/usr/lib/libbz2.so.1
/usr/lib/libbz2.so.1.0.1
/usr/share/doc/bzip2-1.0.1
/usr/share/doc/bzip2-1.0.1/README
/usr/share/doc/bzip2-1.0.1/manual_1.html
/usr/share/doc/bzip2-1.0.1/manual_2.html
/usr/share/doc/bzip2-1.0.1/manual_3.html
/usr/share/doc/bzip2-1.0.1/manual_4.html
/usr/share/doc/bzip2-1.0.1/manual_toc.html
/usr/share/man/man1/bunzip2.1.bz2
/usr/share/man/man1/bzcat.1.bz2
/usr/share/man/man1/bzip2.1.bz2
--
www.geocities.com/jidanni E-mail: restore ".com." �n����
Tel:+886-4-5854780; starting in year 2001: +886-4-25854780
------------------------------
From: "Christopher M. Long" <[EMAIL PROTECTED]>
Subject: Re: Please help with redhat script
Date: Mon, 18 Dec 2000 12:18:52 -0600
[EMAIL PROTECTED] wrote:
>
> Please help with redhat script
>
> I am using redhat 7.0 and I would like to find out how to write a
> script that I could run in cron.
>
> I need the script to get my ip address and then email it to me.
>
> This will have me login to my home computer from work.
>
> please email me at [EMAIL PROTECTED] if you could help
I think an easier solution to this would be to use one of the "dynamic
ip" hosting services, such as dhs.org. You could set the hostname update
script up in the cron job, and always be able to log in to
"whatever.2y.net" or whatnot. Thats how i do it, personally.
--me
------------------------------
From: (Wm. Randolph Franklin) <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.security,comp.security.misc,comp.unix.misc
Subject: Re: blindly accepted net advice--> blew away filesystem
Date: 18 Dec 2000 15:14:37 -0500
Reply-To: (Wm. Randolph Franklin) <[EMAIL PROTECTED]>
\begin{oldfartmode}
This isn't new to Linux. On the old IBM OS/360 with punchcards,
you could delete one file (called a dataset) by having the
following input card to the IEHPROGM program, IIRC:
SCRATCH VTOC=volname,DSNAME=filename comments go here
Alternatively, you could delete everything this:
SCRATCH VTOC=volname comments go here
Note that a space separated the command from the comments. Guess
what would happen if you changed one comma to a space in my first
example above:
scratch vtoc=volname dsname=filename comments go here
Also, at this time, there was no security; any user could do
anything to the disk. This survived into the early 1970s because
the users were either ignorant or benevolent.
IBM's first step towards security was to delete this command from
IEHPROGM. However, they left the corresponding system subroutine
call available for awhile longer. The system call documentation
was cleverly hidden in the publicly available SYSTEM CALLS manual.
----
(Wm. Randolph Franklin) <[EMAIL PROTECTED]>
------------------------------
From: "Stephan Boyce" <[EMAIL PROTECTED]>
Subject: Printing
Date: Mon, 18 Dec 2000 13:34:32 -0500
I'm new to Linux and trying to port a system running on SCO Open server
5.0.5 to Redhat Linux 7.0
SCO uses the old system 5 "lp" print facilities. The applications send
files
to be printed using "lp -o user_options". The user_options were then passed
to print filters located in /usr/spool/lp/admins/lp/interfaces. These shell
scripts interpreted the options and sent commands to the printer. To send
the escape sequence to put the printer into "compressed print" mode for
example. Does Linux have the same sort of facilities. If yes, how can
options be passed from "lpr" to a print filter that I can modify?
Thanks Steve
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (LFessen106)
Date: 18 Dec 2000 18:39:06 GMT
Subject: Re: Problem with tar/ssh
>> My problem:
>> I want to redirect the output from tar over ssh to a file on a different
>> computer. I tested
>> tar cOphz <directory> | ssh <remote-host> "cat > test"
>>
>> So far everything worked properly, but when I untar on the remote side,
>> i get the following:
>> news/
>> news/news.crit
>> news/news.err
>> news/news.notice
>>
>> gzip: stdin: decompression OK, trailing garbage ignored
>> tar: Child returned status 2
>> tar: Error exit delayed from previous errors
>>
>> (news was the test-directory). The data seemed ok, but I don`t wan`t to
>> see the error at the end...
>> When I make the following
>> tar cOph <directory> | ssh <remote-host> "cat > test"
>>
>> (without compression) everything works fine (as we all expect).
>>
>
Hey, just a thought... Try this:
tar cvf - <directory> | ssh <remote-host> "dd of=test"
Works great for me!
-Linc Fessenden
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Please help with redhat script
Date: 18 Dec 2000 13:40:17 -0500
Reply-To: [EMAIL PROTECTED]
[posted and e-mailed]
In article <91le8p$rmb$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> I need the script to get my ip address and then email it to me.
>
> This will have me login to my home computer from work.
>
> please email me at [EMAIL PROTECTED] if you could help
What about
#! /bin/sh
/sbin/ifconfig | mail [EMAIL PROTECTED]
(Strictly speaking, computers don't have _an_ IP address;
interfaces have addresses.)
--
Paul Kimoto
This message was originally posted on Usenet in plain text. Any images,
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.
------------------------------
From: "River Storm" <[EMAIL PROTECTED]>
Crossposted-To: alt.perl
Subject: perl and red hat 7 installation question
Date: Mon, 18 Dec 2000 12:41:07 -0600
I installed Red Hat 7 using the web server setup. When the installation of
perl is made, does it install 'cgi.pm' and/or other modules? i know it
install mod_perl.
thanks
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: RH6.1/586 binaries won't load on RH7/686?
Date: 18 Dec 2000 13:43:22 -0500
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, rich wrote:
> [rbf:/staff/rbf]->file `which popclient`
> /usr/local/bin/popclient: ELF 32-bit LSB executable, Intel 80386, \
> version 1, dynamically linked (uses shared libs), stripped
> [rbf:/staff/rbf]->popclient
> popclient: Command not found.
Which dynamic libraries does it require? Run "ldd `which popclient`".
(Perhaps it needs libc5 and hence the libc5 dynamic linker,
/lib/ld-linux.so.1.)
--
Paul Kimoto
This message was originally posted on Usenet in plain text. Any images,
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.
------------------------------
From: "Eric Sheesley" <[EMAIL PROTECTED]>
Subject: linux disk copies and vmware
Date: Mon, 18 Dec 2000 13:35:31 -0500
I use the latest version of VMWare on Windows 2000 to run Linux Mandrake
7.0. I only use a command line interface and do not have gnome or kde
installed for space issues. I do have a lot of tools installed though. I
have 3 virtual disks setup and have my personal dir on one, /usr/local on
another, and everything else(/ disk) on the other. I would like to create a
new larger disk and replace the / disk with it. Only problem is i don't
want to reinstall. How can I take my existing disk 1(/ disk) and copy its
contents onto another larger disk and still have it be bootable. I also
don't want to copy the stuff on the other disks onto the root disk so a
regular copy won't work. I guess I could create a 4th disk and copy the /
contents onto it(how can i make it bootable though?) and then change it to
my disk 1 in vmware, but won't that be a problem in linux with it being
named hdd4 or something? Ideas?
Thanks,
Eric
------------------------------
From: Thomas Matthews <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.lang.c++
Subject: Re: MODULES
Date: Mon, 18 Dec 2000 18:36:25 GMT
In article <91kgl2$5h6$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> Hi,
>
> Linux kernel can load modules on demand (where modules, if I
understand
> correctly, are *.o files)
> Can I do the same with my C/C++ programs (load parts of it on demand)
> How?
>
> Thanks
>
> WRoot
There are no standard C or C++ features that allow a program to be
loaded on demand. This is an operating system issue and best discussed
with the experts in an operating system newsgroup.
If you want parts loaded on demand, extract those parts into separate
libraries (*.so) and let the operating system handle them.
-- Thomas
Sent via Deja.com
http://www.deja.com/
------------------------------
From: [EMAIL PROTECTED]
Subject: [FW-1] How to allocate kmalloc/fw_kmalloc/fwhmem ?
Date: 18 Dec 2000 19:02:36 GMT
Hi,
installing of the latest release of Checkpoint's Firewall-1 I get
a lot of error messages when I start the firewall software:
Dec 18 19:30:48 firewall kernel: FW-1: b_getvals: fw_kmalloc(179656) failed
Dec 18 19:30:48 firewall kernel: kmalloc: Size (179668) too large
Dec 18 19:30:48 firewall kernel: FW-1: b_getvals: fw_kmalloc(179656) failed
Dec 18 19:30:48 firewall kernel: kmalloc: Size (179668) too large
Dec 18 19:30:48 firewall kernel: FW-1: b_getvals: fw_kmalloc(179656) failed
Dec 18 19:30:48 firewall kernel: kmalloc: Size (179668) too large
Dec 18 19:30:48 firewall kernel: FW-1: b_getvals: fw_kmalloc(179656) failed
There is a solution for this problem in the Firewall-1 FAQ, but the
description is only for SunOS:
Add in /etc/systems the following value:
set fw:fwhmem=0x300000
So, does anybody knows how to set the fwhmem with Linux? I suppose
to use it as a lilo parameter, but I'm not sure?
Grateful for any hint.
Ralf
------------------------------
From: [EMAIL PROTECTED]
Subject: RedHat 7.0 and tulip driver problem
Date: Mon, 18 Dec 2000 19:10:42 GMT
I'm having trouble getting my Linksys EtherFast 10/100 ver. 4.1 NIC to
work
with Red Hat 7.0. It's working with RH 6.0 (Hedwig) just fine.
After poking around dejanews, I believe this is what folks are saying
to do,
and this is what I've done. And I get the errors shown:
su
/sbin/lspci
00:0f.0 Ethernet controller: Bridgecom, Inc: Unknown device 0985 (rev
11)
I downloaded Becker's test tulip.c driver. I downloaded the following
from
http://www.scyld.com/network/updates.html :
pci-scan.h
pci-scan.c
and from http://www.scyld.com/network/test
tulip.c
kern_compat.h
I built according to the 'tail' comments in the .c files. But I used
kgcc
and -I/usr/src/linux/include .
I get a few warnings:
kgcc -I /usr/src/linux/include -DMODULE -D__KERNEL__ \
-DEXPORT_SYMTAB -Wall -Wstrict-prototypes -O6 -c pci-scan.c
In file included from
/usr/src/linux/include/linux/sched.h:20,
from /usr/src/linux/include/linux/mm.h:4,
from pci-scan.c:60:
/usr/src/linux/include/linux/smp.h:77: warning: `smp_num_cpus'
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:28: warning: this
is
the location of the previous definition
/usr/src/linux/include/linux/smp.h:83: warning: `smp_call_function'
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:118: warning:
this is
the location of the previous definition
In file included from
/usr/src/linux/include/linux/sched.h:74,
from /usr/src/linux/include/linux/mm.h:4,
from pci-scan.c:60:
/usr/src/linux/include/asm/processor.h:96: warning: `cpu_data'
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:6: warning: this
is
the location of the previous definition
/tmp/cctyqY7t.s: Assembler messages:
/tmp/cctyqY7t.s:26: Warning: Ignoring changed section attributes for
.modinfo
kgcc -I /usr/src/linux/include --DMODULE -Wall \
-Wstrict-prototypes -O6 -c tulip.c
In file included from
/usr/src/linux/include/linux/sched.h:20,
from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from /usr/src/linux/include/linux/malloc.h:4,
from tulip.c:147:
/usr/src/linux/include/linux/smp.h:77: warning: `smp_num_cpus'
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:28: warning: this
is
the location of the previous definition
/usr/src/linux/include/linux/smp.h:83: warning: `smp_call_function'
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:118: warning:
this is
the location of the previous definition
In file included from
/usr/src/linux/include/linux/sched.h:74,
from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from /usr/src/linux/include/linux/malloc.h:4,
from tulip.c:147:
/usr/src/linux/include/asm/processor.h:96: warning: `cpu_data'
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:6: warning: this
is
the location of the previous definition
In file included from
/usr/src/linux/include/linux/interrupt.h:51,
from tulip.c:148:
/usr/src/linux/include/asm/hardirq.h:23: warning: `synchronize_irq'
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:138: warning:
this is
the location of the previous definition
In file included from
/usr/src/linux/include/linux/interrupt.h:52,
from tulip.c:148:
/usr/src/linux/include/asm/softirq.h:75: warning: `synchronize_bh'
redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:142: warning:
this is
the location of the previous definition
/tmp/cc2wUm62.s: Assembler messages:
/tmp/cc2wUm62.s:131: Warning: Ignoring changed section attributes for
.modinfo
After this,
insmod tulip.o
tulip.o: unresolved symbol dev_close_Rsmpab086563
tulip.o: unresolved symbol netif_rx_Rsmp0a3fcdc4
tulip.o: unresolved symbol eth_type_trans_Rsmp02771567
tulip.o: unresolved symbol skb_over_panic_Rsmp4f682074
tulip.o: unresolved symbol init_etherdev_Rsmp3808c591
tulip.o: unresolved symbol __kfree_skb_Rsmp088bdac9
tulip.o: unresolved symbol alloc_skb_Rsmp40210a6a
tulip.o: unresolved symbol eth_copy_and_sum_Rsmp0235d0cb
tulip.o: unresolved symbol unregister_netdev_Rsmpe24126b3
I've also tried doing the RPM update method following the exact
instructions on http://www.scyld.com/network/updates.html (usng a dialup
connection), and got similar problems on the RPM install (final step).
Can anyone help?
Thanks!
-joe vannucci
[EMAIL PROTECTED]
Sent via Deja.com
http://www.deja.com/
------------------------------
From: Eduardo Chappa <[EMAIL PROTECTED]>
Subject: Re: pine and spam mails
Date: Mon, 18 Dec 2000 11:59:57 -0800
*** Sudhakar R. ([EMAIL PROTECTED]) wrote in comp.os.linux.misc on Dec 16, 2000:
:) Is there anyway to block addresses in pine or do we have to use a mail
:) filter program. If so, can you please send me directions on how to get
:) started with mail filtering and blocking undesireable addresses.
:)
Yes, get the latest version Pine4.31 from http://www.washington.edu ans
set up filters (press M S R F). Once you get to the screen to set up
filters press "?" to read the help, or "return" to set up a new filter.
The filters feature is not as advanced as procmail and it is not intended
to replace it, but it will work fine for filtering spam based on from,
subject, etc. It is much easier to learn than procmail and you'll get the
same result.
--
Eduardo
http://www.math.washington.edu/~chappa/pine/
------------------------------
From: Stephen Hui <[EMAIL PROTECTED]>
Subject: Re: MySQL socket problem
Date: Mon, 18 Dec 2000 14:21:24 -0600
You'll need to run 'safe_mysqld &' before you can do anything.
safe_mysqld can be found in the bin subdirectory of your mysql directory
(usually /usr/local or /usr/local/mysql or something like that).
Hope this helps!
Stephen.
Mike wrote:
>
> I had MySql on a Linux box (Slack 7.0) and it suddenly stopped
> working. I just re-installed with mysql-3.23.28 and I get the
> same error message I got with the previous one.
>
> Here I'm trying to set the password after installing:
>
> Enter password:
> ./bin/mysqladmin: connect to server at 'localhost' failed
> error: 'Can't connect to local MySQL server through socket
> '/tmp/mysql.sock' (111)'
> Check that mysqld is running and that the socket: '/tmp/mysql.sock'
> exists!
>
> Appreciate your help
>
> Mike
> bash-2.03#
--
Stephen Hui, ARL:UT, Austin, Texas
Computer Terms: Programmer - A red-eyed, mumbling mammal
capable of conversing with inanimate objects.
------------------------------
From: ozetechnology <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help,comp.os.linux.setup,comp.os.linux.questions
Subject: Re: Question about KDE2
Date: Mon, 18 Dec 2000 20:19:55 GMT
Whats it complaining about?
How did you install open_ssl, if you built from source tarball it by
default does not install the shared library. Also have you updated
ld.so.conf?
--
site: http://www.ozetechnology.com
+++ New Images in the gallery +++
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> I have open ssl installed and it complains about stuff that kde needs
> even when i install the libraries
>
> Dave
>
Sent via Deja.com
http://www.deja.com/
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.help
Subject: Re: It's me that needs the upgrade (a bit long)
Date: Mon, 18 Dec 2000 20:43:00 GMT
On Sat, 16 Dec 2000 11:28:07 GMT, [EMAIL PROTECTED] wrote:
Thanks for the help and guidance. Every little helps. Greatly
appreciated for your time and effort
regards to all
John T Finnigan
------------------------------
** 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
******************************