Cramsession Linux Newsletter

Cramsession.com Linux News Archive

Please note that I've stopped writing the Linux News as of January 30, 2003, as Cramsession has cancelled most of their newsletters. You can send any questions or comments about this content to me (sean at ertw . com)
People have been asking for a downloadable version of the archives. [My mbox (one big file, 1.4MB)] [Individual files, text, tarball] [Individual files, html, tarball]
If you're looking for more Linux content, you might like my blog.
Jan 30, 2003
  Linux News - Issue #117
Jan 23, 2003
  Linux News - Issue #116
Jan 16, 2003
  Linux News - Issue #115
Jan 9, 2003
  Linux News - Issue #114
Jan 2, 2003
  Linux News - Issue #113
Dec 19, 2002
  Linux News - Issue #112
Dec 12, 2002
  Linux News - Issue #111
Dec 5, 2002
  Linux News - Issue #110
Nov 28, 2002
  Linux News - Issue #109
Nov 21, 2002
  Linux News - Issue #108
Nov 14, 2002
  Linux News - Issue #107
Nov 7, 2002
  Linux News - Issue #106
Oct 31, 2002
  Linux News - Issue #105
Oct 24, 2002
  Linux News - Issue #104
Oct 17, 2002
  Linux News - Issue #103
Oct 10, 2002
  Linux News - Issue #102
Oct 3, 2002
  Linux News - Issue #101
Sep 26, 2002
  Linux News - Issue #100
Sep 19, 2002
  Linux News - Issue #99
Sep 12, 2002
  Linux News - Issue #98
Sep 5, 2002
  Linux News - Issue #97
Aug 29, 2002
  Linux News - Issue #96
Aug 22, 2002
  Linux News - Issue #95
Aug 15, 2002
  Linux News - Issue #94
Aug 8, 2002
  Linux News - Issue #93
Aug 1, 2002
  Linux News - Issue #92
Jul 25, 2002
  Linux News - Issue #91
Jul 18, 2002
  Linux News - Issue #90
Jul 11, 2002
  Linux News - Issue #89
Jul 4, 2002
  Linux News - Issue #88
Jun 27, 2002
  Linux News - Issue #87
Jun 20, 2002
  Linux News - Issue #86
Jun 13, 2002
  Linux News - Issue #85
Jun 6, 2002
  Linux News - Issue #84
May 30, 2002
  Linux News - May 30, 2002
May 23, 2002
  Pearl In The Shell
May 16, 2002
  Linux Filesystems - Part Two
May 9, 2002
  Inside The Linux Filesystem
May 2, 2002
  CD Burning Under Linux
Apr 25, 2002
  Star Office Vs. Open Office
Apr 18, 2002
  Surfing With Mozilla
Apr 11, 2002
  "We Don't Support Linux..."
Apr 4, 2002
  Visit The UNIX Library
Mar 28, 2002
  Linux and World Domination
Mar 21, 2002
  Working With Keyservers
Mar 14, 2002
  A Look At Public Key Cryptography
Mar 7, 2002
  Monitoring Systems With "vmstat"
Feb 28, 2002
  Star Office 6 Not to be Free for Linux?
Feb 21, 2002
  How Can Programming Benefit a Systems Administrator?
Feb 14, 2002
  Alias: It's Not Just a TV Show
Feb 8, 2002
  Using The diff and patch Utilities
Jan 31, 2002
  How To Detect Cracks
Jan 24, 2002
  Using Razor to Shave Away Spam
Jan 17, 2002
  Stomping Spam
Jan 10, 2002
  Sair Linux Courseware Review
Jan 3, 2002
  2002: The Year of the Penguin!
Dec 27, 2001
  UNIX Apps on a Windows Box?
Dec 20, 2001
  Directory Assistance
Dec 13, 2001
  How Do You Kill Zombies?
Dec 6, 2001
  Using Hard and Soft Symlinks
Nov 29, 2001
  Change Terminal-Based Apps Into Network Apps
Nov 22, 2001
  Adventures In Booting
