Linux-Misc Digest #999, Volume #27                Fri, 1 Jun 01 08:13:02 EDT

Contents:
  Re: Switching hard drives... ("Eric")
  Re: Converting flock() to fcntl() (Villy Kruse)
  Re: sfdisk complains- read only file system ("Eric")
  How to get the distribution name/version (joshua)
  Re: DVD: FreeBSD or Linux? ([EMAIL PROTECTED])
  Unmangle UMSDOS Filenames ("Riley")
  Re: How to get the distribution name/version ([EMAIL PROTECTED])
  Re: 2GB File size limitation (Ian Stirling)
  Re: how do i fake root? (John Thompson)
  Re: Converting flock() to fcntl() ("Peter T. Breuer")
  Re: DVD: FreeBSD or Linux? (Kurt Jaeger)
  Re: how do i fake root? ("Peet Grobler")
  Re: Linux - ok, which one? ("Peet Grobler")
  Re: kernel won't recompile ("Matthias Haase")
  Re: Bummed by debian apt-get (Jerome Mrozak)
  BellSouth DSL vs Linux (Rick)
  Re: help compiling (parse error) (fow99)
  Re: how to set the duplex and media type for my network card (Richard)
  Re: 2GB File size limitation ([EMAIL PROTECTED])
  Re: how do i fake root? (Stephen Cornell)

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

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: Switching hard drives...
Date: Fri, 1 Jun 2001 08:47:37 +0200

> after you've installed the ide drive, formatted the partitions to your
liking,
> and then copied over the data, you'll have to edit the lilo.conf file on
the
> ide drive to match the /dev/hda partitions.  You could then reboot under
the
> CD or a similar booth disk that has the IDE version of the lilo.conf
> and run lilo, thereby installing lilo to the MBR of the IDE drive...
>

don't forget to change fstab too.

Eric



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

From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: Converting flock() to fcntl()
Date: 01 Jun 2001 06:47:41 GMT

On Thu, 31 May 2001 12:09:37 -0400,
     Bernard Cosell <[EMAIL PROTECTED]> wrote:

>Anyone have any advice/traps/hints about converting programs to use
>fcntl(2) file locking instead of flock(2) locking?  The problem is
>that flock doesn't cross an NFS boundary and we will be having a pool
>of servers running off a shared filesystem and it is essential that we
>be able to do cross-machine locking.
>



In early linux dayes the one sas implemented on top of the other, but
they are too different to be compatible, so that gave problems.

fcntl locks
   - associated with the process id and can therefore not be
     inherited by a child process.
   - if a locked file is opened multiple times by a program
     the first close will release all locks even if the lock
     was set using one of the other fds.

flock locks
   - only locks entire files.
   - assiciated with an open file fd and can thus be inherited by
     a child process.


There might be other differencess as well.

Don't know about linux, but some NFS implementations of file
locking was, mildly said, unreliable.



Villy

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

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: sfdisk complains- read only file system
Date: Fri, 1 Jun 2001 09:01:01 +0200

> I've got a scsi disk with some partitions mounted as read only.  I want to
> clear out all the partition information and I want to use:
> sfdisk /dev/sda <<EOF
> 0,0,0
> EOF
>
> Before doing this I'm making sure that the partitions mounted as readonly
> are remounted and read+write and then unmounted. When I try the mentioned
> sfdisk command it complains that the file system is read only.

What are the permissions on /dev/sda ?

To clear a partition-table, you could also use dd:

dd if=/dev/zero of=/dev/sda bs=1 count=66 seek=446

Eric



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

From: [EMAIL PROTECTED] (joshua)
Subject: How to get the distribution name/version
Date: 1 Jun 2001 00:01:25 -0700

Hi all,
  I want to get the name/version of linux dist like
Red Hat 7.1; Red Hat 6.2 ,,,,,
  Is there a command for this?
  Where is the information stored?

  Just like we use 'uname -a' or -s or -n for other info,
