Linux-Development-Sys Digest #188, Volume #6     Tue, 29 Dec 98 19:14:12 EST

Contents:
  Redhat 5.0 doesnt like onboard video cards?
  Re: Does brk hack still work (Wolfram Gloger)
  Re: hpterm client under RedHat5.X ("T.E.Dickey")
  Re: 2 stacks? (Anton Ertl)
  Re: Adding additional VT's under Linux (Morten Knudsen)
  Re: Kernel v2.2 (Martin Costabel)
  Re: Linux Update Server? (Andreas Micklei)
  Re: Two tough questions (Jorge Delgado Mendoza)
  Re: [HOWTO *] using Linux with >= 1 GB RAM (tjoen)
  Re: Does brk hack still work (George MacDonald)
  Re: Linux Registry Stone Bitch to Administer (Jens Kristian S�gaard)
  Re: A whacky DATE bug in Linux - Problem gets crazier! (Patrick Jelinck)
  Re: Human based computers (Was   -   Fruit-based computers) (Patrick Jelinck)
  Re: Registry - Already easily doable, in part. (Tristan Wibberley)
  Re: A whacky DATE bug in Linux - Problem gets crazier! (Patrick Jelinck)
  Re: How to run Windows Applications on Linux ("D. Stimtis")

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

From: <[EMAIL PROTECTED]>
Subject: Redhat 5.0 doesnt like onboard video cards?
Date: Mon, 28 Dec 1998 22:23:18 -0800

I am just getting started using Linux.  I hope one day it knocks Windows off
its throne...but I have had nothing but trouble so far.  If I could just get
my video card to work so I could run Xwindows, i would be satisfied.  If
anyone can help me, I would really appreciate it.  I have a fairly new
Gateway G6-300 which has onboard video.  Here are the specs: Mpact2-3DVD (4
meg)  Chipset=Yamaha 6388 VPDC   RAMDAC= Generic 8-bit pseudo-color DAC

Thanks in advance!

[EMAIL PROTECTED]   or
[EMAIL PROTECTED]



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

From: Wolfram Gloger <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: Does brk hack still work
Date: 29 Dec 1998 11:48:01 +0100

George MacDonald <[EMAIL PROTECTED]> writes:

> Wolfram Gloger wrote:
> > 
> > On Linux you can tune the amount of memory that is newly sbrk()ed on a
> > malloc() call with mallopt(TOP_PAD, pad_size).  In your case, you
> > could try to specify

Arghh, I misspelled M_TOP_PAD, sorry.

> That's a new one on me, is this gnu specific? I can't find any documentation
> on it(man page or info files), but it's in my libc.a library!

The very latest glibc Texinfo documentation has some info on
mallopt(), but you're right, I should finally write a man page for
mallopt().  For the time being, you can also look at
/usr/include/malloc.h.

> > No way -- if SIZE_LARGER_THAN_TOTAL_OF_ALL_SMALL_CHUNKS is larger than
> > 128k, the free() will by default return all of the memory back to the
> > system on Linux with glibc2 or recent libc5.
> 
> It's virtual memory no? On Linux does the paging algorithm push
> unused/lightly used pages to swap space? In other words, if I malloc'd
> a huge amount of space and never used it, how long does Linux take
> before realizing the physical memory is not used(assuming Linux
> actually snarfs physical memory when the virtual memory is expanded
> in such a manner)?

Linux takes exactly zero microseconds to realize this :-).  If you
malloc() a huge amount of space, only one page is actually accessed
and faulted into real memory, the whole rest remains a copy of the
global all-zeros-page until you perform a write in the allocated
region.

Performing the page mapping, however, takes an amount of time
depending only on the size of the allocated region and not on whether
you actually use it or not.  It also takes page table entries (4bytes
per page) in unswappable kernel memory, so you shouldn't allocate
really huge regions without need.

Regards,
Wolfram.

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

From: "T.E.Dickey" <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.setup,comp.os.linux.networking,comp.os.linux.misc,comp.sys.hp.hpux
Subject: Re: hpterm client under RedHat5.X
Date: 29 Dec 1998 12:13:15 GMT

