Linux-Misc Digest #995, Volume #24               Fri, 30 Jun 00 04:13:02 EDT

Contents:
  Re: content filtering (Homer Jay)
  Re: Need a small C program (Paul D. Boyle)
  Command or piped commands to show directory size... (Hendrix)
  Re: TurboLinux Installation ERRORS!!! Help!  maybe partitioning problems ("Andre 
Liem")
  Re: Command or piped commands to show directory size... (Osugi Sakae)
  Re: kernel panic (Aravind Sadagopan)
  serial port source sample needed (Ingo Ciechowski)
  Re: kernel panic ("michael.fengler")
  Re: Security problem (Miguel)
  ipchains and icq ([EMAIL PROTECTED])
  Re: Command or piped commands to show directory size... ("Quiney, Philip 
[HAL02:HH00:EXCH]")
  Re: Need clarification:  what really is 'MBR' and what is 'BOOT SECTOR'? (Jimmy 
Navarro)
  Re: -- VFS: Unable to mount root --    Help! (Eric)
  Re: Write error in swap file ("Main News")
  help with xemacs setup ([EMAIL PROTECTED])
  Re: OpenBSD/FreeBSD/NetBSD/Linux (Richard Steiner)
  Re: kernel panic ("David ..")

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

From: Homer Jay <[EMAIL PROTECTED]>
Subject: Re: content filtering
Date: Fri, 30 Jun 2000 05:56:23 GMT

In article <8jh7bq$g6u$[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> Are there any porn site list over the web
> so that I can do content filtering on my firewall, CVP server or proxy?

Yep, there's lots of good info at:
http://www.freespeech.com


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: [EMAIL PROTECTED] (Paul D. Boyle)
Crossposted-To: 
comp.os.linux,comp.os.linux.help,comp.os.linux.development.apps,comp.os.linux.networking
Subject: Re: Need a small C program
Date: 28 Jun 2000 20:33:37 GMT

mike burrell ([EMAIL PROTECTED]) wrote:
: In comp.os.linux.help Gerald J. Puhl <[EMAIL PROTECTED]> wrote:
: > I am in need of a C program Windows 95/NT4.0 that will simply open
: > socket and connect to another machine on a port number.

: just a thought: ask in a windows newsgroup?

You must be one of those comp.lang.c jerks who are *always* telling people
to post to newsgroups where there posts would be considered on topic.
Sheesh!

Paul

--
Paul D. Boyle
[EMAIL PROTECTED]
North Carolina State University
http://laue.chem.ncsu.edu/web/xray.welcome.html

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

From: Hendrix <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Command or piped commands to show directory size...
Date: Fri, 30 Jun 2000 03:34:09 -0230

Are there any commands and/or command+pipe+command comobinations that
will list the size of a directory from within the directory...???  I
remember reading something about an 'ls' | 'grep' | 'bc' that would sum
the sizes of every file in a directory and then output the result in
megabytes rather than blocks...???

Also, is there a way to list the number of files in a directory...???  I
used to pipe the output of 'ls' to 'wc' and it would display 3
numbers...  I know what the first number is, but not the second or
third...???

Thanks...

-- 
Trevor Penney, 
A+, Network+ Certified
======================
That's alright, I still got my guitar...

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

From: "Andre Liem" <[EMAIL PROTECTED]>
Subject: Re: TurboLinux Installation ERRORS!!! Help!  maybe partitioning problems
Date: Thu, 29 Jun 2000 23:39:12 -0700

    Thanks for the reply, but thankfully I finally have TurboLinux up and
running... and so far so good.  No crashes like windows and TBLinux comes
with lots of neato features... although I still need to find a good
wordprocessing program for it.
    I'm not sure what the errors were really saying but after thinking about
my error and asking around a bit I did screw up with my partitioning and
just decided to make three partitions with fdisk.  After this it worked.
Hmm...  X is still kinda slowish, not really for a pentium 100 or should I
be expecting great performance?  Perhaps a 32M swap was too small?
    How's Redhat though?  It seems to be one of the standard packages
around... but kinda pricy and too big to download.

Andre



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

Subject: Re: Command or piped commands to show directory size...
From: Osugi Sakae <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Date: Thu, 29 Jun 2000 23:45:20 -0700

Hendrix <[EMAIL PROTECTED]> wrote:
>Are there any commands and/or command+pipe+command
comobinations that
>will list the size of a directory from within the
directory...???


"du" doesn't do what you need?

--
Osugi Sakae


===========================================================

Got questions?  Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com


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

From: Aravind Sadagopan <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.suse,alt.os.linux,comp.os.linux.setup
Subject: Re: kernel panic
Date: Fri, 30 Jun 2000 02:29:38 +0800
Reply-To: [EMAIL PROTECTED]

beo wrote:

> Hello all,
>
> When I reboot my SuSE 6.2 , my computer just freeze after the message below.
> Does anyone know how to fix this problem? Thanks!!
>
> *Partition check:
> *request_module[block_major_8]: root fs not mounted
> *VFS:cannot open root device 08:01
> *Kernel Panic:VFS:Unable to mount root fs on 08:01

I need more details.. Maybe your SCSI disk is not recognized by the kernel (if
you have one)
Wild guess.. but may help you if I know your system config

aravind


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

From: Ingo Ciechowski <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.networking,alt.uu.comp.os.linux.questions,comp.os.linux.development.apps
Subject: serial port source sample needed
Date: Fri, 30 Jun 2000 8:53:13 +0200

Hi,

I need to write some serial port communication routines for Linux, but so far 
was not very successful with my tries (see below).

If someone could please point me to a simple sample that sends an "ATZ\r" out 
to the port and displays the modems return string in just a few lines that'd 
be great.

Here's what I tried so far - maybe someone sees the error (the init part is 
similar to what I found in the Serial-Programming-HOWTO):



#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>

main()
{
 int c, res;
 char buf[100];
 struct termios newtio;
 fd = open("/dev/ttyC7", O_RDWR | O_NOCTTY );
 if (fd <0) { return 0; }
 bzero(&newtio, sizeof(newtio)); /* clear struct for new port settings */
 newtio.c_cflag = B2400 | CS8 | CLOCAL | CREAD;
 newtio.c_iflag = IGNPAR;
 newtio.c_oflag = 0;
 newtio.c_lflag = ICANON;
 newtio.c_cc[VINTR]    = 0;     /* Ctrl-c */
 newtio.c_cc[VQUIT]    = 0;     /* Ctrl-\ */
 newtio.c_cc[VINTR]    = 0;     /* Ctrl-c */
 newtio.c_cc[VQUIT]    = 0;     /* Ctrl-\ */
 newtio.c_cc[VERASE]   = 0;     /* del */
 newtio.c_cc[VKILL]    = 0;     /* @ */
 newtio.c_cc[VEOF]     = 4;     /* Ctrl-d */
 newtio.c_cc[VTIME]    = 0;     /* inter-character timer unused */
 newtio.c_cc[VMIN]     = 1;     /* blocking read until 1 character arrives */
 newtio.c_cc[VSWTC]    = 0;     /* '\0' */
 newtio.c_cc[VSTART]   = 0;     /* Ctrl-q */
 newtio.c_cc[VSTOP]    = 0;     /* Ctrl-s */
 newtio.c_cc[VSUSP]    = 0;     /* Ctrl-z */
 newtio.c_cc[VEOL]     = 0;     /* '\0' */
 newtio.c_cc[VREPRINT] = 0;     /* Ctrl-r */
 newtio.c_cc[VDISCARD] = 0;     /* Ctrl-u */
 newtio.c_cc[VWERASE]  = 0;     /* Ctrl-w */
 newtio.c_cc[VLNEXT]   = 0;     /* Ctrl-v */
 newtio.c_cc[VEOL2]    = 0;     /* '\0' */

 tcflush(fd, TCIFLUSH);
 tcsetattr(fd,TCSANOW,&newtio);

 write(fd, "ATZ\r", 4);
 res=read(fd,buf,20);
 printf ("out: %d %s\n", res, buf);
}



I also thought that I could send commands out from the command line using

 echo "AT\r" > /dev/ttyC7

which always hangs and see what's coming in using

 tail -f  /dev/ttyC7

which never shows anything. What's the point I'm missing here?


Any help's really appreciated.

Ingo
-- 

Ingo
[EMAIL PROTECTED]
-
CP-ASEL-IA


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

From: "michael.fengler" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.suse,alt.os.linux,comp.os.linux.setup
Subject: Re: kernel panic
Date: Fri, 30 Jun 2000 08:15:25 +0200
Reply-To: [EMAIL PROTECTED]

On Fri, 30 Jun 2000, beo wrote:

>When I reboot my SuSE 6.2 , my computer just freeze after the message below.
>*VFS:cannot open root device 08:01
>*Kernel Panic:VFS:Unable to mount root fs on 08:01

Did you compile SCSI-Support as a module (or perhaps ext2)? You need
to have them in the kernel, otherwise the system would have to load
them in order to be able to load them...

- mike


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

From: Miguel <[EMAIL PROTECTED]>
Subject: Re: Security problem
Date: Fri, 30 Jun 2000 08:52:11 +0200
Reply-To: [EMAIL PROTECTED]

Russ wrote:
> 
> Take a look at /etc/security/limits.conf. An entry such as
> 
> *    hard rss    5000
> 
> would limit memory usage to 5M for everyone but root and
> 

 I've tried this in /etc/security/limits.conf

*                hard    rss             80000 

but top reported RSS=115M and it kept increasing 

 what am i doing wrong ??

 what should happen to the process when it reaches the max rss ? 

        Miguel

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

From: [EMAIL PROTECTED]
Subject: ipchains and icq
Date: Fri, 30 Jun 2000 07:07:01 GMT

What is the correct command for a linux masquerading box
to restrict icq connection from the clients?

Thanks.


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: "Quiney, Philip [HAL02:HH00:EXCH]" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Re: Command or piped commands to show directory size...
Date: Thu, 29 Jun 2000 08:07:04 +0100

Hendrix wrote:
> 
> Are there any commands and/or command+pipe+command comobinations that
> will list the size of a directory from within the directory...???  I
> remember reading something about an 'ls' | 'grep' | 'bc' that would sum
> the sizes of every file in a directory and then output the result in
> megabytes rather than blocks...???
A directory size in blocks is easy

du -s .

or bytes...

du -b -s .

> 
> Also, is there a way to list the number of files in a directory...???  I
> used to pipe the output of 'ls' to 'wc' and it would display 3
> numbers...  I know what the first number is, but not the second or
> third...???
> 
Try man wc

What you get by default are the line, word & byte counts for the files
concerned...

What you want to do here is get ls to display one file per line & then
get wc to count lines. The ls option is -1 (that is a number one) and
the -l (a letter l) to wc ie

ls -1 | wc -l

Regards

Phil Q

-- 

Phil Quiney                             CSIP Demonstrator
[EMAIL PROTECTED]              Nortel Networks,
Telephone: +44 (1279) 402363            London Rd, Harlow,
Fax:       +44 (1279) 402885            Essex CM17 9NA,
                                        United Kingdom.

"This message may contain information proprietary to Northern 
Telecom so any unauthorised disclosure, copying or distribution
of its contents is strictly prohibited."

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

From: Jimmy Navarro <[EMAIL PROTECTED]>
Crossposted-To: microsoft.public.windowsnt.misc,linux.redhat.misc
Subject: Re: Need clarification:  what really is 'MBR' and what is 'BOOT SECTOR'?
Date: Fri, 30 Jun 2000 00:17:18 -0700

I agree NT does_not_overwrite the MBR.   I use a IBM Thinkpad 390X I can't use
LILO because the HD sector where supposedly have the MBR is used for
hybernation.  To multiboot NT with Linux I'll have to use NT OS loader with
creating that BOOTSECT.LNX and add it at boot.ini.  Since NT can't access the
MBR it should function at all as multiboot NT+Linux in my laptop.

Alan Hodges wrote:

> No, I don't buy this either, though I agree with just about everything else
> he says.
> In fact, I have installed NT after having installed one of my company's
> products which replaces the MBR with its own, and I have found that NT
> install does _not_ overwrite the MBR. (Just as well too, for my purposes).
>
> Ciao, Alan
>
> Charlie Root <[EMAIL PROTECTED]> wrote in message
> news:sHC65.14508$[EMAIL PROTECTED]...
> >
> <snip>
> > Rod, still I don't buy NT ever messes with MBR because NT does not need
> MBR
> > at all.  If multibooting NT and Linux not using the LILO, NT OS loader
> likes
> > to have the boot sector from the other operating systems available as a
> > file. NT has 'boot.ini'that read like:
> > --
> > [boot loader]
> > timeout=30
> > default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
> > [operating systems]
> > multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ...
> > multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ...
> > C:\BOOTSECT.LNX="Linux"
> >
> > Where this resides?  Not at MBR but at C:\ root directory with system and
> > hidden attributes.  Try boot it with MS-DOS floppy then do at C:\ prompt:
> > 'a:\fdisk /mbr' you can still boot either OS because MBR is not being used
> > at all.
> >
> >


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

From: Eric <[EMAIL PROTECTED]>
Subject: Re: -- VFS: Unable to mount root --    Help!
Date: Fri, 30 Jun 2000 07:26:33 GMT
Reply-To: [EMAIL PROTECTED]

Try booting a linux from a floppy and perform an e2fsck on the
partition.
You can find a good boot/root combi disc on the slackware site.

And just a thought, I don't see why anyone would want ext2 FS access
from windows, put all data you want in both OS's on a vfat partition and
mount that from linux. (this can ofcourse be your C: drive) (OK if you
put data in your $HOME, then you might want to able to access that, but
I never had any need for it)

Eric

Lotto Alessandro wrote:
> 
> Hi,
> 
> My computer have:
> - 2G
> - 32Mb
> - AMD 166
> - Win95  (1G)
> - Linux  RedHat 6.1   (1G)
> 
> My computer has 4 partitions:
> - /dev/hda1  Win95,  FAT32 (O.S.  partition)
> - /dev/hda2   Win95,  FAT32
> - /dev/hda3   Linux Native
> - /dev/hda4   Linux Swap
> 
> I have used from win95 the  utility "esplore2fs"  to view the ext2
> filesystem (hda3).
> When I tried  to copy a large file (18Mb) from linux in win95 with
> explore2fs i had a system crash
> due to insufficient space in /dev/hda1  (explore2fs work very well, all this
> is my fault)
> 
> Then i have used the floppy "rescue" to try to mount /dev/hda3 for check it,
> but the mount is impossible!
> 
> Now, i can boot in Win95 but I CAN'T RECOVER VERY IMPORTANT DATA (my thesis)
> IN THE
> LINUX PARTITION ----- I NEED HELP !
> 
> *) When i reboot in linux from LILO i have:
> 
> partition check:
> hda: hda1 hda2 hda3 hda4
> RAMDISK: Compressed image found a block 0
> autodetecting RAID arrays
> autorun ... autorun DONE
> VFS: Mounted root (ext2 filesystem)
> autopdetecting RAID arrays
> autorun... aurorun DONE
> Kernel Panic:  VFS: Unable to mount root fs on 03:05
> 
> *) When i rebbot whit the floppy "boot" i have:
> 
> partition check:
> hda: hda1 hda2 hda3 hda4
> autodetecting RAID arrays
> autorun ... autorun DONE
> attempt to access beyond end of device
> 03:05:  rw=0,  want=2,  limit=0
> dev 03:05  blksize=1024  blocknr=1  sector=2 size=1024 count=1
> EXT2-fs: unable to read superblock
> attempt to access beyond end of device
> 03:05:  rw=0,  want=33,  limit=0
> dev 03:05  blksize=1024  blocknr=32  sector=64 size=1024 count=1
> isofs_read_super:bread failed, dev=03:05, iso_blknum=16, block=32
> Kernel Panic:  VFS: Unable to mount root fs on 03:05
> 
> Lotto Alessandro
> Venezia (Italy)

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

