Linux-Misc Digest #966, Volume #19               Tue, 27 Apr 99 21:13:24 EDT

Contents:
  Re: Time Synchronization (Bob Hauck)
  Re: GNU reeks of Communism (Brandon)
  Re: parallel port devices (Bruno Barberi Gnecco)
  Re: tar ERROR (Michael)
  Reading the GDT (Urs Thuermann)
  Re: Reading the GDT ("John S. Fine")
  Re: Reading the GDT (John Burton)
  Re: Reading the GDT (Ulrich Weigand)
  Re: the file "freepages" (Christopher Mahmood)
  Re: Port 12345 connection attempt? Que? (Michiel Denie)
  Formating and partioning ("David Weinstein")
  Re: Kein CDROM-Support im DOS-Modus (RoadHawk)
  Re: Installing CDE with RedHat 5.2 ("Anthony J. Gabrielson")
  Re: Can SlackWare do it? (jik-)
  Re: GNU reeks of Communism (really) (John S. Dyson)
  Re: "make" help needed (Bob Martin)
  Re: "Make" help needed ("Drew Northup")

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

From: [EMAIL PROTECTED] (Bob Hauck)
Subject: Re: Time Synchronization
Date: Tue, 27 Apr 1999 22:12:44 GMT

In article <7g54i3$nf2$[EMAIL PROTECTED]>,
        [EMAIL PROTECTED] (Bill Unruh) writes:

>>> 2. How can I get the WinXX machines on the lan to sync to the Linux
>>> server?
> 
> ?? There is probably a port of ntp to Win as well. 

Put samba on the linux server and then have the windows
machines do "net time \\linux-server-name /set /y"

-- 
 16:00:00 up 63 days,  5:21,  0 users,  load average: 0.01, 0.04, 0.08

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

Date: Tue, 27 Apr 1999 19:25:20 -0400
From: Brandon <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.ms-windows.misc,comp.os.ms-windows.advocacy,comp.os.linux.advocacy
Subject: Re: GNU reeks of Communism

Filargiropoulos Stavros wrote:
> 
> Well, despite what you think, communism is a great ideology.



Oh yeah....that's why EVERY single country in the world uses it right? 
Now I see.   *yeah right*



Brandon
-- 
                              

"Bill Gates?, I dont know any Bill Gates.  Oh, you mean 'by putting
every conceivable 
 feature into an OPERATING SYSTEM, whether you want it or not, is
innovation' Bill 
 Gates? Yeah, I know the monopolizer"
                
                  http://web.mountain.net/~brandon/main.htm
     For Beginners in Linux, Emulation, Midis, Playstation Info, and
Virii.

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

From: Bruno Barberi Gnecco <[EMAIL PROTECTED]>
Subject: Re: parallel port devices
Date: 27 Apr 1999 18:28:01 -0500
Reply-To: [EMAIL PROTECTED]

Conway Yee wrote:
> 
> I have two parallel ports and three parallel port devices which I would
> like to use
> 
> Currently, the first parallel port has a zip drive and the second has a
> parallel printer.
> 
> What is the best way to add a syquest 135 drive?

        Why don't you connect the printer to the zipdrive? I use it here,
and from kernel 2.2 (in fact, it started in 2.1.something), you can print
and use the drive at the same time. 