In comp.os.linux.development.system Bruce Mohler <[EMAIL PROTECTED]> wrote:

> I've always just FTP'd (binary mode) the terminfo entries from an HP system
> to the Linux boxes and they seem to work just fine.  For example, on an HP-UX
> 10.20 system, copy /usr/share/lib/terminfo/d/dtterm (for CDE) and
> /usr/share/lib/terminfo/h/hpterm (for VUE) to the corresponding terminfo
> directories on your Linux boxen.

that probably works (I don't have a 10.x system - nor a 9.x system any
longer).  But it wouldn't have worked under 9.x since the terminfo formats
were a little bit incompatible.

-- 
Thomas E. Dickey
[EMAIL PROTECTED]
http://www.clark.net/pub/dickey

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

From: [EMAIL PROTECTED] (Anton Ertl)
Subject: Re: 2 stacks?
Date: 29 Dec 1998 10:31:40 GMT

In article <[EMAIL PROTECTED]>,
 Johan Kullstam <[EMAIL PROTECTED]> writes:
> we would be lugging a frame pointer around everywhere, but that
> might not be so bad considering what you get - especially in terms of
> security.  a buffer overrun could clobber other data but not mess with
> the return stack.

The security aspect has been discussed in comp.compilers in July.
E.g., see http://www.iecc.com/comparch/article/98-07-246 for the
problems I see with this approach.  Nonetheless, I saw an announcement
of an appropriately modified version of GCC some months later.

- anton
-- 
M. Anton Ertl                    Some things have to be seen to be believed
[EMAIL PROTECTED] Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html

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

Date: Tue, 29 Dec 1998 11:51:05 +0100
From: Morten Knudsen <[EMAIL PROTECTED]>
Subject: Re: Adding additional VT's under Linux

Ross Vandegrift wrote:
> 
> Ryan Singer wrote:
> >
> > Does anyone know which kernel source files need
> > to be altered in order to allow VT's over 12 to
> > be used?
> 
> Don't quote me on this, since I'm no kernel hacker, but I don't think
> that you need to modify the kernel.  Just make sure that you have enough
> /dev/tty's to support the number you'd like.  That shouldn't be a
> problem unless you want like 2000 VT's.  I'd imaginge that you could
> modify the init and securetty stuff just like when increasing it from 7
> to 12, something which should be in standard distributions, IMHO.
> Anyone knowing otherwise should correct me.
> 
You need to create the /dev/tty? files (unless they're already there, 
my system has up to tty9). 
Then you go into /etc/inittab and find lines like :

c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

These are your 6 standard vt's. 

If you want 2 more vt's add 

c7:1235:respawn:/sbin/agetty 38400 tty7 linux
c8:1235:respawn:/sbin/agetty 38400 tty8 linux

Remember that you need vt's for X Windows too. 


Morten. 
> --
> Ross Vandegrift | Eric J. Fenderson
> 
> alt.binaries.punk: for those of us too
>         punk to pay money for the music.

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

From: Martin Costabel <[EMAIL PROTECTED]>
Subject: Re: Kernel v2.2
Date: Tue, 29 Dec 1998 14:28:46 +0100

Johan Kullstam wrote:
> 
> Martin Bahlinger <[EMAIL PROTECTED]> writes:
> 
> > Does anybody know, how long we've to wait for the new Linux kernel
> > ??
> 
> if you like, you can download, compile and use a development kernel
> *right now*!  i've been using 2.1.124 .125 .129 and .131 for a couple
> of months now with great success (devel kernels get updated frequently
> and i can't keep up - the inbetween ones i just didn't get a chance to
> download and install them.)
> 
> > BTW: Is it called v2.2 or v3.0 ???
> 
> i think will be 2.2.0 2.2.1 &c.

In case you haven't heard yet: It is there! Version 2.2.0-pre1 came out
yesterday.

--
Martin

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

Crossposted-To: linux.dev.kernel
From: Andreas Micklei <[EMAIL PROTECTED]>
Subject: Re: Linux Update Server?
Date: Tue, 29 Dec 1998 13:34:34 GMT

