Linux-Setup Digest #601, Volume #20              Sat, 10 Feb 01 09:13:08 EST

Contents:
  Re: win2k + linux ("Kostas Pantos")
  Re: Help with LILO (Ash)
  Re: Linux as a gateway (Mike Perry)
  Re: What does Lilo write to boot= ? ("Eric en Jolanda")
  Re: Disk image ("Eric en Jolanda")
  Re: FYI: fdisk / mke2fs problem workaround: reboot ("Eric en Jolanda")
  Re: Change primary disk - fix LILO? ("Eric en Jolanda")
  Re: win2k + linux ("Eric en Jolanda")
  Re: Help with LILO ("Eric en Jolanda")
  Re: Permission problems with dos partition. ("Eric en Jolanda")
  Re: Newbie redhat question ("Eric en Jolanda")
  Re: 'at' command check? (David Efflandt)
  php4 & mysql setup pb (JM)
  install linux without CDROM or floppy????? ("retrogrouch")
  Re: Where to buy a laptop? ("retrogrouch")
  Re: backspace vs. delete (David Efflandt)

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

From: "Kostas Pantos" <[EMAIL PROTECTED]>
Subject: Re: win2k + linux
Date: Sat, 10 Feb 2001 12:39:42 -0000

I'm using W2k pro with Mandrake 7.2 in a second partition. The boot loader
is instaled on the MBR and I have no problems.
Kostas

"Kumaran" <[EMAIL PROTECTED]> wrote in message
news:6f%g6.10024$[EMAIL PROTECTED]...
> Hi
>
> I need to install win2k on my comp soon (work reasons).  I was thinking of
> doing a full format and installing both win2k pro and linux from scratch.
>
> but anyway... i was wondering does win2k boot fine using lilo(on the mbr)
as
> the boot manager or should i use ntloader?
>
> thanks
>
>     Kumaran
>
>



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

From: Ash <[EMAIL PROTECTED]>
Subject: Re: Help with LILO
Date: Sun, 11 Feb 2001 01:41:56 +1300

[EMAIL PROTECTED] wrote:

> Hi, i recently bought SuSE Linux 7.0 and i can't install it. I already
> have Win98 and i want to be able to do dual boot. I created a Linux
> primary partition (/) from cylinder 650 to 1225 but it gives me the
> message that the partition won't be able to boot by itself or something
> like that. What should i do? Should i install Lilo at MBR or what?
> My e-mail is [EMAIL PROTECTED]
> Thanx.
> 
> 
> Sent via Deja.com
> http://www.deja.com/

I thought it was /boot (your boot partition) and not / that needed to be 
within those cylinders


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

From: [EMAIL PROTECTED] (Mike Perry)
Subject: Re: Linux as a gateway
Date: Sat, 10 Feb 2001 12:55:00 -0000