-- 
Did you *REALLY* check that interface between the chair and the keyboard?
Bruno Barberi Gnecco <[EMAIL PROTECTED]> ICQ #1383173 - PGP 5.0i user 
[I'm running Linux] -=-=- Electric Engineering at Politechnic School, USP
http://www.geocities.com/RodeoDrive/1980/ * Check for C, 3D graphics, etc

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

From: Michael <[EMAIL PROTECTED]>
Subject: Re: tar ERROR
Date: Tue, 27 Apr 1999 11:54:38 GMT

I also get this error ewhen I try to untar files. No, it is NOT corrupted at
all as I am able to untar it from 2.0.32 many times without problem.

Error message as shown below:

[root@localhost]# tar -xvzf WindowsMaker-0.53.0.tar.gz
. 
. 
. 
. 
gzip: stdin: invalid compressed data -- crc error
tar: Child returned status 1
tar: Error exit delayed from previous errors

NOTE that the '.'s are just listing of some of the files in the tar ball file
and stop half-way with the error message mentioned above.

Hope you guys could help me out here.

Many thanks in advance.

From,

Michael

============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

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

From: Urs Thuermann <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.asm.x86
Subject: Reading the GDT
Date: 27 Apr 1999 15:42:13 GMT

I am experimenting with segmenting on a Pentium running Linux-2.2.6.

I'd like to read the GDT and so far have done the following

--- foo.c ---------------------------------------------------
#include <stdio.h>

struct selectors {
    short int cs, ds, es, fs, gs, ss;
};

struct gdt {
    short int pad;
    short int limit;
    long  int base;
};

extern int read_regs(struct selectors *, struct gdt *, short int *);

int main()
{
    struct selectors s;
    struct gdt gdt;
    short int ldtr;

    read_regs(&s, &gdt, &ldtr);

    printf("cs\t\t%04x\nss\t\t%04x\n"
           "ds\t\t%04x\nes\t\t%04x\nfs\t\t%04x\ngs\t\t%04x\n",
           s.cs, s.ss, s.ds, s.es, s.fs, s.gs);
    printf("gdt base\t%p\ngdt limit\t%04x\n", gdt.base, gdt.limit);
    printf("ldt\t\t%04x\n", ldtr);

    return 0;
}
--- rd.s ----------------------------------------------------
.text
        .align 4
.globl read_regs
read_regs:
        movl 4(%esp),%ebx
        mov  %cs,(%ebx)
        mov  %ds,2(%ebx)
        mov  %es,4(%ebx)
        mov  %fs,6(%ebx)
        mov  %gs,8(%ebx)
        mov  %ss,10(%ebx)

        movl 8(%esp),%ebx
        sgdt 2(%ebx)

        movl 12(%esp),%ebx
        sldt %eax
        mov  %ax,(%ebx)

        ret
=============================================================

The result is
bash$ ./a
cs              0023
ss              002b
ds              002b
es              002b
fs              0000
gs              0000
gdt base        0xc01c9d20
gdt limit       205f
ldt             0068



Why is the limit of the GDT segment 0x205f?  I'd expect it to be a
multiple of 8 since a segment descriptor is 8 bytes.

How can I read the entries in the GDT?  Is there an asm instruction to
read from address 0xc01c9d20 without this address beeing interpreted
as offset to some segment base?

Is there a way in Linux for a process to set its CPL to 0 so that it
can access arbitrary address like 0xc01c9d20 which is in the kernel?


urs

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

From: "John S. Fine" <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.asm.x86
Subject: Re: Reading the GDT
Date: 27 Apr 1999 16:00:04 GMT
Reply-To: [EMAIL PROTECTED]

Urs Thuermann wrote:
> 
> I am experimenting with segmenting on a Pentium running Linux-2.2.6.

> struct gdt {
>     short int pad;
>     short int limit;
>     long  int base;
> };

  I think using "pad" and having the ASM code use offset 2 of the
structure are a very ugly solution to the alignment problem.

  If you want a C structure to exactly correspond to an ASM
structure you should use __attribute__((packed)).


> gdt base        0xc01c9d20
> gdt limit       205f
> ldt             0068
> 
> Why is the limit of the GDT segment 0x205f?  I'd expect it to be a
> multiple of 8 since a segment descriptor is 8 bytes.

  Because a limit is not a length.  A limit is (length minus one).
It is the highest valid offset, not the first invalid offset.

> How can I read the entries in the GDT?

  Sorry I don't know Linux anywhere near well enough to answer
that.

>  Is there an asm instruction to
> read from address 0xc01c9d20 without this address beeing interpreted
> as offset to some segment base?

  Certainly not.  Why would Intel design a protected mode and then
give you a back door to violate the protection.

> Is there a way in Linux for a process to set its CPL to 0 so that it
> can access arbitrary address like 0xc01c9d20 which is in the kernel?

  I expect Linux provides some method for CPL 3 code to request
that some CPL 0 code be loaded and executed (like a loadable
device driver or something).  I assume that the ability to use
that is restricted (like root only or something).  (I'm saw your
post in comp.lang.asm.x86, not comp.os.linux.misc, so trust my
ASM answers and not my Linux answers).
-- 
http://www.erols.com/johnfine/
http://www.geocities.com/SiliconValley/Peaks/8600/

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

From: John Burton <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.asm.x86
Subject: Re: Reading the GDT
Date: 27 Apr 1999 20:02:40 GMT

"John S. Fine" wrote:
> 
> Urs Thuermann wrote:
> >
> > I am experimenting with segmenting on a Pentium running Linux-2.2.6.
> 
> > struct gdt {
> >     short int pad;
> >     short int limit;
> >     long  int base;
> > };
> 
>   I think using "pad" and having the ASM code use offset 2 of the
> structure are a very ugly solution to the alignment problem.
> 
>   If you want a C structure to exactly correspond to an ASM
> structure you should use __attribute__((packed)).
> 
> > gdt base        0xc01c9d20
> > gdt limit       205f
> > ldt             0068
> >
> > Why is the limit of the GDT segment 0x205f?  I'd expect it to be a
> > multiple of 8 since a segment descriptor is 8 bytes.
> 
>   Because a limit is not a length.  A limit is (length minus one).
> It is the highest valid offset, not the first invalid offset.
> 
> > How can I read the entries in the GDT?
> 
>   Sorry I don't know Linux anywhere near well enough to answer
> that.
> 
> >  Is there an asm instruction to
> > read from address 0xc01c9d20 without this address beeing interpreted
> > as offset to some segment base?
> 
>   Certainly not.  Why would Intel design a protected mode and then
> give you a back door to violate the protection.
> 
> > Is there a way in Linux for a process to set its CPL to 0 so that it
> > can access arbitrary address like 0xc01c9d20 which is in the kernel?
> 
>   I expect Linux provides some method for CPL 3 code to request
> that some CPL 0 code be loaded and executed (like a loadable
> device driver or something).  I assume that the ability to use
> that is restricted (like root only or something).  (I'm saw your
> post in comp.lang.asm.x86, not comp.os.linux.misc, so trust my
> ASM answers and not my Linux answers).


Yes, the easiest way is to write a kernel module. Basically the kernel
can load an object file at run time and dynamically link it into 
the running kernel. Your code will then run at ring 0.

You of course need to be root to do this. It's very clever.

You should be able to find some examples of kernel modules somewhere
on the internet without too much trouble. Also there is a very
good book "Linux Device drivers" which exaplains this quite well.

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

From: [EMAIL PROTECTED] (Ulrich Weigand)
Crossposted-To: comp.lang.asm.x86
Subject: Re: Reading the GDT
Date: 27 Apr 1999 21:23:51 GMT

Urs Thuermann <[EMAIL PROTECTED]> writes:

>How can I read the entries in the GDT?  Is there an asm instruction to
>read from address 0xc01c9d20 without this address beeing interpreted
>as offset to some segment base?

No.  But you can interpret the address as offset to a segment whose
base happens to be zero.  Fortunately, the default selector that is
loaded to DS/ES virtually all the time while running a Linux user-
mode application does point to a segment with base zero ;-)

