Linux-Development-Sys Digest #24, Volume #8      Sun, 16 Jul 00 11:13:10 EDT

Contents:
  Re: Sound programming. Is there a library for it? (Nic)
  Re: a file security proposal (phil hunt)
  Re: Setting Environment Variables?? ([EMAIL PROTECTED])
  Installing modules in multi-processor machine ("Peter Huang")
  Re: a file security proposal (Colin Smith)
  Re: a file security proposal ("Trevor L. Jackson, III")
  Re: GetModuleFileName() in linux (Erik de Castro Lopo)
  Interface i8255 ("Christian Dahmen")
  Re: NFSRoot problems ("Jon Plews")
  Re: Sound programming. Is there a library for it? (Dave Blake)
  Allocating defect memory-byte ("Andreas Homa")
  quick question on multithreading under linux... (Evan Pfeuffer)
  Re: error number ([EMAIL PROTECTED])
  gcc install problem ("Ed Doyle")
  Re: gcc install problem (Christopher Browne)
  Re: gcc install problem ("Ed Doyle")

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

From: Nic <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Sound programming. Is there a library for it?
Date: Sun, 16 Jul 2000 12:46:53 +1200

[EMAIL PROTECTED] wrote:
> 
> Graphics on Linux arn't a problem. You can use X windows or vgalib amongst
> other things. Sound though I haven't figure out how to do short of getting
> some miserable beep using \07 or the XBeep() function in Xlib.
> Is there some sort of standard sound library in linux? The man pages and
> HOWTOs have proved fruitless.

Linux uses the Open Sound System API, for details see:

http://www.opensound.com/pguide/index.html

Regards,
        Nic.

-- 
J. Random Coder < sky at wibble dot net >

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

From: [EMAIL PROTECTED] (phil hunt)
Crossposted-To: sci.crypt,comp.os.linux.security
Subject: Re: a file security proposal
Date: Sun, 16 Jul 2000 01:08:05 +0100
Reply-To: [EMAIL PROTECTED]

On Sat, 15 Jul 2000 19:38:49 GMT, Michael Gu <[EMAIL PROTECTED]> wrote:
>If this has already been done, please ignore this message.

It has been done. There's a system that does this for Windows 95, &
which is now being poerted to Linux.

>I suggest to add file encryption capability to the system ( kernal, or
>whatever ). The general idea I have is following:
>
>    1. system distinguish whether a file is encrypted or not
>    2. when access an encrypted file, system will get the key by some
>means. e.g. prompt for a password, read user config file ...

If the password's in a file, doesn'rt that defeat the whole point of
encryption?

>    3. after having aquired the key, system will handle
>encryption/decryption transparent to the calling party.
>    4. when create an file, the function call has an option to make it
>encrypted.

Then it would be up to the application to decide whether the file should
be encrypted. Which means that existing application programs, written 
before the encryption system was designed, won't be able to do it.

Better to have that decision made by the encryption subsystem of the disk
control software (with directory-wide defaults, perhaps).


-- 
***** Phil Hunt ***** send email to [EMAIL PROTECTED] *****
Moore's Law: hardware speed doubles every 18 months
Gates' Law: software speed halves every 18 months 

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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.misc
Subject: Re: Setting Environment Variables??
Date: Sat, 15 Jul 2000 18:54:46 -0700

Cross posted to comp.os.linux.misc
Followups to comp.os.linux.misc

This topic is OT to c.o.l.d.s

On or about Sat, 15 Jul 2000 07:59:56 GMT, Sonic Hedgehog
<[EMAIL PROTECTED]> scrivened:
> I have installed the latest version of Redhat just recently now at
> RedHat 6.2 as I am interested in learning a little about X Windows
> programming.   Qt  is installed with Redhat choosing the development
> option and this set the QTDIR environment setting to /usr/lib/qt.2.1.0
> - this version didn't have the makefiles for the tutorials so I
> downloaded another version.  I renamed the directory to a more typing
> friendly name of 'qt' 

In general this is a very bad idea.  Directory names are intended to
indicate versions of libraries.  You *may* want to create a link to the
primary/default qt library directory, but moving it is a Bad Thing �.

> - so now I need to change the QTDIR setting to
> /usr/local/qt.  But I have no idea how to do this.  The Install file
> told me to create a '.profile' file in the home directory (for bash
> default for Redhat)  but this didn't work.  I read somewhere that
> there was a setenv command but this didn't work either.  Would someone
> please tell me what I am doing wrong?!?  

You should have a file ~/.profile or should be able to create one.  This
will only be sourced for *login* sessions.  Due to some peculiarities of
X windows, if you login in through a graphical X session manager, you
may not source your ~/.profile entry.  I prefer logging in through a
console session then launching X for this and other reasons.