From: "Main News" <[EMAIL PROTECTED]>
Subject: Re: Write error in swap file
Date: Fri, 30 Jun 2000 08:31:20 +0100

Hi

This error message refers to vi's tempory file which it uses while editing,
and not to the Linux system swap file.
This file is usually created in /tmp. I note from your df figures that hda1
mounted on / is full.

Try to clear some disk space on the root filesystem.

Is this a particularly large file you are trying to edit?

Regards
Andy Hill

Lou Hevly <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi:
>
> I'm receiving a "Write error in swap file" message when using vi on
> linux-2.7-13.1 Redhat. I searched dejanews for this error and was
> advised to check the following:
>
> df:
>
> /dev/hda1              32171   32171        0    100%   /
> /dev/hda2             495746  308342   161801     66%   /usr
> /dev/hda5             991000    6857   932939      1%   /var
> /dev/hda6            1981000   55088  1823501      3%   /home
>
> top:
> Mem:   30788K av,  27888K used,   2900K free,  13684K shrd,   7680K
> buff
> Swap: 130748K av,   3944K used, 126804K free                 13092K
> cached
>
> Here's fdisk -p:
>    Device Boot   Begin    Start      End   Blocks   Id  System
> /dev/hda1            1        1       66    33232+  83  Linux native
> /dev/hda2           67       67     1082   512064   83  Linux native
> /dev/hda3         1024     1083     1343   131544   82  Linux swap
> /dev/hda4         1024     1344    49585 24313968    5  Extended
> /dev/hda5         1024     1344     3375  1024096+  83  Linux native
> /dev/hda6         3072     3376     7439  2048224+  83  Linux native
> /dev/hda7         7168     7440    49585 21241552+  83  Linux native
>
> However, I'm not sure what to do to correct the problem. Perhaps
> related to this is the fact that, when trying to run the following
> shell script, I get a 'useradd: unable to lock password file' message:
>
> useradd -g nofiles -d /var/qmail/alias alias
>
> Any advice? Thank-you
>
> --
> All the best,
> Lou Hevly
> [EMAIL PROTECTED]
> http://www.visca.com



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