>Is there a way in Linux for a process to set its CPL to 0 so that it
>can access arbitrary address like 0xc01c9d20 which is in the kernel?

No.  The only way to access this location is from within the kernel.
You might write a kernel module if you really want to do that ...

On the other hand, if you only want to know what's in the GDT it would
probably be easier to just read the kernel sources  ;-)


-- 
  Ulrich Weigand,
  IMMD 1, Universitaet Erlangen-Nuernberg,
  Martensstr. 3, D-91058 Erlangen, Phone: +49 9131 85-7688

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

From: Christopher Mahmood <[EMAIL PROTECTED]>
Subject: Re: the file "freepages"
Date: 27 Apr 1999 15:51:23 -0700

> Is there a difference between establishing a ppp connection with the ISP
> between console and X? 
no

>Establishing in X is a piece of cake, but what
> about console? Is it necessary to create a script?
you already have a script if it works.  it's usually called 'ppp-on'
or 'ppp-up', but since you didn't say how you created this in
X, I can't help you.
-ckm

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

From: Michiel Denie <[EMAIL PROTECTED]>
Subject: Re: Port 12345 connection attempt? Que?
Date: Tue, 27 Apr 1999 21:49:44 +0200

**Nick Brown wrote:
> 
> The number 12345 in inittab should be read as "1,2,3,4,5" and indicates
> the runlevels (1 through 5) where that action is valid.  It's not a
> decimal number.
> 
> Peter Caffin wrote:
> > The only thing that looks remotely like this is /etc/inittab's entry for
> > shutdown, but, given that there's nothing remotely like that number in
> > /etc/services, trying to connect there would seem silly..
> 
> --
> ---------------------------------------------------------------
> Nick Brown, Strasbourg, France (Nick(dot)Brown(at)coe(dot)int)
> 
> Protect yourself against Word 95/97 viruses, free - check out
>  http://www.geocities.com/NapaValley/Vineyard/1446/atlas-t.html
> ---------------------------------------------------------------