I would like to get 'Dist name/ver'.

Thanks in advance

Joshua

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

From: [EMAIL PROTECTED]
Crossposted-To: alt.os.linux,comp.unix.bsd.freebsd.misc,linux.debian.user
Subject: Re: DVD: FreeBSD or Linux?
Date: Fri, 1 Jun 2001 07:50:47 +0000 (UTC)

wroot <[EMAIL PROTECTED]> wrote:
> Hi,

> I will be installing either FreeBSD or Debian Linux on a computer that will 
> later be equipped with a DVD drive. I want to watch DVD movies on it (sue 
> me). I know for a lot of things people can't recommend one over the other, 
> but for DVD-viewing, is Debian Stable better than FreeBSD?

> Thanks

DVD viewing is still in beta stage in both systems. There exists several
programs to do that, some more or less work under FreeBSD, for example
xine in the ports. You need to obtain a plugin for decoding the dvd
in some obscure corner of the web.

> Wroot

> P.S. As a different FreeBSD vs Debian issue: is it true that FreeBSD does 
> not authomate upgrading? (Like upgrading from 4.x to 5.y)

-- 
Michel Talon

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

From: "Riley" <[EMAIL PROTECTED]>
Subject: Unmangle UMSDOS Filenames
Date: Fri, 1 Jun 2001 01:06:03 -0700

I have a laptop that has a 120MB hard drive.  I want to install ZipSlack
onto it, to an ext2fs partition.  I used tomsrtbt to partition the drive,
and unzip the zip files (the split version on floppies).  The problem is,
all the files are mangled for UMSDOS.

It seems to me, there should be a utility to take the "--linux-.---" file in
a directory, and unmangle (and fix symlinks and devnodes) all the files in
that directory.  It would also be nice if that could be done recursively to
directories.  Does something like this exist?  If not, I think it should.  I
mean, all the code to unmangle stuff must be there already somewhere.  I
took a look at the kernel source for UMSDOS, and I'm not a good enough
programmer to figure out how to do that kind of stuff.

If there isn't some way to unmangle everything, how can I get ZipSlack
installed onto an ext2fs partition on my laptop?  I can't think of any way
to extract the stuff to a real UMSDOS partition and then copy it to an
ext2fs partition, since there's not enough hard drive space.  I can't take
the hard drive out and put it in another computer and do it, because it's a
laptop.  I don't want to use UMSDOS because I'm not going to be using DOS or
Windows, and the laptop is already slow to begin with, I don't want the
overhead of UMSDOS dragging it down too.  There must be some simple way
that's just eluding me.


Thanks,

Riley
[EMAIL PROTECTED]



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

From: [EMAIL PROTECTED]
Subject: Re: How to get the distribution name/version
Date: 1 Jun 2001 09:08:16 GMT

joshua <[EMAIL PROTECTED]> wrote:
>   I want to get the name/version of linux dist like

The name of the kernel and the version yes, but the
distribution is an information that is not written anywere
(AFAIK).

Davide

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

From: Ian Stirling <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.x,linux.redhat,linux.redhat.install
Subject: Re: 2GB File size limitation
Date: Fri, 01 Jun 2001 09:12:15 GMT

David Schwartz <[EMAIL PROTECTED]> wrote:

>[EMAIL PROTECTED] wrote:

>> My advice: just don't. Why do you need big files, anyway?

>        Well, for one thing, you might want you name server to be authoritative
>for 'com'.

Or, more practically, 2Gb is only 3.? hours of uncompressed CD quality
audio, or a couple of minutes of broadcast quality uncompressed video, or
several seconds of IMAX film ...

-- 
http://inquisitor.i.am/    |  mailto:[EMAIL PROTECTED] |             Ian Stirling.
===========================+=========================+==========================
He had been eight years upon a project for extracting sunbeams out of cucumbers,
which were to be put in vials hermetically sealed, and let out to warm the air
in raw inclement summers.  -- Jonathan Swift, "Gulliver's Travels" (1726)

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