On Fri, 9 Feb 2001 01:28:53 +0000, John Beardmore 
<[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>, reebosak <[EMAIL PROTECTED]>
>writes
>
>>don't bother reading the faq. you'll end up waisting alot of your time
>>because redhat is already set up to be a router.
>
>Thanks !
>
>
>> all you have to do is
>>type: [at the root prompt]
>>root@...# ipchains -P forward DENY
>>root@...# ipchains =A forward -i ppp0 -j MASQ
>>root@...# echo 1> /proc/sys/net/ipv4/ip_forward
>
>OK.  And this configuration will stick after a reboot ?
>
>
>>then set your clients up to use your linux box's ip address at the
>>gateway.
>
>How exactly ?  My ISP allocates me a static IP, but I assume only the
>one ppp interface on the Linux machine has that.
>
>Or do you mean I tell the windoze clients to use the linux box lan
>interface ip address as the router ?  I guess that makes sense ?
>
>
>>you also have to make sure the computers on your net can 'see' each
>>other. use ping 'ipaddress' to check connectivity between computers.
>
>No problems there.
>
>Many thanks !
>
>
>Cheers, J/.
>-- 
>John Beardmore

Easiest way is to capture the above in a script and make it run at boot
time.  Check out redhat's booting stuff to see how its done.  As far as the
one static IP address; that will be held by your ppp connection.  Now for
the windows clients you will want to create a "private network" of sorts for
them.  I am anticipating that you have an ethernet card that connets to a
hub that the windows clients also connect to.  Go to the linux box and
create a networking configuration for eth0.  This can be as simple as
using netcfg to bring up the eth0 connection and then give it a private IP
address like this:

Linux router, gateway - ppp is some external address like 207.xxx.xxx.xxx
(this is your one static IP address). Add the default gateway, dns, etc your
ISP has given you.
Linux router, gateway - eth0 is perhaps 192.168.0.1

Now you will want to ensure as you set the default route that it points to
the external address for the ppp connection on the linux box.  Also be sure
you enable IP forwarding as shown above and you have a minimal firewalling
or better in place to protect yourself on the wild and wooly net.

Now boot the windoze clients.  Lets say you have 2 of them.

Client 1, 192.168.0.2, netmask 255.255.255.0, default gateway 192.168.0.1
(IP address of the linux box'es eth0 connection)

Client 2, 192.168.0.3, blah blah blah

Now you will want to visit each client system and ping the gateway address
to make sure things work.  The 192.* addresses will be transparent to the
outside network, IOW not seen.  All that will be seen is the one static IP
address.  At home, I have one static dsl IP address.  I masquerade several
systems behind it with 192.* addresses.  


-- 
Michael Perry
[EMAIL PROTECTED]
==================

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

From: "Eric en Jolanda" <[EMAIL PROTECTED]>
Subject: Re: What does Lilo write to boot= ?
Date: Sat, 10 Feb 2001 14:07:27 +0100

> > That means you either have the lilo.conf wrong (check the 0x8* numbers
> > again)
>
> > Eric
>
> That was it Eric....YES!
>
> disk = /dev/sda
>         bios = 0x80
> disk = /dev/hda
>         bios = 0x81
> #disk = /dev/hdb
> #       bios = 0x82
> disk = /dev/hdc
>         bios = 0x82
>
> My bios skips the cd drive so dhc is 82 not 83.
> That's a pretty esoteric bit of info.  I must have read about a zillion
> references to lilo over these last three weeks and you are the first
person
> to suggest where the problem could lie.  Thank you.
> I am collapsing in a heap.

Glad I could have been of some help.
I wasn't sure about this either.
I learned something out of your problem too.

Eric



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

From: "Eric en Jolanda" <[EMAIL PROTECTED]>
Subject: Re: Disk image
Date: Sat, 10 Feb 2001 14:18:54 +0100

> Norton Ghost does this, from a DOS floppy disk, ghost to network or other
> HDD, I use it all the time for this same reason also cloneing Linux
installs
> on identical hardware.
>

why buy a tool if you have something default on your system that can do the
same?

man dd

Eric



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

From: "Eric en Jolanda" <[EMAIL PROTECTED]>
Subject: Re: FYI: fdisk / mke2fs problem workaround: reboot
Date: Sat, 10 Feb 2001 14:21:45 +0100

> > > Calling ioctl() to re-read partition table.
> > > Re-read table failed with error 16: Device or resource busy.
> > > Reboot your system to ensure the partition table is updated.
>
> >
> > PS. it's no workaround, it explicitly *told* you to reboot.
> > In linux that's not often seen, but if you get such a message, do it.
>
> So I should translate
>    "Reboot your system to ensure the partition table is updated."
> to
>    "Reboot your system to update the partition table."
> or
>    "The partition table will be updated after a reboot."
>
> "Never reboot" must be a Linux user bad habit. ;-)
>

Neither.
The partitiontable (the one on your HDD) is updated when you tell fdisk to
write it. Other parts of linux don't read the table from HDD themself, but
use the table as you see it in /proc. And that's the one that's not updated
always.

Eric



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

From: "Eric en Jolanda" <[EMAIL PROTECTED]>
Subject: Re: Change primary disk - fix LILO?
Date: Sat, 10 Feb 2001 14:25:24 +0100

> Greetings, new to the group so I hope I'm not asking the same dumb
> question - I tried to search but found no help.
>
> I have my old computer, setup as a dual boot Linux/98. Right now it's
> only running Linux and is deaf, dumb, and blind to the outside world
> (not even a video card) except by LAN from my new win2k box.
>
> The primary master hard disk (hda) is heading south - sometimes the
> machine won't boot, when it does it takes too long, and if I mount the
> dos partitions on it from within Linux it makes some ugly whining noises
> as it spins up to speed over and over again. Linux, both root and swap
> partitions, is on my primary slave (hdb). What I want to do is rip out
> that master, switch the slave to master, and simply boot from that disk.
>
> How do I accomplish this? I figure that I basically change LILO so it
> installs itself on what is currently my slave, change all the references
> and pointers to the kernel image, partition mounts in fstab, (etc?), so
> that they reference hda instead of hdb, then shut down and make the
> physical changes. I'm a little confused, since I'm going to be
> installing LILO to what is logically known as hdb, but will become hda
> when I shut down and take out that master. Does this all make sense? Am
> I being completely thick? I'm not super familiar with how the whole boot
> process works so I don't know if I have a chance of success in the fist
> place ...
>

Do as you planned, and after you removed the master, use the root=/dev/hdaXX
append string to boot your linux again.
(If you don't supply it, lilo will try to mount the rootfs on hdbXXX)
Then after you rebooted, rerun /sbin/lilo again, and all will be fine again.

Eric



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

From: "Eric en Jolanda" <[EMAIL PROTECTED]>
Subject: Re: win2k + linux
Date: Sat, 10 Feb 2001 14:27:30 +0100

> I need to install win2k on my comp soon (work reasons).  I was thinking of
> doing a full format and installing both win2k pro and linux from scratch.
>
> but anyway... i was wondering does win2k boot fine using lilo(on the mbr)
as
> the boot manager or should i use ntloader?
>

You can use LILO just as well as the NT loader.

Eric



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

From: "Eric en Jolanda" <[EMAIL PROTECTED]>
Subject: Re: Help with LILO
Date: Sat, 10 Feb 2001 14:29:25 +0100

> > Hi, i recently bought SuSE Linux 7.0 and i can't install it. I already
> > have Win98 and i want to be able to do dual boot. I created a Linux
> > primary partition (/) from cylinder 650 to 1225 but it gives me the
> > message that the partition won't be able to boot by itself or something
> > like that. What should i do? Should i install Lilo at MBR or what?

> I thought it was /boot (your boot partition) and not / that needed to be
> within those cylinders

Indeed (well actually the kernel image must be), so make a small /boot ,
from cyl. 650 to 651 and assign that /boot
After that you can make / as big as you like.

Eric



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

From: "Eric en Jolanda" <[EMAIL PROTECTED]>
Subject: Re: Permission problems with dos partition.
Date: Sat, 10 Feb 2001 14:30:45 +0100


> I have a dos partition that is accessible from linux but only when I'm
> root. Root owns all the files, and only the owner can write to the
> files. I get "chown: /msdos: Operation not permitted" when I try to
> change owner. How can I allow normal users to write to the partition?
>
>
man mount

notice the umask/uid/gid options

Eric



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

From: "Eric en Jolanda" <[EMAIL PROTECTED]>
Subject: Re: Newbie redhat question
Date: Sat, 10 Feb 2001 14:33:55 +0100

> hello.  i've been wanting to install redhat 5 on my computer for some
time.

I'd get a newer distro.
rh5 still uses a 2.0 kernel IIRC, and we're now at 2.4

> the book that i bought says that linux's boot record has to be in within
1024
> cylinders. my hard drive has a lot more cylinders (don't know exactly how
much
> but size is 13.6gig)  i don't want to get rid of win 98 yet and my c drive
is
> about 8gigs taken up with windows.  can you clarify what this all means?
can i
> install linux on remaining space on my hard drive?

Yes.
The easiest way is to boot linux from floppy in that case.
There are other options, but don't bother yet.

Eric



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

From: [EMAIL PROTECTED] (David Efflandt)
Subject: Re: 'at' command check?
Date: Sat, 10 Feb 2001 13:41:16 +0000 (UTC)
Reply-To: [EMAIL PROTECTED]

On Fri, 09 Feb 2001, Andrey Shipsha <[EMAIL PROTECTED]> wrote:
>
>We have a Linux machine which we use for calculations. Usually we use
>'at' command to schedule a stack of jobs to be run over night. However,
>if there are two or more people schedule their jobs for the same night,
>the computer will eventually crash since it slows down running more jobs
>but the following jobs are executed on time. So, they step on each other
>toes...
>
>I am wondering if there is anything which would warn users trying to use
>'at' command or at login prompt that there are already scheduled tasks
>by another user. If someone executes 'atq' command it could only see his
>own jobs...
>
>Any advice is welcome.

I run a background process continuously (SETI@home) with a load ave of
1.00 (or sometimes temporarily higher), and never have any problem with
night time security checks, log rotation or processor intensive slocate
(updatedb) tasks run from cron.  But SETI@home only takes a fixed 14 MB
of RAM.

  7:25am  up 48 days, 13:54,  5 users,  load average: 1.00, 1.01, 1.00

Perhaps you should take a look at 'man nice' which can run processes at a
lower priority.  With SETI@home using a commandline option to run at nice
19, I do not even notice that my box is running 100% because foreground
tasks have a higher (normal) priority.

But I suspect you are either doing too many tasks that entirely consume
your RAM until your box gets too behind in its swap, or if someone wrote
their own binary or script, maybe it has a memory leak or does not
properly flock files it is using.

If you really want to know what swap slowdown is like, try running gnome
or KDE on an 8 MB 386.  That box used to run X faster than Win95, but that
was Slackware 2.0 (kernel 1.2.x), and X was much slimmer then (fvwm95 vs.
gnome or KDE now).

-- 
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: JM <[EMAIL PROTECTED]>
Crossposted-To: alt.php
Subject: php4 & mysql setup pb
Date: Sat, 10 Feb 2001 14:39:42 +0100

Hi,
I upgraded my system to RH7, which installed php4 (i was running php3
before).
The only problem i have is that the install compiled php without mysql.
So now i have to add in my scripts the line <? dl("mysql.so"); ?> so it
would load the mysql functions, and it works. 
Can somebody help me change the configuration so that the mysql support
would be automatically loaded when the server starts?
Thanks,
        JM

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

From: "retrogrouch" <[EMAIL PROTECTED]>
Subject: install linux without CDROM or floppy?????
Date: Sat, 10 Feb 2001 08:10:13 +0500

I have an old laptop that I want to put linux on.  No sweat, I though, I
just get a mini-linux distro on a floppy, format the drive, set up the
network card, and off I go.

Well, this is one of those "external floppy" laptops - and I've lost the
floppy drive.

So I have a laptop with a functioning 700 MB HD, with win95 installed, a
3COM 589 PCMCIA network card, a hayes pcmcia 56K modem, and no CD ROM and
no floppy.

For the life of me I cannot figure out how to get linux on this thing.

Every install procedure assumes that you have a functioning floppy to boot
the installer.  I've heard of ftp installs - but I have not found a HOWTO
on it.

The only thing I can think of is to remove the HDD, stick it in another
machine, install linux, and reinstall it in the laptop.

Any better ideas?  This is driving me nuts!

--Yan

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

From: "retrogrouch" <[EMAIL PROTECTED]>
Subject: Re: Where to buy a laptop?
Date: Sat, 10 Feb 2001 08:14:44 +0500

I just bought a Toshiba 2800, 128 MB RAM, 6 GB HD, 1024x768 LCD, real 8MB
AGP video (NOT shared memory)  for $1240 - a steal (www.cdw.com).  There is an
excellent HOWTO on getting the modem to work, so now I have sound, modem,
network, etc. all built-in.

Yes I also have winME, but who cares at that price.  The closest Dell
could come to that price was about $2,200.

There are some good laptop utilites for the toshiba, and tehe 2.2.18
kernel even comes with Toshiba laptop support....

--Yan

In article <[EMAIL PROTECTED]>, "Robert A. Knop Jr.,,,"
<[EMAIL PROTECTED]> wrote:

> I was trying to price laptops, and I understand that you can buy them 
> nowadays without also buying Windows, but I haven't figured out where. 
> I hear that Dell sells Linux laptops, but so far on their site when I 
> try to configure a sample system for pricing purposes, it always comes 
> with Windows.  (It also comes with other things I don't want like 
> Windows add-on software and MSN and/or AOL subscriptions.)
> 
> Even a eLinux.com, a quick perusal of the laptops they list all come 
> with some form of a MS operating system.
> 
> Can one recommend to me where I might find a laptop with Linux 
> reinstalled, or an OS-less laptop?  I'm not buying at the moment, but 
> trying to price them.
> 
> (Ideally also I'd like to buy a laptop without an internal modem, since 
> they all seem to be WinModems that one can't use on Linux.  If anybody 
> knows of a laptop that's got a real modem inside, please let me know!)
> 
> -Rob
>

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

From: [EMAIL PROTECTED] (David Efflandt)
Subject: Re: backspace vs. delete
Date: Sat, 10 Feb 2001 14:00:46 +0000 (UTC)
Reply-To: [EMAIL PROTECTED]

On 8 Feb 2001 13:48:18 -0800, John Doner <[EMAIL PROTECTED]> wrote:
>I run Linux on a PC  at home, and MacX 1.5 on a Macintosh at
>work.  I work a lot on a Unix system, via MacX.  I can also
>have windows from my Linux system open at work.  Emacs likes
>to use 'Delete' (octal 177) for its erase character, so I set
>my xterm sessions the same way, using stty.  That works for
>the Unix system, but not for Linux.  Regardless of what I do
>with stty, or the -tm option of xterm, I can't get it to
>recognize Delete as an erase character; it remains Backspace
>(octal 10).  Interestingly, Emacs is normal; an Emacs session
>with a window on my Mac responds to Delete as expected.  The
>xterm session just flashes the menu bar (I suppose it would
>beep if I made some other change), and doesn't erase.
>
>Obviously, there's something I'm missing.  Any ideas, folks?

The most reliable way to get the erase character with uncooperative
systems is to set it in the shell that you log into by typing 'stty ' and
then hit your backspace key and enter.  Then it will be whatever ^? or ^H
that your system uses.  It might also depend upon which shell you use.

Note: Even though RedHat and related Mandrake use different erase, each
seems to recognize the other.  FreeBSD also recognizes either.

But Solaris does not.  So when I do this in my .login (csh) at my ISP
(the cons25 thing is for logging in from a FreeBSD console):

# Set Terminal Options
# setenv TERM vt100
if ("$TERM" == "") setenv TERM vt100
if ("$TERM" == "unknown") setenv TERM vt100
if ("$TERM" == "cons25") setenv TERM vt100
stty erase '^H' kill '^U' intr '^C' eof '^D' quit '^\'
stty echoe -istrip tab3

# added following line when switching from RedHat to Mandrake
if ("$TERM" == "xterm") stty erase '^?'

if ("$TERM" == "linux") then
        setenv TERM vt100
        stty erase '^?'
endif


Putty (Windows ssh client) can store an erase setting for each connection.

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

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


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

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

Reply via email to