You should be able to put the desired environment variable assignment in
one or more of the following:

  /etc/profile      # affects all users on the system at login
  /etc/bashrc       # affects all users on the system for each shell
                    # spawned
  ~/.profile        # affects specific user on, on login
  ~/.bashrc         # affects specific user on, on shell spawn

setenv only works for csh and derived shells (eg:  tcsh).

> The install program also mentioned that problems could occur finding a
> library and to run the sbin/ldconfig program, so I ran it to see what
> happened, and this program is trying to run libraries that no longer
> exist on the computer.  Would someone please tell me how I modify this
> file so that no longer happens?

man ld.so.conf

-- 
Karsten M. Self <[EMAIL PROTECTED]>     http://www.netcom.com/~kmself
 Evangelist, Opensales, Inc.                    http://www.opensales.org
  What part of "Gestalt" don't you understand?   Debian GNU/Linux rocks!
   http://gestalt-system.sourceforge.net/    K5: http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0

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

From: "Peter Huang" <[EMAIL PROTECTED]>
Subject: Installing modules in multi-processor machine
Date: Sat, 15 Jul 2000 20:16:24 -0700

I have a DellPowerEdge Server with 2 Pentium Pro 450 MHz machine with Linux.
It can install even the most generic module such as hello world. Does any
one know much about installing modules? I already enable the  dual CPU
(Symmatric multi processor support) mode in my recompilation of the kernel.

Peter



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

From: [EMAIL PROTECTED] (Colin Smith)
Crossposted-To: sci.crypt,comp.os.linux.security
Subject: Re: a file security proposal
Date: Sun, 16 Jul 2000 03:48:40 +0100
Reply-To: [EMAIL PROTECTED]

On Sun, 16 Jul 2000 01:08:05 +0100, phil hunt <[EMAIL PROTECTED]> wrote:
>On Sat, 15 Jul 2000 19:38:49 GMT, Michael Gu <[EMAIL PROTECTED]> wrote:
>>If this has already been done, please ignore this message.
>
>It has been done. There's a system that does this for Windows 95, &
>which is now being poerted to Linux.
>
>>I suggest to add file encryption capability to the system ( kernal, or
>>whatever ). The general idea I have is following:
>>
>>    1. system distinguish whether a file is encrypted or not
>>    2. when access an encrypted file, system will get the key by some
>>means. e.g. prompt for a password, read user config file ...

Linux already has an encrypted file system. Search for cryptfs.

[snip]

-- 
|Colin Smith:  [EMAIL PROTECTED]  |   Windows 2000    |
|     86% of Americans support the banning       |        AKA        |
|of Dihydrogen monoxide... Where do you stand??? |    The W2K Bug    |

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

Date: Sun, 16 Jul 2000 00:16:17 -0400
From: "Trevor L. Jackson, III" <[EMAIL PROTECTED]>
Crossposted-To: sci.crypt,comp.os.linux.security
Subject: Re: a file security proposal

Michael Gu wrote:

> Kaz Kylheku wrote:
>
> > On Sat, 15 Jul 2000 19:38:49 GMT, Michael Gu <[EMAIL PROTECTED]> wrote:
> > >If this has already been done, please ignore this message.
> > >
> > >I suggest to add file encryption capability to the system ( kernal, or
> > >whatever ). The general idea I have is following:
> >
> > It's spelled ``kernel'' and there are already solutions for this, like
> > CFS from AT&T Research or block device encryption.
> >
>
> Sorry for the spelling, I am not a computer yet.
>
> >
> > >    1. system distinguish whether a file is encrypted or not
> > >    2. when access an encrypted file, system will get the key by some
> > >means. e.g. prompt for a password, read user config file ...
> >
> > Hmm, read a plaintext user config file. And what will protect that?
> >
>
> Did I say it's a plaintext user config file? Even so, why can't it be protected?

It can.  You store the file encrypted on a separate device.  And you store the key to
the encrypted file containing the key to the encrypted disk ... where?

>
>
> >
> > Prompt for a password at access time? What if it's a GUI application?
> >
>
> I don't see why a GUI application can not pop up a window.

It can.  _Any_ application can.  How is the user supposed to know the application
asking for the password is a legitimate one?

>
>
> >
> > At one time, some goofballs decided to make low level file access
> > calls of an operating system generate prompts at the user. The result was the
> > infamous ``abort, retry, fail, ignore'' question of MS-DOS.
> >
>
> Well, I am OK with these message, at least they tell you something is wrong. It's
> better than something dies without a notice.

Your standards for software quality are abysmal.  But don't worry, there are a lot of
people who are used to Really Bad Software these days.