From: John Thompson <[EMAIL PROTECTED]>
Subject: Re: how do i fake root?
Date: Thu, 31 May 2001 20:53:55 -0500

alpha wrote:

> i use redhat in the school network, i tried to install an opera5.01 rpm package
> under my account. the only problem is that i dont have root access. i read on
> opera's website i can fake root to get around this problem. how do i do that? 

Is it available in a tarball?  You should be able to compile it
as a mortal user and use it that way.

-- 


-John ([EMAIL PROTECTED])

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Converting flock() to fcntl()
Date: Fri, 1 Jun 2001 11:44:55 +0200

Bernard Cosell <[EMAIL PROTECTED]> wrote:
> The problem-de-jour, for example, is mail delivery.  Both sendmail's
> mail.local [our MDA] and qpopper [our pop3 daemon] use flock and don't

Sendmail uses dotlocking. All mail clients except pine use dotlocking,
or can be compiled to use it.

Peter

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

From: [EMAIL PROTECTED] (Kurt Jaeger)
Crossposted-To: alt.os.linux,comp.unix.bsd.freebsd.misc,linux.debian.user
Subject: Re: DVD: FreeBSD or Linux?
Date: Fri, 1 Jun 2001 10:19:13 +0000 (UTC)

Hi!

>I will be installing either FreeBSD or Debian Linux on a computer that will 
>later be equipped with a DVD drive. I want to watch DVD movies on it (sue 
>me). I know for a lot of things people can't recommend one over the other, 
>but for DVD-viewing, is Debian Stable better than FreeBSD?

If you install the current XFree86-4 port and the xine-port, then
you should be able to watch DVDs.

See

        http://LF.net/lf/pi/viewing-dvd

for a short guide on how to do it. Tricky, but it works -- if someone
suggests improvements ?

-- 
MfG/Best regards, Kurt Jaeger                                  19 years to go !
LF.net GmbH        [EMAIL PROTECTED]            Oberon.net GmbH       [EMAIL PROTECTED]
Vor dem Lauch 23   fon +49 711 90074-23 Georg-Glock-Str.14 fon +49 171 3101372
D-70567 Stuttgart  fax +49 711 90074-33 40474 Duesseldorf      +49 211 179253-11

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

From: "Peet Grobler" <peetgr at absa.co.za>
Subject: Re: how do i fake root?
Date: Fri, 1 Jun 2001 12:25:54 +0200

Isn't this a major security bug?

I can develop something, install it (fakeing root), and have the system for
myself?

Dave Uhring wrote in message ...
alpha wrote:

> i use redhat in the school network, i tried to install an opera5.01
> rpm package under my account. the only problem is that i dont have
> root access. i read on opera's website i can fake root to get around
> this problem. how do i do that? thx
>

# rpm -Uvh --prefix=/home/user_name opera........rpm




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

From: "Peet Grobler" <peetgr at absa.co.za>
Subject: Re: Linux - ok, which one?
Date: Fri, 1 Jun 2001 12:30:42 +0200