Hi Jason,

"ncc1701d" <_ncc1701d> wrote:
: I was just wondering if there is any kind of program out there for Linux,
: RedHat in particular, that has the same functionality as the Windows Update
: Server does for Win98.

You might try rpmfind from http://rufus.w3.org/
It is a command line tool which can look for software packages you speciefy
or for updated versions of the packages you have already installed. If it
finds something you can download it with a single keystroke. Quite useful.

   bye...
         Andreas Micklei

-- 
/ Andreas Micklei  -  [EMAIL PROTECTED] / [EMAIL PROTECTED]  Public key  \
| V 3.1: GCS d- s:-- a- C++$ UBLS++$ P>++ L++(+++)$ E---       //  available   |
| W++(-) N++ o-- K++ w--- O? M V? PS++ PE- Y+>++ PGP+ t+   \\ //   on demand   |
\ 5 X(+) R(+) tv-(+) b+ DI++ D+(---) G e>+++ h--- r++ y+    \X/                /

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

From: Jorge Delgado Mendoza <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Two tough questions
Date: Tue, 29 Dec 1998 14:24:58 +0100

Michele wrote:
> 
> Hi there,
> 
> I have 2 easy( or at least I hope so) questions for you.
> 
> #1: I need to load two drivers and make a program run in batch mode at
> boot time,say when everything is up and ready for login command.Where do
> I put these instructions or what I have to do?

Add it to /etc/rc.d/rc.local

> 
> #2: I need,from a C program,to make Linux reboot when something weird is
> happening.WHat call I need to do within the program?

1.- Setuid the program as 'root' (ie. has root privileges)
2.- whenever you want (in the code) issue the system call 'system'

                if ( reboot_condition)
                        system ( "reboot" );

man system, man execve....

> 
> Thanks in advance.
> 
> Michele

-- 
|[EMAIL PROTECTED]      |Windows 9x/NT are real 'Operating Systems'. They do    |
|Jorge Delgado Mendoza|whatever the hell they want to, whenever they feel like|
|CONVEX Supercomputer |it. Thus all the rest  should be called 'Co-Operating  |
|SPAIN                |Systems'                                               |
|+34-91-531-00-95     |        As seen in comp.os.linux.*                     |

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

From: [EMAIL PROTECTED] (tjoen)
Crossposted-To: nl.comp.os.linux,revue.linux-kernel
Subject: Re: [HOWTO *] using Linux with >= 1 GB RAM
Date: Tue, 29 Dec 1998 18:11:55 GMT

On Thu, 24 Dec 1998 18:06:30 GMT, [EMAIL PROTECTED] (tjoen) wrote:

>[EMAIL PROTECTED] but I received only the welcome-mail. I have
>resubscribed and mailed the listman.

Received a reply: the news2mail is broken, they are trying to fix it.

-- 
e-mailers: replace .hl by .nl

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

From: George MacDonald <[EMAIL PROTECTED]>
Subject: Re: Does brk hack still work
Date: Tue, 29 Dec 1998 20:13:48 GMT

Anton Ertl wrote:
> 
> In article <[EMAIL PROTECTED]>,
>  George MacDonald <[EMAIL PROTECTED]> writes:
> >On Linux does the paging algorithm push
> > unused/lightly used pages to swap space? In other words, if I malloc'd
> > a huge amount of space and never used it, how long does Linux take
> > before realizing the physical memory is not used(assuming Linux
> > actually snarfs physical memory when the virtual memory is expanded
> > in such a manner)?
> 
> It does not snarf any memory before it is actually accessed, so your
> other question is moot. 

<Snip> Some nice info on what malloc actually does

So if the sum of virtual memory spaces for all the processes can
be larger than the swap space what happens when the system can't
swap?

Is that something I need to worry about in my application? i.e.
do I need to add some defensive code to handle that condition,
if so, what code?

Note: I already check for any memory allocation failures(I actually
had this happen a couple of weeks ago, and my program did exactly
what I wanted it to do(kept running)).