Looks like they're probing his machine for a Netbus infection.

Michiel Denie!

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

From: "David Weinstein" <[EMAIL PROTECTED]>
Crossposted-To: 
fj.os.linux.setup,it.comp.linux.setup,linux.dev.config,linux.dev.msdos,linux.dev.newbie
Subject: Formating and partioning
Date: Tue, 27 Apr 1999 19:17:01 -0400
Reply-To: "David Weinstein" <[EMAIL PROTECTED]>

I recently installed linux onton an Old i486 i had laying around that I use
to test new things.... I played around with linux a bit liked it and decided
to place it on a faster machine... But i want to take the ol i486 and
repartion it back to a DOS Logical partion. Now Is there some place i can
look for detailed instructions on how to wipe linux from teh machine...
change the partions and wipe the master boot record all back to DOS? Any
help in this is aprciated.

-rath
please reply to [EMAIL PROTECTED]
Remove _no_spam from email addy if you hit reply.



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

From: [EMAIL PROTECTED] (RoadHawk)
Subject: Re: Kein CDROM-Support im DOS-Modus
Date: Tue, 27 Apr 1999 19:57:55 GMT
Reply-To: dos.not@exist

>>Wenn ich meinen PC f�r die LINUX-Installation im DOS-Modus hochfahre, habe
>>ich keinen CD-ROM-Support.Wie kriege ich den hin?
>dos-mode? in Linux?
>Sie mussen das cdrom mounten (let's talk english or dutch ;o) )
>You have to nmount the cd-rom: mount -t 9660 /dev/hdd /mnt/cdrom
>I'm not sure whether it was hdd or hdc or somthing like that, read the
>manual..
>unmounten: umount /mnt/cdrom (if you want to open the tray...)
Sorry, i answered too fast, it's true that you should have mscdex...
I thought you've missed the cdrom in Linux...


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

From: "Anthony J. Gabrielson" <[EMAIL PROTECTED]>
Subject: Re: Installing CDE with RedHat 5.2
Date: Tue, 27 Apr 1999 16:08:33 -0400

Ehy hasn't anyone mentioned that xig sells it with certain accelerated x
servers?

Anthony

On Sun, 25 Apr 1999, Dustin Puryear wrote:

> On Sat, 24 Apr 1999 07:58:32 -0700, Gerald Willmann wrote:
> >have you considered using the x86 version of Solaris. It's only 10
> >dollars for non commercial use and CDE is included.
> 
> That's a pretty rough way of solving the problem. UnixWare 7 also comes
> with a CDE window manager. Maybe he should try that. :-)
> 
> Anyway, isn't there a free CDE-like window manager out there? I'm sure
> I've seen it mentioned, but can't remember where.
> 
> -- 
> Dustin Puryear
> [EMAIL PROTECTED]
> 
> 
> 


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

Date: Tue, 27 Apr 1999 13:25:07 -0700
From: jik- <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: Can SlackWare do it?

Alan W. Jurgensen wrote:
> 
> I have an older OPTi 82C929 sound card with proprietary panasonic CR-562
> CD-ROM...
> 
> I'm tring to install Red-Hat 5.2 ... no dice.  Have tried
> soundblaster/panasonic CD-ROM type... but wont detect it.
> 
> So, Ive verified it works in dos with Opti Sound/CD-ROM drivers...
> 
> Tried Toms 1 Disk Linux system... and tried loading isp16 cd-rom driver which
> states opti support...  It seems to load and detect
> cdrom interface ok... BUT how to access drive? what is the device file?  HELP
> !
> 
> Does slackware have support for this drive/card combo?