Nov 15, 2001
  Getting To Know PAM
Nov 8, 2001
  Know Your Enemy
Nov 1, 2001
  Do Mulder and Scully Use X-Windows?
Oct 25, 2001
  A Quick Look at the RHCE Certification
Oct 18, 2001
  What's Up With Linux Certification?
Oct 11, 2001
  Express Yourself Regularly
Oct 4, 2001
  Advice For Lazy Penguins?
Sep 27, 2001
  NVIDIA Jumps On Linux Bandwagon
Sep 20, 2001
  Understanding DNS in a Linux Environment
Sep 13, 2001
  Be Careful With Binaries
Sep 6, 2001
  Party Like It's 999,999,999
Aug 30, 2001
  Rooting Out Memory Hogs
Aug 23, 2001
  Spin Your 'Top'
Aug 16, 2001
  Keeping Time With NTP
Aug 9, 2001
  Supporting True Type Fonts
Aug 2, 2001
  Getting Perl To Fetch
Jul 26, 2001
  Who's The Man?!
Jul 19, 2001
  Adobe Cracks The DMCA Whip
Jul 12, 2001
  Due Processes
Jul 5, 2001
  Going Adobe Free
Jun 28, 2001
  Don't Send Mixed SIgnals
Jun 21, 2001
  Everything is a File. (almost)
Jun 14, 2001
  Know Your Partitions
Jun 7, 2001
  Where it's "at"!
May 31, 2001
  A Sneak Peek at RedHat 7.1
May 24, 2001
  Scheduling Tasks With cron - Part 2
May 17, 2001
  Scheduling Tasks With cron
May 10, 2001
  Open Source - Seeing Through The FUD
May 3, 2001
  A Look At Ximian's New Release
Apr 26, 2001
  Rev Up Your X-Windows Session
Apr 19, 2001
  Wrangling With GNU Cash
Apr 12, 2001
  Tame the syslogd Daemon
Apr 5, 2001
  Test Your Admin Skills At Honeynet
Mar 29, 2001
  Software RAID on Your Linux Box
Mar 22, 2001
  Prevent Disasters: Back It Up
Mar 15, 2001
  Notes From Underground!
Mar 8, 2001
  SuSE 7.1 - A First Look
Mar 1, 2001
  Certification Boot Camp
Feb 22, 2001
  Understanding Runlevels
Feb 15, 2001
  What Are The Advantages of Joining a LUG?
Feb 8, 2001
  Diving For Perls
Feb 1, 2001
  How To Secure Your Linux Installation
Jan 25, 2001
  Linux Problem Solving
Jan 18, 2001
  Stand up and Be Counted!
Jan 11, 2001
  2.4.0 is Here!
Jan 4, 2001
  When will Mom use Linux?
Dec 28, 2000
  The Year in Review
Dec 21, 2000
  The SourceForge Solution
Dec 15, 2000
  How to Compile and Install the New Kernel
Dec 7, 2000
  Put Your E-mail Into A Blackberry Basket
Nov 30, 2000
  Using Perl With Linux
Nov 23, 2000
  Working With MP3's Under Linux
Nov 16, 2000
  Apache 2.0 alpha 4
Nov 9, 2000
  Dell loves Linux!
Nov 2, 2000
  What's Up With RedHat 7?
===========================================================
                        LINUX NEWS
            RESOURCES & LINKS FROM BRAINBUZZ.COM
                 Thursday, April 26, 2001
           Read By 5,000 Linux Enthusiasts Weekly!
===========================================================

-----------------
TABLE OF CONTENTS
-----------------

1) Sean's Notes

2) Linux News

 	Ximian GNOME 1.4 is Out!
	Perl: The Complete Reference (2ed)
	IBM Takes to the Street
	Linux as a Radio Station

3) Linux Resources

	Application Directories
	Using Stunnel to Secure IMAP Connections
	More Honeynets
	Building A Better Gaming Machine
	Dynamic IPTables Firewalls


4) App o' the week