From: [EMAIL PROTECTED]
Subject: help with xemacs setup
Date: Fri, 30 Jun 2000 07:25:12 GMT

Hi,
I have successfully set up RedHat 6.2 and XF86 on my
Asus L8460 notebook.  XF86 seems to be running ok except
that I cannot execute xemacs nor emacs.  When I executed
xemacs (version 21.1.3 p3), nothing appeared on the screen.
When I executed emacs, I received

Warning: locale not supported by C library, locale unchanged

warning message.  No emacs window appeared either.

What's wrong with my system.  I appreciate if you can help me.

Thank you very much.

Michael Lee

PS: Since I don't visit this group frequently, I'd appreciate
if you can send your solution to my email addr at
[EMAIL PROTECTED]
Thanks again.


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: [EMAIL PROTECTED] (Richard Steiner)
Subject: Re: OpenBSD/FreeBSD/NetBSD/Linux
Reply-To: [EMAIL PROTECTED]
Date: Fri, 30 Jun 2000 02:30:30 -0500

Here in comp.os.linux.misc, blowfish <[EMAIL PROTECTED]>
spake unto us, saying:

>If I want to make my life more difficult, I'd use Windoz, or
>Red Hat-Linux... :-|

While some versions of Red Hat are more prone to problems than others,
I've seen no significant difference between FreeBSD 2.x or 3.x and any
flavor of Red Hat that I've used (4.2, 5.1, and 6.1).