-- 
We stand on the shoulders of those giants who coded before.
Build a good layer, stand strong, and prepare for the next wave.
Guide those who come after you, give them your shoulder, lend them your code.
Code well and live!   - [EMAIL PROTECTED] (7th Coding Battalion)

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

From: [EMAIL PROTECTED] (Jens Kristian S�gaard)
Subject: Re: Linux Registry Stone Bitch to Administer
Date: 29 Dec 1998 21:37:34 +0100

Robin Becker <[EMAIL PROTECTED]> writes:

> >Why not just export the whole registry to a textfile (using
> unfortunately DLL's and other resource type files can be fairly
> arbitrarily changed by install programs; you really need a snapshot of

Well, use Ghost to make an image of the original harddrive. Shouldn't
be that hard ;-)

-- 
Jens Kristian S�gaard,
[EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Patrick Jelinck)
Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.setup,alt.linux,alt.os.linux,comp.os.linux,comp.os.linux.questions,aus.computers.linux
Subject: Re: A whacky DATE bug in Linux - Problem gets crazier!
Date: Tue, 29 Dec 1998 20:27:58 GMT

automatic daylight saving change (at a fix date) may be quite tricky
if you have multiple os's

suppose that you have this option activated as well in win95 and linux
on same machine, and change date would be 25/10/1998.

if you boot in win95 and linux before this date, and then again in
both of them after this date, your bios clocks jump from summer time
to winter time (europe) may be executed TWICE !!!, once by win and
once by linux and your pc's clock will be 1 hour late !

in fact these automatic change mechanisms check if the change date is
in the interval between your current and your previous boot, because
it must work even if your computer keeps powered off during the whole
24 hours of change date

solution: activate automatic change only in WIN or in LINUX

steve

On Sun, 27 Sep 1998 23:50:52 +1000, "Peter B. West" <[EMAIL PROTECTED]>
wrote:

>Ron House wrote:
>> 
>> I am starting to suspect you are right, that there is a newly created
>> bug in here somewhere. But why am I the only person on the planet to
>> notice it???
>
>Probably because you are one of the few people to whom the
>synchronisation of timestamps on linux and the DOS partition is
>important.  I tried it on my 2.0.34 RedHat 5.1 system and saw the same
>problem.


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

From: [EMAIL PROTECTED] (Patrick Jelinck)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.networking,bionet.plants
Subject: Re: Human based computers (Was   -   Fruit-based computers)
Date: Tue, 29 Dec 1998 20:25:08 GMT

these math coprocessors will never work...
because the human cpu and the ram can not be overclocked, not even at
100mhz

silicium based fpu's are inaccurate for low speed bio-cpu's

and an fpu bus buffer would not have the necessary capacity ( ~ 1 GB )

 9 Oct 1998 23:04:58 GMT, [EMAIL PROTECTED] (Matthias Warkus)
wrote:

>William Justice Black schrieb:
>> 
>> gus <[EMAIL PROTECTED]> wrote:
>> : Larry Smithmier wrote:
>> : > Tristan Wibberley wrote:
>> : > > Frampton Steve R wrote:
>> 
>> [...]
>> 
>> : Firstly, the concept:
>> : "Bio-interactive computational entity for additional analytical
>> : abilities for humans" In laymans terms, a device inserted in to a human
>> : which will allow previously impossible calculations to be performed
>> : "internally". The concept specifies that this bio-compatible computer
>> : will provide an additional support role for for the computational and
>> : analytical processes of the human brain. It will not supercede the brain
>> : as a processing unit. The brain will still be most important, otherwise
>> : we have an andriod, not a human.
>> 
>> [...]
>> 
>> Honestly, I'd be happy if I just had a decent mathco ;-)
>
>There's an SF book where humans have got mathematical coprocessors
>implanted in their brain (as well as pagers etc.).
>IIRC, it's _A_New_Proteus_, I don't recall the author.
>
>mawa


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

From: Tristan Wibberley <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Registry - Already easily doable, in part.
Date: Tue, 29 Dec 1998 17:26:52 +0000
Reply-To: [EMAIL PROTECTED]

