Linux-Setup Digest #179, Volume #21               Mon, 7 May 01 01:13:09 EDT

Contents:
  Re: Xterm exits.. [longish] (John Hagen)
  Re: samba - unknown parameter? ("AS")
  Re: Xterm exits.. [longish] (John Hagen)
  GNOME rpms (bidalah)
  Re: problem repartitioning for linux (Dave Berntson)
  Re: Is it possible to dual boot without a bootloader? ("David W. Studeman")
  Re: replacing a stupidly deleted script (Dave Uhring)
  tulip driver for RedHat 7.1 (Gary Whitten)
  Re: squid and accepting cookies? and cache? ("AS")
  vga = ask ([EMAIL PROTECTED])
  Re: tulip driver for RedHat 7.1 (Dean Thompson)
  Re: "unsupported partition table.." I'm about to go postal (Dave Uhring)

----------------------------------------------------------------------------

Date: Sun, 06 May 2001 18:27:23 -0700
From: John Hagen <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x
Subject: Re: Xterm exits.. [longish]

Bit Twister wrote:

> Just guessing Here, try putting
> #!/bin/perl
> as the first line of /home/john/bin/perl/zoneweather

I have:

#! /usr/local/bin/perl

Ahem, it would not even *run* without the "pound-bang" line..

What's happening is that I get the following error:

$ xterm -e /bin/bash -c "/home/john/bin/perl/zoneweather; echo \"Press
Enter to continue..\";read"

The xterm that pops up then has:

/bin/bash: /home/john/bin/perl/zoneweather: No such file or directory
Press Enter to continue..

Just for grins, the script in question is reproduced below my sig, with
sample output.

-- 
john hagen ~ [EMAIL PROTECTED]
=================================

#! /usr/local/bin/perl

use warnings;

# for the HTTP request
use LWP::UserAgent;

# can't use HTML::Parse because the iwin site uses tables
use HTML::TokeParser;

# options
my $input_city = shift || 'SEATTLE';
my $city =       uc $input_city;
my $input_state = shift || 'wa';
my $state =       lc $input_state;

# build up URL
my $url_prefix = 'http://iwin.nws.noaa.gov/iwin/';
my $url_suffix = '/zone.html';
my $url = $url_prefix.$state.$url_suffix;

print "\n";

# get the request
my $agent =    new LWP::UserAgent;
my $request =  new HTTP::Request( 'GET', $url );
my $response = $agent->request( $request );

# check if we connected or got anything readable
die "Couldn't get URL: $url\nStatus code = ", $response->code
  unless $response->is_success;

my $toke_parser = HTML::TokeParser->new( \$response->content ) ||
  die "Can't read response content!";

# note: the actual HTML request will have several state sections 
# with "pre" tags that correspond to various times during the day
# that the state zone forecast was updated. we want them all, 
# because the city we're looking for may not be included in the 
# latest section posted.

# concatenate all the sections that have "pre" tags
my $text;
while ( $toke_parser->get_tag( "pre" ) ) {
  no warnings; # quiets "Use of uninitialized value in concatenation.."
  $text = $text.$toke_parser->get_text();
}

# try to match the city
$text =~ /^[A-Z][A-Z]Z[A-Z\d\-\/\.\(\)\<\>\s]+$city.*?^\$\$/ms;

# if so, print the match
if ( $& ) {
  print $&, "\n\n";
}

# else, complain
else {
  print "The city of ", $input_city, ", ",  $input_state, " was not
found!\n\n";
}

$ zone_weather 

WAZ006-007-008-010-071115-
SEATTLE METROPOLITAN AREA-TACOMA AREA-EVERETT AND VICINITY-
HOOD CANAL/KITSAP PENINSULA-
BREMERTON-SHELTON-BELLEVUE-EDMONDS-ISSAQUAH-PUYALLUP
300 PM PDT SUN MAY 6 2001

.TONIGHT...MOSTLY CLEAR. LOWS 40 TO 45. WIND NORTH 5 TO 15 MPH.
.MONDAY...MOSTLY SUNNY AND WARMER. SOME HIGH CLOUDS IN THE AFTERNOON.
HIGHS AROUND 70. WIND LIGHT AND VARIABLE.
.MONDAY NIGHT...PARTLY CLOUDY IN THE EVENING WITH LOW CLOUDS
INCREASING AFTER MIDNIGHT. LOWS AROUND 45. WIND SOUTHWEST 10 TO 20
MPH.
.TUESDAY...CLOUDY AND COOLER. PATCHY DRIZZLE IN THE MORNING. HIGHS 55
TO 60. SOUTHWEST WIND 5 TO 15 MPH.