>The hardware detection with FreeBSD put most Linux distros
>(other than SuSE 6.4) to shame...

Mandrake 6.1 wasn't bad at detecting my hardware, either.

-- 
   -Rich Steiner  >>>--->  [EMAIL PROTECTED]  >>>--->  Bloomington, MN
      OS/2 + BeOS + Linux + Solaris + Win95 + WinNT4 + FreeBSD + DOS
       + VMWare + Fusion + vMac + Executor = PC Hobbyist Heaven! :-)
         Any clod can have the facts - having opinions is an ART!

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

From: "David .." <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.suse,alt.os.linux,comp.os.linux.setup
Subject: Re: kernel panic
Date: Fri, 30 Jun 2000 02:52:50 -0500

beo wrote:
> 
> Hello all,
> 
> When I reboot my SuSE 6.2 , my computer just freeze after the message below.
> Does anyone know how to fix this problem? Thanks!!
> 
> *Partition check:
> *request_module[block_major_8]: root fs not mounted
> *VFS:cannot open root device 08:01
> *Kernel Panic:VFS:Unable to mount root fs on 08:01

Use a rescue disk and at the boot prompt enter:

  linux root=/dev/hdaX

where X is the correct device for root.

On my SCSI system I have to compile the scsi controller into the kernel
and not as a module.

-- 
Registered with the Linux Counter.  http://counter.li.org
ID # 123538

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


** 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 (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

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

Reply via email to