Linux-Misc Digest #16, Volume #25                 Sun, 2 Jul 00 12:13:02 EDT

Contents:
  Re: Command or piped commands to show directory size... (J Bland)
  How to burn RPM package into a CD-R (Willie Loh)
  A kernel build question WRT SHMMAX (Steve Emmett)
  Re: Copying files to a floppy disk in Linux. (John Hasler)
  Website hosting (Steve)
  Re: How to add a tail -f to the window manager? (Bit Twister)
  Re: How to burn RPM package into a CD-R (Dances With Crows)
  Re: Website hosting (Dances With Crows)
  Re: how do I add small icons to a gnome panel drawer? ("Matt Ebb")
  Re: ASUS K7V KX133 motherboard problems (Markus Heller)
  Re: Host your own site (or email) at home (Rod Smith)
  Re: Athlon problems (F. Heitkamp)
  Re: Command or piped commands to show directory size... (Floyd Davidson)
  XDOS Cursor Action ([EMAIL PROTECTED])
  Re: VMWare question (Martin Skj�ldebrand)
  hdparm kills filesystem (Joe)
  Corel PhotoPaint & RH 6.2 problems (Mike Frisch)
  Re: Copying files to a floppy disk in Linux. (Grant Edwards)

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

From: [EMAIL PROTECTED] (J Bland)
Crossposted-To: alt.os.linux
Subject: Re: Command or piped commands to show directory size...
Date: 2 Jul 2000 13:25:07 GMT

>>du `ls -alF | awk '{print $5 \"+ 0\" }'`
>>
>>
>>Something crazy like this may work...  In theory bc should take the output
>>of that "ls | awk" command.  The "ls | awk" thing shoudl print out a
>
>It would be easier to let awk do the addition:
>
>ls -l | awk 'BEGIN {tot=0}; tot=tot+$5; END {print tot}'

I fail to see what all this cli wizardry achieves that

du -h /dir/you/are/looking/at

wouldn't do.

du -hs will give you just a human-readable summary of the directory you give
it.

To count just a specific set of files:

du -hc public_html/*.html

will count each html file in your webpages and show a grand total.

Simple, and easy to remember. And a quick 'man du' reminds you of the options.

Frinky

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

From: Willie Loh <[EMAIL PROTECTED]>
Subject: How to burn RPM package into a CD-R
Date: Sun, 02 Jul 2000 13:30:09 GMT

What format should I use if I want to put RPM packages or Staroffice 5.2 
to CD, ISO or Joliet

--
Posted via CNET Help.com
http://www.help.com/

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

From: Steve Emmett <[EMAIL PROTECTED]>
Subject: A kernel build question WRT SHMMAX
Date: Sun, 02 Jul 2000 08:36:58 -0500

<I previously posted this on comp.os.linux.setup and received no
response.  Trying here...>


I've compiled a new 2.2.14 kernel with a couple of changes to shared
memory and semiphore parameters.  In particular, I've changed the value
of SHMMAX in /usr/src/linux/include/asm/shmparam.h from the default
value of 0x2000000 to 0x8000000 (this because I have 256M of RAM).  I've

also changed the values of SEMMSL and SEMOPM in
/usr/src/linux/include/linux/sem.h.

Prior to installing the new kernel, ipcs -l shows SHMMAX as 16M, as well

as the default values for SEMMSL and SEMOPM.

After booting with the new kernel, ipcs -l shows SHMMAX still as16M but
shows the new values for SEMMSL and SEMOPM.

Have I missed something in the compile process?



--

Steve

=========================================
              Steve Emmett
=========================================
"A mind that is stretched to a new idea
 never returns to its original dimension"
=========================================



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

From: John Hasler <[EMAIL PROTECTED]>
Subject: Re: Copying files to a floppy disk in Linux.
Date: Sun, 2 Jul 2000 12:38:07 GMT

Cliff Pennock writes:
> You need to mount your floppy first:

>   mount /dev/fd0 /floppy

That's doing it the hard way.  Use mcopy and you won't need to mount
anything.  man mcopy, man mtools.

-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI

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

From: Steve <[EMAIL PROTECTED]>
Subject: Website hosting
Date: Sun, 02 Jul 2000 09:20:40 -0500

Looking for a book or source on how to put up a website where
multi-users can have their own website ie: www.xxx.com/~user, where they
can upload to their allocated space and CHROOT to their directory only.

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

From: [EMAIL PROTECTED] (Bit Twister)
Subject: Re: How to add a tail -f to the window manager?
Reply-To: This_news_group.invalid
Date: Sun, 02 Jul 2000 14:26:32 GMT

Homework
        man xconsole
        man X
        man xterm

Put the following in a script file called xtail,
then        chmod +x xtail

#----------------- start of xtail ---------------------
xconsole -geom 1032x50+400+00 -file /var/log/messages &
#----------------- end of xtail -----------------------


Then tell your window manager to run xtail on startup.

On Sat, 01 Jul 2000 18:44:42 -0700, -~=Darek M=~-
> <[EMAIL PROTECTED]> wrote:
>How does one add that transparent console box in X that runs a
>tail on whichever log file. I have seen it in most, if not all,
>screenshots and would like to have it tail -f /var/log/messages
>and would like it to start up in a certain position and
>dimensions as the wm starts.
>
>I am currently running BlackBox. I havent seen anything about
>this in the docs, but then again I cant even add docapps and
>monitors...
>

-- 
The warranty and liability expired as you read the message.
If the above breaks your system, it's yours and you keep both pieces.
Practice safe computing. Backup the file before you change it. 
Do a,  man every_command_here, before doing anything or running a script.

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

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: How to burn RPM package into a CD-R
Date: 02 Jul 2000 10:28:35 EDT
Reply-To: [EMAIL PROTECTED]

On Sun, 02 Jul 2000 13:30:09 GMT, Willie Loh 
<<[EMAIL PROTECTED]>> shouted forth into the ether:
>What format should I use if I want to put RPM packages or Staroffice 5.2 
>to CD, ISO or Joliet

Huh?

All CDs are made with the ISO9660 filesystem, unless they're made with the
UDF filesystem (this is not recommended as of yet.)  Joliet and Rock Ridge
are extensions to the ISO9660 filesystem that allow for long filenames,
symbolic links, UID/GIDs, and more than 8 levels of subdirectories.

Linux can see and use plain ISO9660 CDs, CDs with Rock Ridge extensions,
and CDs with Joliet extensions.  Lose9x will not recognize Rock Ridge
extensions, but it will be able to use the CD as a plain ISO9660 CD.

-- 
Matt G / Dances With Crows      /\    "Man could not stare too long at the face
\----[this space for rent]-----/  \   of the Computer or her children and still
 \There is no Darkness in Eternity \  remain as Man." --David Zindell "So did
But only Light too dim for us to see\ they become Gods, or Usenetters?" --/me

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

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Website hosting
Date: 02 Jul 2000 10:45:43 EDT
Reply-To: [EMAIL PROTECTED]

On Sun, 02 Jul 2000 09:20:40 -0500, Steve 
<<[EMAIL PROTECTED]>> shouted forth into the ether:
>Looking for a book or source on how to put up a website where
>multi-users can have their own website ie: www.xxx.com/~user, where they
>can upload to their allocated space and CHROOT to their directory only.

Read the documentation for Apache, paying particular attention to the
UserDir option in the configuration file.  If that's set as "html", then
anyone requesting http://blah.com/~me will get directed to /home/me/html/
. 

For the chroot behavior you desire, put the usernames in the 
file /etc/ftpchroot (check docs on your FTP daemon; this is correct for
in.ftpd but may not be for others.)

You'll want to turn on disk quotas too.

-- 
Matt G / Dances With Crows      /\    "Man could not stare too long at the face
\----[this space for rent]-----/  \   of the Computer or her children and still
 \There is no Darkness in Eternity \  remain as Man." --David Zindell "So did
But only Light too dim for us to see\ they become Gods, or Usenetters?" --/me

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

From: "Matt Ebb" <[EMAIL PROTECTED]>
Subject: Re: how do I add small icons to a gnome panel drawer?
Date: Mon, 03 Jul 2000 01:07:03 +1000

In article <8jm23q$r0e$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> I know how to add a drawer and app to the gnome panel.  I know how to
> add icons, but how do I make the icons small, like in the main menu?
> 
> Thanks for any help.
> 
> 
> Sent via Deja.com http://www.deja.com/ Before you buy.

You could try and make a 'user menu' or 'favorites menu' (depending on
which version of gnome you are using), by right clicking on the panel.
These function in a similar manner to the main gnome 'foot' menu.To edit
these menu entries, (as root)  choose Settings::Menu Editor, or type
'gmenu' in a terminal.

It seems that drawer menus will always be large. Perhaps this will be
customisable in a later version.

-Cheers

Matt


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

From: Markus Heller <[EMAIL PROTECTED]>
Subject: Re: ASUS K7V KX133 motherboard problems
Date: Sun, 02 Jul 2000 18:06:43 +0200

Hi Ryan,

I'm having a very tough time getting Linux (Caldera eDesktop)
installed on a K7V Athlon 700MHz System. Maybe I've got a
problem with the memory as well - how did you figure that
out ? Is there any test software you used ? Or did you 
just try another module ????

It would be great news if changing the RAM module would
enable me to finally install linux....

Thanks,

Markus
> 
> > Mostly people reported no problems, and some of them had the
> > K7V motherboard.  I'm interested because I'm seriously thinking about
> > getting one of these.  Toms Hardware rated them the best of the Slot A
> > Athlon Via KX133 chipset boards.  From what you describe, I would look
> > closely at my kernel configuration, maybe try to build a new kernel, even
> > if I have to do it on old hardware, look closely at the general setup
> > section and block devices section.
> >
> >    ---remove "UhUh" and "Spam" to get my real email address----
> 
> I finally figured out the problem.  Apparently I had a bad memory module.
> I put in a different one, and it worked perfectly.  So if you do get this
> board, make sure to get good quality Athlon tested memory, or Linux might
> flake out on it.  Not-so odd is that Win98 chugged along like nothing was
> happening.

-- 
===================================================================
Markus Heller                                 mailto:[EMAIL PROTECTED]
===================================================================

Medizinische Fakultaet Charite, 
Humboldt-Universitaet zu Berlin
Forschungslabor der Unfall- und Wiederherstellungschirurgie
Augustenburger Platz 1
D-13353 Berlin
Tel: +49 (0)30 450 59159  Fax: +49 (0)30 450 59969
e-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.charite.de/biomechanik

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

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

Reply-To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Rod Smith)
Subject: Re: Host your own site (or email) at home
Date: Sun, 02 Jul 2000 15:12:29 GMT

In article <[EMAIL PROTECTED]>,
        David Steuber <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] (Rod Smith) writes:
> 
> ' That depends on the needs and the service. For instance, upstream
> ' speeds with ADSL are typically in the 90-1500Kbps range. That's plenty
> ' for a *MODEST* web server, FTP server, or personal e-mail, but
> ' certainly insufficient for most corporate or high-volume systems. I
> ' certainly wouldn't want to put up Linux CD-ROM image files on a 90Kbps
> ' link.
> 
> My ADSL service is 640/90.  It takes me a while to upload some larger
> files to my web site.  I can't imgine sacrificing that tiny pipe for a 
> server.  Not even a *MODEST* web server.

Let's quantify this. Suppose you've got a web server that serves up
mostly text -- no big graphics, no big sound file, etc. The average file
size this server dishes out is 10KB. At 90Kbps, it takes about 1 second
to serve that file. Even assuming 60 hits an hour, therefore, this web
server consumes only about 1.7% of the upstream bandwidth, reducing
effective speed from 90Kbps to 88Kbps.

> Personal e-mail would work.
> Most traffic would be inbound in that case as e-mail is a push feed.
> But you would need a proper MX record in DNS for your domain for that
> to work.  OR the advertised service would have to forward mail to you
> automatically.

Correct. Also, if you DON'T run a mail server, presumably you'll be
getting the mail via POP, IMAP, or something similar. The same bandwidth
gets chewed up either way. If you run Fetchmail to get POP or IMAP mail,
there's not much difference, but if you manually retrieve POP or IMAP
mail, there'd be an effective REDUCTION in speed, because you'd be
retrieving mail when you're sitting at the computer trying to do
something, vs. letting it come in when you might be off doing something
else. At DSL speeds and typical mail message sizes, this wouldn't be a
big effect, though. It might be important if you regularly receive
very large messages, though.

> ' > You will probably be violating TOS
> ' > with cable and all the other ISP services.
> ' 
> ' With most, but certainly not all. My own provider (Speakeasy) explicitly
> ' allows servers within certain parameters (for instance, no porn sites).
> 
> Ok, most.  Any ISP that censors content on a server wouldn't get my
> business.

1) This is a residential account we're talking about. Restrictions on
   the type of server are far better than forbidding servers altogether.
   I believe Speakeasy's concern is that porn sites chew up so much
   bandwidth that they're not willing to let a residential customer run
   one.
2) There are situations when an ISP should get involved in the
   customer's online behavior and site content. For instance, if a
   customer spams (even from another ISP) and advertises a web address,
   IMHO the ISP is justified in closing down that web site (assuming the
   ISP has an appropriately tough anti-spam policy, of course).

> Commercial SDSL accounts can be had for less than $100 /
> month.
...
> Best of all, you
> can register a domain so that you can have a proper host name instead
> of using an IP address.

You can register a domain name and associate it with an ADSL account,
too, *IF* you've got a static IP address. That's not a characteristic
that's unique to SDSL among the DSL variants, although it's probably
more common among SDSL setups than ADSL. For that matter, using a
dynamip IP address and a dynamic DNS service (like http://www.tzo.com,
http://www.dynip.com, or http://www.dyndns.org), you could do it by
using CNAME and MX records. For instance, if you get a subdomain called
foo.bar.com from a dynamic DNS provider, and create a web and mail
server at www.foo.bar.com, you could purchase a domain name like
example.com, and set up www in example.com to point to www.foo.bar.com
via a CNAME DNS entry. Similarly, you'd set up an MX in example.com to
point to www.foo.bar.com. This adds an extra layer to the name
resolution process, and it's got all the flaws of the dynamic DNS
services, but it SHOULD work. (Disclaimer: I've never actually tried
it, so I'm talking theory here.)

-- 
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux networking & multi-OS configuration

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

Crossposted-To: linux.redhat.misc,comp.os.linux.hardware
From: [EMAIL PROTECTED] (F. Heitkamp)
Date: Sun, 2 Jul 2000 11:14:30
Subject: Re: Athlon problems
Reply-To: [EMAIL PROTECTED]

In message <[EMAIL PROTECTED]> - [EMAIL PROTECTED] (Ray)
writes:
>
>On Sun, 18 Jun 2000 11:56:54 GMT, James Pearson <[EMAIL PROTECTED]> wrote:
>>I'm having problems running Redhat 6.2 on an Athlon box - it freezes
>>when I try to run mkfs on a disk partition.

I've found Linux to be extremely sensitive to bad RAM on my Athlon
system; much more so that Windows NT or maybe even OS/2.  Get memtest86
to test your RAM.

Fred


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

From: Floyd Davidson <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Re: Command or piped commands to show directory size...
Date: 02 Jul 2000 06:24:29 -0800

[EMAIL PROTECTED] (J Bland) wrote:
>>>du `ls -alF | awk '{print $5 \"+ 0\" }'`
>>>
>>>
>>>Something crazy like this may work...  In theory bc should take the output
>>>of that "ls | awk" command.  The "ls | awk" thing shoudl print out a
>>
>>It would be easier to let awk do the addition:
>>
>>ls -l | awk 'BEGIN {tot=0}; tot=tot+$5; END {print tot}'
>
>I fail to see what all this cli wizardry achieves that
>
>du -h /dir/you/are/looking/at
>
>wouldn't do.

I wouldn't answer the orginal poster's question!

He didn't ask how to emulate du.  He wanted to know how to cut
out fields from multi-line output and do arithmetic on them.
The ls just happened to be a convenient example which provided
that type of output.

However, an awk script is probably far too complex for someone
so new to shell scripting as to ask that question.  He should
instead be looking at the "cut" and "read" shell commands.

  Floyd

-- 
Floyd L. Davidson                          [EMAIL PROTECTED]
Ukpeagvik (Barrow, Alaska)

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

From: [EMAIL PROTECTED]
Subject: XDOS Cursor Action
Reply-To: [EMAIL PROTECTED]
Date: 2 Jul 2000 15:31:41 GMT

While DOSEMU works full screen console . . .

When DOSEMU is operated in an X-Window (XDOS) the cursor action in many
programs is not there.  Action takes place on the screen, but the actual
flashing cursor is somewhere off in a corner.

Does anyone have any ideas?  Adjustments? etc.
Any help or ideas would be appreciated.

Paul

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

Subject: Re: VMWare question
From: [EMAIL PROTECTED] (Martin Skj�ldebrand)
Date: Sun, 02 Jul 2000 15:47:02 GMT

<[EMAIL PROTECTED]> writes:

> Yes. Everything look ok.
> Does it has any error in using with pure linux application e.g. xwave?

Thanks that did it.
I found that Media Player produced a time out "Waiting for device
1". I remembered that the OSS instructions recommend using dsp1 as
sound device and had some instructions on linking that to dsp. Which I
did - killing sounds except for CD. Unlinking /dev/dsp from /dev/dsp1
fixed it. Game sounds (in Rocks and Diamonds e.g.) are horrible
still. And some of the example wav files sound completely chopped
up. I seem to remember that to be something to do how the wav is
recorded though?

Cheers,

Martin S.
 

--
Martin Skj�ldebrand
[EMAIL PROTECTED]
Sys admin, web designer, tech writer
Hungry? Visit http://www.bahnhof.se/~chimbis/tocb

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

From: Joe <[EMAIL PROTECTED]>
Subject: hdparm kills filesystem
Date: Sun, 02 Jul 2000 16:56:33 +0100

Hi

I ran "hdparm -c3 -m16 /dev/hda", and the harddrive worked fine, in fact
it even worked faster. However, when I rebooted, I got the error message

EXT2-fs error (device ide0(3,6)):ext_check_descriptors: Inode table for
group 0 not in group (block 131072)!
EXT2-fs: group descriptors corrupted!
Invalid session number or type of track
Kernel Panic: VFS: Unable to mount root fs on 03:06

I am now unable to use linux, even from the rescue disk. Is there any
way to get my filesystem back?

Thanks
Joe

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

From: [EMAIL PROTECTED] (Mike Frisch)
Subject: Corel PhotoPaint & RH 6.2 problems
Date: Sun, 02 Jul 2000 15:59:33 GMT

Has anybody running RedHat 6.2 been able to get the recently released
PhotoPaint to run?  When running "/usr/bin/photopaint", the startup
progress bar gets to 20% and then the console spews the following message 
continuously:

err:seh:EXC_DefaultHandling Unhandled exception code c0000005 flags 0 addr
(nil)

I am running 2.2.16 with the NFSv3 patches, HelixCode GNOME 1.2 and the
latest version of Sawfish.

Any advice?

Thanks,

Mike.


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

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: Copying files to a floppy disk in Linux.
Date: Sun, 02 Jul 2000 16:06:11 GMT

On Sun, 02 Jul 2000 10:30:02 GMT, Ukiss <[EMAIL PROTECTED]> wrote:

>        I don't know how to copy a file from linux to a floppy disk.If 
>anyone know please be kind to let me know.It'd be really grateful!

I usually use tar:

 $ tar cvfz /dev/fd0 file  [file ...]

If you want to go the filesystem route, you have to
mount/cp/umount -- other replies have explained this.

-- 
Grant Edwards                   grante             Yow!  Hey, LOOK!! A pair of
                                  at               SIZE 9 CAPRI PANTS!! They
                               visi.com            probably belong to SAMMY
                                                   DAVIS, JR.!!

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


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