>
>
> >
> > CFS has a solution in the form of a command that creates plain-text mapping
> > which appears to be an NFS mounted filesystem. The encryption key is held
> > within the CFS daemon, which acts as the encryption/decryption agent on
> > behalf of the user; the user's application manipulate the plaintext tree,
> > and the CFS daemon performs encrypted I/O on the encrypted tree which is
> > stored somewhere else, possibly on another machine.
> >
> > A user can have many trees, with distinct keys. When the user wishes to access
> > his or her encrypted directory, he or she invokes the CFS command for creating
> > the plaintext mapping. At that time, the password is entered. The program
> > passes the authentication to the CFS daemon, which creates the plain view in a
> > directory tree that is NFS mounted from the deamon by the user's kernel.
> >
> > >    3. after having aquired the key, system will handle
> > >encryption/decryption transparent to the calling party.
> > >    4. when create an file, the function call has an option to make it
> > >encrypted.
> >
> > So each application that creates files has to be modified to support
> > this new option in the file creation system call! Good plan!
> >
>
> Please try to think more freely! If the system handles password,
> encryption/decryption, the application won't even know whether the file is
> encrypted or not! Why it has to be modified?

So that when it creates a file the file will be encrypted.  Are you assuming that all
the existing applications are already using a function call you are still trying to
design?



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

From: Erik de Castro Lopo <[EMAIL PROTECTED]>
Subject: Re: GetModuleFileName() in linux
Date: Sun, 16 Jul 2000 08:01:15 +0000

Nix wrote:
> 
> [EMAIL PROTECTED] writes:
> 
> > Actually, on linux systems (with /proc fs), reading the /proc/self/exe
> > symbolic link gives the information.
> 
> No, not always.

When is this not the case?

> > For example the ls command gives
> >
> >
> > lrwx------   1 basile   parents         0 jui 14 18:08 /proc/self/exe -> /bin/ls
> 
> Not if it's been unlinked. And binaries should still work even after
> they've been unlinked; 

Why would they be unlinked? By Whom? For what purpose?

> this lets them, e.g., be upgraded totally
> transparently to the people using them.

Are you talking about upgrading a running process? This doesn't
make sense. You can't upgrade the binary of a running process
and expect the process to switch from the old process to the new
one. It doesn't work!

Erik
-- 
+-------------------------------------------------+
     Erik de Castro Lopo     [EMAIL PROTECTED]
+-------------------------------------------------+
Q: How do you stop a Windows NT machine from crashing?
A: Shut it down and switch it off.

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

From: "Christian Dahmen" <[EMAIL PROTECTED]>
Subject: Interface i8255
Date: Sun, 16 Jul 2000 11:02:12 +0200

Hi,
ich bin auf der Suche nach einem Linuxtreiber (Kernel 2.1) f�r einen
i8255 Chip.
Bei Conrad habe ich mir die i8255 ISA Karte von bmc gekauft (top Teil), nur
unter Linux finde ich keinen Treiber.

Wer kann mir helfen?

C.Dahmen




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

From: "Jon Plews" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development
Subject: Re: NFSRoot problems
Date: Sat, 15 Jul 2000 12:22:00 +0100

[ upside-down post righted and line lengths trimmed ]
>root wrote in message ...
>[EMAIL PROTECTED] wrote:
>> In comp.os.linux.development.system Krik Lee <[EMAIL PROTECTED]> wrote:
>>> Hi:
>
>>>   I am trying NFSRoot in 2.4.0-test2-ac1.
>
>> do you need a 2.4.0-test kernel?
>
>> use a 2.2.x kernel if not
>
>I have been unable to find the root on NFS option in the 
>kernel config for 2.2.16.  Is a patch necessary for this, 
>or am I missing something obvious.  Do I need to be using 
>a development kernel?
>

Select the following options from 'make menuconfig':

    Networking options  -> IP: kernel level autoconfiguration
... and then ...
    Filesystems -> Network Filesystems -> NFS Filesystem Suport -> 
    Root Filesystem on NFS

Jon Plews.


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

From: [EMAIL PROTECTED] (Dave Blake)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Sound programming. Is there a library for it?
Date: 16 Jul 2000 03:03:26 GMT
Reply-To: [EMAIL PROTECTED]