.<                     TEMPERATURE     /   PRECIPITATION
SEATTLE                43  70  47  59  /   00  00  00  10
EVERETT                42  68  46  58  /   00  00  00  20
SHELTON                41  72  45  59  /   00  00  10  10

.EXTENDED FORECAST...
.WEDNESDAY...MOSTLY CLOUDY. LOWS NEAR 45 AND HIGHS NEAR 55.
.THURSDAY AND FRIDAY...PARTLY SUNNY DAYS. LOWS NEAR 45. HIGHS 60 TO
65. 
.SATURDAY AND SUNDAY...MOSTLY CLOUDY WITH A CHANCE OF SHOWERS. LOWS
NEAR 45. HIGHS 60 TO 65. 

=
$$

$

------------------------------

From: "AS" <[EMAIL PROTECTED]>
Subject: Re: samba - unknown parameter?
Date: Mon, 07 May 2001 01:45:51 GMT

In article <[EMAIL PROTECTED]>, "Michael Heiming"
<[EMAIL PROTECTED]> wrote:

> AS wrote:
>> 
>> Hi all,
>> 
>> I have trying to set up the samba between my debian box and win98. From
>> debian, I can get to win98 fine. But from win98, I get "Unable to
>> browse the nerwork' in network neigbourhood, but if I map a drive with
>> \\debian\user_name, it works fine, \\debian\tmp doesn't work by the
>> way.
>> 
>> I installed the network printer in win98 but nothing prints!
>> 
>> Whenever mapping a drive or sending something to print, I get the
>> following:
>> 
>> tcplogd: netbios-ssn connection attempt from eth0 [a.b.c.d]
>> smbd[14484]: [2001/04/29 19:12:16, 0]
>> param/loadparm.c:lp_do_parameter(2549) smbd[14484]:   Ignoring unknown
>> parameter "revalidate" tcplogd: printer connection attempt from debian
>> [127.0.0.1]
>> 
>> How can I fix this printing problem first? Following is smb.conf.
>> Thanks.
>> 
>> [global]
>>         path = /tmp
>>         passwd program = /usr/bin/passwd %u
>>         printing = bsd
>>         allow hosts = a.b.c.d, 127.
>>         dns proxy = no
>>         syslog only = no
>>         name resolve order = lmhosts host wins bcast encrypt passwords
>>         = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_
>> SNDBUF=4096 SO_RCVBUF=4096
>>         short preserve case = yes
>>         wins support = true
>>         printcap name = /etc/printcap
>>         invalid users = root
>>         revalidate = yes
> 
> Did you read "man smb.conf"?
> 
> Mine says (samba 2.0.7):
> 
>  revalidate (S)
>  
>               Note  that  this  option  only  works  with  "secu�
>               rity=share" and will be ignored if this is not  the case.
>  
>               This  option  controls  whether  Samba will allow a
>               previously validated username/password pair  to  be used 
>               to  attach to a share. Thus if you connect to
>               \\server\share1 then to  \\server\share2  it  won�t
>               automatically  allow  the client to request connec� tion
>               to the second share as the  same  username  as the first
>               without a password.
>  
>               If  "revalidate"  is "True" then the client will be denied
>               automatic access as the same username.
>  
>               Default:      revalidate = False
>  
>               Example:      revalidate = True
> 
> Michael Heiming

I changed the revalidate 'no', now there is no unknown parameter issue,
but still, cannot print anything from win98 to lp0 printer thru my linux
box. It shows the connection is made to the printer, but nothing comes
out from the printer.

------------------------------

Date: Sun, 06 May 2001 18:52:32 -0700
From: John Hagen <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x
Subject: Re: Xterm exits.. [longish]

Bit Twister wrote:

> Just guessing Here, try putting
> #!/bin/perl
> as the first line of /home/john/bin/perl/zoneweather

OK, just after I last posted, I found my error: I had misspelled the
name of the script! The script is called "zone_weather" and I used
"zoneweather". <sigh>

All is now well..  :)

Thanks all,

-- 
john hagen ~ [EMAIL PROTECTED]
=================================

------------------------------

From: bidalah <[EMAIL PROTECTED]>
Subject: GNOME rpms
Date: Mon, 07 May 2001 02:05:31 GMT

A simple question, but with a difficult answer:

What are the packages that need to be installed in order to use GNOME?

And I don't mean the the actual dependencies.  I know you can get those just by 
typing "rpm -qRp gnome*.rpm".  The problem with this approach is that many of
the dependencies listed
are located in rpm's that have completed different names!  No matter where I
look I cannot find a simle list of
exactly which rpm's I need to install to put GNOME and all of its necessary
dependencies on my system. 
Does anyone know?





------------------------------

From: Dave Berntson <[EMAIL PROTECTED]>
Subject: Re: problem repartitioning for linux
Date: Sun, 06 May 2001 21:13:46 -0500

On Sun, 06 May 2001 16:12:51 -0700, Steve Hill <[EMAIL PROTECTED]> wrote:

>I have FIPS2.0 and was warned not to use it from windows ... but the new
>machine that I'm trying to install this on doesn't have a "Restart from
>DOS" capability, nor do I even see how to create a DOS boot disk.  Has
>Unca Billy done it to me again??  Has anyone repartitioned a WIN ME
>drive, and if so, how??
>
>Steve
>
Although I used fips on a 98se, my instructions were for Win9x/ME, so, they
should work for you too.
You have the right version of Fips.  The "warning" is that you should not
use it in a DOS window from your winME.  In other words, you have to boot
directly to DOS from a floppy boot disk.  Get a floppy disk (blank, or one
that has nothing of importance on it).  Boot your windows and go to the dos
window or "exit to dos" (any dos will do).  Put your floppy in the drive.  I
assume a: is your floppy drive, so, then type this:
format a: /s
and include the space after format and :
That will make a boot floppy.  Now go back to windows and copy fips to the
floppy. Fips should include:
fips.exe
restorrb.exe
errors.txt
 Now reboot with the floppy in it's drive to see if you got it right.  If
you boot to DOS, you have a working floppy boot disk.  Now you should
clean-up your windows and defrag the hard drive before using the fips
program.  You have to figure out how you want to allocate the space on your
hard drive before you start partitioning.  In my case, I gave windows about
2.3 gigabytes (which gives it about 400 megabytes of free space...for
growth), and linux got 1.7 gigabytes.  In fact, when you install, you will
destroy the non-windows partition and make 3 partitions for the
linux...swap, root (which appears as a slash mark), and boot.

>Chiefy wrote:
>> > Fips (First non-destructive Interactive Partition Splitting program) is the
>> > safe way to re-partition a hard drive to maintain windows and dual boot with
>> > linux.
>> 
>> I'll second that. Must have used FIPS over a hundred times over a few
>> years and haven't lost a single DOS partition. Haven't lost a single
>> byte of data to my knowledge. Excellent little prog.
>
>-----------------------
>email: 
>     [EMAIL PROTECTED]
>-----------------------


------------------------------

From: "David W. Studeman" <[EMAIL PROTECTED]>
Subject: Re: Is it possible to dual boot without a bootloader?
Date: Sun, 6 May 2001 19:37:39 -0700
Reply-To: "David W. Studeman" <[EMAIL PROTECTED]>

 The best way with NT4 or Win2K, is to install lilo to the root partition
and create a 512 byte block file that points to it so the NT bootloader can
launch lilo. The first time after installation, boot into linux from a
floppy. I set lilo for text mode and only one entry with 0 second delay so
the NT bootloader can launch it quickly and you won't have to sit through
yet another graphical menu. I use a small fat partition as the "C:" drive
that contains all the boot stuff. I size it at 40MB. I have NT4 on drive
"D:" and Win2K on drive "F:" Doing this also allows room to install dos in
this small partition. My "C:" drive is mounted as /dosc under linux and my
root partition is /dev/hdb6 so the creation of this file is made here as #
dd if=/dev/hdb6 of=/dosc/bootsect.lnx bs=512 count=1 you should see a
bootsect.lnx file in "C:" so you now edit the boot.ini file to have an entry
C:\bootsect.lnx="Linux Mandrake 8.0"  note that whatever shows in quotes, is
visible in the boot menu. This way, Windows can be reinstalled with no
effect on Linux. Basically, lilo and grub only work well with Win9X because
it has no bootloader. All NT based os's do have one and it can be very
versatile. The same teqniques work on other flavors of Unix as well.

                                          Dave