Slackware most likel;y will not have any more or less hardware support
then redhat.  They use the same kernel and underlying drivers, even a
lot of the same software.  It is in the setup and software areas that
they differ,...not in the kernel or drivers.

That asid, the drive numbers are going to be

hda - primary master
hdb - primary slave
hdc - secondary master
hdd - secondary slave

the scsi disks are going to be 
scd0 for the first scsi cdrom....not sure if scd is used for normal scsi
drives but I reacall using sd0 for the paralel zip on my dad's PC.

You have to mount this drive before you can access it unless your doing
raw writing or formatting.

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

From: [EMAIL PROTECTED] (John S. Dyson)
Crossposted-To: talk.politics.misc,comp.os.linux.advocacy
Subject: Re: GNU reeks of Communism (really)
Date: 27 Apr 1999 19:50:36 GMT

In article <[EMAIL PROTECTED]>,
        [EMAIL PROTECTED] (The Ghost In The Machine) writes:
> On Tue, 27 Apr 1999 15:55:24 +0300,
> Filargiropoulos Stavros <[EMAIL PROTECTED]> wrote:
>>Well, despite what you think, communism is a great ideology.
>>
> 
> Yeah, sure it is.  That's why the USSR is dominating our butts...
> oh, wait, it doesn't exist anymore.
> 
> Hmmm....that should tell you something... :-)
> 
> The followups should also tell you something. :-)
> 
A given idealogy might just not be practical.  Some idealogies might
be practical in the short term or regressive (like GPL), or work
well in the longer term (practical capitalism and properly compensated
creativity.)  For each person, it depends on timescale or personal
interest.  Some systems elevate a "class" of individuals to take
advantage of others ("practical communism" and GPL), while others
are more egalitarian in practice (but not in the communist-like
theory that ignores true human nature.)

All ideas need to be tolerated, but one needs common sense and
discipline to stay away from implementing the seductive, but
damaging ones.  Pragmatism needs to be considered for both the
short and long term.  Unfortunately, it is often the idealogues
that seem to forget *long term* kindness to others, pragmatism
and the true cost to support an economy.

Recently, it seems that most idealogues have become better at "spin"
and misinformation, and are indeed much more destructive.

-- 
John                  | Never try to teach a pig to sing,
[EMAIL PROTECTED]      | it makes one look stupid
[EMAIL PROTECTED]         | and it irritates the pig.

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

Date: Tue, 27 Apr 1999 19:53:24 -0500
From: Bob Martin <[EMAIL PROTECTED]>
Subject: Re: "make" help needed

Documentation for much GNU software can be found at www.delorie.com

nobody wrote:

> I'm basically trying to understand makes built in rules and how
> makefiles work etc.  When would one use the following:
> make clean
> make mrproper
> make dep
> make install
> make all
> etc....
>
> I'm having a real difficult time finding any online resources other
> than man pages.  If anyone knows a good make tutorial site or can
> answer some basic questions I would be the happiest camper!!!!
>
> Thanks,
>
> nobody


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

From: "Drew Northup" <[EMAIL PROTECTED]>
Subject: Re: "Make" help needed
Date: Wed, 28 Apr 1999 00:55:53 GMT


nobody wrote in message <[EMAIL PROTECTED]>...
>"I am having a difficult time finding a make utility howto or any
>reference other than man pages on the web.  I want to grasp the basics
>concerning makefiles and the built in rules etc...  For example when
>would one use one of the following:
>make clean
>make mrproper
>make dep
>make all
>make install
>etc.
>
>Basically I'm just looking for some form of online documentation that
>would help me in this area.  Any help is appreciated.
>
>Thanks,
>
>erotus"
Try Richard Petersen's "Linux Programmer's Reference," published by
Osborne/McGraw Hill.
It is not perfect, i.e.. it takes some in depth knowledge to figure out the
complete repercussions of the facts he presents, but it is pretty complete.
Hope I have helped,
Drew Northup, N1XIM



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


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