Linux-Setup Digest #128, Volume #21 Sun, 29 Apr 01 04:13:08 EDT
Contents:
Re: Disabling reboot fsck forever (Simon Lemieux)
Changing the mouse type (was: Device Name For PS2 Mouse) (* Tong *)
Re: weird LILO prob- ("Glitch")
Re: Linux and Windows 2000 (natasha)
Re: RedHat 7.1 install hangs after selecting installation type (Leonzo Miller)
Re: Upgraded kernel and /boot/System.map errors ([EMAIL PROTECTED])
problem with kppp (jinp)
Re: Power Management in RH 7.1 ("Ric Steinberger")
help with configuring squid server (Hung Ngoc Lai)
Re: suck / suckxover / regex (Vilmos Soti)
Re: Upgraded kernel and /boot/System.map errors (Vilmos Soti)
Re: RedHat 7.1 install hangs after selecting installation type (Vilmos Soti)
ipchains test with nmap and iptables logging (HateLinux)
DMA Mode not working ("Jason Noble")
RH7.1 hangs with 2.4.4 (John Watson)
Re: RH7.1 Instal. can't write boot loader ("Eric en Jolanda")
----------------------------------------------------------------------------
From: Simon Lemieux <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Disabling reboot fsck forever
Date: Sun, 29 Apr 2001 02:38:45 GMT
> You mean "file" fastboot ? Yes, but you'll need root permissions. Lazy
> me I'd try to automate the creation of the file, though ;)
Ok thanks, simply needs
sudo touch fastboot
as soon as I begin devellopping...
And if the computer crashes during devellopment, I will try to run
/sbin/shutdown -rF now
as soon as I finish.
Thanks,
Simon
--
+--------------------------------+---------------------------+
| Simon Lemieux | http://666Mhz.myip.org/ |
| Email : [EMAIL PROTECTED] | Povray and OpenGL Gallery |
+--------------------------------+---------------------------+
------------------------------
From: * Tong * <[EMAIL PROTECTED]>
Subject: Changing the mouse type (was: Device Name For PS2 Mouse)
Date: 28 Apr 2001 23:50:48 -0300
J Hayward <[EMAIL PROTECTED]> writes:
> Rand Simberg wrote:
>
> > What is it called? (I just switched from serial to PS2, and need to
> > change the pointer in /dev). And where would I look something like
>
> ln -s /dev/psaux /dev/mouse
>
> will create the symlink you want.
Hi, I face the same situation (changing the mouse from serial to
PS2) and did the same thing (ln -s /dev/psaux /dev/mouse).
But after that my XF86Setup won't start any more (can't remember the
errors, didn't make sense to me... some communication was broken...)
This is under Debian. Previously /dev/mouse was pointing to /dev/ttyS0.
I went further to change the mouse setting in the
/etc/X11/XF86Config to the values from my other RedHat62 box. And it
still didn't work.
Took me over 4 hours trying to fix the damn mouse. Did get the gpm
working though... Any step by step recommendation or check points
(where are the mouse related files under debian)? thanks a lot!
Beside, Debian modprobe complains that my /etc/modules.conf is newer
than some cached value, how can I fix that?
thanks
--
Tong (remove underscore(s) to reply)
*niX Power Tools Project: http://xpt.sourceforge.net/
http://members.xoom.com/suntong001/
- All free contribution & collection
------------------------------
From: "Glitch" <[EMAIL PROTECTED]>
Subject: Re: weird LILO prob-
Date: Sat, 28 Apr 2001 23:03:20 -0400
In article <[EMAIL PROTECTED]>, "martin rogers"
<[EMAIL PROTECTED]> wrote:
> All,
>
> got a weird problem with lilo- after rebuilding my kernel, and copying
> the resulting
> bzImage to /boot (as bzImage.19mine), I added this stanza:
>
> image=/boot/bzImage.19mine
> label=19mine
> read-only
> root=/dev/hda7
>
>
> BTW, if I give the _vmlinux_ that my compile produced to lilo, it says
> that it's too big...
> anyone know why? Why didn't my compile produce a _vmlinuz_ file ? (I
> did make mrproper/
> dep/xconfig then make ; make modules ; make modules_install). Thx.
>
>
vmlinux is the uncompressed kernel. U don't want that one for obvious
reasons. Use the bzImage that is created
------------------------------
From: natasha <[EMAIL PROTECTED]>
Subject: Re: Linux and Windows 2000
Date: Sun, 29 Apr 2001 12:58:40 +1000
I have read various how-to's, help documents and emails from newsgroups
on installing Win2k and Linux on one PC. However I don't get far enough
to set up
LILO to dual boot since following installation of Linux I can't even get
the PC to
boot back into Win2k (installed first). (However I can boot into Linux
using the
boot floppy created during installation of Linux). Each OS is installed
on a 30G IDE drive.Win2k is on the Primary HDD - Linux on the Slave.
LILO has not been written to the MBR. Haven't got the lilo.conf file
handy ... however it appears to
agree with all that is written about it (and I don't think I'm even
getting to the stage
of using LILO). I think I'll be set if I can get Win2k to boot. Anyone
else come across this problem? Any suggestions?
Thanks
Natasha
Mark Wagnon wrote:
> Just an update to help others in the same situation.
>
> Apparently the instructions that I had posted from an earlier
> search weren't entirely correct. I was unable to accomplish my
> goal. Turning to another search, I discovered this site:
>
> http://www.enterprisedt.com/publications/dual_boot.html
>
> which details the whole procedure, and fixes the problem with the
> first 'dd' command I posted earlier. In minutes, I had a perfectly
> functioning system dual booting Linux with Win2k.
>
> Here are the steps that I used, borrowed from the author's page
> (and reformatted, because something bad happened during the copy
> and paste):
>
> 1. From Linux, copy the Linux boot sector from /boot to a file
> usingt he dd command. In the below, replace /dev/hda3 with
> your boot partition's location
>
> # dd if=/dev/hda3 of=/bootsect.lnx bs=512 count=1
>
> 2. Copy bootsect.lnx onto a floppy disk.
>
> If mcopy is available, this is easy:
>
> # mcopy /bootsect.lnx a:
>
> If mcopy is not available (e.g. a minimal install of Linux)
> you'll need to mount the floppy drive and then copy:
>
> # mount /dev/fd0 /mnt
> # cp /bootsect.lnx /mnt
> # umount /mnt
>
> 3. Boot W2K, log in as Administrator and copy
> bootsect.lnx from your floppy disk onto the root of your C:
> drive
>
> 4. Edit C:\BOOT.INI and add the following line at the
> end:C:\BOOTSECT.LNX="Linux"
>
> Make sure you double check your partitions that your working with.
> I'd check the website for more instruction before taking my word on
> it though. I emailed the resulting file from step one to myself
> instead of using a floppy because I didn't have one.
>
> Good Luck to all!
> --
> ���� Mark Wagnon
> [EMAIL PROTECTED]
> To respond to me directly, use the above address
> Don't forget to remove PleaseDon'tSpamMe
------------------------------
From: Leonzo Miller <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.install,linux.redhat
Subject: Re: RedHat 7.1 install hangs after selecting installation type
Date: Sat, 28 Apr 2001 23:04:11 -0400
What is the size of your swap space. It has to be a minimum of twice
the size of your memory.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Upgraded kernel and /boot/System.map errors
Date: Sun, 29 Apr 2001 03:47:03 GMT
I unzipped the source into my root account home directory, (the
README for 2.4.0 explicitly states you should not unpack the source in
the /usr/scr/linux directory, as libraries include some files here and
this action may mess the libraries up). then:
cd linux
make mrproper
make xconfig
(configure kernel)
make dep
make bzImage
then I copy the image to /boot/bzImage
I added an image= entry into my lilo.conf file so I can boot the new
kernel as well as my old kernel (which is located in /boot as well.)
then I run /sbin/lilo
I reboot, choose the new kernel image I just compiled, and I get the
/boot/System.map contains wrong version warning message.
Incidentially, when the APM daemon is being loaded, I get this error:
/lib/modules/2.4.0/module.dep not located
or something similar. I did not choose the module option for any of
the kernel config choices, unless one was m by default and I missed
it, which I don't think is the case.
>[EMAIL PROTECTED] wrote:
>>
>> I recently added and upgraded kernel to my systerm (2.4.0) When I
>> boot it, towards the end of startup, when various daemons are started,
>> there are warning messages similar to:
>>
>> Warning: /boot/System.map has wrong kernel version!
>>
>> I looked at System.map and it appears to be a kernel symbol table. I
>> can't quite figure out what it's for, and I don't remember any
>> mentions of this file in the kernel HOWTO. I'd appreciate any tips on
>> how to get rid of these error messages and why they appear.
>
>Exactly what steps did you take to compile and install the new kernel?
------------------------------
From: jinp <[EMAIL PROTECTED]>
Subject: problem with kppp
Date: Sat, 28 Apr 2001 23:43:00 -0400
Hello,
Just got RedHat 7.1 running, and I have a problem with kppp, dial out is
no problem, but sometimes it get disconnected, and the kppp will hang.
For RedHat 6.0 there will be a window pop up says "pppd died
unexpectedly", Is it a problem with KDE 2.1 new version or there is way
to get around it?
Thanks
jinp
------------------------------
From: "Ric Steinberger" <[EMAIL PROTECTED]>
Subject: Re: Power Management in RH 7.1
Date: Sat, 28 Apr 2001 20:53:22 -0700
Power management is working fine. xset dpms N_SECONDS works as advertised:
the monitor is powered off after N_SECONDS elapse. It's just that the
screensaver, as setup within GNOME no longer seems to automatically activate
it. arg, Red Hat, what did you do?
ric
"Ric Steinberger" <[EMAIL PROTECTED]> wrote in message
news:NTIG6.246$[EMAIL PROTECTED]...
> I guess I may not have installed power management in the kernel... Hmmm.
> This was an upgrade from RH 7.0, and I just assumed it would be there. I
> was never asked the question during the upgrade. Any idea what to do
now?
>
> ric
>
> "@imon" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Have you installed power management support in your kernel?
> >
> > Ric Steinberger wrote:
> >
> > > I've just upgraded from RH 7.0 to 7.1. After the upgrade, the power
> > > management of the monitor has stopped functioning. This function is
> enabled
> > > from the Screensaver submenu of the Gnome Desktop menu. The XF86
config
> > > files are fine, unchanged since before the upgrade. So, now, I see
the
> > > screensaver kick in, as expected, but the power management shutdown of
> > > monitor power never happens. Can anyone suggest some things to check?
> Many
> > > thanks!
> > >
> > > [Please CC me on replies to the group.]
> > >
> > > Ric Steinberger
> > > [EMAIL PROTECTED]
> >
> >
>
>
>
------------------------------
From: Hung Ngoc Lai <[EMAIL PROTECTED]>
Subject: help with configuring squid server
Date: 28 Apr 2001 23:56:13 GMT
Hi Everyone,
Please help me with this situation:
I have a small home network (network 172.16.1.0/24). This network
has 5 clients with IP addresses: 172.16.1.1-5. The network has
a Linux Gateway with internal IP address 172.16.1.254 and external
IP address 207.172.1.150. The linux gateway is running NAT
(aka masquerading) for internal network to connect to the Internet.
The linux gateway is running Redhat Linux with kernel 2.4.3 and
Netfilter (aka iptables). Everything is working.
Now I like to put a squid (proxy server) onto the network. The IP
address of the squid server is 172.16.1.253. The squid can access
the Internet. How can I configure squid server in such a way that
clients on the internal network, when they access the Internet, has
to go through the squid BUT WITHOUT HAVING TO CONFIGURING
THE WEB BROWSER (Netscape or Internet Explorer). I heard that
this method is called TRANSPARENT PROXYING. What do I need
to modify the rc.firewall script on the Linux Gateway for this to work?
I am running both kernel 2.4.3 on the squid server and the linux
gateway.
Please help.
David
[EMAIL PROTECTED]
------------------------------
Crossposted-To: comp.os.linux.misc
Subject: Re: suck / suckxover / regex
From: Vilmos Soti <[EMAIL PROTECTED]>
Date: Sun, 29 Apr 2001 04:05:57 GMT
David Nowak <[EMAIL PROTECTED]> writes:
> I am downloading news with suck. I use the suckxover file to filter
> messages according to their subject field. I know how to keep (or
> delete) messages such that their subject field satisfies a regular
> expression.
>
> How can I keep messages with a title containing the string 'Linux' BUT
> NOT the string 'Debian'? I guess it is not possible with a single
> regular expression as there is no negation in regular expression. Is
> there a way to do this with suck? (there should be).
You can create a perl function in suck and pass some fields (depends
on your nntp server) from the header. Then you filter whatever you
want. Again, the keyword is that this is not a single regex but a
perl function. Yes, you are right that you cannot do this in one
single regex. You can negate, but only characters (or a bunch of chars)
but not strings.
Try something like
($from, $subject, $etc...) = @_;
return 0 if $subject =~ /debian/i;
return 1 if $subject =~ /linux/i;
Vilmos
------------------------------
Subject: Re: Upgraded kernel and /boot/System.map errors
From: Vilmos Soti <[EMAIL PROTECTED]>
Date: Sun, 29 Apr 2001 04:21:49 GMT
[EMAIL PROTECTED] writes:
> I recently added and upgraded kernel to my systerm (2.4.0) When I
> boot it, towards the end of startup, when various daemons are started,
> there are warning messages similar to:
>
> Warning: /boot/System.map has wrong kernel version!
>
> I looked at System.map and it appears to be a kernel symbol table. I
> can't quite figure out what it's for, and I don't remember any
> mentions of this file in the kernel HOWTO. I'd appreciate any tips on
> how to get rid of these error messages and why they appear.
Yes, the System.map is the kernel's symbol table. You installed
a new kernel and the old symbol table (which was created for a
different kernel) obviously doesn't match. You can ignore the
error, or if it bothers you, then copy the System.map file from
the root of your kernel source after compiling to /boot/System.map.
Vilmos
------------------------------
Crossposted-To: linux.redhat.install,linux.redhat
Subject: Re: RedHat 7.1 install hangs after selecting installation type
From: Vilmos Soti <[EMAIL PROTECTED]>
Date: Sun, 29 Apr 2001 04:23:36 GMT
Leonzo Miller <[EMAIL PROTECTED]> writes:
> What is the size of your swap space. It has to be a minimum of twice
> the size of your memory.
Where did you get this info? You can certainly run Linux without swap.
The "twice the size of your memory" is just a generic rule which
satisfies most people. But it doesn't have to be at least that.
Vilmos
------------------------------
From: 2b@home (HateLinux)
Crossposted-To: comp.os.linux.security
Subject: ipchains test with nmap and iptables logging
Date: Sun, 29 Apr 2001 04:15:27 GMT
I have two boots, one with a 2.2.18 kernel and ipchains, and
one 2.4.2 kernel and iptables. As it is a stand-alone ppp-only
machine, I made my rules to not allow any syn/ack responses to people
trying to use my services. (At least I think I did)
my ipchains is like this:
/sbin/ipchains -F input
/sbin/ipchains -F output
/sbin/ipchains -A input -i ppp0 -p tcp -d 0/0 auth -y -l -j ACCEPT
#accept auth queries
/sbin/ipchains -A input -i ppp0 -p tcp -d 0/0 :1023 -y -l -j DENY
#deny all other attempts to use services
/sbin/ipchains -A input -i ppp0 -p tcp -d 0/0 31337 -y -l -j DENY
#block and log Back orifice attempts
/sbin/ipchains -A input -i ppp0 -p tcp -d 0/0 12345 -y -l -j DENY
#block and log Netbus attempts
My iptables:
/sbin/iptables -F INPUT
/sbin/iptables -F OUTPUT
/sbin/iptables -A INPUT -i ppp+ -p tcp --dport auth
--syn -j ACCEPT
#accept auth queries
/sbin/iptables -A INPUT -i ppp+ -p tcp --dport :1023
--syn -j DROP
#deny all other attempts to use services
/sbin/iptables -A INPUT -i ppp+ -p tcp --dport 31337
--syn -j DROP
#Back orifice log attempts
/sbin/iptables -A INPUT -i ppp+ -p tcp --dport 12345
--syn -j DROP
#Netbus log attempts
...........................................
OK , my queries:
a) How do I log any attempts to use my services under iptables ?. The
docs were not very helpful . In ipchains it's just the "-l" switch
b) I tried to port-scan myself by dialing up my ISP, getting my IP,
and "nmap"ing myself. But it said all my ports were open. I then tried
to telnet to my_IP port 25, using the same dynamic IP, and managed to
send mail to myself. This under iptables and ipchains rules above.
I then went to www.hackerwacker.com , and they said my
services were closed. (only auth open, which is what I intended). Why
do I get different results from nmapping myself through my ISP, and
letting hackerwacker nmap me ?
TIA
------------------------------
From: "Jason Noble" <[EMAIL PROTECTED]>
Subject: DMA Mode not working
Date: Sun, 29 Apr 2001 05:24:26 GMT
I'm running Red Hat Linux 6.1 on an Asus P5A-B (ALi Aladdin Chipset) When
it boots, it says DMA mode for my IDEs is "disabled (BIOS)" but it's not.
DMA is turned on and works fine in Win. Is there something I can do to get
DMA mode to work?
-Jason
------------------------------
From: John Watson <[EMAIL PROTECTED]>
Subject: RH7.1 hangs with 2.4.4
Date: Sun, 29 Apr 2001 01:28:19 -0500
I upgraded from 2.2.19 and noticed a horrible problem. If I do a
shutdown and my hardrive has went to sleep it hangs on the shutdown file
systems part. I never had this problem until 2.4.x. The command I use
is hdparm -S 60 /dev/hdb and I am wondering if I need to turn something
on in the kernel now.
If anyone can help I would be much appreciative.
Thanks.
------------------------------
From: "Eric en Jolanda" <[EMAIL PROTECTED]>
Subject: Re: RH7.1 Instal. can't write boot loader
Date: Sun, 29 Apr 2001 09:22:55 +0200
> Now I tried using the rescue option without the /dev/hda3, then actually
> anaconda passed on to saying:
You need the root=/dev/hda3 option.
If you have access to another linux machine, make a bootfloppy there.
(for RH systems, just run `mkbootdisk <kernel-version>`)
And boot from that using "linux root=/dev/hda3"
(Perhaps try that from the RH CD, leave the rescue keyword?)
> System is mounted under /mnt/sysimage
>
> after which I get a prompt (sh-2.04#)
>
> Here I can make an ls -la and have a different / than normal. Under the
> /mnt/sysimage appears to be my normal / as it said. I do have a
Yes, it uses the rescue image of / on the CD.
> /mnt/sysimage/etc/lilo.conf
>
> file there which is ok, but when I do the
>
> /mnt/sysimage/sbin/lilo
>
> it complains that
>
> /etc/lil.conf does not exist, of course.
>
> How do I get around this ????
/mnt/sysimage/sbin/lilo -C /mnt/sysimage/etc/lilo.conf
But now it will probably complain that /dev/hda doesn't exist.
And other inconsistencies.
The easiest way is by mounting /dev/hda3 at /
This must be done at boottime
> It appears that my system is in some sort of installation mode, with
> this directory structure. Does this mean that the installation did not
> finish correctly, and that is was not just the lilo that missed to be
> installed, or is this actullay due to starting up with the rescue mode ?
The latter I presume.
I cannot be 100% sure that the install completed, but making a bootdisk
during install, usually is the last step. So I suppose the install finished.
Eric
------------------------------
** 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
******************************