"Jan Eric Andersson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Cyber-Wizard wrote:
>
> > I have a 12Gb drive running Win2K and decided to learn about Linux to
> > get out from under the M$ thumb. I have installed Mandrake on a 1.7Gb
> > drive in a removable hard drive bay. I need this bay for other
> > purposes and would like to simply select hda3 in the BIOS for booting
> > into Linux when I want it. My problem is this, now that Linux is
> > installed, GRUB is loading at boot no matter which drive I am booting
> > from. If I remove the 1.7Gb Linux drive from the drive bay the PC will
> > not boot at all. Does anyone know how I might go about being able to
> > boot into Linux by manual HDD BIOS selection?
>
> Install the bootloader on the removable drive instead of hda.
>
> Jan Eric
>
>



------------------------------

From: Dave Uhring <[EMAIL PROTECTED]>
Subject: Re: replacing a stupidly deleted script
Date: Sun, 6 May 2001 22:04:37 -0500

Peter Kelly wrote:

> I'm running Redhat 7.1, and recently I tried to upgrade Samba in an
> incorrect order.
> 
> Suffice it to say, I've screwed up a bunch of stuff.
> I managed to delete the /etc/rc/d/init.d/smb file.
> I can always download the latest tarball (got it).  Getting the thing
> to run automatically is my problem right now.
> 
> I've looked around the redhat site, but can't find an easy way to find
> the basic 7.1 scripts.  Hell, I can't find them.
> 
> I'm always afraid to reboot with the install disc after I've modified
> a working install.
> 
> I'm still in the learning phase, so re-doing Samba isn't a problem at
> all.
> 
> Is there a place that has the Redhat scripts available for
> download/edit?
> 
> Thanks.
> 
> Peter
> 
> 
> When responding by email, please change the no-spam to disco.
> Sorry for the inconvenience.
> Spam really sucks.
> 
> 

When upgrading things like samba which have a bunch of packages, the way to 
do it is download all the rpms to one directory and then execute

# rpm -Fvh *

and let rpm figure out which ones to install first.

You might give that a try now.  As far as losing something from samba, 
don't worry about being able to reboot.  Now, if you fouled something else 
up, that's another matter.

If you want to recover only a single file like /etc/rc.d/init.d/smb, then 
run rpm with the --prefix /tmp option, which will put the files under /tmp. 
 Then you can copy them to the right place.


------------------------------

From: Gary Whitten <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,linux.redhat.install,linux.redhat.misc
Subject: tulip driver for RedHat 7.1
Date: Mon, 07 May 2001 03:05:30 GMT

I have just upgraded from RH7.0 to RH7.1, which broke my tulip driver.
The one that comes with RH7.1
does not work and I can't compile the tulip source for the same reasons
so commonly discussed about
RH7.0. BUT, the RH7.0 solution does NOT seem to apply since I can't find
the appropriate include files -
they are not where they are in the RH7.0 distro. and I can not seem to
find ones that work anywhere in the
RH7.1 distro.

So....., does anyone
1) know where I can find the proper include files in RH7.1
2) know how to get the tulip driver source to compile in RH7.1?
3) know where I can get a tulip.o file that works with RH7.1?
4) know why RedHat hasn't fixed this very irritating problem in 7.1?

Once I get past this one, I have to repeat the process for the fa311
driver.

    Thanks,
        Gary Whitten
        [EMAIL PROTECTED]


------------------------------

From: "AS" <[EMAIL PROTECTED]>
Subject: Re: squid and accepting cookies? and cache?
Date: Mon, 07 May 2001 03:22:19 GMT

In article
<[EMAIL PROTECTED]>,
"Rasmus B�g Hansen" <[EMAIL PROTECTED]> wrote:

> On Sat, 5 May 2001, AS wrote:
> 
>> I am running squid server at 3128 port in my debian box, even though I
>> have accept cookies set up in netscape, I cannot receive the cookies (I
>> need it for some site to login). How can I set up squid to accept
>> cookies?
> 
> For me cookies worked out-of-the-box (RedHat 7.0 with squid
> 2.3.STABLE4). I don't why you experience this problem.

I don't know why I have problem with the cookies!!!

>> And also read somewhere that I shoud leave the memory and disk caches
>> at 0 KBytes. If I do that, it takes longer to load the pages. I have
>> /home/x/.netscape/cache/ as the cache folter. Do I need to change this
>> folder? If so, to what?
> 
> This means that it won't cache (remember) any pages and they have to be
> loaded from internet every time. If you do not cache any pages, pages
> will load just as slow as when loading them directly from the internet.
> Why do you want a proxy then?

Yes, why to use proxy then?

> So use what disk space, you have got and all memory, you can free for
> squid.

