Linux-Misc Digest #649, Volume #26               Thu, 28 Dec 00 01:13:02 EST

Contents:
  Re: backups with the gnu tar command (John Thompson)
  How to safe upgrade kernel? (Carfield Yim)
  Re: which file controls rsh authentication? (David Efflandt)
  Re: sshd authorized_keys ([EMAIL PROTECTED])
  Re: How to safe upgrade kernel? ([EMAIL PROTECTED])
  Re: Printing to an SMB Winprinter (David Bell)
  Re: forget root password! What to do? (Fung Wai Keung)
  lean kernels run faster, right? (Phlip)
  How to stop X? ([EMAIL PROTECTED])
  Linux software installation  install.sh (Dan)
  Re: Linux software installation  install.sh (John Scudder)
  Re: Only with Linux... (MH)
  Re: How to safe upgrade kernel? (Phlip)
  Re: x-windows question ([EMAIL PROTECTED])
  Re: How to safe upgrade kernel? (Phlip)
  Re: lean kernels run faster, right? (David)
  Killall Command (Dan)
  Re: Killall Command ("D. Stimits")
  Re: sshd authorized_keys (Bill Unruh)
  Re: unset password (Bill Unruh)
  Re: lean kernels run faster, right? (Bill Unruh)
  Re: lean kernels run faster, right? (John Hasler)
  Re: How to stop X? (John Hasler)

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

From: John Thompson <[EMAIL PROTECTED]>
Subject: Re: backups with the gnu tar command
Date: Wed, 27 Dec 2000 18:28:57 -0600

Robert Jones wrote:
 
> LFessen106 wrote:
> 
> > >Hello everybody,
> > >
> > >I have some problems using the gnu tar program on RedHat linux 6.2 with the
> > >--exclude directive and
> > >with --new-volume-script directive as well
> > >It does not do what I want.
> > >
> > >For the first directive (--exclude) I want to exclude a whole directory ; so
> > >I write
> > >--exclude=/exclude/this/one but It does not work !! I had a look in the man
> > >pages and in the info
> > >pages but I dont understand quite well.
> > >Could someone give me an example for excluding an entire directory like
> > >/this/is/a/directory/I/want/to/exclude.

> > OK, This I can help with as I use it *all* the time..  You just need to adjust
> > your syntax a bit..  This is what I use for my full system backup - it will
> > show you a working syntax:
> >
> > tar czvf /dev/st0 / --exclude /proc --exclude /mnt --exclude /dev
> >
> > That example uses tar to create a zipped archive file on my tape drive
> > (/dev/st0) from the root directory onward skipping all information in /dev
> > /proc and /mnt..
> >
> > Hope this helps!
> > -Linc.
 