If you're up to it you can build your own system from scratch.
http://www.linuxfromscratch.org will show you how. That way you know exactly
what is installed on your sytem (you've compiled it yourself).

Only downside is, you can't install additional software via RPM. Which is
not so bad, you find the .tar.gz file and compile that as well.

My 2c,
Peet
bowman wrote in message ...
>
>"luther" <[EMAIL PROTECTED]> wrote in message
>news:gszR6.79$[EMAIL PROTECTED]...
>
>> Here's what I am going to use it for, for starters anyway:
>> Webserver (Apache - might want to add Tomcat too, not sure; maybe PHP;
>> anyway, redhat has Apache..)
>
>you can run Apache on any distro, including Windows. Or Xitami, or several
>others
>
>>  - attached to a database - mysql? pgsql? not sure..
>
>again MySQL, PostGreSQL, Db2 and so forth run on just about anything.
>
>> FTP server (I guess redhat comes with one, but I can't figure out what it
>is
>> or what its called)
>
>ftpd, oddly enough. try  'man ftpd'  many webservers also do ftp along with
>http. you might find an existing server squatting on the default ports.
>
>> Question #1)
>> WHICH DISTRIBUTION? There are so many... maybe choice IS a bad thing!
>
>any one. I'm running Mandrake currently (because it was the cheapest
>shrink-wrapped box after I
>hosed RH5.2 doing a kernel/glibc update). Have also ran RH of various
>flavors, Slackware. Debian is the most stable, as they don't try to have
the
>latest, greatest of everything. Suse if fine.
>
>Most distros have more shit than you need/want, and in most cases you'll
>either build or or rpm the updates for those apps you actually use.
>
>> Question #2)
>> KDE or GNOME? I want one of them. What's the friggin' difference? Why is
>> RedHat Installer asking ME which one to install?
>
>Not much difference. Personally, I think KDE is a little more together,
>though I'm running Gnome on my machines at the moment. Or, actually, I'm
>running the Gnome desktop on IceWM, and for most purposes really am just
>using the IceWM functionality. I'm a programmer -- give me gVim, some
xterms
>(or gnome-terminals or konsoles), and a working browser and I'm good to go.
>
>> Again, any links providing insight into answering these two questions
>would
>> be greatly appreciated...
>
>This is Linux, not Windows. Anarchy, not a patriarchal BigBrother. I don't
>have any real statistics, but lets say 85.2% of the Linux users spend 64.3
%
>of their time dicking around with different WMs, Desktops, Editors, and so
>forth, 27,2% of their time repairing failed installations, and the balance
>doing anything productive.
>
>Not quite that bad, but it is all personal preference, and really very
>little difference at the end of the day. BTW, the HOWTO's, Mini HOWTO's,
>docs included in various tarballs, man pages, info, and so forth ARE the
>Linux documentation. RH is no better or worse in this regard.
>
>
>



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

From: "Matthias Haase" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.admin,comp.os.linux.redhat,comp.os.linux.questions
Subject: Re: kernel won't recompile
Date: Fri, 01 Jun 2001 12:46:19 +0200

Hi, Tony...

>          -o vmlinux
> arch/i386/kernel/kernel.o: In function `pci_fixup_vt8363':
> arch/i386/kernel/kernel.o(.text.init+0x38d7): undefined reference to
> `noautodma'
> make: *** [vmlinux] Error 1
> 
> 
> 
> What is a "noautodma" and how do I fix it?
> 

...this is an known simple bug in source. 
For more information, please look at my bug report...

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=40123


-- 
regards from germany

Matthias

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

From: Jerome Mrozak <[EMAIL PROTECTED]>
Subject: Re: Bummed by debian apt-get
Date: Fri, 01 Jun 2001 06:05:10 -0500

John, you're awfully nice to respond in such detail to my essentially
newbie apt questions.  My experiences with it have been discouraging,
and I hope to get it right this time.  

With your advice (and possibly further answers to my responses below) I
hope to get a Progeny install upgraded to woody and Gnome 1.2.

John Hasler wrote:
> 
> Jerome Mrozak writes:
> > I pointed my Stormix install to http.us.debian.org and told it, through
> > sources.list, to fetch woody (or testing).
> 
> _Exactly_ what commands did you give?  _Exactly_ what was the result?  I
> can't guess what you mean by "told it to fetch woody" (BTW testing was
> broken recently).

I don't have the file terribly handy, but the original file had lines
like:
deb http://http.us.debian.org/debian stable main contrib non-free

and all I did was to replace "stable" with "testing" or with "woody".

> > I really expected it to install new stuff,...
> 
> It doesn't install new stuff unless you tell it to.  IMO the man page makes
> this clear.