So, still let netscape to use memory and disk space? Is that what you
meant? I alredy let squid to use enough memory and space, but netscape
doesn't use the squid's cache. So how to set up?
 
> Rasmus
>

------------------------------

From: [EMAIL PROTECTED]
Subject: vga = ask
Date: Mon, 07 May 2001 03:25:58 GMT

This works fine when I'm prompted to scan and then pick a number, but
I'm damned if I can reinstall lilo with that number in lilo.conf and
get the thing to work! All I get is a message saying I used an
unrecognised mode, or some such. The mode I'm after has value 0122 and
equates to a 100x30 screen. Can anybody advise where I'm going wrong?

Thanks

H

------------------------------

From: Dean Thompson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,linux.redhat.install,linux.redhat.misc
Subject: Re: tulip driver for RedHat 7.1
Date: Mon, 07 May 2001 14:22:19 +1000


Hi Gary,

> I have just upgraded from RH7.0 to RH7.1, which broke my tulip driver.
> The one that comes with RH7.1 does not work and I can't compile the tulip 
> source for the same reasons so commonly discussed about RH7.0. BUT, the 
> RH7.0 solution does NOT seem to apply since I can't find the appropriate 
> include files - they are not where they are in the RH7.0 distro. and I can 
> not seem to find ones that work anywhere in the RH7.1 distro.
> 
> So....., does anyone
> 1) know where I can find the proper include files in RH7.1

Okay, you will need to make sure that you have included all of the kernel
source header files as well as the standard header files that come with a
Linux distribution.  The network drivers normally rely on some header files
which are used during a kernel compile.

> 2) know how to get the tulip driver source to compile in RH7.1?

You should be able to find the source at Donald Becker's site.  The site
location is: http://www.scyld.com/network/tulip.html.  You may want to either
download the individual driver (make sure to download the supporting files) or
you might like to get the complete RPM of all the updated drivers and work
from there.

> 3) know where I can get a tulip.o file that works with RH7.1?

If I had a RH7.1 machine with a compiled version I would send it to you, but I
am afraid I haven't had a chance to explore the new offerings from RH.

> 4) know why RedHat hasn't fixed this very irritating problem in 7.1?

No idea.

See ya

Dean Thompson

-- 
+____________________________+____________________________________________+
| Dean Thompson              | E-mail  - [EMAIL PROTECTED] |
| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

------------------------------

From: Dave Uhring <[EMAIL PROTECTED]>
Subject: Re: "unsupported partition table.." I'm about to go postal
Date: Mon, 7 May 2001 00:00:09 -0500

Tom wrote:

> I'm about to go postal.
> 
> Trying to install Suse 7.1 and when it tries to create the partitions is
> says "unsupported partition table..". Ok so I figured I didn't have the
> geometry setup correctly for the disk. So I added it to the command line
> when I booted Yast2 and still the same problem. Played with the LILO and
> linear setting to no avail. Here are the  funky things:
> 
> 1. When booting up I can see Linux identifies all the partitions but Yast2
> doesn't see them..it always says there are no partitions.
> 2. I have partitioned the disk with fdisk and sysed with DOS and was able
> to boot off of it (after manually configuring the disk geometry in the
> BIOS). So the drive itself seems fine. I even checked with an old version
> of Partition Magic and can verify the partitions- although it does not
> give the proper geometry of the drive.
> 3. Tried using Yast1 and fdisk. It still does not see partitions and when
> I try to create them it crashes. HOWEVER, LVM does identify the
> partitions. 4. After the crash I go to "rescue" and run fdisk manually. It
> says there are 8 partitions but it only lists 4 and none of them are
> numbered so I can't delete them. If I try to change the partition table in
> anyway it crashes with a "segmentation fault" error. Funny thing is that
> the 4 partitions that are there look like they are from the last OS I had
> installed - BSD4.2. But how can they still be there!!! I have fdisk /mbr
> the drive and have been able to boot to DOS on it. fdisk under Yast1
> doesn't see these partitions
> 
> 
> 
> I'm lost...and tired.

Had much the same problem with Slackware.  The fdisk included with the CD 
gets confused by the presence of an old BSD disklabel.  What worked for me 
was to copy the fdisk from a Mandrake-6.1 CD to /sbin.  Not the rpm 
package, but the actual fdisk binary used in the installation.

OR you can use dd and zero out the first several sectors of your partitions.


------------------------------


** 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.setup.

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-Setup Digest
******************************

Reply via email to