[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Graphics on Linux arn't a problem. You can use X windows or
> vgalib amongst other things. Sound though I haven't figure out
> how to do short of getting some miserable beep using \07 or the
> XBeep() function in Xlib. Is there some sort of standard sound
> library in linux? The man pages and HOWTOs have proved fruitless.

http://www.opensound.com

Look for opensound API specs. 

Basically, it is not so tough. If you need a sample 
program email me. 


-- 
Dave Blake
[EMAIL PROTECTED]

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

From: "Andreas Homa" <[EMAIL PROTECTED]>
Subject: Allocating defect memory-byte
Date: Sun, 16 Jul 2000 13:43:44 +0200

Hi everybody,
I'm new in here and have the following Problem. I have a defect ram-module.
Only one bit has a failure. Not always but sometimes. The memtest gives
address $02ab4334. Is there a possibility to allocate this address while
initializing the kernel or later at boot time, so this address is never used
later ???

Thanks a lot

Bye

Andreas




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

From: Evan Pfeuffer <[EMAIL PROTECTED]>
Subject: quick question on multithreading under linux...
Date: Sun, 16 Jul 2000 13:10:51 GMT

hi everyone,
i've been doing multithreaded programming on solaris systems and now
i've decided to switch to linux.
what is the equivalent of the -mt option on the g++ compiler?  in other
words how to access the multithreaded
system libs for linking and compiling?
thanks a lot,
evan.


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

From: [EMAIL PROTECTED]
Subject: Re: error number
Date: Sun, 16 Jul 2000 13:50:49 GMT

Can I define my own error codes
If so at what value should I start

regards
jeseem
mailto:[EMAIL PROTECTED]


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: "Ed Doyle" <[EMAIL PROTECTED]>
Subject: gcc install problem
Date: Sun, 16 Jul 2000 10:39:22 -0400

Hi,
I am new to Linux.  I installed it from a CD from a book called Learning Red
Hat Linux.  As far as I can tell the cd does not include gcc or make - both
of which I want very badly.  I located and downloaded both from
egcs.cygnus.com, but it seems like I can not install make without gcc being
installed, and I can not install gcc without make being installed.  I must
be missing somthing.  Any guidence would be appreciated.
Ed Doyle




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

From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: gcc install problem
Reply-To: [EMAIL PROTECTED]
Date: Sun, 16 Jul 2000 14:44:12 GMT

Centuries ago, Nostradamus foresaw a time when Ed Doyle would say:
>I am new to Linux.  I installed it from a CD from a book called Learning Red
>Hat Linux.  As far as I can tell the cd does not include gcc or make - both
>of which I want very badly.  I located and downloaded both from
>egcs.cygnus.com, but it seems like I can not install make without gcc being
>installed, and I can not install gcc without make being installed.  I must
>be missing somthing.  Any guidence would be appreciated.

The problem you're having at this point is that you need to have some
base compiler and a base version of Make in order to compile GCC and
GNU Make, and you don't have that yet.

Could you tell us what version of Red Hat Linux came with that book?

Given that, it should be easy to determine which pre-compiled version of
GCC and Make you ought to download.

A good place to look, regardless, is <http://rpmfind.net/>.
-- 
[EMAIL PROTECTED] - <http://www.ntlug.org/~cbbrowne/lsf.html>
Ian  Malcolm:  "God creates  dinosaurs.  God  destroys dinosaurs.  God
creates man. Man destroys God. Man creates dinosaurs."  Ellie Sattler:
"Dinosaurs...eat man. Woman inherits the Earth."  -Jurassic Park

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

From: "Ed Doyle" <[EMAIL PROTECTED]>
Subject: Re: gcc install problem
Date: Sun, 16 Jul 2000 11:02:37 -0400

Hi,
When I boot linux is says:
Red Hat Linux release 6.0 (Hedwig)
Kernel 2.2.5-15 on an i586.
Ed




Christopher Browne wrote in message ...
>Centuries ago, Nostradamus foresaw a time when Ed Doyle would say:
>>I am new to Linux.  I installed it from a CD from a book called Learning
Red
>>Hat Linux.  As far as I can tell the cd does not include gcc or make -
both
>>of which I want very badly.  I located and downloaded both from
>>egcs.cygnus.com, but it seems like I can not install make without gcc
being
>>installed, and I can not install gcc without make being installed.  I must
>>be missing somthing.  Any guidence would be appreciated.
>
>The problem you're having at this point is that you need to have some
>base compiler and a base version of Make in order to compile GCC and
>GNU Make, and you don't have that yet.
>
>Could you tell us what version of Red Hat Linux came with that book?
>
>Given that, it should be easy to determine which pre-compiled version of
>GCC and Make you ought to download.
>
>A good place to look, regardless, is <http://rpmfind.net/>.
>--
>[EMAIL PROTECTED] - <http://www.ntlug.org/~cbbrowne/lsf.html>
>Ian  Malcolm:  "God creates  dinosaurs.  God  destroys dinosaurs.  God
>creates man. Man destroys God. Man creates dinosaurs."  Ellie Sattler:
>"Dinosaurs...eat man. Woman inherits the Earth."  -Jurassic Park



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


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