Is Gnome part of woody?  If so, then shouldn't "apt-get upgrade" with
"woody" in the "deb ..." lines get it?  Try this question:  If my
sources.list file has "deb ... stable ...", then I suppose "apt-get
upgrade" will fetch "testing".  If my sources.list file has "deb ...
testing ...", then what version would "apt-get upgrade" attempt to get? 
My first attempt at fetching woody was the first example, and I got the
50 MB or so changes.  With the same sources.list (the one with
"testing") I went for "apt-get dist-upgrade" and didn't see what I
thought I should -- even a reboot had debian_version == potato.

What magic thing will tell me I have woody, as opposed to a broken
upgrade?

> > Someone who can tell me how to get to woody from my current potato-based
> > distro.
> 
> Put
> 
>         deb http://http.us.debian.org/debian testing main contrib non-free
> 
> in /etc/apt/sources.list and run (as root)
> 
>         apt-get update; apt-get dist-upgrade

This is my prior comment again...do these lines attempt to upgrade
"testing" to "unstable"?

> When this completes successfully run (as root)
> 
>         apt-get install console-apt
> 
> And use console-apt to get your Gnome and KDE stuff.  You'll like it better
> than the command-line interface.  You might like gnome-apt even better.
> You'll probably want task-gnome-desktop and/or task-kde.

When the upgrade is done, should I expect to be able to search my file
system and find these files named task-* ?

> 
> BTW the best place for Debian-specific questions is the debian-user mailing
> list.  Go to www.debian.org to subscribe.

I have done that before and found it like sipping from a firehose.  A
hundred or so emails a day.  All potentially informative, and all of
which must be loaded to find the reply to my questions.  


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

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

From: Rick <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.powerpc
Subject: BellSouth DSL vs Linux
Date: Fri, 01 Jun 2001 06:56:10 -0400

Is anyone using Linux with Bellsouth's DSL service. I am holding off
getting DSL, becasue I want to be able to use it under MacOS and Linux
(Intel & PPC).

Any info (including on how to set up Linux to use DSL) is greatly
appreciated. I have NO experience with connecting Linux through
ethernet.

-- 
Rick

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

From: fow99 <[EMAIL PROTECTED]>
Subject: Re: help compiling (parse error)
Date: Fri, 1 Jun 2001 12:49:18 +0100

hannes achleitner wrote:

