Linux-Misc Digest #25, Volume #28 Sun, 3 Jun 01 21:13:03 EDT
Contents:
Move a large file from Windows to Linux - How? ("ivorybones")
Re: Need some help with permissions/umask (Dances With Crows)
Re: Upgrading glibc (Juergen Heinzl)
Re: help a newbie? ("ivorybones")
Re: rpm not working? (Bob Martin)
Re: CD Burning/SCSI emulation with RH 7.1 (bill davidsen)
How can I send a page to a mobilecomm pager from a korn shell script?? ("Fredrick
Gethers")
Ftape Dead in 2.4 Level Kernels? (Jim)
Re: Move a large file from Windows to Linux - How? (Erik Max Francis)
Re: Move a large file from Windows to Linux - How? (Dave Uhring)
Re: Need some help with permissions/umask (Chris Gentle)
Re: Need some help with permissions/umask (Chris Gentle)
Re: Need some help with permissions/umask (Chris Gentle)
Re: Netscape plugins problem (Flash) (Pulat Yunusov)
Re: i386, i586, i686? (Dennis Senftleben)
----------------------------------------------------------------------------
From: "ivorybones" <[EMAIL PROTECTED]>
Subject: Move a large file from Windows to Linux - How?
Crossposted-To: comp.os.linux.help
Date: Sun, 03 Jun 2001 22:10:47 GMT
I want to move some files from my windows box to my linux box. Most are
mp3's, and there a few jpegs. They will not fit on a single floppy.
I can email them to myself, but that would involve uploading and
downloading.
I can rerip the mp3's, but that would take some time too.
The easiest thing to do would be to split the files, copy them to
floppies, bring them to the linux box, rejoin them.
Can this be done?
If so, what utilities do I need?
Don
------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Need some help with permissions/umask
Reply-To: [EMAIL PROTECTED]
Date: 03 Jun 2001 22:25:40 GMT
On Sun, 03 Jun 2001 18:55:25 -0000, Chris Gentle staggered into the
Black Sun and said:
>I ran into something a few days ago that I haven't been able to figure
>out yet. My home Linux PC has two users, my wife and myself. I wanted
>to mount a separate hard drive and use it as sort of a common area
>where each of us could read/write files (pictures, documents, etc.) I
>would like for files in our home account to be writable only by the
>user (umask 022) while files in the common area are writable by the
>group (umask 002). Can I do this without having to manually set the
>umask?
Are you using some distro that implements the user-private-never-to-be-
sufficiently-damned-groups feature?
Try having the directories in the root of the partition be owned by
"USER.GROUP" and chmodding the directories 2775. When you set the SGID
bit on a directory, it forces the files created within that directory to
have the group of that directory. So long as both users belong to
GROUP, then both users will be able to read/write the files in that
directory. The users should have their umasks set to 002; that should
be done automatically if the users belong to private groups under
RedHat's setup (/etc/profile does the umask setting.)
>When mounting a VFAT filesystem you can specify the umask for files
>created within that filesystem. It doesn't look like you can do this
>with ext2 which is what I'm using.
Since ext2 implements permissions in a partially sane manner,
access is controlled with tools like chmod, chown, and the way the
filesystem implements things rather than setting a blanket for the
entire filesystem.
--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / Outside of a dog, a book is a man's best
http://www.brainbench.com / friend. Inside of a dog, it's too dark
=============================/ to read. ==Groucho Marx
------------------------------
From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: Upgrading glibc
Date: Sun, 03 Jun 2001 22:27:08 GMT
In article <[EMAIL PROTECTED]>, Mike Castle wrote:
>In article <[EMAIL PROTECTED]>,
>Juergen Heinzl <[EMAIL PROTECTED]> wrote:
>>In article <[EMAIL PROTECTED]>, Mike Castle wrote:
>>>Existing applications will work.
>>[-]
>>Most ... Sun's JDK seems to have problems with glibc-2.2.3. Using
>>IBM's version here ... no problems.
>
>Yeah. I should have written "will probably work." I still have problems
>with netscape locking up in Java. ...
[-]
Oh ... really ;)
[-]
>>>If a library was built against glibc X and you upgrade to glibc >X, then
>>>you should recompile all of your libraries. They may or may not work
>>>properly.
>>[-]
>>Hmmm ... usually they do since glibc has been having versioning support
>>for quite some time. Quite some of my shared libraries are > 2 years
>>old and I'm using glibc-2.2.3 at the moment.
>
>It may be better now. But I remember having hellish troubles with
>switching from 2.0 to 2.1. The biggest issue is that 3rd party libraries
>would use undocumented APIs that were exposed. Then later versions of
>glibc would tighten up, and break libraries. Since then, I always
>recompile everything.
[-]
Mind 2.0.x was never released. It was a development version although
some distributors thought it a good idea to jump the gun in order to
get something new out of the door.
>Actually, I thought I remembered reading where the glibc folx recommend
>rebuilding any libraries that you will link against, but I can't find the
>message in the glibc-bug list archives. And it's at least alluded to in
>the FAQ (at least when going from 2.0 to 2.1).
[-]
Fair enough then but hand on the heart and all that - it is not required
and would be a hell of a joke, too. Just think of commercial applications
or packages like X Window or Motif and re-compiling them just due to some
libc upgrade ? *NO WAY* 8-)
>Personally, I have my system set up to recompile all dependent parts
>whenever I upgrade a particular thing (upgrade in kernel rebuilds libc
>which rebuilds everything else, upgrade in libc rebuilds everything,
>upgrade in ncurses rebuilds everything that uses it, and so on).
[-]
Fine with me,
Juergen
--
\ Real name : Juergen Heinzl \ no flames /
\ EMail Private : [EMAIL PROTECTED] \ send money instead /
------------------------------
From: "ivorybones" <[EMAIL PROTECTED]>
Subject: Re: help a newbie?
Date: Sun, 03 Jun 2001 22:28:50 GMT
In article <[EMAIL PROTECTED]>, "Newbie"
<[EMAIL PROTECTED]> wrote:
I had the same problem.
Run the Xconfigurator utility.
Select ALL the monitor resolutions that your monitor will support. You
will then find that the CTRL -ALT- +/- works. Then you will probably want
to edit the xconfig file and remove the display options you don't want.
Getting this right is the most difficult thing about installing linux,
but once you got it, you'll be in good shape.
Do you have a good book in front of you with tips on configuring X?
Don
P.S. You are definitely not stupid. Stupid folks stick to Windows.
> I'm not stupid but... after a successful RedHat 7.0 install, my
> resolution comes up at 640x480... I read that CTRL-ALT-+/- changes the
> monitor resolution,
> but there's no response when I try that... the install recognized my
> video adapter and my monitor OK and my /etc/XF86Config looks fine...
> What am I missing here?
> Thanks for any help/pointers!
> Newbie
>
------------------------------
From: Bob Martin <[EMAIL PROTECTED]>
Subject: Re: rpm not working?
Date: Sun, 03 Jun 2001 17:29:30 -0500
Tom Edelbrok wrote:
>
> When I go to install some kernel rpm's I get the following messages:
>
> rpm -i kernel-2.2.14-5.0.i386.rpm
> error: cannot open file kernel-2.2.14-5.0.i386.rpm
>
> rpm -i kernel-2.2.14-5.0.i686.rpm
> error: cannot open file kernel-2.2.14-5.0.i386.rpm
>
> This error happens on any rpm's that I have copied from my Redhat 6.2 CD. Is
> my rpm program too old to work with the new rpm's?
>
> Thanks,
> Tom
Is this all or does the rest of the message say " no such file or directory"
make sure you are in the directory where the file actually is. try rpm -ivv for
more details
--
Bob Martin
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: CD Burning/SCSI emulation with RH 7.1
Date: Sun, 3 Jun 2001 22:59:02 +0000 (UTC)
In article <3b198602$0$18886$[EMAIL PROTECTED]>,
root <[EMAIL PROTECTED]> wrote:
| I used to have RH 7.0 running the 2.2 kernel, and then I upgraded to 7.1
| with the 2.4 kernel. Both of my CD drives (IDEs) were working under
| /dev/scd0 (the reader 0,0,0) and /dev/scd1 (the burner 0,1,0). After
| the upgrade, kudzu found my CD-ROM drive for some reason and added it to
| /etc/hosts even though it was already set under /dev/scd0. It is no
| longer recognized as being SCSI. My CD burner was left at /dev/scd1 and
| is still recognized as a SCSI device, but is now at 0,0,0. cdrecord's
| scanbus option no longer can detect my reader so I can't make disc
| copies as easily as I could before. What should I do?
Looks as if the default setup is to make burners scsi and leave
readers ide. If you want both scsi, set the flag in /etc/lilo.conf so
that both are force scsi. Then rerun lilo, obviously.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait." -seen in a doctor's office
------------------------------
From: "Fredrick Gethers" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help,comp.os.linux.questions
Subject: How can I send a page to a mobilecomm pager from a korn shell script??
Date: Sun, 03 Jun 2001 23:55:59 GMT
How can I send a page to a mobilecomm pager from a korn shell script??
I have tried calling a perl script that I found on the internet called
mpage.pl and this works fine from my home computers, which get there
internet access via Windows 2000 Internet Connection sharing.
When I run this same scenario from my Linux machine at work, it fail
complaining that it could not open a socket. I think this has something to
do with the firewalls in my work environment, but I don't know much about
that sort of thing. Can someone suggest ways to do what I am attempting to
accomplish.
I have included the source of the perl script in case some can tell me what
to change to get pass my firewalls at work.
#!/usr/bin/perl -w
# Simple program to connect to http://www.mobilecomm.com/cgi-bin/wwwpage.exe
# and send a page.
#
# Written by David Allen
# <[EMAIL PROTECTED]>
# http://opop.nols.com/
#
# This file is released under the terms of the GNU General Public License.
# Please see http://www.gnu.org for more details.
#
# REQUIRES MODULES: strict and IO::Socket
#
# USAGE: mpage.pl PAGER_PIN MESSAGE
# Where PAGER_PIN is the PIN of the pager you want to send MESSAGE to.
# You don't need to put quotes around MESSAGE.
#
# *********NOTE************
# If this script doesn't work, make sure that mobilecomm.com is still
running
# wwwpage.exe at http://www.mobilecomm.com/cgi-bin/wwwpage.exe. It may have
# moved, possibly to http://www.arch.com/cgi-bin/wwwpage.exe. If you find
# that this script doesn't work, replace all occurances of mobilecomm's
# URL in the source code with the new URL.
#
# This program will send the page using
www.mobilecom.com/cgi-bin/wwwpage.exe
# and will store the response in LASTRESPONSE.html when the server replies.
#
# If you are looking at this program for examples of code to make it work,
# check out the page{} subroutine below - it is the meat of this program.
############################################################################
##
use strict;
use IO::Socket; # Socket work
my $pagerid = shift;
my $MESSAGE = join(' ', @ARGV);
die "Usage: mpage.pl PAGER_ID words in message\n\n" unless $pagerid;
die "Usage: mpage.pl PAGER_ID words in message\n\n" unless $MESSAGE;
page($pagerid, $MESSAGE);
print "Done.\n";
exit(0);
#############################SUBROUTINES####################################
###
sub page{
my ($name, $text) = @_;
my $TRUNCATED = 0;
my $PAGE = ""; # The text sent to www.mobilecomm.com - appended later.
$pagerid = $name;
print STDERR "Processing pager ID...\n";
# Eliminate everything but numbers from the pager id
$pagerid =~ s/[^0-9]//g;
# Check the pager id length and so on.
if(not $pagerid || (length($pagerid) < 7))
{
die "Bad pager ID number. A pager id number is exactly 7 numbers.\n";
}
die "No message specified.\n" unless $text;
# This is the format of the message we're going to send via the TCP
# socket
# POST /cgi-bin/wwwpage.exe HTTP/1.0
# User-Agent: Myprogram/1.00
# Accept: */*
# Content-length: 35
# Content-type: application/x-www-form-urlencoded
#
# PIN=6807659&MSSG=stuff+and+nonsense
print STDERR "Processing text of message...\n";
# A bit of string pre-processing
chomp $text;
my $strdelim = "\r\n"; # At the end of each line.
# Compress the text a bit - eliminate redundant characters - this
# helps a lot for pages that have multiple spaces and so on.
# Some people are going to want to remove this. I just put it in because
# it eliminates generally redundant information and saves space.
$text =~s/\n/ /g; # Linefeeds are spaces
$text =~s/\r//g; # No carriage returns
$text =~s/\s+/ /g; # Multiple whitespace -> one space.
# Did they enter in too much data?
if(length($text)>=200)
{
# Bad user! Bad! Bad!
$TRUNCATED = "True";
$text = substr($text, 0, 199); # 200 Character maximum
}
# Do all of the ugly escaping - basically replace all non-alphanumerics
# with the hex value of the character preceeded by "%"
my $encodedmessage = urlencode($text);
# The length of the request has to be TOTAL QUERY. If it's just
# the length of the string you're sending, it will truncate the
# hell out of the page. So the pager number is length($pagerid)
# of course the length of the message, and add the length of the
# parameter flags, (PIN= and ?MSSG=) and you're done.
my $pagelen = length($encodedmessage) + length("PIN=?MSSG=")+
length($pagerid);
# Build the text we send to the server
# each line ends with $strdelim
$PAGE = "POST /cgi-bin/wwwpage.exe HTTP/1.0$strdelim";
$PAGE .= "User-Agent: Pagent/5.4$strdelim";
$PAGE .= "Accept: */*$strdelim";
$PAGE .= "Content-length: $pagelen$strdelim";
$PAGE .= "Content-type: application/x-www-form-urlencoded$strdelim";
$PAGE .= "$strdelim";
$PAGE .= "PIN=$pagerid&MSSG=".$encodedmessage;
print STDERR "Sending message...\n";
# Now we send our data.
# Note that this is just quick and dirty, so I'm using a perl module
# to do the network dirty work for me.
my $sock = IO::Socket::INET->new(PeerAddr => 'www.mobilecomm.com',
PeerPort => 'http(80)',
Proto => 'tcp');
# Bail if the connection didn't happen.
die "Cannot create socket : $!" unless $sock;
$sock->autoflush();
$sock->print("$PAGE");
print STDERR "Getting response and saving to LASTRESPONSE.html...\n\n";
my $document = join('', $sock->getlines());
my $y=0;
open(FOO,">LASTREPONSE.html") or $y=1;
print FOO "$document\n" unless $y;
close FOO unless $y;
if($document =~ m/process that pager ID/g)
{
print STDERR "Page not sent. There was an error. See ",
"LASTRESPONSE.html for what the server sent back to me.\n";
exit(0);
} # End if
else
{
$document =~ m/(\d{1,4}) character message out of/g;
my $bytecount = $1;
print STDERR "Page sent successfully to $pagerid. Server read ",
"a message length of $bytecount.\n";
exit(0);
} # End else
} # End sub page
############################################################################
sub urlencode{
my $text = shift;
my $input = $text;
chomp $input;
# Translate all non-letter non-number characters into their %HEX_VAL
# and return that string.
$input =~ s/([^a-zA-Z0-9-_\.\/])/uc sprintf("%%%02x",ord($1))/eg;
$input =~ s/%20/+/g;
return $input;
} # End sub urlencode
------------------------------
From: [EMAIL PROTECTED] (Jim)
Subject: Ftape Dead in 2.4 Level Kernels?
Date: 4 Jun 2001 00:05:14 GMT
I can't get ftape-4.04a to build with the 2.4.2 kernel, and the linux-tape
discussion list seems to have been removed from vger.rutgers.edu.
Anyone know of any solutions to either of these situations?
If not, I guess I'll have to start tar'ing a compressed version of linux
over to a windows partition, and copy it to tape as one file, with a
verify pass for safety, for backups ...
Jim
remove not for email
------------------------------
From: Erik Max Francis <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help
Subject: Re: Move a large file from Windows to Linux - How?
Date: Sun, 03 Jun 2001 17:00:40 -0700
ivorybones wrote:
> I want to move some files from my windows box to my linux box. Most
> are
> mp3's, and there a few jpegs. They will not fit on a single floppy.
>
> I can email them to myself, but that would involve uploading and
> downloading.
>
> I can rerip the mp3's, but that would take some time too.
>
> The easiest thing to do would be to split the files, copy them to
> floppies, bring them to the linux box, rejoin them.
The easiest thing to do would be to ftp them.
map ftp
>From the Windows machine, run ftp (from the command prompt), type:
lcd (local directory on Windows machine)
cd (remote directory on Linux machine)
binary
prompt
mput *
quit
--
Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Life is something to do when you can't get to sleep.
\__/ Fran Lebowitz
Maths reference / http://www.alcyone.com/max/reference/maths/
A mathematics reference.
------------------------------
From: Dave Uhring <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help
Subject: Re: Move a large file from Windows to Linux - How?
Date: Sun, 3 Jun 2001 19:17:02 -0500
ivorybones wrote:
> I want to move some files from my windows box to my linux box. Most are
> mp3's, and there a few jpegs. They will not fit on a single floppy.
>
> I can email them to myself, but that would involve uploading and
> downloading.
>
> I can rerip the mp3's, but that would take some time too.
>
> The easiest thing to do would be to split the files, copy them to
> floppies, bring them to the linux box, rejoin them.
>
> Can this be done?
>
> If so, what utilities do I need?
>
>
> Don
>
Don't you have them networked?
If you do, you can implement samba on the Linux box and simply drag and
drop the files from Windoze using Network Neighborhood.
------------------------------
From: [EMAIL PROTECTED] (Chris Gentle)
Subject: Re: Need some help with permissions/umask
Date: Mon, 04 Jun 2001 00:40:27 -0000
Reply-To: [EMAIL PROTECTED]
On Sun, 03 Jun 2001 21:56:55 +0200, Erik Veenstra <[EMAIL PROTECTED]> wrote:
> Setting the mask of the mountpoint, before you mount, will do.
Tried that. I set the permissions for the mountpoint to 775 and then
mounted the disk. When I touch a file on the filesystem it still ends up
as 644.
--
Chris
------------------------------
From: [EMAIL PROTECTED] (Chris Gentle)
Subject: Re: Need some help with permissions/umask
Date: Mon, 04 Jun 2001 00:41:47 -0000
Reply-To: [EMAIL PROTECTED]
On Sun, 03 Jun 2001 22:56:45 +0200, Michael Heiming <[EMAIL PROTECTED]> wrote:
> If you only have two users on your system, what's the problem
> with setting the umask in the users profile or in /etc/profile,
> (leaving roots umask) to your needs?
Well, you're right, of course. I could set the umask to 002 for all users
and forget it. That's not the point though. I just wanted to know if this
is possible. I can see other circumstances where there may be more than
two users where this type of thing might be handy.
--
Chris
------------------------------
From: [EMAIL PROTECTED] (Chris Gentle)
Subject: Re: Need some help with permissions/umask
Date: Mon, 04 Jun 2001 00:46:18 -0000
Reply-To: [EMAIL PROTECTED]
On 03 Jun 2001 22:25:40 GMT, Dances With Crows <[EMAIL PROTECTED]> wrote:
> Are you using some distro that implements the user-private-never-to-be-
> sufficiently-damned-groups feature?
OS is Mandrake 7.2 upgraded to the hilt.
> Try having the directories in the root of the partition be owned by
> "USER.GROUP" and chmodding the directories 2775. When you set the SGID
> bit on a directory, it forces the files created within that directory to
> have the group of that directory. So long as both users belong to GROUP,
> then both users will be able to read/write the files in that directory.
> The users should have their umasks set to 002; that should be done
> automatically if the users belong to private groups under RedHat's setup
> (/etc/profile does the umask setting.)
That's a handy piece of info. I'll give it a try.
--
Chris
------------------------------
From: Pulat Yunusov <[EMAIL PROTECTED]>
Subject: Re: Netscape plugins problem (Flash)
Date: Mon, 04 Jun 2001 00:50:50 GMT
David Wake wrote:
> I am using Netscape Communicator 4.75 with RedHat Linux 7.0. When I
> type about:plugins, I get the message "No plug-ins are installed",
> even though I have ShockwaveFlash.class and libflashplayer.so in my
> usr/lib/netscape/plugins directory, readable by all users.
>
> Thanks for any help.
>
> David
>
Try including this line in the .bash_profile or .bashrc:
export NPX_PLUGIN_PATH=/usr/lib/netscape/plugins
Pulat
------------------------------
From: Dennis Senftleben <[EMAIL PROTECTED]>
Subject: Re: i386, i586, i686?
Date: Sun, 03 Jun 2001 21:55:03 +0200
Get the sources from www.kernel.org
and compile your own ( 686 kernel ) .... those kernels are much faster
and need less memory.
dennis Senftleben
Tom Edelbrok wrote:
>
> I have a Pentium II-233 running Redhat 6.0 with kernel 2.2.5-15.
>
> I am upgrading the kernel to 2.2.14-5.0. Should I use the i386, i586, or
> i686 rpm?
>
> Thanks,
> Tom
------------------------------
** 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
******************************