[EMAIL PROTECTED] wrote:
> 
> In article <[EMAIL PROTECTED]>,
>   [EMAIL PROTECTED] wrote:
> > Christopher Browne wrote:
> > >
> >
> > > # mkdir /etc/hosts
> > > # cd /etc/hosts
> > > # echo "192.168.1.1" > chris.brownes.org
> >
> > ln chris.brownes.org :192.168.1.1
> 
> This is where the filesystem runs into some problems. If you use /etc/hosts
> as an example, both the address and the hostname should be keys that return
> the hostname or the address respectively.  In your case, the reverse lookup
> would return the address, which is the information that is already known. Ln
> can't save you here.  In your example you would need two distinct files for
> each host, one referenced by address and one referenced by name.
> 
> # echo router.brownes.org > :192.168.1.255
> # echo 192.168.1.255 > router.brownes.org

Sorry, I meant to put symbolic links (much more space efficient than
using a real file).

> This would get especially hairy when you're dealing with something like fstab
> which is searchable by several keys. (Granted fstab is small in comparison to
> a hosts database, but you get the idea).

I don't see it being that difficult, but I haven't thought about it
much.

-- 
Tristan Wibberley               Linux is a registered trademark
                                of Linus Torvalds.

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

From: [EMAIL PROTECTED] (Patrick Jelinck)
Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.setup,alt.linux,alt.os.linux,comp.os.linux,comp.os.linux.questions,aus.computers.linux
Subject: Re: A whacky DATE bug in Linux - Problem gets crazier!
Date: Tue, 29 Dec 1998 20:27:55 GMT

i have once found bad timestamps when opening files created in VFAT
partition by win95, with MSDOS 6.22 and norton commander

steve

On Sun, 27 Sep 1998 23:50:52 +1000, "Peter B. West" <[EMAIL PROTECTED]>
wrote:

>Ron House wrote:
>> 


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

Date: Mon, 28 Dec 1998 19:01:44 -0700
From: "D. Stimtis" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: 
comp.os.linux.advocacy,comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: How to run Windows Applications on Linux

[EMAIL PROTECTED] wrote:
> 
> In article <75sml7$12ec$[EMAIL PROTECTED]>,
>   [EMAIL PROTECTED] (Frank Miles) wrote:
> > In article <[EMAIL PROTECTED]>,
> > Adam P. Jenkins <[EMAIL PROTECTED]> wrote:
> > >[EMAIL PROTECTED] writes:
> > >> Have you tried WABI?  Caldera offers it via mail-order.  It isn't freeware.
> > >> Quicken is the ONLY application I still gave to run on Windows 95.  At work
> > >> I need to run Lotus Notes (for security and compliance reasons).
> > >
> > >I couldn't find anything about WABI on Caldera's web page.  Does WABI
> > >support Win32?  Last I heard it only supported 16-bit Win3.1 apps.
> > >Please correct me if I'm wrong.  Thanks.
> >
> > WABI is no more unless you can buy it from someone other than Caldera.
> > Linux Mall used to have it.
> > It only supported the Win3.1 apps AFAIK (that's all I use it for, and no
> > you can't have it).
> 
> I have a copy.  I've never installed it.  I can do almost everything
> (except Quicken) using available Linux applications.  Usually faster
> and cheaper than with Windows 95/NT.
> 
> After trying to reinstall Windows 98 for a friend, I want nothing to
> do with that ugly mess.  Windows 98 made a Slackware install look
> friendly.  I think I only had to reboot 14 times.
> 
> > Wine (notably this last version, wine-981211) is getting better but it's
> > not there yet.
> 
> Santa's making a list.  If You could have any piece of software ported
> to Linux, other than Microsoft's what would it be?
> 

Corel Draw 8, FreeSpace, and StarCraft (guess which are for work and which for play?).

> >       -frank
> 
> --
> Rex Ballard - Open Source Advocate, Internet Architect, MIS Director
> http://www.open4success.com
> 
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own

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


** 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.development.system) 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-Development-System Digest
******************************

Reply via email to