~~~~~~~~~~~~~~~~~~~~~~ ADVERTISEMENT ~~~~~~~~~~~~~~~~~~~~~~~
                        CBT NUGGETS

Get your hands on the best training resources available for
Win2K certifications. Unmatched quality at an incredibly
low price gets you $10,000 worth of training for only $299.
Click below to view a sample clip...

http://ad.brainbuzz.com/?RC06&AI$59

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For information on how to advertise in this newsletter
please contact mailto:adsales@BrainBuzz.com or visit
http://cramsession.brainbuzz.com/marketing/default.asp

===========================================================
1) Sean's Notes
===========================================================
I was browsing around the web the other day, and came across
a helpful hint that should make your X-Windows session more
responsive.

renice -10 -p PIDOF_X

where PIDOF_X is the processid of your X-Windows server.
Recall from the March 8th issue of this newsletter, each task
in the system is given a processid:

http://www.ertw.com/~sean/newsletter/March+8%2C+2001

Each processid also has a "nice level" attached to it, a
value of -20 to +20 (or +19, depending on who you ask), with
-20 being the highest priority.  So, a process is considered
"nice" if it doesn't want too much of the CPU.  What we're
doing in the above command is giving the X process a higher
priority. Note that you probably don't want to do this on a
server!

UNIX is a pre-emptive multitasking operating system.
"Pre-emptive" means that processes don't have to be aware
they're running alongside others -- the operating system will
dole out (and take away) their use of the CPU as it sees fit.
Contrast this with a non pre-emptive system like Windows 3.1,
where the application had to relinquish control of the CPU
when it was done.

So, the Linux scheduler (part of the kernel) works hard at
giving CPU time to processes, timing them, and then moving on.
But how does it choose which process to put on the burner?
Enter priorities.

In a nutshell, each process gets a priority based on the nice
level and some other factors, such as how long it's been
sitting idle.  This is all mashed into a number between 0-99,
and is considered to be the process's priority.  The kernel
looks in the top priority bin to see if any processes are in
there.  If so, they get the CPU for a time slice.  When it's
done with it's slice, the process goes to the end of the queue
(within the same priority).  So, as long as a process with a
higher priority is ready for the CPU, lower ones won't execute.

As I said above, the priority depends on other factors.  The
kernel is tuned so that a process can't hog the CPU -- if it
stays on the burner too long, its priority is slowly
decremented until the system is normal again.

The next thing to remember is that the computer is super fast
compared to the IO system (including the users!).  A process
may need to access the disk or other input device.  While
it's waiting for the data, the kernel marks it as waiting for
IO and puts it to sleep.  While in this state, it doesn't get
the CPU.  Once the data arrives, this process will pre-empt a
lower priority process that is on the CPU, if applicable.  On
most systems, this is enough to keep the system usable.  Put a
few CPU bound processes in, and that's when the administrator
is going to have to step in with the renice command.

renice isn't just for administrators, users can use it too,
subject to some restrictions.  A normal user can only assign
priorities between 0 and 20 -- negative numbers aren't allowed.
Furthermore, you can only increase the nice level, you can't
decrease it. You can also start the process at a nice level of
10 (most processes by default are 9 or less) with the nice
command:

nice mycommand

(check out the man pages for "nice" and "renice" for more
 usage)

That's the process scheduling system in a nutshell.  Those
interested in the dirty details can check out

http://www.oreilly.com/catalog/linuxkernel/chapter/ch10.html

sched_setscheduler manpage, and the pages in the see also
section /usr/src/linux/kernel/sched.c  (it is well commented).

Don't forget about the Brainbuzz Linux News Board, where you
can post your comments about the newsletter and talk with
other readers:

http://boards.brainbuzz.com/boards/vbt.asp?b–2

Long live the Penguin,

Sean
mailto:swalberg@brainbuzz.com

===========================================================
2) Linux News
===========================================================

