Linux-Misc Digest #991, Volume #25 Mon, 9 Oct 00 16:13:02 EDT
Contents:
Re: How to copy a file to a floppy? (Cristian)
Re: copying and pasting? (Daniel C)
Mod_Perl on RH7 fails to make test
Re: Exim command line opt for Subject ("Daren")
Can't delete a socket (Brian S Enyart)
kernel warning: (Christian Wenz)
Redhat access network card before PCMCIA loads ([EMAIL PROTECTED])
Re: ext2 file size limit? ([EMAIL PROTECTED])
Strange SCSI behavior (Leonard Evens)
Re: my ftpd dies on large files. (Al)
Re: IM, Canna (E J)
Make wvdial give up when I'm talking on the phone ? (H�kon Alstadheim)
Adding Windows on a separate hard drive ([EMAIL PROTECTED])
My mouse dies on my (Al)
Re: Hey! Newbie on WinLinux 2000 w/Win Me
Re: Recommendations for "travelling" linux? ("Matt O'Toole")
Re: problem opening up terminal as user in redhat6.2 with enlightment wm (Dances
With Crows)
Does anyone have masquerading working on redhat 7.0 ([EMAIL PROTECTED])
Mystery Initial PATH Setting (* Tong *)
----------------------------------------------------------------------------
From: Cristian <c{ristian}h{umberto}[EMAIL PROTECTED]>
Subject: Re: How to copy a file to a floppy?
Date: Mon, 09 Oct 2000 18:10:06 GMT
David_C <[EMAIL PROTECTED]> wrote:
> Has this feature changed recenlty?
> The last time I looked (back with the 2.0 kernel), the "auto" option
> will choose "fat" for DOS-format floppies, and not "vfat". So long
> names aren't available.
Must have, because 2.2.14 supports long filenames.
C.
------------------------------
From: Daniel C <[EMAIL PROTECTED]>
Subject: Re: copying and pasting?
Date: Mon, 09 Oct 2000 18:10:16 GMT
Just a guess: you need GPM to cut and paste in terminals.
"gpm.tgz (slakware/a1/) gpm-1.19.2. The general purpose mouse server,
or gpm, allows you to cut and paste text from the screen. It also acts
as a mouse server for applications running on the Linux console,..."
[EMAIL PROTECTED] wrote:
>
> Vilmos Soti <[EMAIL PROTECTED]> wrote:
>
> > In the terminal window, just highlight the url. By highlighting,
> > you will place it into the clipboard. You can paste it with the
> > middle buton (or if two buttons then the two together).
>
> I tried all of your suggestions and it simply does not work between
> a term window and Netscape. There has to be an easy way to do this that
> I am missing.
------------------------------
From: <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Mod_Perl on RH7 fails to make test
Date: 9 Oct 2000 17:59:57 GMT
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.14-5.0 (i586))
I am trying to install mod_perl on a RedHat7 2.2.16-22 box, with
apache_1.3.12 . On make test it fails to start a server, in the
log file I am getting:
[notice] Destruction->DESTROY called for $global_object
[Fri Oct 6 10:39:06 2000] [warn] [notice] child_init for process 3211, report any
problems to [no address given]
[Fri Oct 6 10:39:06 2000] [emerg] (22)Invalid argument: fcntl: F_SETLKW: Error
getting accept lock, exiting! Perhaps you need to use the LockFile directive to place
your lock file on a local disk!
[notice] child process 3211 terminating
[notice] push'd PerlChildExitHandler called, pid=3211
[notice] push'd PerlChildExitHandler called, pid=3211
[notice] END block called for startup.pl
[notice] Destruction->DESTROY called for $global_object
The exact same configuration builds fine on RH5.2 and RH6.2
Searching the web, the only thing I find on RH7 is an incompatible
gcc. Might this be my problem?
--
Danny Aldham Providing Certified Internetworking Solutions to Business
www.postino.com E-Mail, Web Servers, Web Databases, SQL PHP & Perl
------------------------------
From: "Daren" <[EMAIL PROTECTED]>
Subject: Re: Exim command line opt for Subject
Date: Sat, 07 Oct 2000 12:00:29 +0100
In article <[EMAIL PROTECTED]>, "HankC"
<[EMAIL PROTECTED]> wrote:
> Greetings:
>
> Anyone know the command line parameter for Exim to specify subject? I'm
> trying to mail a report from cron thusly:
>
> cat report | /usr/sbin/exim -s "Daily Report" username
>
> Exim complains about '-s'. If I drop '-s "Daily Report"' then the report
> is mailed okay (with no subject line, tho).
>
> Is there a more appropriate newsgroup for this question?
>
> TIA
Brain wasn't working properly on my last post. Rather than using exim
(which is really there to transport messages) why not use a 'normal'
mailing program (mutt,mail,pine) to send the report??
Cheers
Daren
------------------------------
From: [EMAIL PROTECTED] (Brian S Enyart)
Subject: Can't delete a socket
Date: Mon, 09 Oct 2000 18:14:30 GMT
In attempting to upgrade a debian system, I've encountered the following
problem:
A file in the /usr/share/locale directory appears corrupt:
$ ls -l cs_CZ
srwx--xrw- 1 daemon 49616 65548 Jan 2 1970 cs_CZ
Neither I (as root) nor the upgrade (as root) can delete this file, and
the upgrade won't complete.
$ rm -f cs_CZ
rm: cannot unlink `cs_CZ': Permission denied
what can I do to get this of this file (socket)?
--
Brian Enyart
http://members.iquest.net/~enyart
------------------------------
From: Christian Wenz <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: kernel warning:
Date: Mon, 09 Oct 2000 20:27:37 +0200
i get this message since i upgraded to SuSE 7.0:
insmod: /lib/modules/2.2.16/ipv6/ipv6.o: insmod net-pf-10 failed
after booting and if i send mails with elm, this message is loged under
/var/log/warn. i do not know why the kernel like to load this module. as
far as i know i didnt compilied it in the kernel. can somebody help me.
--
In /dev/null no one can hear you scream
------------------------------
From: [EMAIL PROTECTED]
Subject: Redhat access network card before PCMCIA loads
Date: Mon, 09 Oct 2000 18:29:24 GMT
Redhat access network card before PCMCIA loads
I have a network pcmcia card in my notepad. I would like to network
card to get active at boot time, but I see that redhat 7.0 is trying to
active the network card before PCMCIA loads so the active does not
work. Can someone please tell me a way around this??
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.develop,fa.linux.kernel
Subject: Re: ext2 file size limit?
Date: Mon, 09 Oct 2000 18:34:02 GMT
As has been stated clearly by others on this
and other related newsgroups, Linux ext2fs CAN handle
filesystem sizes up to 2 TB. LFS (which enables
the use of 64 bits for file offsets and sizes)
is part of 2.4 and as far as I could tell, it
is in Redhat 6.2 as well (Kernel 2.2).
Here is a > 2GB file I created:
% ls -l
-rw-rw-r-- 1 guest other 2516582400 Oct 9 10:08 f0
The file was created with
fd = open(fileName, O_CREAT|O_RDWR|O_TRUNC|O_LARGEFILE);
The file /usr/include/bits/posix_opt.h, which is
automatically included by unistd.h, says:
/* The LFS support in asynchronous I/O is also available. */
#define _LFS64_ASYNCHRONOUS_IO 1
/* The rest of the LFS is also available. */
#define _LFS_LARGEFILE 1
#define _LFS64_LARGEFILE 1
#define _LFS64_STDIO 1
These are the headers I include. I added
some comments to clarify what's going on:
#define _LARGEFILE64_SOURCE 1 /* Define here or on cc line or in
CFLAGS */
/*
* features.h, auto-included by just about every header file,
* will define __USE_LARGEFILE64 if _LARGEFILE64_SOURCE is
* defined
*/
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <sys/stat.h>
/* Now that __USE_LARGEFILE64 is defined, fcntl.h will
* include bits/fcntl.h, which checks to see if __USE_LARGEFILE64
* is defined, and if so, defines O_LARGEFILE, used in the open().
*/
#include <fcntl.h>
#include <stdio.h>
The upshot of this is you have to use your own
program to copy a file that is greater than 2 gig.
I attach a a copy here for the heck of it.
/*
* cp64 - copy large files
*/
#define _LARGEFILE64_SOURCE 1
/*
* features.h, auto-included by all header files, will
* define __USE_LARGEFILE64 if _LARGEFILE64_SOURCE is defined
*/
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <sys/stat.h>
/* Now that __USE_LARGEFILE64 is defined, fcntl.h will
* include bits/fcntl.h, which checks to see if __USE_LARGEFILE64
* is defined, and if so, defines O_LARGEFILE, used in the open().
*/
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#define TRUE (1)
#define FALSE (0)
void
usage()
{
fprintf(stderr, "usage: cp64 <source> <destination>\n");
exit (1);
}
#define BUF_SIZE (1024*1024) /* Use 1 megabyte buffer for
* copying
*/
/*
* TO speed up copying (assuming you have lots of RAM), make this
* buffer size larger, or better yet, add code to parse an arg
* which you can use to malloc whatever buffer size you like.
*/
char buf[BUF_SIZE];
char source[FILENAME_MAX], destination[FILENAME_MAX];
main(int ac, char *av[])
{
struct timeval tv0, tv1;
struct timezone tz;
int i, n, error = 0;
int src_fd, dst_fd;
long seconds, useconds;
u_int64_t total = (u_int64_t) 0;
u_int64_t rate = (u_int64_t) 0;
ac--, av++;
if (ac < 2)
usage();
strcpy(source, av[0]);
src_fd = open(source, O_RDONLY|O_LARGEFILE);
if (src_fd < 0) {
perror(source);
exit (1);
}
strcpy(destination, av[1]);
dst_fd = open(destination, O_CREAT|O_RDWR|O_TRUNC|O_LARGEFILE);
if (dst_fd < 0) {
perror(destination);
exit (1);
}
tz.tz_minuteswest = 0;
tz.tz_dsttime = 0;
gettimeofday(&tv0, &tz);
while (TRUE) {
n = read(src_fd, buf, BUF_SIZE);
if (n == 0) break; /* EOF */
if (n < 0) {
error++;
perror("read");
fprintf(stderr, "read error on %s\n", source);
break;
}
total += n;
n = write(dst_fd, buf, n);
if (n <= 0) {
error++;
perror("write");
fprintf(stderr, "write error on %s\n",
destination);
break;
}
}
if (!error) {
gettimeofday(&tv1, &tz);
seconds = tv1.tv_sec - tv0.tv_sec;
useconds = tv1.tv_usec - tv0.tv_usec;
if (useconds < 0)
useconds = 1000000 - useconds;
if (useconds >= 500000)
seconds++;
rate = total/seconds;
printf("Read/Wrote %u bytes in %u seconds\n", total,
seconds);
printf("I/O throughput(bytes/s) = %u\n", rate);
exit(0);
}
else exit(errno);
}
Cheers,
Joe
<[EMAIL PROTECTED]>
In article <8r41hm$9lj$[EMAIL PROTECTED]>,
"Michael Pike" <[EMAIL PROTECTED]> wrote:
> While setting up RH6.2 on a Dell Poweredge for work, with over 80 gigs
of hd
> space, a problem arose while xferring a database file from it's NT
> counterpart...
>
> The file is 8 gigs in size, its a hospital database..... Linux,
because it
> is on Intel arcitecture, cannot accomodate files larger than 2 gigs in
size.
>
> I found patches for the kernel to enalble large file support, but i
failed
> miserably trying to apply the libs and the kernel patches....
>
> My question is this.. since 7.0 is out, and it uses Kernel 2.4 - is
the
> large file system stuff built into the kernel now?
>
> I am afraid if the LFS isnt implemented as a standard, Linux is going
to run
> into a lot of problems, because 2 gigs is NOT big enough in this day
and
> age, especially for enterprise servers...
>
> Thanks,
> Mike
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Leonard Evens <[EMAIL PROTECTED]>
Subject: Strange SCSI behavior
Date: Mon, 09 Oct 2000 13:40:34 -0500
I have a dual boot VA Linux system with two SCSI disks and an external
SCSI zip disk. I accidentally turned off the power to the zip disk,
and my system would not boot successfully into Windows or into Linux.
It made more progress with Linux, but seemed to hang without any
reason at different points, eventually when fixing the root file
system, necessitated by shutting down and restarting. I discovered
the problem by booting from a VALinux rescue disk and running e2fsck
manually. Then I saw lots of messages about the SCSI bus being
reset, timing out, etc. I suppose this makes sense. The SCSI bus
was trying to talk to the zip disk but coudln't find it. When
I turned the zip disk back on again all was well.
I wonder if some SCSI expert could enlighten me further. I had
a related problem in trying to attach an HP Photosmart scanner
to the SCSI bus, but in that case it only tried the resetting
two or three times before finally booting.
--
Leonard Evens [EMAIL PROTECTED] 847-491-5537
Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208
------------------------------
From: Al <[EMAIL PROTECTED]>
Subject: Re: my ftpd dies on large files.
Date: Mon, 09 Oct 2000 19:03:11 GMT
Thanks for replying.
I'm working with two machines, a win2000 box and a linux box.
On my linux box I ftp my winbox and issue a get on a 45 meg. file that
resides on my winbox. that's when ftp crashes on my linux box. on ftp
sessions where I transefer smaller files everything works fine.
What command do I use to run the daemon in debug mode?
Thanks for any assistance
Alfredo
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> On or about Fri, 06 Oct 2000 22:56:12 GMT, Al <[EMAIL PROTECTED]>
scrivened:
> > Hi.
>
> > Does anyone have any idea why my linux ftpd dies on me about
halfways
> > thru when I "get" a 45 meg file from my windows machine?
>
> What's in your system logs?
>
> Try running the daemon in debug mode. Report output.
>
> --
> Karsten M. Self <[EMAIL PROTECTED]>
http://www.netcom.com/~kmself
> Evangelist, Opensales, Inc.
http://www.opensales.org
> What part of "Gestalt" don't you understand? There is no K5
cabal
> http://gestalt-system.sourceforge.net/
http://www.kuro5hin.org
> GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0
>
--
Viva Zapata!
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: E J <[EMAIL PROTECTED]>
Subject: Re: IM, Canna
Date: Mon, 09 Oct 2000 12:12:18 -0700
You give up too easily :), get the rpm librabies (probably not redhat)
from http://rpmfind.net/ and keep on going.
I would give up if you could not get the rpm method to work at all. (My
experience was with an early version of licq)
Then you should consider getting the source code and compiling yourself.
Subject:
IM, Canna
Date:
Mon, 09 Oct 2000 17:20:11 GMT
From:
Jim Young <[EMAIL PROTECTED]>
Organization:
Excite@Home - The Leader in Broadband
Hmmm....I think the optical, T3, T1 and ADSL would dispute this claim :)
Newsgroups:
comp.os.linux.misc
Jim Young wrote:
> Hi. i've been searching for an Input method for Japanese. I found some
> info on the net about the Canna package. Yet, i can't get any slakware
> distro's for it. i tried installing the RPM but it needed some redhat
> libraries. any ideas?
>
> Thanks, Jim
------------------------------
Subject: Make wvdial give up when I'm talking on the phone ?
From: [EMAIL PROTECTED] (H�kon Alstadheim)
Date: 09 Oct 2000 14:49:13 -0400
I use wvdial (comes with SuSE 6.4) to connect with my ISP through my
modem. This is our only line, and I'd like it to give up after 4-5
tries when there is no dialtone (meaning somebody is on the phone). I
run wvdial once an hour through cron to get mail and news -- very nice
unless we're trying to use the phone, then you get incessant clicking
until wvdial is killed. The cron job is set up to kill the connection
after 15 minutes, but 15 minutes with click-click is pretty
irritating.
Anybody have a solution ?
I've looked in the FAQ and peeked a bit at the source, but can't find
any obvious solutions.
--
H�kon Alstadheim, Montreal, Quebec, Canada
------------------------------
From: [EMAIL PROTECTED]
Subject: Adding Windows on a separate hard drive
Date: Mon, 09 Oct 2000 19:05:32 GMT
I have a machine that runs solely Redhat 6.1. It has a 9GB hard drive
dedicated to Linux. Now I would like to add a second hard drive entirely
dedicated to the latest version of Windows 2000. About 10GB would be
fine. The question is, what steps do I have to take to add a second
hard drive? I want it to boot into Linux by default or into Windows
if explicitly stated.
The reason is that my employer is requiring remote access for on-call
work, and Linux is not supported. I have been given a SecureID key
and I don't even know how to begin to configure Linux for remote
access. I need this ASAP so it cannot turn into a 10 day project. :)
I realize this is a FAQ question, so any pointers to web sites, etc.
would be greatly appreciated. Also estimated cost for a SCSI hard
drive + copy of Windows would be great.
Ilya [EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Al <[EMAIL PROTECTED]>
Subject: My mouse dies on my
Date: Mon, 09 Oct 2000 19:11:59 GMT
Hi.
I am running gentus linux on a celeron machine. Everything was working
fine on my machine until I run a large build program that run over the
weekend. When I came back, now the mouse pointer is gone and I had to
shutdown the system because I could not get the mouse to show up on my
screen. on reboot, the systems says that mouse device is not present
and the kasu config asked me to remove installation, I did and then
rebooted. The system found the mouse as new hardware and configured it
by itself. But, the mouse now works erraticaly until it goes away,
then I have to kill and restart x, but the problem continues.
Any assistance will be deeply appreciated
Alfredo
--
Viva Zapata!
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: <[EMAIL PROTECTED]>
Subject: Re: Hey! Newbie on WinLinux 2000 w/Win Me
Date: Mon, 09 Oct 2000 19:30:07 -0000
what i need is where i can get to download a copy of ms-dos 6.22 or later,
and make a boot disk for it, if i can boot it, then i can just execute the
file to run linux.
Oliver Battenfeld wrote:
>
> Glitch schrieb:
> > WinME does not have MSDOS anymore, at least not technically.
>
> You probably wanted to say: At least not in the start menu.
>
> Win ME is based on MS-DOS just like any of its predecessors. Options to
> directly boot it have vanished though.
>
> > b/c DOS isn't a boot option, the DOS boot files config.sys and
> > autoexec.bat are no longer used as well.
>
> Not true as well.
>
> Mykangaroo, do a web search on this, going into detail here is way
> offtopic. OTOH, my suggestion also is to get a "real" distribution ;-)
>
> --
> Bye,
> Oliver
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
Reply-To: "Matt O'Toole" <[EMAIL PROTECTED]>
From: "Matt O'Toole" <[EMAIL PROTECTED]>
Subject: Re: Recommendations for "travelling" linux?
Date: Mon, 9 Oct 2000 11:18:33 -0700
"David Turley" <[EMAIL PROTECTED]> wrote in message
news:MsiE5.7378$[EMAIL PROTECTED]...
> In article <8rsc42$aq5$[EMAIL PROTECTED]>, "Bala"
> <[EMAIL PROTECTED]> wrote:
>
> > Hi, I'll be travelling very soon and since I'm a full linux user I'd
> > like to take a version of linux with me that I can use.
> >
> > Basically I'm looking for a distribution that can run off a CDR or
> > install into a Windows partition. I'm currently considering DemoLinux
> > and/or PhatLinux. Any specific recommendations anyone?
>
> ZipSlack, BigSlack, muLinux, Pocket Linux,
I've just been playing with Zipslack, and it's great! Really basic, but all
you need to build from, and easy to understand. Also, several years ago
there was a Linux that was designed to run off a CD. Yggdrasil, I think.
Matt O.
------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: problem opening up terminal as user in redhat6.2 with enlightment wm
Date: 9 Oct 2000 19:30:55 GMT
Reply-To: [EMAIL PROTECTED]
On Mon, 9 Oct 2000 13:46:26 -0400, parn wrote:
>when i log in as a user to X and try to open a terminal...
>i get an error stating that 'using linux 2.2.x with glibc 2.1x
>due to incorrect setup Unix 98 ptys'
>
>i'm not sure what happened... but i no longer am able to open up terminals
>as a regular user...
Does your /etc/fstab contain the following line?
none /dev/pts devpts gid=5,mode=620 0 0
It probably should if it doesn't. /dev/ptmx should also exist and be
owned by user root, group tty. (5 is the gid of group tty in most
cases... if group tty has a gid that isn't 5, change the gid= line in
/etc/fstab to be there.)
Your kernel should have /dev/pts filessytem support compiled in; if
these don't work, you should check that and put it in if it isn't there.
--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / Workin' in a code mine, hittin' Ctrl-Alt
http://www.brainbench.com / Workin' in a code mine, whoops!
=============================/ I hit a seg fault....
------------------------------
From: [EMAIL PROTECTED]
Subject: Does anyone have masquerading working on redhat 7.0
Date: Mon, 09 Oct 2000 19:35:01 GMT
Does anyone have masquerading working on redhat 7.0
If so please email me I am thinking about setting it up
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: * Tong * <[EMAIL PROTECTED]>
Subject: Mystery Initial PATH Setting
Date: 09 Oct 2000 17:15:16 -0300
Hi,
I saw that the first line of my /etc/profile file is:
PATH="$PATH:/usr/X11R6/bin"
So I added the following line before it to show the Initial PATH:
echo "/etc/profile:: PATH=$PATH"
and it show (when run "su -")
/etc/profile::
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11
I just can't figure it out, what the h... does this initial PATH
come from? Shouldn't the /etc/profile be the first file that (ba)sh
launches? How can I tweak it?
Thanks!
--
Tong (remove underscore(s) to reply)
http://members.xoom.com/suntong001/
- All free contribution & collection & music from the heavens
------------------------------
** 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
******************************