Linux-Misc Digest #373, Volume #18               Sun, 27 Dec 98 19:13:08 EST

Contents:
  Re: Infringement of the GPL (Victor Danilchenko)
  Netscape 4.5 problem (mvrao)
  Re: Anti-Linux FUD (John Edstrom)
  Re: Anti-Linux FUD (Matthias Warkus)
  Re: Infringement of the GPL (Victor Danilchenko)
  Re: 3 button Mouse not working under X (Fisch)
  Linux Frequently Asked Questions with Answers (Part 3 of 6) ([EMAIL PROTECTED])

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

Date: Sun, 27 Dec 1998 17:58:37 -0500
From: Victor Danilchenko <[EMAIL PROTECTED]>
Subject: Re: Infringement of the GPL

steve mcadams wrote:
> 
> On Sun, 27 Dec 1998 00:29:17 GMT, [EMAIL PROTECTED] wrote:
> 
> >I'm fairly sure that the FSF has never paid him anything at all.  He
> >supports himself writing software, consulting, and with the occasional
> >McAurthur Foundation grant.
> 
> He supports himself writing software that he then gives away?  I guess
> I'm stupider than average, cause I just simply don't get this.

        He does not get paid by FSF -- he makes a point of not being its
employee. However, FSF does get paid by many companies to put custom
features in (especially with things like GCC) -- which features of
course become GPLed on the spot.

> >I am 52 and undoubtedly have less money than you do.  When I was 25 I would
> >have agreed with you.  Now I agree with RMS.
> 
> Why?  What has made you think it's a good thing?  -steve

        What makes him think that GPL is a good thing? Perhaps it's just a
different mentality. We are selfish by nature, but we as a species have
gotten this far by cooperating. We can transcend our genetic
programming, which is what many people do.

-- 
|  Victor A. Danilchenko       CSCF support  |
|  [EMAIL PROTECTED]       A313, 5-4231  |
+--------------------------------------------+
|       Quando omni flunkus, moritati.       |

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

From: mvrao <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Netscape 4.5 problem
Date: Sun, 27 Dec 1998 23:10:18 +0000

This is an issue I never could correct. When I start Navigator, it won't
load the page until I do some action. This is also true when another app
starts the browser. It doesn't even load the 'home' page by itself at
startup !

Is there a remedy ? If so, what is it ?

TIA


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

From: [EMAIL PROTECTED] (John Edstrom)
Crossposted-To: alt.destroy.microsoft,comp.os.linux.advocacy,comp.os.os2.advocacy
Subject: Re: Anti-Linux FUD
Date: 27 Dec 1998 23:10:35 GMT

In article <75vr3l$[EMAIL PROTECTED]>,
        [EMAIL PROTECTED] (Floyd Davidson) writes:
> 
> Rich Grise  <[EMAIL PROTECTED]> wrote:
>>Anthony Ord wrote:
>>[...]
>>> Besides, if all you want to do is store a value, use symbolic links.
>>> Nothing in the rules that says they have to point to anything.
>>[...]
>>
>>Create a link that doesn't point to anything? How do you do that?
>>If you don't mind my asking.
> 
...
> 
>>It sounds like a pretty cool way to store little items with almost
>>infinitesimal access times!
> 
There are other advantages than speed to embedding data in file names.
For example, you don't need to worry about corruption of data in
files.  Puting data in files requires both a valid directory tree and
valid file content.  With data in file names all you need is a valid
directory tree.  The payoff is one possible source of corruption
versus two possible sources of corruption.

Its also easier and more compact to backup as long as the file name is
shorter than the minimum data block.

