Linux-Setup Digest #306, Volume #21 Sat, 26 May 01 03:13:14 EDT
Contents:
thanks ("mike")
How to use lpr to print postscript file ? ("Eric Chow")
Re: installing qlogic scsi adaptor (Markus Kossmann)
Re: Retrieving PPP IP Address (Clifford Kite)
Re: Installation Error ("KL")
HP n3310 laptop (Jonathan Tester)
Re: How To Set The Swap size ? (afeltes@[EMAIL PROTECTED])
Re: setup ISP using Linux ("David Dorward")
Re: fresh LILO stops at 'L' (John Verderber)
win modem (Danny)
Webserver (Danny)
Re: How do I make file creation time same as shown by 'date' command ("Merlin")
Re: installing qlogic scsi adaptor ("Rob")
RH 7.1 on laptop? HELP! (Lyrch)
Apache and FTP question (Lamar Thomas)
Do I need to allow UDP port 520 connections through? ("George Adams")
Re: Apache and FTP question (J Sloan)
Re: Apache and FTP question (Lamar Thomas)
----------------------------------------------------------------------------
From: "mike" <[EMAIL PROTECTED]>
Subject: thanks
Date: Fri, 25 May 2001 22:45:58 -0700
thanks... good article
From: "JLucien" <[EMAIL PROTECTED]>
Subject: Re: Forget LILO and use grub on mandrake 7.0
Date: Friday, May 25, 2001 7:02 AM
On Thu, 24 May 2001 23:17:34 -0700, "mike" <[EMAIL PROTECTED]> wrote:
>i need information on using grub as my os loader... i am running win98 and
>linux just fine, if i use a boot disk... lilo apparently has a problem with
>LBA and partitions over 8GB... something about 1024 sectors :) any way i am
>still new to the linux game so insalling a new boot loader is a little over
>my head... instructions, links, downloads, or docs please... i am not
afraid
>to read, or ruin my computer:) but i need help...
>
>
I'm in the same position as you!
There is an excellent article on GRUB in the May Linux Journal mag -
it can be found online here:
http://noframes.linuxjournal.com/lj-issues/issue85/4622.html
HTH,
JLucien.
------------------------------
From: "Eric Chow" <[EMAIL PROTECTED]>
Subject: How to use lpr to print postscript file ?
Date: Sat, 26 May 2001 11:58:52 +0800
Hello,
How can use lpr to print postscript file or pdf file to printer ?
Best regards,
Eric
------------------------------
From: Markus Kossmann <[EMAIL PROTECTED]>
Subject: Re: installing qlogic scsi adaptor
Date: Sat, 26 May 2001 05:56:45 +0200
Husam wrote:
>
> need help with installing qlogic scsi adaptor. I replaced a Adaptec card
> with qlogic. I did modprobe qlogicisp, but it did not help. the driver
> becomes listed in the loaded drivers, but i still can not mount the
> cdrom attached to the scsi card. when you reboot the machine, the kernel
> still tries to load the former driver (aic7xxx) and it does not try to
> initialize the driver of the new card. so my question is:
>
> -how can i remove the aic7xxx driver from the boot process?
> -how can i let the kernel initialize the qlogic driver?
The aic7xxx driver is probably loaded by a initrd. So build a new
initrd ( and don't forget to run lilo after that).
--
Markus Kossmann
[EMAIL PROTECTED]
------------------------------
From: Clifford Kite <[EMAIL PROTECTED]>
Crossposted-To: comp.protocols.ppp
Subject: Re: Retrieving PPP IP Address
Date: Fri, 25 May 2001 20:39:36 -0500
Mark D. <[EMAIL PROTECTED]> wrote:
> I am trying to automate a packet filtering firewall by providing the IP
> address of the PPP connection upon its connection. I have Linux
> 2.2.5-15 (Redhad 6.0). Besides querying the PPP log file to get the IP
> address, is there any more direct method to finding the PPP IP address
> to put in the IPChains script.
Would it help to know that it is the parameter $4 of the /etc/ppp/ip-up
script? The environmental variable IPLOCAL is also set to the local
PPP IP address once IPCP has come up. It's all in man pppd.
-- Clifford Kite <Email: [EMAIL PROTECTED] with X=kite, Y=inetport, Z=com>
/* A salute to Inspector Baynes, of the Surry Constabulary, the only
police Inspector to ever best Mr. Sherlock Holmes at his own game.
"The Adventure of Wisteria Lodge", by Sir Arthur Conan Doyle. */
------------------------------
From: "KL" <[EMAIL PROTECTED]>
Subject: Re: Installation Error
Date: Sat, 26 May 2001 12:39:43 +0800
I have actually placed it in the /tmp directory.
I wonder the problem whether is due to the "unzip" options that I used.
I used "unzip <filename>.zip -d /tmp/squid.
Thanks.
"Noble Pepper" <[EMAIL PROTECTED]> wrote in message
news:9en840$sph$[EMAIL PROTECTED]...
> KL wrote:
>
> > I wanted to install a software "Squid" with the instructions given:-
> > % ./configure --prefix=/usr/local/squid
> > % make all
> > % make install
> <snip>
> try --prefix=/usr/local
>
> it also sounds like you untarred in /usr/local/squid, this is not a good
> thing. untar somewhere else, like your /home directory. make install
> will put everything where it belongs (like /usr/local/squid)
------------------------------
From: Jonathan Tester <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.x,comp.os.linux,comp.os.linux.questions,comp.os.linux.portable,linux.dev.laptop,linux.redhat.install
Subject: HP n3310 laptop
Date: Sat, 26 May 2001 05:09:48 GMT
I am trying to install Redhat 7.1 on HP Paivilion laptop n3310.
Has anybody done this before successfully?
I would be very grateful for any advise?
Thank for your help
Jon
--
Jonathan Tester
408 252 2184
[EMAIL PROTECTED]
HTTP://www.software-consultant.com
Cell phone:408 857 7522
------------------------------
From: afeltes@[EMAIL PROTECTED]
Crossposted-To: alt.certification.redhat,alt.os.linux.mandrake,comp.os.linux.misc
Subject: Re: How To Set The Swap size ?
Date: 26 May 2001 05:29:07 GMT
In article <9elvrj$h01$[EMAIL PROTECTED]>, yotam
<[EMAIL PROTECTED]>
writes:
>I am using R.H 7 is it possible to change the swap size after installation
?
>thanks in advance
>Or Freund .
>
>
Swap under linux is a partition of the disk or a swapfile instead.
if you still have space left on your hard disk you can create a new partition
or increase de one you have it now, the partition must be of linux swap type.
See de _fdisk_ man page for this.
If you do not have space for a new partition, you can create a swap file (see
_mkswap_ man page for an explanation).
----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web -----
http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
NewsOne.Net prohibits users from posting spam. If this or other posts
made through NewsOne.Net violate posting guidelines, email [EMAIL PROTECTED]
------------------------------
From: "David Dorward" <[EMAIL PROTECTED]>
Subject: Re: setup ISP using Linux
Date: Sat, 26 May 2001 06:28:36 +0100
It seems that on Fri, 25 May 2001 19:22:34 +0100, someone claiming to be
"Randy Cheema" <[EMAIL PROTECTED]> typed this:
> Hello (newbie to Linux envirnoment)
>
> I want to setup ISP using Linux. What servers would need to setup? FTP,
> Web Server, Mail, etc. Any assistance would be helpful......
Connecting to an ISP - none. You might need a mail server running for
local dilevery, but it depends how you collect your mail.
To run an ISP of your own (and I wouldn't bother unless already knew the
answer to this question). You would probably need DNS and something to
listen for PPP connections.
--
David Dorward http://www.dorward.co.uk/
The only way to keep your health is to eat what you don't want, drink
what you don't like, and do what you'd rather not. -- Mark Twain
------------------------------
From: John Verderber <[EMAIL PROTECTED]>
Subject: Re: fresh LILO stops at 'L'
Crossposted-To: linux.redhat.install,linux.redhat.misc,comp.os.linux.redhat
Date: Fri, 25 May 2001 22:35:29 -0700
When lilo stops at L:
The first stage boot loader has been loaded and started, but it can't load
the second stage boot loader. The two-digit error codes indicate the type
of problem. (See also section ``Disk error codes''.) This condition usually
indicates a media failure or a geometry mismatch (e.g. bad disk parameters)
> I just installed RedHat Linux 7.0 from CDROM, the installation went
> smoothly, but after the installation, I cannot boot from the fresh
> installed HD: LILO stopped at 'L'.
>
> The partition of /dev/hda is as such:
> 1 8MB /boot
> 2 128MB /
> 4 256MB swap
> 5 15GB /home
> 6 2.8GB /usr
> 7 1.2GB /var
>
> LILO installed in MBR of /dev/hda. This a full Linux system, no DOS /
> Windows partition at all in the system.
>
> Booting from CDROM works fine, from other HD (a smaller 700MB HD) works
> fine, from tomsbrt boot floppy works fine. However, a boot floppy created
> using lilo from the /dev/hda failed to boot, also stopped at 'L'.
>
> Here is what I tried:
>
> 1. from linux rescue, mount the hda & cd into it, do 'lilo -r . -v
> -v',successful, but no boot.
>
> 2. do dd if=/dev/zero of=/dev/hda bs=446 count=1 -> hang, then do lilo
> again -> stopped at 'L'.
>
> 3. format & mkfs a floppy, install lilo on it. boot from floppy, LILO sill
> stopped at 'L'.
>
> 4. boot from DOS, do 'fdisk /MBR', -> boot stopped with 'partition error'.
> Install lilo again, back to 'L'.
>
> Any other ideas? Thanks.
>
--
John Verderber
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Danny)
Subject: win modem
Date: 25 May 2001 22:36:44 -0700
is there a driver for linux that will allow me to run my win modem
from linux. I have a %^K PCI Modem with Vioce from ADDTel. if anyone
could help tha would be appreciated.
------------------------------
From: [EMAIL PROTECTED] (Danny)
Subject: Webserver
Date: 25 May 2001 22:37:53 -0700
Is there an on-line manual that gives you a step by step on how to set
up a webserver on based on the "Apache Web Server"?
------------------------------
From: "Merlin" <[EMAIL PROTECTED]>
Subject: Re: How do I make file creation time same as shown by 'date' command
Date: Sat, 26 May 2001 15:47:44 +1000
After much research, (Linux version 2.2.5-15
([EMAIL PROTECTED])(gcc version egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release)) #1 Mon Apr 19 3:00:46 EDT 1999)
I have found what I wanted to know. Also thanks to your help, and that of a
few others.
When a file is created, it's creation date is taken from the Hardware Clock.
It's not taken from the System clock. If the Hardware Clock is set to UTC
time, that's what you get in your file creation date. If the Hardware
Clock is set to LocalTime, then that's what the file creation date will
show. REGARDLESS of what the TZ/timezone/ZONE whatever settings are.
Creating a file reads the hardware (RTC) clock to create the time stamp
This doesn't apparently apply to anything else on the system. Just file
creation time stamps.????? maybe, I don't know.
As you point out, setting TZ in the environment will alter the time that is
"displayed", but not the 'actual' creation time.
Doing this on my machine here, gives the same result.
$ export TZ=UTC
$ touch tt
$ ls -l tt
-rw-rw-rw- 1 robert robert 10459 May 26 05:41 tt
$ date
Sat May 26 05:42:01 2001
$ export TZ=PST8PDT
$ date
Fri May 25 22:42:36 PDT 2001
$ ls -l tt
-rw-rw-rw- 1 robert robert 10459 May 25 22:41 tt
$
then, logging out, and back in, with no TZ value set shows the creation date
the same as the hardware clock, which is running local time, not UTC.
$ ls -l tt
-rw-rw-rw- 1 robert robert 10459 May 26 15:41 tt
$
interesting little gotcha, when trying to deal with file creation times -
sorting particularly
thanks all
bc
"David Efflandt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> On Fri, 25 May 2001, Merlin <[EMAIL PROTECTED]> wrote:
> > There is no way I can make the file creation time show as local time on
> > Linux RedHat? or is there.
> >
> > $ date
> > Fri May 25 01:18:47 PDT 2001
> > $ touch test.txt
> > $ ls -l test.txt
> > -rw-rw-r-- 1 robert robert 0 May 25 08:18 test.txt
> >
> > What do I have to do to make it work that way on the Linux box?
>
> The following is Mandrake 7.0 (Pentium optimized RedHat), but works
> equally on SuSE 7.1. My CMOS clock uses localtime (timezone properly set
> during install). Not sure why your 'ls' is different, since its man pages
> do not mention timezone, but try setting TZ and see if 'ls' pays any
> attention to that:
>
> $ date
> Fri May 25 20:06:17 CDT 2001
> $ touch test.txt
> $ ls -l test.txt
> -rw-r--r-- 1 efflandt efflandt 0 May 25 20:06 test.txt
> $ export TZ=PST8PDT
> $ ls -l test.txt
> -rw-r--r-- 1 efflandt efflandt 0 May 25 18:06 test.txt
> $ date
> Fri May 25 18:07:03 PDT 2001
> $ export TZ=UTC
> $ ls -l test.txt
> -rw-r--r-- 1 efflandt efflandt 0 May 26 01:06 test.txt
> $ date
> Sat May 26 01:07:30 UTC 2001
>
> --
> David Efflandt (Reply-To is valid) http://www.de-srv.com/
> http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
> http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
------------------------------
From: "Rob" <[EMAIL PROTECTED]>
Subject: Re: installing qlogic scsi adaptor
Date: Sat, 26 May 2001 08:02:28 +0200
In article <[EMAIL PROTECTED]>, "Husam"
<[EMAIL PROTECTED]> wrote:
> need help with installing qlogic scsi adaptor. I replaced a Adaptec card
> with qlogic. I did modprobe qlogicisp, but it did not help. the driver
> becomes listed in the loaded drivers, but i still can not mount the
> cdrom attached to the scsi card. when you reboot the machine, the kernel
> still tries to load the former driver (aic7xxx) and it does not try to
> initialize the driver of the new card. so my question is:
>
> -how can i remove the aic7xxx driver from the boot process? -how can i
> let the kernel initialize the qlogic driver?
>
> i'm running redhat 7.0 on intel based machine with PII processor, and
> 128mb ram.
>
> thanks for any suggestion.
This is how you can use your cdrom despite the modules loaded during boot;
# umount /mnt/cdrom1
# modprobe -r aic7xxx
# modprobe "Your module name"
# mount /mnt/cdrom1
The aic7xxx module is loaded from ramdisk (initrd) early during booting.
In the alt.os.linux.mandrake newsgroup thread "SCSI cdrom install
problem" you can find a trick to modify your initrd file so it boots with
the driver for your adaptor.
regards,
Rob
------------------------------
From: [EMAIL PROTECTED] (Lyrch)
Subject: RH 7.1 on laptop? HELP!
Date: Sat, 26 May 2001 06:07:52 GMT
Reply-To: Where you found it
I have a Compaq Presario 12XL310 that I'd like to put redhat linux 7.1
on. Well, actuall it's already on. One problem. Video in Xwindows.
I only get the right 1/3 of the screen to display, the rest is black.
I have messed with the XF86Config file to many times to list with
suggestions off the web with no avail. I tried redhat tech support.
He didn't have a clue. And, no Xconfigurator settings seem to do any
good. Either the 1/3 screen or an error.
To my knowledge the video card is a Trident Cyberblade AGP i1
Any help is very greatly appreciated.
Chris
------------------------------
From: Lamar Thomas <[EMAIL PROTECTED]>
Crossposted-To:
linux.redhat.misc,comp.os.linux.admin,comp.os.linux.help,comp.os.linux.misc,comp.os.linux.questions
Subject: Apache and FTP question
Date: Sat, 26 May 2001 06:35:27 GMT
I just installed RH 7.1 and I did NOT configure the firewall during the
install (I will go back and do that later after I get everything up and
running. Besides, nothing is on this system but the Linux OS). Anyway,
I am trying to get the Apache web server and the FTP server up and
running. I went through the steps in RH's "Customization Guide" but I
can not connect to either server. From my linux system I CAN pull up my
web page but I can NOT access if from another system (i.e. from work).
How do I get access from outside my system, and let everyone else have
access too?
I also can not connect to my FTP server. I get an "access denied"
message. Any ideas? Thanks for any help.
Lamar
------------------------------
From: "George Adams" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.admin,comp.os.linux.networking,comp.os.linux.redhat
Subject: Do I need to allow UDP port 520 connections through?
Date: Sat, 26 May 2001 02:48:27 -0400
For this question, assume:
11.22.33.44 = my DSL router
11.22.33.45 = my Redhat Linux 7.1 box (directly connected to the DSL router
over eth0)
11.22.33.46 = the broadcast address for my network
Every 30 seconds or so, I get a log message like this in /var/log/messages:
May 26 02:29:58 www kernel: gShield / default drop: IN=eth0 OUT=
MAC=ff:ff:ff:ff:ff:ff:00
:c0:6a:93:b8:13:08:00 SRC=11.22.33.44 DST=11.22.33.46 LEN=72 TOS=0x00
PREC=0x00 TTL=64
ID=3575 PROTO=UDP SPT=520 DPT=520 LEN=52
So it looks like the router is sending out broadcast packets every few
seconds, and my iptables (gShield) is dropping the packet and logging it.
I've also run: echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
My questions are:
1) Does anything bad happen if my Linux box drops these broadcast packets
that the DSL router is sending out? (for instance, will the router
eventually assume that the Linux box is turned off, and stop sending regular
traffic to it?) If that's true, would something like this solve the problem
without opening my system up to attack?
> iptables -A INPUT -p udp -s 11.22.33.44 -d 11.22.33.46 --sport
520 --dport 520 -j ACCEPT
2) If it IS ok for my Linux box to ignore these broadcasts, is this the best
way to tell iptables to ignore the packets (without constantly sending a log
message to /var/log/messages):
> iptables -A INPUT -p udp -s 11.22.33.44 -d 11.22.33.46 --sport
520 --dport 520 -j DROP
Thanks to anyone who can help clarify this.
------------------------------
From: J Sloan <[EMAIL PROTECTED]>
Crossposted-To:
linux.redhat.misc,comp.os.linux.admin,comp.os.linux.help,comp.os.linux.misc,comp.os.linux.questions
Subject: Re: Apache and FTP question
Date: Sat, 26 May 2001 06:48:43 GMT
Lamar Thomas wrote:
> I just installed RH 7.1 and I did NOT configure the firewall during the
> install (I will go back and do that later after I get everything up and
> running. Besides, nothing is on this system but the Linux OS). Anyway,
> I am trying to get the Apache web server and the FTP server up and
> running. I went through the steps in RH's "Customization Guide" but I
> can not connect to either server. From my linux system I CAN pull up my
> web page but I can NOT access if from another system (i.e. from work).
> How do I get access from outside my system, and let everyone else have
> access too?
Are you only seeing the docs (static files)
when you are looking at localhost? Is httpd
actually running?
> I also can not connect to my FTP server. I get an "access denied"
> message. Any ideas? Thanks for any help.
You need to 1. enable ftp and 2. make sure hosts.allow allows it.
see /var/log/secure for more info -
cu
jjs
------------------------------
From: Lamar Thomas <[EMAIL PROTECTED]>
Crossposted-To:
linux.redhat.misc,comp.os.linux.admin,comp.os.linux.help,comp.os.linux.misc,comp.os.linux.questions
Subject: Re: Apache and FTP question
Date: Sat, 26 May 2001 07:03:36 GMT
J Sloan wrote:
> Lamar Thomas wrote:
>
> > I just installed RH 7.1 and I did NOT configure the firewall during the
> > install (I will go back and do that later after I get everything up and
> > running. Besides, nothing is on this system but the Linux OS). Anyway,
> > I am trying to get the Apache web server and the FTP server up and
> > running. I went through the steps in RH's "Customization Guide" but I
> > can not connect to either server. From my linux system I CAN pull up my
> > web page but I can NOT access if from another system (i.e. from work).
> > How do I get access from outside my system, and let everyone else have
> > access too?
>
> Are you only seeing the docs (static files)
> when you are looking at localhost? Is httpd
> actually running?
>
> > I also can not connect to my FTP server. I get an "access denied"
> > message. Any ideas? Thanks for any help.
>
> You need to 1. enable ftp and 2. make sure hosts.allow allows it.
>
> see /var/log/secure for more info -
>
> cu
>
> jjs
I can see the "Powered by RedHat" index page. I then copied my web page into
the /var/www/html directory with a new index page. The last command I ran
was "# service httpd restart" just like the book said.
Do you have an example of what hosts.allow would look like if someone had
access rights?
Thanks,
Lamar
------------------------------
** 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
******************************