> Also, if the list of excludes becomes cumbersome, you can do something like this:
> 
> tar -cvvf /dev/nst0 / -X /home/rj/nobackup
> and then create a file named "nobackup" that contains the files and/or
> directories to be excluded:
> /proc/*
> /dos/*
> /usr/lib/*
> /usr/share/*

You can also build the exclude file dynamically with the "find"
command:

find /proc/ -print>>exclude.file
find /tmp/ -print>>exclude.file
        [etc...]

Launch tar from a script that builds the exclude file, backs up
the system and then deletes the exclude file on completion.

-- 


-John ([EMAIL PROTECTED])

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

Date: Thu, 28 Dec 2000 10:50:38 +0800
From: Carfield Yim <[EMAIL PROTECTED]>
Subject: How to safe upgrade kernel?

As title, I would like to upgrade my kernel to 2.2.18, but I afraid that
there occur any problem while upgrading. Thus I would like to backup the
original kernal first so that I can rollback, which file(s) so I backup?

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

From: [EMAIL PROTECTED] (David Efflandt)
Subject: Re: which file controls rsh authentication?
Date: Thu, 28 Dec 2000 03:21:16 +0000 (UTC)
Reply-To: [EMAIL PROTECTED]

On Tue, 26 Dec 2000 06:44:04 -0500, Lupei Zhu <[EMAIL PROTECTED]> wrote:
>Hi,
>
>  I have a linux (rh6.2) box  A and a sun solaris box B. I can do "rsh B
>command" from A after i put A in B's .rhosts.  but when I do the same
>from
>the solaris box B, I got permision denied. so which file controls the
>authentication for linux?

Maybe permission of .rhosts is too liberal.  It should be 600.  664
definitely will NOT work.  .rhosts should be space separated list of
allowed remote hostname and remote username.  Not sure if it relies on
identd (is that enabled on the solaris box?).

Are 'shell' and 'login' lines uncommented in /etc/inetd.conf (not sure how
to enable that with xinetd).  What do /var/log/messages and/or
/var/log/secure say when you try to connect?

-- 
David Efflandt  [EMAIL PROTECTED]  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.security,alt.os.linux
Subject: Re: sshd authorized_keys
Date: 28 Dec 2000 03:55:09 GMT

[EMAIL PROTECTED] wrote:
> 
> Hi
> 
> I'm trying to get Linux box A to log in to Linux box B w/o password via
> Key Authorization.
> I ran ssh-keygen;
> I copied A:~/.ssh/identity.pub to B:~/.ssh/authorized_keys ;
> I checked that B:~/.ssh permissions are 700;
> I read the sshd manpage looking for anything mentioning disabling Key
> Authrization - nothing;
> I checked B:/etc/ssh/sshd_config anyway.
> 
> Yet it still asks me for a password when I connect from A to B.
> 
> WHY??? (for the record, I'm running RH7.0)
> 
> Thanks
> 
> Wroot
> 
> Sent via Deja.com
> http://www.deja.com/

I also: chmod 600 ~/.ssh/authorized_keys

Works for me...

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

From: [EMAIL PROTECTED]
Subject: Re: How to safe upgrade kernel?
Date: 28 Dec 2000 03:55:09 GMT

Carfield Yim wrote:
> 
> As title, I would like to upgrade my kernel to 2.2.18, but I afraid that
> there occur any problem while upgrading. Thus I would like to backup the
> original kernal first so that I can rollback, which file(s) so I backup?

When you change /etc/lilo.conf to run the new kernel leave the old kernel 
specified (perhaps as linux-old).  You can reboot to it at any time.  If 
you are using rpm's to install a new kernel, then use 'rpm -ivh' NOT 
'rpm -Uvh'.  If you do this then upgrading the kernel is usually safe.

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

From: [EMAIL PROTECTED] (David Bell)
Date: 28 Dec 2000 04:05:06 GMT
Subject: Re: Printing to an SMB Winprinter

Looks like what I need. :)  Thanks!

=========================
David Bell - Otherwise known as DB7654321

Remember to remove nospam, notrash or anything odd looking from my email
address. :)

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

From: Fung Wai Keung <[EMAIL PROTECTED]>
Subject: Re: forget root password! What to do?
Date: 28 Dec 2000 04:08:30 GMT

Hi,

I'm using Mandrake 7.1.  The boot loader is GRUB, instead of LILO.  How
can I specify to boot with single user mode at GRUB prompt?

Thanks in advance.

Bit Twister <[EMAIL PROTECTED]> wrote:

: hit the Tab key at the lilo prompt and enter
: linux single

: At the prompt enter
: passwd root


: On 27 Dec 2000 10:08:47 GMT, Fung Wai Keung
:> <[EMAIL PROTECTED]> wrote:
:>Hi all,
:>
:>I have forgotten my root password.  How to recover or re-assign the root
:>password?
:>

: -- 
: The warranty and liability expired as you read this 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 command_here or cat command_here, before using it.

-- 

Regards,
Wai Keung, Fung

Department of Automation and Computer Aided Engineering,
The Chinese University of Hong Kong,
Shatin, N.T.,
Hong Kong

Tel: (852)26098056      Fax: (852)26036002
Email: [EMAIL PROTECTED]

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

From: Phlip <[EMAIL PROTECTED]>
Subject: lean kernels run faster, right?
Date: Thu, 28 Dec 2000 04:05:35 GMT

Newsgroupies:

Real obvious question here, but it must get asked.

I have an antique Acer Extensa 366D, tuned for Windows 95. It has a 167MHz
Pentium MMX processor & 32M of RAM.

Needless to say, when I run Mandrake 7.2 & Gnome on it performance is a
little questionable. Sometimes it endures swap fests...

Would it be worth it for me to recompile the kernel, setting every <M> and
[*] option that refers to some exotic thing to < > and [ ], like SCSI support
or SLIP or IPv6 that I'l never use here?

If I did that, the kernel would be smaller, right? Then it would spend less
time even just jumping over the hooks where modules are not even plugged in,
right? And it would occupy less permanent memory, so the user-mode memory
wouldn't need to swap so often, right?

I'd welcome stories from folks who have actually done such things; not just
Linux Advocacy here.

--
 Phlip
======= http://users.deltanet.com/~tegan/home.html =======


Sent via Deja.com
http://www.deja.com/

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

From: [EMAIL PROTECTED]
Subject: How to stop X?
Date: Thu, 28 Dec 2000 04:05:19 GMT

Hello

Could someone tell me how to stop the X server from running. I know that
it's possible to "telinit 3" in Red Hat-based disrtibutions. However,
I'm using a debian-based distro, Storm Linux 2.06, and I can't figure
how to do that. Changing the runlevel won't work because my inittab (see
below) has no "Console Mode". Hitting "Ctrl-Alt-Backspace" is also no
use.

Thanks.


*********************************************************
/etc/inittab
************************************************************

# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.8 1998/05/10 10:37:50 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this
work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3


Sent via Deja.com
http://www.deja.com/

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

From: Dan <[EMAIL PROTECTED]>
Subject: Linux software installation  install.sh
Date: Thu, 28 Dec 2000 04:30:13 -0000

I recently decompressed a  downloaded software package with a tar.gz 
extension. I am now  confronted with a terminal icon with install.sh  
written underneath the icon.  How do I proceed to install this software? 

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

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

From: John Scudder <[EMAIL PROTECTED]>
Subject: Re: Linux software installation  install.sh
Date: Wed, 27 Dec 2000 23:33:49 -0500

Dan

Open a text console and type "sh install.sh"  (without the quotes)

John

> I recently decompressed a  downloaded software package with a tar.gz
> extension. I am now  confronted with a terminal icon with install.sh
> written underneath the icon.  How do I proceed to install this software?
>
> --
> Posted via CNET Help.com
> http://www.help.com/


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

From: MH <[EMAIL PROTECTED]>
Subject: Re: Only with Linux...
Date: Wed, 27 Dec 2000 20:39:07 -0800

Carl Fink wrote:

> On Tue, 26 Dec 2000 20:54:58 -0800 MH <[EMAIL PROTECTED]> wrote:
> 
> >I'm not a programmer.  I just want an easy to use editor for creating and
> >modifying configuration files and simple scripts.
> 
> Ever use WordStar?  I use Joe in its "jstar" invocation, which uses
> the old WordStar keystrokes.  If you already know WS (or its various
> clones including the editor in most Borland compilers) it's a
> zero-length learning curve.
> 
> For some things I use vi (actually vim).  Never learned emacs.

WordStar!  Now that brings back OLD memories.  First computer...errr 
wordprocessor I ever used.  No way I could recall the keystrokes after 
all these years though!


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

From: Phlip <[EMAIL PROTECTED]>
Subject: Re: How to safe upgrade kernel?
Date: Thu, 28 Dec 2000 04:35:14 GMT

In article <[EMAIL PROTECTED]>,
  Carfield Yim <[EMAIL PROTECTED]> wrote:
> As title, I would like to upgrade my kernel to 2.2.18, but I afraid that
> there occur any problem while upgrading. Thus I would like to backup the
> original kernal first so that I can rollback, which file(s) so I backup?

Don't make a move before physically backing up your favorite files, before
getting a second and third opinion, before getting an opinion on a newsgroup
dedicated to your particular distribution, and before reading the document
"The Linux Kernel HOWTO" by Brian Ward.

Follows is a nano-HOWTO that will take you thru the recommended command lines
of a modern kernel rebuild party. Please read silently while I read aloud:

 A> install your _current_ kernel source from your distribution's RPM files.

 B> Get the new source from ftp.kernel.org, and put it in a directory under
/home. _Don't_ put it in /usr/local; let the system take care of that later
on.

 C> tar fxvz linux.9.9.99.tar.gz

 D> cd linux

 E> cp your/current/kernel/source/.config .

 F> make menuconfig

 E> a character-mode UI pops up with a menu of options. Check that advanced,
experimental or exotic things are turned off, and that things you expect to
need are <M> or [*]. The former means a loadable module and the latter means
built-in. Prefer the former until you know what you are doing. Save the
settings & exit.

 G> make dep clean

 H> make all

 I> make modules

 J> make modules_install

 K> insert a blank formatted floppy disk into your A: drive

 K> make bzdisk

 L> leave the disk in (assuming your BIOS will boot from it first)

 M> reboot

Line E attempts to get the same .config file as your current kernel's
distributors used to build it. This implies new features will be Off, and old
features will be all the way you expected them. But be warned; the resulting
kernel might be too big for a single floppy, so you might have to adapt these
techniques beyond where I've ever gone. Or you might have to repeat F and
whack out legacy and bleeding edge stuff that swells kernels up.

Inspect the output of each make to see if it succeeded before moving on.
Makes bubble errors up from their sub-makes, so the last line will say
"Error" if something bad happened below decks.

If the system succeeds, you'l boot up to a login prompt that now says the new
version of the kernel on it. If not, something will screw up, and you'l
e-search for whatever error message you got. But, to get the old OS back,
take the floppy disk out of the drive and reboot. It's that simple.

If you are trying to rebuild the same version of kernel as you already have,
you'l need to e-search how to back up the current module set. Line J installs
the modules into a directory named after the kernel version, but if this is
the same version as you already have you'l write all over your existing
modules and might never regain control if you introduce a bug. I'd just go
out of my way to build another version rather than risk this mayhem (and
there are certainly enough to choose from), but there are HOWTOs out there
detailing how to do it.

Line G compares the current set of options to what .c files include which .h
files in the source, and it upgrades all the Makefiles to reflect these
settings. This means that, for a given configuration, if you edit a .h file
only the exact set of .c files that use it will recompile.

After you get a kernel you like, read the HOWTO to learn how to overwrite
your existing bzImage with it (the actual Real Kernel on your hard drive) or
how to let LILO switch between one and the other.

As I'm trying to do these ominous things myself this week, I'd appreciate any
revisions to my nano-HOWTO...

--
 Phlip
======= http://users.deltanet.com/~tegan/home.html =======


Sent via Deja.com
http://www.deja.com/

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

From: [EMAIL PROTECTED]
Subject: Re: x-windows question
Date: Thu, 28 Dec 2000 04:35:23 GMT

In article <[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:

> I also don't know anything about Peanut linux file setup. But the mode
> lines you are looking for are a setting in XF86Config, probably
> /etc/X11/XF86Config, maybe /etc/XF86Config.


  Well I squinted and looked at the chip and noticed its a ET4000 W32.
The x-windows config program is telling me to install the W32 server in
a  specific directory.  Being very new to linux I can't find the server
anywhere nor do I know the proper -'s to untar and uzip. Also I only
have download access from a PC, so I figure I can put it on an ISO CD.
Any info will be appreciated.

Roper
--
Banner ad blocking with one file:
http://www.21stcentury.net/~flan/hosts.html



Sent via Deja.com
http://www.deja.com/

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

From: Phlip <[EMAIL PROTECTED]>
Subject: Re: How to safe upgrade kernel?
Date: Thu, 28 Dec 2000 04:44:09 GMT

In article <92edit$sop$[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> Carfield Yim wrote:
> >
> > As title, I would like to upgrade my kernel to 2.2.18, but I afraid that
> > there occur any problem while upgrading. Thus I would like to backup the
> > original kernal first so that I can rollback, which file(s) so I backup?
>
> When you change /etc/lilo.conf to run the new kernel leave the old kernel
> specified (perhaps as linux-old).  You can reboot to it at any time.  If
> you are using rpm's to install a new kernel, then use 'rpm -ivh' NOT
> 'rpm -Uvh'.  If you do this then upgrading the kernel is usually safe.

As safe as tweaking LILO...

  8-/

--
 Phlip
======= http://users.deltanet.com/~tegan/home.html =======


Sent via Deja.com
http://www.deja.com/

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

From: David <[EMAIL PROTECTED]>
Subject: Re: lean kernels run faster, right?
Date: Thu, 28 Dec 2000 05:11:20 GMT

Phlip wrote:
> 
> Newsgroupies:
> 
> Real obvious question here, but it must get asked.
> 
> I have an antique Acer Extensa 366D, tuned for Windows 95. It has a 167MHz
> Pentium MMX processor & 32M of RAM.
> 
> Needless to say, when I run Mandrake 7.2 & Gnome on it performance is a
> little questionable. Sometimes it endures swap fests...
> 
> Would it be worth it for me to recompile the kernel, setting every <M> and
> [*] option that refers to some exotic thing to < > and [ ], like SCSI support
> or SLIP or IPv6 that I'l never use here?
> 
> If I did that, the kernel would be smaller, right? Then it would spend less
> time even just jumping over the hooks where modules are not even plugged in,
> right? And it would occupy less permanent memory, so the user-mode memory
> wouldn't need to swap so often, right?
> 
> I'd welcome stories from folks who have actually done such things; not just
> Linux Advocacy here.
> 


Yes compiling a kernel to include only what is needed by the system will
increase performance to some extent but may not fix a "swap fest"
problem. There are other things that can cause it to go into "swap
fests" to the point of slowing the system to a crawl. A couple of things
that can cause this is "bdflush", "buffermem" and "kswap".

You can check to see where these are set with: 
cat /proc/sys/vm/bdflush
cat /proc/sys/vm/kswap
cat /proc/sys/vm/buffermem

If you can post the output from these and see if this could be the
cause.
Or in /usr/src/linux/Documentation there is info on these that may help.

-- 
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter.  http://counter.li.org
ID # 123538
Completed more W/U's than 98.953% of seti users. +/- 0.01%

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

From: Dan <[EMAIL PROTECTED]>
Subject: Killall Command
Date: Thu, 28 Dec 2000 05:30:03 -0000

I occasionally have a problem while using the Netscape browser while using 
the Linux OS:  the computer "freezes up".  If I use the killall command I 
still cannot figure out how to specifically get at Netscape itself.  It is 
easy using MS Windows where you just hit Control-Alt-Delete and then just 
select netscape and click endtask.    What do I do using Linux OS?

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

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

Date: Wed, 27 Dec 2000 22:41:49 -0700
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Killall Command

Dan wrote:
> 
> I occasionally have a problem while using the Netscape browser while using
> the Linux OS:  the computer "freezes up".  If I use the killall command I
> still cannot figure out how to specifically get at Netscape itself.  It is
> easy using MS Windows where you just hit Control-Alt-Delete and then just
> select netscape and click endtask.    What do I do using Linux OS?
> 
> --
> Posted via CNET Help.com
> http://www.help.com/

It'll either be:
killall -9 netscape

Or:
killall -9 netscape-communicator

(depending on the name it actually runs under).

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

From: [EMAIL PROTECTED] (Bill Unruh)
Crossposted-To: comp.os.linux.security,alt.os.linux
Subject: Re: sshd authorized_keys
Date: 28 Dec 2000 05:43:04 GMT

In <92dit6$quu$[EMAIL PROTECTED]> [EMAIL PROTECTED] writes:

]I'm trying to get Linux box A to log in to Linux box B w/o password via
]Key Authorization.
]I ran ssh-keygen;
]I copied A:~/.ssh/identity.pub to B:~/.ssh/authorized_keys ;
]I checked that B:~/.ssh permissions are 700;
]I read the sshd manpage looking for anything mentioning disabling Key
]Authrization - nothing;
]I checked B:/etc/ssh/sshd_config anyway.

]Yet it still asks me for a password when I connect from A to B.

Try restarting the sshd daemon.
Make sure that
RhostsRSAAuthentication yes
RSAAuthentication yes

in sshd_config


]WHY??? (for the record, I'm running RH7.0)

]Thanks

]Wroot


]Sent via Deja.com
]http://www.deja.com/

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

From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: unset password
Date: 28 Dec 2000 05:47:12 GMT

In <92dn7q$un8$[EMAIL PROTECTED]> [EMAIL PROTECTED] writes:
]>
]> type as root:
]>
]> passwd username
]>
]> and enter a new one, Re-enter and done...:-)
]>
]> Good luck

]that would only change the password. i want the password "unset", not
]changed, locked or emptied.

Wh, what in the world is an "unset" password? Tel us what you want first
and maybe we can help.

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

From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: lean kernels run faster, right?
Date: 28 Dec 2000 05:51:50 GMT

In <92ee6d$gnn$[EMAIL PROTECTED]> Phlip <[EMAIL PROTECTED]> writes:

]I have an antique Acer Extensa 366D, tuned for Windows 95. It has a 167MHz
]Pentium MMX processor & 32M of RAM.

Get more memory . Your kernel will only make a marginal difference. Get
more memory. 32K is NOT enough for X, never mind Gnome.
Memory is cheap. about $20 for another 32M.


]Needless to say, when I run Mandrake 7.2 & Gnome on it performance is a
]little questionable. Sometimes it endures swap fests...

]Would it be worth it for me to recompile the kernel, setting every <M> and
][*] option that refers to some exotic thing to < > and [ ], like SCSI support
]or SLIP or IPv6 that I'l never use here?

]If I did that, the kernel would be smaller, right? Then it would spend less
]time even just jumping over the hooks where modules are not even plugged in,
]right? And it would occupy less permanent memory, so the user-mode memory
]wouldn't need to swap so often, right?

]I'd welcome stories from folks who have actually done such things; not just
]Linux Advocacy here.

]--
] Phlip
]======= http://users.deltanet.com/~tegan/home.html =======


]Sent via Deja.com
]http://www.deja.com/

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

From: John Hasler <[EMAIL PROTECTED]>
Subject: Re: lean kernels run faster, right?
Date: Thu, 28 Dec 2000 04:54:39 GMT

Phlip writes:
> If I did that [compiled a minimal kernel], the kernel would be smaller,
> right?

Right.

> Then it would spend less time even just jumping over the hooks where
> modules are not even plugged in, right?

Wrong.

> And it would occupy less permanent memory, so the user-mode memory
> wouldn't need to swap so often, right?

It would save you a few bytes, but it wouldn't solve your problem.  If you
run a Gnome desktop in 32M it _will_ swap.  Gnome is a hog.
-- 
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin

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

From: John Hasler <[EMAIL PROTECTED]>
Subject: Re: How to stop X?
Date: Thu, 28 Dec 2000 04:47:40 GMT

tmch1234 writes:
> Could someone tell me how to stop the X server from running.
> ...
> Hitting "Ctrl-Alt-Backspace" is also no use.

What do you mean by "no use"?  What happens?  What are you trying to do?

At a guess, you have xdm/kdm/gdm running.  If all you want is a text
console, just type 'control-alt-F1' to get to one and 'control-alt-F7' to
go back to X.  You have six text consoles, accessed via 'control-alt-Fx'.

To stop X go to a text console, log in as root, and type 'killall xdm' or
'killall kdm' or 'killall gdm'.  To start it again log in as yourself and
type 'startx &'.

> Changing the runlevel won't work because my inittab (see below) has no
> "Console Mode".

This has nothing to do with inittab.  Changing the runlevel doesn't stop X
because xdm/kdm/gdm is set up to start in all multi-user levels (this is
wrong IMHO).  Go into /etc/rc3.d and change the SXXxdm/SXXkdm/SXXgdm to
KXXxdm/KXXkdm/KXXgdm.
-- 
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin

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


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

Reply via email to