> The only thing stored is a filename for a file which does not
> exit, so I'm not sure what value there is in being able to
> access it quickly.  (And in fact, ls doesn't access it any
> faster than it does synlinks to files that do exist... ;-(

The idea is to save time on opening, reading and then closing the
file, obviously.  Creating empty files with 'touch' might work as well
I don't know if zero-length files tie up more resources or are slower
to read than empty links.  

However, with symlink you can store two separate pieces of
information, the filename and the fake filename.  I'm not sure if that
would be an advantage though.  That is, is there an advantage to
reading the directory entry 'foo->bar' as opposed to 'foo_bar'?  

One possible advantage that I can see is that the link acts something
like an associative array in Perl (key/value pairs) where I don't have
to read the value part if I don't want to. With the atomic filename I
have to read both key and value together and then parse it to
disentangle the key from the value.  Uniqueness is at the key level
for symlinks and at the coarser key/value level for single filenames.
I could find symlink 'foo' with just 'ls foo.'  To find file 'foo_bar'
when I don't know that 'bar' is the value, I'd have to 'ls foo_*',
which might be costly.

> 
>   Floyd
> 
> 

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

From: [EMAIL PROTECTED] (Matthias Warkus)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.x,uk.comp.os.linux
Subject: Re: Anti-Linux FUD
Date: Sun, 27 Dec 1998 18:29:06 +0100
Reply-To: [EMAIL PROTECTED]

It was the 27 Dec 1998 13:02:42 GMT, Floyd Davidson...
..and <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> David M. Cook <[EMAIL PROTECTED]> wrote:
> >On 25 Dec 1998 12:27:51 GMT, Floyd Davidson <[EMAIL PROTECTED]> wrote:
> >
> >>It probably should be mentioned that normal users do not
> >>need the sbin directories in their PATH.
> >
> >If you use things like traceroute a lot it's nice to have these in your path.
> 
> As I mentioned in another article, put it where it belongs.

Yupp, the FHS says stuff like ping and traceroute shouldn't be in an sbin
directory anyways.

mawa
-- 
Matthias Warkus    |    [EMAIL PROTECTED]    |    Dyson Spheres for sale!
My Geek Code is no longer in my .signature. It's available on e-mail request.
It's sad to live in a world where knowing how to program your VCR actually
lowers your social status...

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

Date: Sun, 27 Dec 1998 17:52:03 -0500
From: Victor Danilchenko <[EMAIL PROTECTED]>
Subject: Re: Infringement of the GPL

Jerry Lynn Kreps wrote:
> 
> [EMAIL PROTECTED] wrote:
>
> I agree.  It has been government funding of research, via the NIH and
> NSF, that have hijacked the spirit of scientific research and reduced
> many "scientists" to paid whores.  Research is only funded if the
> proposed hypothesis agrees with the status quo.  What happens to peer
> review and replication and the so-called "scientific method" is why I
> use the term "whore".  Especially in biological and medical sciences
> where so many results depend on data manipulation, cooking and
> statistical analysis.

        And how is this different from the way things used to be before gov't
funding?.. Status-quo defenders were always in power (which is why it
was "status quo"), new ideas were usually met with derision, and
researchers almost always did their work off someone else's charity --
be it government which seeks to promote "high science" that corporations
don't want to waste money on, a company that thinks it can benefit from
this researcher's work, a magnate with a taste for art, or a nouveau
riche who wants to gain social standing by appearing a sophisticated
science patron. I prefer the government -- at least this way I in some
way am working for the public...0

> > A statement which presumes that one can own intellectual work.  This would
> > seem to contradict your statements above.
> 
> No such presumption is made.  Try to own the air you breathe.

        Ah... intellectual property... Long, indecipherable semi-philosophical
flamewar, anyone?

<snip>

> In a court of law any copyright he refuses to enforce is lost to him.

        No, that would be "trademark". Copyrights cannot be thusly lost, they
do not even need to be explicitly stated. You cannot lose a copyright
just because you fail to defend it, but you can lose a trademark that
way.

-- 
|  Victor A. Danilchenko       CSCF support  |
|  [EMAIL PROTECTED]       A313, 5-4231  |
+--------------------------------------------+
|       Quando omni flunkus, moritati.       |

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

From: [EMAIL PROTECTED] (Fisch)
Subject: Re: 3 button Mouse not working under X
Date: Sun, 27 Dec 1998 15:13:54 -0800

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

>It was the Sat, 26 Dec 1998 16:52:50 -0800, Fisch...
>..and <[EMAIL PROTECTED]> wrote:
>> I can't get the middle button of my mouse to work under X.
>> When I'm not in X, the middle button works (will past what has been
highlited).
>> But when I start X, the middle button does nothing.
>> 
>> I've tried two different (9 pin serial) mice.
>> One is circular with 3 rectangular buttons on the front.
>> The other looks like the curved microsoft mouse, with the very
>> narrow button with the bump in the middle.  It has a switch on the underside
>> that switches between MS or PC.
>> 
>> In my XF86Config file I have specified:
>>    Protocol "Microsoft"
>>    Device   "/dev/mouse"
>>    Buttons  3
>> 
>> I tried running XF86Setup, and none of the other protocols seem to give
>> me the third button either.  I'm sure the mouse works.  Why doesn't the
>> 3rd (middle) button work though?
>
>I don't think the Microsoft mouse protocol supports three buttons. Switch
>that mouse to PC mode and try it again, with a different protocol setting.

Thanks for the help.  It seems that switching to PC and trying the
MouseSystems protocol solved my problem, even though pointer movement
doesn't seem to be
as fluid as it was.  Having that middle button is more important.

I'm not sure why it didn't work before.  I was using the XF86Setup application
to try different mouse protocols and it didn't work before.  Well,
works now.

thanks for the help,
Fisch

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

Crossposted-To: news.answers,comp.answers
Subject: Linux Frequently Asked Questions with Answers (Part 3 of 6)
From: [EMAIL PROTECTED] 
Date: Sun, 27 Dec 1998 22:09:36 GMT

The Linux kernel has support for the Amiga Fast File System (AFFS)
version 1.3 and later, both as a compile-time option and as a module.
The file Documentation/filesystems/affs.txt in the Linux kernel source
distribution has more information.

See "How do I upgrade/recompile my kernel?".

Linux supports AFFS hard-drive partitions only. Floppy access is not
supported due to incompatibilities between Amiga floppy controllers
and PC and workstation controllers. The AFFS driver can also mount
disk partitions used by the Un*x Amiga Emulator, by Bernd Schmidt.


4.7 Can Linux access BSD, SysV, etc. UFS?

Recent kernels can mount (read only) the UFS file system used by
System V; Coherent; Xenix; BSD; and derivatives like SunOS, FreeBSD,
NetBSD, and NeXTStep. UFS support is available as a kernel
compile-time option and a module.

See, "How do I upgrade/recompile my kernel?"


4.8 Can Linux access SMB file systems?

Linux supports read/write access of Windows for Workgroups and Windows
NT SMB volumes. See the file Documentation/filesystems/smbfs.txt of
the Linux kernel source distribution, and "How do I
upgrade/recompile my kernel?" in this FAQ.

There is also a suite of programs called Samba which provide support
for WfW networked file systems (provided they're for TCP/IP).
Information is available in the README file at
sunsite.unc.edu/pub/Linux/system/network/samba/.

There is a SMB Web site at samba.anu.edu.au/samba/.


4.9 Can Linux access Macintosh file systems?

There is a set of user-level programs that read and write the
Macintosh Hierarchical File System (HFS). It is available at
sunsite.unc.edu/pub/Linux/utils/disk-management.


4.10 Can I run Microsoft Windows programs under Linux?

WINE, a MS Windows emulator for Linux, is still not ready for general
distribution. If you want to contribute to its development, look for
the status reports in the comp.emulators.ms-windows.wine newsgroup.

There is also a FAQ, compiled by P. David Gardner, at
sunsite.unc.edu/pub/Linux/docs/faqs/Wine-FAQ/.

In the meantime, if you need to run MS Windows programs, the best
bet--seriously--is to reboot. LILO, the Linux boot loader, can boot
one of several operating systems from a menu. See the LILO
documentation for details.

Also, LOADLIN (a DOS program to load a Linux, or other OS, kernel is
one way to make Linux co-exist with DOS. LOADLIN is particularly handy
when you want to install Linux on a 3rd or 4th drive on a system (or
when you're adding a SCSI drive to a system with an existing IDE).

In these cases, it is common for LILO's boot loader to be unable to
find or load the kernel on the "other" drive. So you just create a
C:\LINUX directory (or whatever), put LOADLIN in it with a copy of
your kernel, and use that.

LOADLIN is a VCPI compliant program. Win95 will want to, "shutdown
into DOS mode," to run it (as it would with certain other DOS
protected-mode programs).

Earlier versions of LOADLIN sometimes required a package called
REALBIOS.COM, which required a boot procedure on an (almost) blank
floppy to map the REALBIOS interrupt vectors (prior to the loading of
any software drivers). (Current versions don't seem to ship with it,
and don't seem to need it).

[Jim Dennis]


4.11 How can I boot Linux from MS-DOS?

If LILO doesn't work, and if the machine has MS-DOS or Microsoft
Windows, you may be left with a computer that won't boot. This can
also happen on an upgrade to your Linux distribution. Re-installing
LILO is the last thing that the installation does. So it is vitally
important when installing or upgrading Linux on a dual boot machine,
to have a MS-DOS or Windows rescue disk nearby so you can FDISK -MBR.
Then you can go about using LOADLIN.EXE instead of LILO.

This config.sys file is one possible way to invoke LOADLIN.EXE and
boot MS-DOS or Linux.

[menu]
menuitem=DOS, Dos Boot
menuitem=LINUX, Linux Boot

[LINUX]
shell=c:\redhat\loadlin.exe c:\redhat\autoboot\vmlinuz vga=5 root=/dev/hdc1 ro

[DOS]
STACKS = 0,0
rem all the other DOS drivers get loaded here.

This creates a menu where you can direcly jump to loadlin before all
of the MS-DOS drivers get loaded.

The paths and options are peculiar to one machine and should be
intuitivly obvious to the most casual observer. See the LOADLIN.EXE
docs for options. They are the same as LILO, and options are just
passed to the kernel, anyhow.

[Jim Harvey]


4.12 How can I boot Linux from OS/2's Boot Manager?

 1. Create a partition using OS/2's FDISK.EXE (Not Linux's fdisk).
 2. Format the partition under OS/2, either with FAT or HPFS. This is
    so that OS/2 knows about the partition being formatted. (This step
    is not necessary with OS/2 `warp' 3.0.)
 3. Add the partition to the Boot Manager.
 4. Boot Linux, and create a file system on the partition using mkfs
    -t ext2 or mke2fs. At this point you may, if you like, use Linux's
    fdisk to change the code of the new partition to type 83 (Linux
    Native)--this may help some automated installation scripts find
    the right partition to use.
 5. Install Linux on the partition.
 6. Install LILO on the Linux partition--NOT on the master boot record
    of the hard drive. This installs LILO as a second-stage boot
    loader on the Linux partition itself, to start up the kernel
    specified in the LILO configuration file. To do this, you should
    put

boot = /dev/hda2
(where /dev/hda2 is the partition you want to boot from) in your
    /etc/lilo/config or /etc/lilo.config file.
 7. Make sure that it is the Boot Manager partition that is marked
    active, so that you can use Boot Manager to choose what to boot.
    
There is a set of HOWTO's on the subject of multi-boot systems on the
LDP Home Page, http://sunsite.unc.edu/LDP/.


4.13 How can I share a swap partition between Linux and MS Windows?

See the Mini-HOWTO on the subject. The Mini-HOWTO is currently
unmaintained but is available at
ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/mini/unmaintained.



5. Linux's handling of file systems, disks, and drives


5.1 How can I get Linux to work with my disk?

If your disk is an IDE or EIDE drive, you should read the file
/usr/src/linux/drivers/block/README.ide (part of the Linux kernel
source code). This README contains many helpful hints about IDE
drives. Many modern IDE controllers do translation between `physical'
cylinders/heads/sectors, and `logical' ones.

SCSI disks are accessed by linear block numbers. The BIOS invents some
`logical' cylinder/head/sector fiction to support DOS.

An IBM PC-compatible BIOS will usually not be able to access
partitions which extend beyond 1024 logical cylinders, and will make
booting a Linux kernel from such partitions using LILO problematic at
best.

You can still use such partitions for Linux or other operating systems
that access the controller directly.

It's recommend that you create at least one Linux partition entirely
under the 1024 logical cylinder limit, and boot from that. The other
partitions will then be okay.

Also there seems to be a bit of trouble with the newer Ultra-DMA
drives. I haven't gotten the straight scoop on them--but they are
becoming a very common problem at the SVLUG installfests. When you can
get 8 to 12 Gig drives for $200 to $300 it's no wonder.

[Jim Dennis]


5.2 How can I undelete files?

In general, this is very hard to do on Unices because of their
multitasking nature. Undelete functionality for the ext2fs file system
is being worked on, but don't hold your breath.

There are a number of packages available which instead provide new
commands for deleting and copying which move deleted files into a
`wastebasket' directory. The files can be recovered until cleaned out
automatically by background processing.

Alternatively, you can search the raw disk device which holds the file
system in question. This is hard work, and you will need to be logged
in as root to do this. But it can be done. Run grep on the raw device;
e.g.:

grep -b 'bookmarks' /dev/hda

If the data has not been overwritten, you should be able to recover it
with a text editor.

[Dave Cinege]


5.3 How do I resize a partition (non-destructively)?

Use the FIPS.EXE program, included with most Linux distributions,
under MS-DOS.


5.4 Is there a defragmenter for ext2fs etc.?

Yes. There is defrag, a Linux file system defragmenter for ext2,
Minix, and old-style ext file systems. It is available at
sunsite.unc.edu/pub/Linux/system/filesystems/defrag-0.70.tar.gz.

Users of the ext2 file system can probably do without defrag, because
ext2 contains extra code to keep fragmentation reduced even in very
full file systems.


5.5 How do I format and create a file system on a floppy?

To format a 3.5-inch, high density floppy:
$ fdformat /dev/fd0H1440
$ mkfs -t ext2 -m 0 /dev/fd0H1440 1440

For a 5.25 inch floppy, use fd0h1200 and 1200 as appropriate. For the
`B' drive use fd1 instead of fd0.

The -m 0 option tells mkfs.ext2 not to reserve any space on the disk
for the superuser--usually the last 10% is reserved for root.

The first command performs a low-level format. The second creates an
empty file system. You can mount the floppy like a hard disk partition
and simply cp and mv files, etc.

Device naming conventions generally are the same as for other Unices.
They can be found in Matt Welsh's Installation and Getting Started
Guide. (See "Where can I get the HOWTO's and other
documentation?") A more detailed and technical description is Linux
Allocated Devices by H. Peter Anvin, [EMAIL PROTECTED], which is
included in LaTeX and ASCII form in the kernel source distribution
(probably in /usr/src/kernel/Documentation), as devices.tex and
devices.txt.


5.6 I get nasty messages about inodes, blocks, and the like.

You may have a corrupted file system, probably caused by not shutting
Linux down properly before turning off the power or resetting. You
need to use a recent shutdown program to do this--for example, the one
included in the util-linux package, available on sunsite and tsx-11.

If you're lucky, the program fsck (or e2fsck or xfsck as appropriate
if you don't have the automatic fsck front-end) will be able to repair
your file system. If you're unlucky, the file system is trashed, and
you'll have to re-initialize it with mkfs (or mke2fs, mkxfs, etc.),
and restore from a backup.

NB: don't try to check a file system that's mounted read/write--this
includes the root partition, if you don't see

VFS: mounted root ... read-only

at boot time.


5.7 My swap area isn't working.

When you boot (or enable swapping manually) you should see
     Adding Swap: NNNNk swap-space

If you don't see any messages at all you are probably missing
swapon -av

(the command to enable swapping) in your /etc/rc.local or /etc/rc.d/*
(the system startup scripts), or have forgotten to make the right
entry in /etc/fstab:

/dev/hda2       none       swap       sw

for example.

If you see
Unable to find swap-space signature

you have forgotten to run mkswap. See the manual page for details; it
works much like mkfs.

Running, 'free' in addition to showing free memory, should display:
          total       used       free
Swap:        10188       2960       7228

[Andy Jefferson]

Take a look also at the Installation HOWTO for detailed instructions
of how to set up a swap area.


5.8 How do I remove LILO so my system boots DOS again?

Using DOS (MS-DOS 5.0 or later, or OS/2), type FDISK /MBR (which is
not documented). This will restore a standard MS-DOS Master Boot
Record. If you have DR-DOS 6.0, go into FDISK in the normal way and
then select the `Re-write Master Boot Record' option.

If you don't have MS-DOS or DR-DOS, you need to have the boot sector
that LILO saved when you first installed it. You did keep that file,
didn't you? It's probably called boot.0301 or some such. Type

dd if=boot.0301 of=/dev/hda bs=445 count=1

(or /dev/sda if you're using a SCSI disk). This may also wipe out your
partition table, so beware! If you're desperate, you could use

dd if=/dev/zero of=/dev/hda bs=512 count=1

This will erase your partition table and boot sector completely: you
can then reformat the disk using your favorite software. But this will
render the contents of your disk inaccessible--you'll lose it all
unless you're an expert.

Note that the DOS MBR boots whichever (single!) partition is flagged
as `active'. You may need to use fdisk to set and clear the active
flags on partitions appropriately.


5.9 Why can't I use fdformat except as root?

The system call to format a floppy can only be done as root,
regardless of the permissions of /dev/fd0*. If you want any user to be
able to format a floppy, try getting the fdformat2 program. This works
around the problems by being setuid to root.


5.10 My ext2fs partitions are checked each time I reboot.

See "EXT2-fs: warning: mounting unchecked file system.".


5.11 My root file system is read-only!

Remount it. If /etc/fstab is correct, you can simply
mount -n -o remount /

If /etc/fstab is wrong, you must give the device name and possibly the
type, too: e.g.

mount -n -o remount -t ext2 /dev/hda2 /

To understand how you got into this state, see, "EXT2-fs:
warning: mounting unchecked file system."


5.12 I have a huge /proc/kcore! Can I delete it?

None of the files in /proc are really there--they're all, "pretend,"
files made up by the kernel, to give you information about the system
and don't take up any hard disk space.

/proc/kcore is like an `alias' for the memory in your computer. Its
size is the same as the amount of RAM you have, and if you read it as
a file, the kernel does memory reads.


5.13 My AHA1542C doesn't work with Linux.

The option to allow disks with more than 1024 cylinders is only
required as a workaround for a PC-compatible BIOS misfeature and
should be turned `off' under Linux. For older Linux kernels you need
to turn off most of the `advanced BIOS' options--all but the one about
scanning the bus for bootable devices.



6. Porting, compiling and obtaining programs


6.1 How do I compile programs?

Most Linux software is written in C and compiled with the GNU C
compiler. GCC is a part of every Linux distribution. The latest
compiler version, documentation, and patches are on
ftp://ftp.gnu.org/pub/gnu/.

Programs that are written in C++ must be compiled with the GNU G++
compiler, which is also included in Linux distributions and available
from the same place as GCC.

To build version 2.0.x kernels, you will need GCC version 2.7.2.x.
Trying to build a Linux kernel with a different compiler, like GCC
2.8.x, EGCS, or PGCC, may cause problems until the kernel developers
changed change the code so it will compile correctly with compilers
other than GCC 2.7.2.x.

Information on the EGCS compiler is at http://egcs.cygnus.com.

Note that at this time, the kernel developers are not answering bug
requests for 2.0.x version kernels, but instead are concentrating on
developing 2.1.x version kernels.

[J.H.M. Dassen]


6.2 How do I install GNU software?

On a correctly installed system, installing a GNU software package
requires four steps.
  * With the source .tar.gz archive in the /usr/src/ directory, or
    wherever you maintain your source files, untar and uncompress the
    package with the command:

tar zxvf package-name.tar.gz
  * Run the ./configure script in the untarred source archive's
    top-level directory with whatever command line arguments you need.
    The options that configure recognizes are usually contained in a
    file called INSTALL or README.
  * Run make. This will build the source code into an executable
    program (or programs) and may take a few minutes or a few hours,
    depending on the speed of the computer and the size of the
    package.
  * Run make install. This will install the compiled binaries,
    configuration files, and any libraries in the appropriate
    directories.
    

6.3 How do I port XXX to Linux?

In general, Unix programs need very little porting. Simply follow the
installation instructions. If you don't know--and don't know how to
find out--the answers to some of the questions asked during the
installation procedure, you can guess, but this tends to produce buggy
programs. In this case, you're probably better off asking someone else
to do the port.

If you have a BSD-ish program, you should try using -I/usr/include/bsd
and -lbsd on the appropriate parts of the compilation lines.


6.4 What is ld.so and where do I get it?

Ld.so is the dynamic library loader. Each binary using shared
libraries used to have about 3K of start-up code to find and load the
shared libraries. Now that code has been put in a special shared
library, /lib/ld.so, where all binaries can look for it, so that it
wastes less disk space, and can be upgraded more easily.

Ld.so can be obtained from tsx-11.mit.edu/pub/linux/packages/GCC/
and mirror sites. The latest version at the time of writing is
ld.so.1.9.5.tar.gz.

/lib/ld-linux.so.1 is the same thing for ELF ("What's all this
about ELF?") and comes in the same package as the a.out loader.


6.5 How do I upgrade the libraries withough trashing my system?

Note: You should always have a rescue disk set ready when you perform
this procedure, in the likely event that something goes wrong!

This procedure is especially difficult if you're upgrading very old
libraries like libc4. But you should be able to keep libc4 on the same
system with libc5 libraries for the programs that still need them. The
same holds true for upgrading from libc5 to the newer-yet glibc2
libraries.

The problem with upgrading dynamic libraries is that, the moment you
remove the old libraries, the utilities that you need to upgrade to
the new version of the libraries don't work. There are ways around
around this. One is to temporarily place a spare copy of the run time
libraries, which are in /lib/, in /usr/lib/, or /usr/local/lib/, or
another directory that is listed in the /etc/ld.so.conf file.

For example, when upgrading libc5 libraries, the files in /lib/ might
look something like:

libc.so.5
libc.so.5.4.33
libm.so.5
libm.so.5.0.9

These are the C libraries and the math libraries. Copy them to another
directory that is listed in /etc/ld.so.conf, like /usr/lib/.

cp -df /lib/libc.so.5* /usr/lib/
cp -df /lib/libm.so.5* /usr/lib/
ldconfig

Be sure to run ldconfig to upgrade the library configuration.

The files libc.so.5 and libm.so.5 are symbolic links to the actual
library files. When you upgrade, the new links will not be created if
the old links are still there, unless you use the -f flag with cp. The
-d flag to cp will copy the symbolic link itself, and not the file it
points to.

If you need to overwrite the link to the library directly, use the -f
flag with ln.

For example, to copy new libraries over the old ones, try this. Make a
symbolic link to the new libraries first, then copy both the libraries
and the links to /lib/, with the following commands.

ln -sf ./libm.so.5.0.48 libm.so.5
ln -sf ./libc.so.5.0.48 libc.so.5
cp -df libm.so.5* /lib
cp -df libc.so.5* /lib

Again, remember to run ldconfig after you copy the libraries.

If you are satisfied that everything is working correctly, you can
remove the temporary copies of the old libraries from /usr/lib/ or
wherever you copied them.


6.6 Has anyone ported / compiled / written XXX for Linux?

First, look in the Linux Software Map--it's at
sunsite.unc.edu/pub/Linux/docs/linux-software-map, and on the
other FTP sites. A search engine is available on the World Wide Web at
http://www.boutell.com/lsm/.

Check the FTP sites ("Where can I get Linux material by FTP?")
first--search the ls-lR or INDEX files for appropriate strings.

-- 

Robert Kiesling
[EMAIL PROTECTED]


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


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