Linux-Misc Digest #391, Volume #27 Sun, 18 Mar 01 14:13:04 EST
Contents:
Re: Text files -- Many into One -- How?? ("James E. Bradley")
Re: Text files -- Many into One -- How?? ("James E. Bradley")
Re: Text files -- Many into One -- How?? (Jan Schaumann)
Diskspanning and fault tolerance (Anders Widman)
Re: Cannot uninstall RPM package: get memory alloc NULL (Wallace Judd)
Re: What is the [] in ps -ef output (John Thompson)
Re: PLPtools compile errors (again) (Raj Rijhwani)
ALSA utils compile help... ("Kaushik Raghavan")
Re: Free e-mail account question. ("Mordak")
Re: KDE and Gnome windows don't fit my screen (new to Linux) (Anselm Hoffmeister)
Re: ALSA utils compile help... (E J)
Re: error in total memory? (Robert Heller)
Re: Visioneer 4400 USB Scanner (E J)
Re: What is the [] in ps -ef output ("Tauno Voipio")
Re: FTP and TELNET problems in Mandrake 7.2 (mike)
help with playing StarCraft games behind a linux firewall (Hung Ngoc Lai)
Startup Linux is looping ("Hans Nijenhuis")
Stripping lines from text file?? ("James E. Bradley")
Problem of 2.4.2 kernel? (OrangeDino)
Re: Stripping lines from text file?? (Michael Heiming)
----------------------------------------------------------------------------
From: "James E. Bradley" <[EMAIL PROTECTED]>
Subject: Re: Text files -- Many into One -- How??
Date: Sun, 18 Mar 2001 09:41:46 -0600
Sean wrote:
>
> Try the cat command:
>
> cat file1.txt file2.txt file3.txt >bigfile.txt
>
There are only a couple of hundred files that I want to copy into one
file. Is there a solution that doesn't involve having to type out each
name?
------------------------------
From: "James E. Bradley" <[EMAIL PROTECTED]>
Subject: Re: Text files -- Many into One -- How??
Date: Sun, 18 Mar 2001 09:43:44 -0600
>
> man cat. Buy a book on it.
>
Since I was using the COPY command in DOS, I assumed (incorrectly) that
the cp command in Linux would have comparible functions.
------------------------------
From: [EMAIL PROTECTED] (Jan Schaumann)
Subject: Re: Text files -- Many into One -- How??
Date: Sun, 18 Mar 2001 15:22:31 GMT
* James E. Bradley wrote:
> Sean wrote:
> >
> > Try the cat command:
> >
> > cat file1.txt file2.txt file3.txt >bigfile.txt
> >
>
> There are only a couple of hundred files that I want to copy into one
> file. Is there a solution that doesn't involve having to type out each
> name?
cat * > reallyBigFile
cat /path/to/the/directory/they/are/in/* > reallyBigFile
cat some*pattern*.txt > reallyBigFile
They don't have the asteriks in DOS??
-Jan
--
Jan Schaumann <http://www.netmeister.org>
We are Microsoft. Unix is irrelevant. Openness is futile. Prepare
to be assimilated.
------------------------------
From: Anders Widman <[EMAIL PROTECTED]>
Subject: Diskspanning and fault tolerance
Date: Sun, 18 Mar 2001 16:32:10 +0100
I am looking for a way to combine several disks, preferably of different
sizes to one logical drive, kind of like disk spanning. This array of
disks must have the possibility to be expanded with new disks the space
wihtout loosing any data already stored.
One problem is that I need fault tolerace, so that any disk kan de
replaced. Mirroring is not an option as it is to expensive. There should
be some form of RAID 3 or 4 that can re rebuilt when adding extra disks.
Transfer rates are not very important.
//Anders
------------------------------
From: Wallace Judd <[EMAIL PROTECTED]>
Subject: Re: Cannot uninstall RPM package: get memory alloc NULL
Crossposted-To: comp.os.linux
Reply-To: [EMAIL PROTECTED]
Date: Sun, 18 Mar 2001 15:47:28 GMT
tome anticic wrote:
> Hi!
>
> Any help would be appreciated with the following problem:
>
> I try to uninstall a package using
>
> rpm -e package
>
> But after a while I get "memory alloc returned NULL" wiuth the package
> in place.
> Can anybody tell me how to solve this problem?
>
> --
>
> Tome Anticic
> Rudjer Boskovic Institute
> Department of Experimental Physics
> Bijenicka 54
> 10000 Zagreb
> CROATIA
> Phone: 385-1-4561-028
> Fax: 385-1-4680-239
>
>
>
You might try rpm --allmatches package
------------------------------
From: John Thompson <[EMAIL PROTECTED]>
Subject: Re: What is the [] in ps -ef output
Date: Sun, 18 Mar 2001 07:28:49 -0600
Jeff B wrote:
> Anyone have an idea of what a process name enclosed in [] (i.e. square
> brackets) means on the output of a ps -ef command.
> O/S is RetHat 6.2 - command is: /bin/ps -ef
>
> As in:
> root 2 1 0 Feb25 ? 00:00:00 [kflushd]
> root 3 1 0 Feb25 ? 00:00:01 [kupdate]
> root 4 1 0 Feb25 ? 00:00:00 [kpiod]
> root 5 1 0 Feb25 ? 00:00:00 [kswapd]
> root 6 1 0 Feb25 ? 00:00:00 [mdrecoveryd]
>
> Answer is worth a couple of bonus points in my Linux class for the
> first correct response.
> Any help will be greatly appreciated...
How 'bout this (from "man ps"):
Programs swapped out to disk will be shown without command
line arguments, and unless the c option is given, in
brackets.
Perhaps your instructor wants you to familiarize yourself with
the man pages...
--
-John ([EMAIL PROTECTED])
------------------------------
From: [EMAIL PROTECTED] (Raj Rijhwani)
Crossposted-To: uk.comp.os.linux
Subject: Re: PLPtools compile errors (again)
Date: Sun, 18 Mar 2001 15:25:13 GMT
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>
[EMAIL PROTECTED] "Keith Matthews" writes:
> Raj Rijhwani wrote:
> > I have an odd problem - or at least odd as far as I can see.
> > PLPtools refuses to compile, citing an undefined symbol: socklet_t.
> > It's quite correct - there's no reference to socklen_t in any of the
> > system includes. The reason this is odd is that I have, as far as
> > I am aware, loaded all the includes and indeed everything that
> > constitutes all the necessities of a full development system.
> > (It was Slackware 3.5 which loaded a 2.0.3x kernel as a default,
> > but now runs 2.2.18.)
> 3.5 was a libc5 system, have you upgraded libc ?
Good point. No, I haven't.
At the risk of looking stupid (nothing new there) is that one of PLPtools'
dependencies? I don't recall it being mentioned anywhere.
--
Raj Rijhwani (umtsb5/16) | This is the voice of the Mysterons...
[EMAIL PROTECTED] | ... We know that you can hear us Earthmen
http://www.rijhwani.org/raj/ | "Lieutenant Green: Launch all Angels!"
------------------------------
From: "Kaushik Raghavan" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: ALSA utils compile help...
Date: Sun, 18 Mar 2001 16:39:07 GMT
While running "./configure" before compiling ALSA utils package, I get an
error saying that "lex" was not found. How do I fix this?
regards
Kaushik
------------------------------
From: "Mordak" <[EMAIL PROTECTED]>
Subject: Re: Free e-mail account question.
Date: Sun, 18 Mar 2001 16:50:44 GMT
That sounds excellent, I will download it and give it a try.
Thanks,
Mordak
<[EMAIL PROTECTED]> wrote in message
news:vhVs6.3288$[EMAIL PROTECTED]...
> Just in followup about Putty... (Ie. ssh for windows)
>
> The really nice thing about Putty in a situation such as
> yours is that it is small enough to keep on a floppy, and
> furthermore, it does not need to be installed anywhere. No
> shared libs (dll) etc. so you can run it off of that same
> floppy. Plus, it has a *very* good xterm emulation, as far
> as I have been able to tell... Better then some other
> commercial ssh clients for win that I have used...
>
> Kris
------------------------------
From: [EMAIL PROTECTED] (Anselm Hoffmeister)
Subject: Re: KDE and Gnome windows don't fit my screen (new to Linux)
Date: Sun, 18 Mar 2001 09:50:14 GMT
On Sun, 11 Mar 2001 20:30:08 -0000, Dan <[EMAIL PROTECTED]> wrote:
> I really hope someone can help me with this one. I just bought a
>used laptop (Toshiba 660CDT) and decided to try out Linux for the first
On my used laptop, I can only run 640*480. So there can not be more
"physical pixels" on my screen ( perhaps you can even go up to
1024*768, depending on you laptop)
>how to change screen resolution either to try that out. I'm really
There is something like a virtual desktop size, so that on a 640*480,
you can have a size of e.g. 1024*768 and scroll about that virtual
screen by moving your mouse pointer to the borders of your visible
desktop.
Read "man XF86.conf" or so (depends on your installation) or look for
this file in /etc or /etc/X11R6 and scan in for a line like
VirtualResolution "640x480" or VirtualDesktop "640x460" or so.
> Thanks!
Hope it helps
Anselm
------------------------------
From: E J <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: ALSA utils compile help...
Date: Sun, 18 Mar 2001 17:20:14 GMT
Just general configure advice.
$ cat README | more #Look at the README file
$ ./configure --help # look at the options for configure
$ cat configure.log | more # see what configure is complaining about
Kaushik Raghavan wrote:
> While running "./configure" before compiling ALSA utils package, I get an
> error saying that "lex" was not found. How do I fix this?
>
> regards
> Kaushik
------------------------------
From: Robert Heller <[EMAIL PROTECTED]>
Subject: Re: error in total memory?
Date: 18 Mar 2001 17:39:18 GMT
Robert Kenny <[EMAIL PROTECTED]>,
In a message on Sun, 18 Mar 2001 22:17:42 +0800, wrote :
RK> I've recently added a second 128Mb to my dual-boot Redhat 6.2/Win 98
RK> machine, and the BIOS's POST reports 262144K fine, as does the memtest86
RK> program when I boot it from a floppy [though it consistently locks up
RK> on test #6, and took >24hrs to run all other tests]. However,
RK> /proc/meminfo gives the following.
RK>
RK> total: used: free: shared: buffers: cached:
RK> Mem: 263819264 129232896 134586368 85909504 11259904 54804480
RK> Swap: 73986048 0 73986048
RK> MemTotal: 257636 kB
RK> MemFree: 131432 kB
RK> MemShared: 83896 kB
RK> Buffers: 10996 kB
RK> Cached: 53520 kB
RK> BigTotal: 0 kB
RK> BigFree: 0 kB
RK> SwapTotal: 72252 kB
RK> SwapFree: 72252 kB
RK>
RK> Where is my other 4508 kB? It doesn't seem much in Linux, but in
RK> Win[lose?]98, where reports on total memory are inconsistent, something
RK> is eating into my 640K of total conventional memory (and M$ Diagnostics
RK> says
RK> thats not where the ROM is). There are 2 SCSI HDs: LILO and Linux on
RK> sda, and Win98 on sdb. Loading Win98 into the GUI via floppy and via
RK> LILO give different [sets of inconsistent] results for total memory, as
RK> does
RK> loading "Command Prompt Only", and my (Win98) virus scanner says Win98's
RK> drive and memory is clean. Maybe:
Because you have *scsi* disks, your system needs an initial RAM disk to
hold the SCSI driver module(s). I beleive the 4meg set aside for the
RAM disk is *supposed* be be recovered, but it is possible it is not
being recovered. If you *really* feel you need this 'missing' 4meg, you
could re-compiler the kernel with your SCSI driver(s) compiled into the
kernel and not use the RAM disk.
RK>
RK> 1) I have an undetectable virus on sdb (fault of virus scanner, doesn't
RK> explain linux memory though...)
RK> 2) I have a virus in the LILO boot sector. My virus scanner doesn't
RK> seem to scan this, or indeed any non-DOS disks - what would? /sbin/lilo
RK> -q -v still gives correct info.
RK> 3) faulty DIMMs, or incompatible with m/b & BIOS (ASUS P2B-LS AGP and
RK> Award v4.51PG), but still detectable/testable by memtest.
RK> 4) Some harddisk- or SCSI-related memory is allocated by the BIOS(es),
RK> size and location somehow dependent on which drives are accessed at
RK> boot. I've vaguely heard of things like this, but have no idea how to
RK> "fix" it,
RK> if possible.
RK>
RK> Lots of things I haven't tried testing, and various data not included
RK> here, I don't really know where to start. I don't know so much about
RK> Linux, LILO or memtest; any suggestions please!
RK>
RK>
RK> dmesg output:
RK>
RK> Linux version 2.2.14-12 ([EMAIL PROTECTED]) (gcc version
RK> egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 Tue Apr 25 12:31:52
RK> EDT 2000
RK> Detected 551255157 Hz processor.
RK> Console: colour VGA+ 80x25
RK> Calibrating delay loop... 550.50 BogoMIPS
RK> Memory: 257144k/262080k available (1080k kernel code, 412k reserved,
RK> 2952k data, 64k init, 0k bigmem)
RK> Dentry hash table entries: 262144 (order 9, 2048k)
RK> Buffer cache hash table entries: 262144 (order 8, 1024k)
RK> Page cache hash table entries: 65536 (order 6, 256k)
RK> VFS: Diskquotas version dquot_6.4.0 initialized
RK> Pentium-III serial number disabled.
RK> CPU: Intel Pentium III (Katmai) stepping 03
RK> Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
RK> Checking 'hlt' instruction... OK.
RK> Checking for popad bug... OK.
RK> POSIX conformance testing by UNIFIX
RK> mtrr: v1.35a (19990819) Richard Gooch ([EMAIL PROTECTED])
RK> PCI: PCI BIOS revision 2.10 entry at 0xf0720
RK> PCI: Using configuration type 1
RK> PCI: Probing PCI hardware
RK> Linux NET4.0 for Linux 2.2
RK> Based upon Swansea University Computer Society NET3.039
RK> NET4: Unix domain sockets 1.0 for Linux NET4.0.
RK> NET4: Linux TCP/IP 1.0 for NET4.0
RK> IP Protocols: ICMP, UDP, TCP, IGMP
RK> TCP: Hash tables configured (ehash 262144 bhash 65536)
RK> Initializing RT netlink socket
RK> Starting kswapd v 1.5
RK> Detected PS/2 Mouse Port.
RK> Serial driver version 4.27 with MANY_PORTS MULTIPORT SHARE_IRQ enabled
RK> ttyS00 at 0x03f8 (irq = 4) is a 16550A
RK> ttyS01 at 0x02f8 (irq = 3) is a 16550A
RK> pty: 256 Unix98 ptys configured
RK> apm: BIOS version 1.2 Flags 0x03 (Driver version 1.9)
RK> Real Time Clock Driver v1.09
RK> RAM disk driver initialized: 16 RAM disks of 4096K size
RK> PIIX4: IDE controller on PCI bus 00 dev 21
RK> PIIX4: not 100% native mode: will probe irqs later
RK> ide0: BM-DMA at 0xd800-0xd807, BIOS settings: hda:DMA, hdb:pio
RK> hda: CREATIVEDVD-ROM DVD2240E 09/27/97, ATAPI CDROM drive
RK> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
RK> hda: ATAPI 24X DVD-ROM drive, 256kB Cache
RK> Uniform CDROM driver Revision: 2.56
RK> Floppy drive(s): fd0 is 1.44M
RK> FDC 0 is a post-1991 82077
RK> md driver 0.90.0 MAX_MD_DEVS=256, MAX_REAL=12
RK> raid5: measuring checksumming speed
RK> raid5: MMX detected, trying high-speed MMX checksum routines
RK> pII_mmx : 1225.677 MB/sec
RK> p5_mmx : 1287.399 MB/sec
RK> 8regs : 946.023 MB/sec
RK> 32regs : 484.632 MB/sec
RK> using fastest function: p5_mmx (1287.399 MB/sec)
RK> scsi : 0 hosts.
RK> scsi : detected total.
RK> md.c: sizeof(mdp_super_t) = 4096
RK> Partition check:
RK> RAMDISK: Compressed image found at block 0
RK> autodetecting RAID arrays
RK> autorun ...
RK> ... autorun DONE.
RK> EXT2-fs warning: checktime reached, running e2fsck is recommended
RK> VFS: Mounted root (ext2 filesystem).
RK> (scsi0) <Adaptec AIC-7890/1 Ultra2 SCSI host adapter> found at PCI 0/6/0
RK> (scsi0) Wide Channel, SCSI ID=7, 32/255 SCBs
RK> (scsi0) Downloading sequencer code... 396 instructions downloaded
RK> enable_irq() unbalanced from d001b8e2
RK> scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.28/3.2.4
RK> <Adaptec AIC-7890/1 Ultra2 SCSI host adapter>
RK> scsi : 1 host.
RK> (scsi0:0:0:0) Synchronous at 20.0 Mbyte/sec, offset 15.
RK> Vendor: QUANTUM Model: FIREBALL ST4.3S Rev: 0F0C
RK> Type: Direct-Access ANSI SCSI revision: 02
RK> Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
RK> (scsi0:0:1:0) Synchronous at 40.0 Mbyte/sec, offset 15.
RK> Vendor: IBM Model: DDRS-39130D Rev: DC1B
RK> Type: Direct-Access ANSI SCSI revision: 02
RK> Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
RK> Vendor: HP Model: C6270A Rev: 3846
RK> Type: Processor ANSI SCSI revision: 02
RK> Vendor: YAMAHA Model: CRW4260 Rev: 1.0q
RK> Type: CD-ROM ANSI SCSI revision: 02
RK> Detected scsi CD-ROM sr0 at scsi0, channel 0, id 6, lun 0
RK> sr0: scsi3-mmc drive: 6x/6x writer cd/rw xa/form2 cdda tray
RK> SCSI device sda: hdwr sector= 512 bytes. Sectors= 8471232 [4136 MB] [4.1
RK> GB]
RK> sda: sda1 sda2 < sda5 sda6 >
RK> SCSI device sdb: hdwr sector= 512 bytes. Sectors= 17850000 [8715 MB]
RK> [8.7 GB]
RK> sdb: sdb1
RK> autodetecting RAID arrays
RK> autorun ...
RK> ... autorun DONE.
RK> VFS: Mounted root (ext2 filesystem) readonly.
RK> change_root: old root has d_count=1
RK> Trying to unmount old root ... okay
RK> Freeing unused kernel memory: 64k freed
RK> Adding Swap: 72252k swap-space (priority -1)
RK> Creative SBLive! at 0xb800 on irq 10
RK> id: 0x24 io: 0x210 eth0: Intel EtherExpress Pro/10 ISA at 0x210,
RK> 00:aa:00:a3:b0:16, IRQ 5, 10BaseT.
RK> eth0: set Rx mode to 1 address.
RK> eth0: set Rx mode to 1 address.
RK> eth0: set Rx mode to 1 address.
RK> CSLIP: code copyright 1989 Regents of the University of California
RK> PPP: version 2.3.7 (demand dialling)
RK> PPP line discipline registered.
RK> VFS: Disk change detected on device ide0(3,0)
RK> VFS: Disk change detected on device sr(11,0)
RK> VFS: Disk change detected on device ide0(3,0)
RK> VFS: Disk change detected on device ide0(3,0)
RK> VFS: Disk change detected on device ide0(3,0)
RK> VFS: Disk change detected on device ide0(3,0)
RK> VFS: Disk change detected on device ide0(3,0)
RK> VFS: Disk change detected on device ide0(3,0)
RK> VFS: Disk change detected on device ide0(3,0)
RK> VFS: Disk change detected on device ide0(3,0)
RK> VFS: Disk change detected on device ide0(3,0)
RK> VFS: Disk change detected on device ide0(3,0)
RK>
--
\/
Robert Heller ||InterNet: [EMAIL PROTECTED]
http://vis-www.cs.umass.edu/~heller || [EMAIL PROTECTED]
http://www.deepsoft.com /\FidoNet: 1:321/153
------------------------------
From: E J <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: Visioneer 4400 USB Scanner
Date: Sun, 18 Mar 2001 17:45:58 GMT
Doesn't look good. A big MAYBE. See
http://www.buzzard.org.uk/jonathan/scanners.html
I guess you should try the PRIMAX driver and see if it will work.
Young4ert wrote:
> I just purchased a Visioneer 4400 USB scanner from the local Staples for an
> incredible price (~$15 after a combined of $65 rebates). Unfortunately,
> when I checked http://www.mostang.com/sane and learnt that such a scanner
> is not listed under the "Supported Scanners" section and therefore is not
> supported or usable under Linux OS.
>
> The question I would like to ask is if anyone knows of such scanner is
> supported under Linux OS through other drivers, instead of the one provided
> by the SANE?
>
> TIA.
------------------------------
From: "Tauno Voipio" <[EMAIL PROTECTED]>
Subject: Re: What is the [] in ps -ef output
Date: Sun, 18 Mar 2001 18:10:56 GMT
"Jeff B" <[EMAIL PROTECTED]> wrote in message
news:3ab38d39.584150686@news-server...
> Anyone have an idea of what a process name enclosed in [] (i.e. square
> brackets) means on the output of a ps -ef command.
> O/S is RetHat 6.2 - command is: /bin/ps -ef
>
> As in:
> root 2 1 0 Feb25 ? 00:00:00 [kflushd]
> root 3 1 0 Feb25 ? 00:00:01 [kupdate]
> root 4 1 0 Feb25 ? 00:00:00 [kpiod]
> root 5 1 0 Feb25 ? 00:00:00 [kswapd]
> root 6 1 0 Feb25 ? 00:00:00 [mdrecoveryd]
>
> Answer is worth a couple of bonus points in my Linux class for the
> first correct response.
> Any help will be greatly appreciated...
Those things are Linux kernel threads - kind of semi-processes. They are
scheduled and dispatched just like any other processes, but they are part of
the kernel and they live in the kernel address space and they do not have
memory of their own, like ordinary processes do.
Tauno Voipio
tauno voipio @ iki fi
------------------------------
From: mike <[EMAIL PROTECTED]>
Subject: Re: FTP and TELNET problems in Mandrake 7.2
Date: Sun, 18 Mar 2001 13:10:17 -0500
Hi,
I just found out the the FTP function is actually working, it
just takes a few minutes to get a login prompt. Any ideas
why so long? It is probably searching for something
Thanks
Mike
------------------------------
From: Hung Ngoc Lai <[EMAIL PROTECTED]>
Subject: help with playing StarCraft games behind a linux firewall
Date: 18 Mar 2001 18:29:31 GMT
Hi Everyone,
I am running redhat 7 with kernel 2.4.2 on my home network. This
linux has 2 NICs is doing NAT for my Windows machines sitting
behind the linux box. I would like to be able to play the StarCraft
game on my Microsoft Windows machine. What do I need to
modify the rc.firewall script rule set for this to work? I understand
that in kernel 2.2.x you have to run the loose UDP but I am running
kernel 2.4.2 now. Please help....
Here is my rc.firewall script
#********************
#!/bin/bash
#
# This is a sample firewall for ip_tables, the tool for doing firewalling
# and masquerading under the 2.3.x/2.4.x series of kernels.
#
# Be warned, this is a very restrictive set of firewall rules (and they
# should be, for proper security). Anything that you do not _specifically_
# allow is logged and dropped into /dev/null, so if you're wondering why
# something isn't working, check /var/log/messages.
#
# This is about as close as you get to a 'secure' firewall. It's nasty,
# it's harsh, and it will make your machine nearly invisible to the rest
# of the internet world. Have fun.
#
# To run this script you must 'chmod 700 iptables-script' and then execute
# it. To stop it from running, run 'iptables -F'
#Point this to your copy of ip_tables. This step must be done to ensure
#that iptables is loaded properly.
IPT="/sbin/iptables"
#Load the module.
modprobe ip_tables
#Enable IP Forwarding on the Linux box. This step ensures that NAT will
#be handled properly.
$IPT -P FORWARD ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
#Flush old rules, delete the firewall chain if it exists
$IPT -F
$IPT -F -t nat
$IPT -X firewall
#Setup Masquerading. Change the IP to your internal network and uncomment
#this in order to enable it.
$IPT -A POSTROUTING -t nat -s 172.16.1.0/24 -j MASQUERADE
#Set up the firewall chain
$IPT -N firewall
$IPT -A firewall -j LOG --log-level info --log-prefix "Firewall:"
$IPT -A firewall -j DROP
#Accept ourselves
$IPT -A INPUT -s 127.0.0.1/32 -d 127.0.0.1/32 -j ACCEPT
#If you're using IP Masquerading, change this IP to whatever your internal
#IP addres is and uncomment it
#$IPT -A INPUT -s 172.16.1.0/24 -d 0/0 -j ACCEPT
#Accept DNS, 'cause it's warm and friendly
$IPT -A INPUT -p udp --source-port 53 -j ACCEPT
$IPT -A INPUT -p tcp --source-port 113 -j ACCEPT
$IPT -A INPUT -p tcp --destination-port 113 -j ACCEPT
#Allow ftp to send data back and forth.
$IPT -A INPUT -p tcp ! --syn --source-port 20 --destination-port 1024:65535 -j ACC
EPT
#These rules block two particular types of "malformed" packets. Nmap,
#a popular and powerful port scanner, uses these types of packets to get through
#ordinary packet filtering routers and some "non-stateful" firewalls.
# Block XMAS packets
iptables -A INPUT -p tcp --tcp-flags ALL ALL -j DROP
iptables -A FORWARD -p tcp --tcp-flags ALL ALL -j DROP
# Block NULL packets
iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP
iptables -A FORWARD -p tcp --tcp-flags ALL NONE -j DROP
#Accept SSH. Duh.
$IPT -A INPUT -p tcp --destination-port 22 -j ACCEPT
#Send everything else ot the firewall.
$IPT -A INPUT -p icmp -j firewall
$IPT -A INPUT -p tcp --syn -j firewall
$IPT -A INPUT -p udp -j firewall
#*******************
------------------------------
From: "Hans Nijenhuis" <[EMAIL PROTECTED]>
Subject: Startup Linux is looping
Date: Sun, 18 Mar 2001 19:03:56 +0100
Hello,
Just installed Corel Linux Debian on my Pentium III system/500 mhz/ Ram 128/
HD1 12,7 GB/ HD2 15 GB/ DVDRom/ CDWriter etc.
It worked perfectly. I chose for the possibility to install it in the
DOS/Windows partition, shown as a directory in Windows98 SE called CDL,
space 1.5 GB.
To start it in the DOS prompt with a batchfile as appropriate for this
release. Installed WordPerfect8 for Linux. Worked well either.
Untill I changed the displaycolors in the Control Panel: from 256 colors to
16 mill. colors. A screen with black&white squares and colored bars showed
up and I accepted it. Then the display turned black.
Starting the system up again Linux loaded the resident programs as usual
until the display shows:
"starting kde displaymanager: kdm" and "Corel Linux login:". The moment it
went to the graphic interface regularly.
>From this moment the display is flickering up and off and the machine seems
to try to start up the system, wich never happens.
My questions:
1. What has gone wrong?
2. What can I do to solve the problem?
3. If I re-install Linux does it recognize the partition CDL or does it make
a second CDL partition?
(When I tried it seemed that the program only saw the diskspace used by
Windows; I don't want to let it use another 1.5 GB for Linux, so I stopped)
Thanks a lot for advise,
Hans Nijenhuis ([EMAIL PROTECTED])
------------------------------
From: "James E. Bradley" <[EMAIL PROTECTED]>
Subject: Stripping lines from text file??
Date: Sun, 18 Mar 2001 13:20:43 -0600
I have combined a bunch of old email messages that I want to save, but
don't want to sort through into a single text file. I'd like to strip
out all of the header lines except the From:, Subject:, and Date:. I can
use grep to show all of the lines that have that text, but I'd like to
show all of the lines that don't have the X-DateReceived: ...,
X-Auth-No:, Return-Path: ... etc.
Is there a simple way to do this?
------------------------------
From: OrangeDino <[EMAIL PROTECTED]>
Subject: Problem of 2.4.2 kernel?
Date: Mon, 19 Mar 2001 02:13:21 +0800
I have compiled and run my linux box with the 2.4.2 kernel for some days
but I find that I cannot read the long file name in cdr burnt under
Windoz envirnoment. It work under the 2.2.x kernel which I used before.
Then I try to re-compile the 2.4.2 kernel to solve this.
As I re-compile, it cannot "make bzImage" even I use the kernel
configuration of the one I am using.
Would this be something wrong with some software in my linux box dealing
with "make bzImage"?
And also how to solve the problem of long file name of cdr?
Thanks for your kindly concern!
------------------------------
Date: Sun, 18 Mar 2001 20:05:54 +0100
From: Michael Heiming <[EMAIL PROTECTED]>
Subject: Re: Stripping lines from text file??
"James E. Bradley" wrote:
>
> I have combined a bunch of old email messages that I want to save, but
> don't want to sort through into a single text file. I'd like to strip
> out all of the header lines except the From:, Subject:, and Date:. I can
> use grep to show all of the lines that have that text, but I'd like to
> show all of the lines that don't have the X-DateReceived: ...,
> X-Auth-No:, Return-Path: ... etc.
>
> Is there a simple way to do this?
Yes, type
man grep
and check the -v option
Michael Heiming
------------------------------
** 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
******************************