------------------------
Ximian GNOME 1.4 is Out!
------------------------
Ximian, formerly Helix Code, are the guys that put together
a great distribution of GNOME related stuff. Their latest
release incorporates GNOME 1.4 and Mozilla. Installation is
super easy, but at the moment is pretty slow due to the huge
load.

http://www.ximian.com/

----------------------------------
Perl: The Complete Reference (2ed)
----------------------------------
If you're looking for a book that will teach you PERL, and
then act as a great reference, this is for you. Starting
off with the basics, it takes you through the language,
with plenty of examples to help you along.

http://itresources.brainbuzz.com/tutorials/tutorial.asp?t=S1TU1248

-----------------------
IBM Takes to the Street
-----------------------
IBM's Peace, Love, and Linux slogan which was slapped on
billboards has graced the pavement of San Francisco. You'd
think geeky stuff like this would go over well, but some
key people weren't impressed. At least they were able to
wash it off!

http://www.zdnet.com/zdnn/stories/news/0,4586,2710728,00.html?chkpt
=zdhpnews
01

------------------------
Linux as a Radio Station
------------------------
In the "fascinating, but completely useless category", Real
Time Linux has been used to turn a Linux box into a radio
transmitter. That's right -- it toggles voltages on the
parallel cable to act as an antenna. This article explains
what RTL is, and how it differs from normal Linux operation.

http://www.linuxdevices.com/articles/AT3239582376.html

===========================================================
3) Linux Resources
===========================================================

-----------------------
Application Directories
-----------------------
This Freshmeat editorial asks why the current filesystem
is laid out the way it is. Windows 3.1 had something going
for it, as most everything was stored in its own directory.
In UNIX, though, all the binaries are crammed into a handful
of directories. When package management doesn't cut it, what
do you do?

http://freshmeat.net/articles/view/247/

----------------------------------------
Using Stunnel to Secure IMAP Connections
----------------------------------------
Stunnel is a utility that allows you to tunnel protocols
over SSL. In this example, IMAP is the target. Various
methods of doing it are explained, depending on what your
client can support.

http://members.home.net/beldridg/imaps.htm

--------------
More Honeynets
--------------
The folks at the Honeynet project have updated their "Know
Your Enemy" series of papers. This time, a detailed analysis
of the implementation of their Honeynets is presented. For
those that were wondering how they prevent crackers from
doing serious damage to other sites after cracking a
honeypot, this question has been answered.

http://project.honeynet.org/papers/honeynet/

--------------------------------
Building A Better Gaming Machine
--------------------------------
Building a better gaming machine is different from building
that perfect web server. There are different bottlenecks to
overcome, and different items to add on. This article walks
through the things you'll want to keep in mind for that next
upgrade.

http://linux.com/newsitem.phtml?sid&&aid810

--------------------------
Dynamic IPTables Firewalls
--------------------------
"Firewalls are good and fun, but what do you do when you
need to make rapid, complex changes to your firewall rules?
Easy. Use Daniel Robbins' dynamic firewall scripts that are
demonstrated in this article. You can use these scripts to
increase your network security and responsiveness, and to
inspire your own creative designs."

http://www-106.ibm.com/developerworks/linux/library/l-fw/index.html
?dwzone=l
inux

===========================================================
4) App o' the week
===========================================================
This week's app isn't for Linux, it's for Windows.  Crazy,
you say? Probably. Foxserv is an installer for the Windows
versions of Apache/PHP/MySQL. If you can't spare a box for
Linux, but need a great web development platform, give this
a shot.

http://sourceforge.net/projects/foxserv/

===========================================================
(C) 2001 BrainBuzz.com. All Rights Reserved.
===========================================================

_______________________________________________________

         This message is from BrainBuzz.com.

You are currently subscribed to the
   Hottest Linux News and Resources
   as: sean@ertw.com

To un-subscribe from this newsletter by e-mail:
   send a blank email message to:
   mailto:leave-linuxnews-3825955Y@list.cramsession.com

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

To Subscribe to this newsletter by e-mail:
   send a blank email message to:
   mailto:join-linuxnews@list.brainbuzz.com
_______________________________________________________