> hello, i tried to compile a programm, but I get this error:
> I cnt't solve the problem by mayself, maybe someone can helf me
> thx
> hannes
> 
> cc -I.. -O  -I/usr/X11/include   -c -o dialog.o dialog.c
> In file included from ulib.h:16,
>                  from dialog.c:12:
> ../firewall.h:34: parse error before `FWTK_VERSION'
> In file included from /usr/X11/include/X11/Xaw/Paned.h:69,
>                  from dialog.c:20:
> /usr/X11/include/X11/Constraint.h:57: parse error before `WidgetClass'
> /usr/X11/include/X11/Constraint.h:57: warning: data definition has no
> type or storage class
> In file included from /usr/X11/include/X11/Xaw/Paned.h:70,
>                  from dialog.c:20:
> /usr/X11/include/X11/Xmu/Converters.h:53: parse error before `*'
> /usr/X11/include/X11/Xmu/Converters.h:73: parse error before `*'
> /usr/X11/include/X11/Xmu/Converters.h:86: parse error before `*'
> /usr/X11/include/X11/Xmu/Converters.h:92: parse error before
> `XmuCvtStringToColorCursor'
> /usr/X11/include/X11/Xmu/Converters.h:95: parse error before `XrmValue'
> /usr/X11/include/X11/Xmu/Converters.h:101: warning: data definition has
> no type or storage class
> 
I didn't really look into it. But that error is often caused by an 
undifined bype, in your case FWTK_VERSION.


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

From: Richard <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: how to set the duplex and media type for my network card
Date: Fri, 01 Jun 2001 12:07:36 GMT

We have a couple of 3com905c cards. But the one in particular i need to
make sure of is an intel pro 100+ adapter. It came OEM in a Dell
Poweredge 6300. After talking to tech support for both Dell and Intel
yesterday neither could really help me. So anything you guys might know
would be a great help.



Dean Thompson wrote:
> 
> Hi Richard,
> 
> > i have been searching the net all morning to try and find a way to make
> > sure that my network cards are being loaded 100mb full duplex at boot
> > time. We have a server thats being used for a log server for our pix and
> > routers and it is running EXTREMELEY slow. We can barely ssh in. The
> > ports are set at 100mb Full. So i need to find a way to make sure that
> > my network card is running at that same speed. Please if anyone could
> > help it would be greatly appreciated.
> 
> You missed the one important details, what make are the network cards ???
> Sometimes you can force these issues with options like: full_duplex=1 in the
> /etc/modules.conf file.  Something like the following:
> 
> alias eth0 3c509
> options eth0 full_duplex=1
> 
> This forces you into full duplex mode, depending on what sort of network card
> you have you might also be able to use the options or media flags to force the
> card into different speeds but your system should auto-sense 100.
> Additionally, without knowing the driver behind the network cards it would be
> rather pointless guessing numbers :)
> 
> See ya
> 
> Dean Thompson
> 
> --
> +____________________________+____________________________________________+
> | Dean Thompson              | E-mail  - [EMAIL PROTECTED] |
> | Bach. Computing (Hons)     | ICQ     - 45191180                         |
> | PhD Student                | Office  - <Off-Campus>                     |
> | School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
> | MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
> | Melbourne, Australia       |                                            |
> +----------------------------+--------------------------------------------+

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

Crossposted-To: 
comp.os.linux.setup,comp.os.linux.x,linux.redhat,linux.redhat.install,linux.redhat.misc,redhat.kernel.general
Subject: Re: 2GB File size limitation
From: [EMAIL PROTECTED]
Date: 01 Jun 2001 08:08:27 -0400

David Schwartz <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] wrote:
> 
> > My advice: just don't. Why do you need big files, anyway?
> 
> Well, for one thing, you might want you name server to be authoritative
> for 'com'.

Are you just being theoretical? I'm not sure how big the .com zone file
is; last time I heard, it was a big less than 2GB.

Anyway, I answered your question: upgrade libc, recompile things that
give you trouble, and be prepared for lots of things to break (or at
least fail to work for large files) anyway.

Len.


-- 
To obtain only high quality shareholders is no cinch.  Mrs.  Astor could
select her 400, but anyone can buy any stock.
                                        -- Warren Buffett, 1983

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

From: Stephen Cornell <[EMAIL PROTECTED]>
Subject: Re: how do i fake root?
Date: 01 Jun 2001 13:09:36 +0100

"Peet Grobler" <peetgr at absa.co.za> writes:

> Isn't this a major security bug?
> 
> I can develop something, install it (fakeing root), and have the system for
> myself?

No, because in this case `faking root' means `faking the root
filesystem' (i.e., / )rather than `faking the root user'.  In other
words, rpm --prefix=/some/directory means that files that would
normally be installed in, say, /usr/bin will go in
/some/directory/usr/bin instead.  You won't be permitted to overwrite
any files to which you don't have access, and if the RPM file runs a
script as part of the installation process then any parts of this
script that requires root privileges will fail.

There are programs that do fake being the root user (described as
`SUID root'), and the capabilities of these programs have to be
carefully controlled in order to avoid the kind of problem you hint
at.  Only the root user can make SUID root programs.
-- 
Stephen Cornell          [EMAIL PROTECTED]         Tel/fax +44-1223-336644
University of Cambridge, Zoology Department, Downing Street, CAMBRIDGE CB2 3EJ

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


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