Linux-Development-Sys Digest #816, Volume #6     Fri, 11 Jun 99 08:14:30 EDT

Contents:
  Re: APM problems with RH6.0 Linux on Thinkpad 560 (Dr Vincent C Jones PE)
  Re: Filesystems: Get full pathname from I-node ?? (Alexander Viro)
  Re: Linux & Cybercafe (David L. Bilbey)
  Re: /etc/inittab suggestion for all distributions (Peter P. Eiserloh)
  long long... how to use?? ("Dan Miller")
  Core dumping and X window problem (Kevin Miller)
  Re: long long... how to use?? (Reality is a point of view)
  Sending a mail with attachment ("ERIC")
  Re: Writing Linux FileSystems for Dummies :-) (Adrian 'Dagurashibanipal' von Bidder)
  Re: Sending a mail with attachment (Remco van den Berg)
  Re: Sending a mail with attachment (Markus Hoevener)
  Re: Linux & Cybercafe (Moritz Moeller-Herrmann)

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

Crossposted-To: comp.os.linux.setup,comp.sys.laptops
Subject: Re: APM problems with RH6.0 Linux on Thinkpad 560
Reply-To: Dr Vincent C Jones PE <[EMAIL PROTECTED]>
From: [EMAIL PROTECTED] (Dr Vincent C Jones PE)
Date: Thu, 10 Jun 1999 11:13:05 -0400

I've been fighting this same problem on my 560 and Linux 2.0.36. What I
have found is the following:
  - Kernel parameters have no apparent impact
  - SCSI PCMCIA (Adaptec 1460) will only suspend with no devices
  - Using the floppy, then disconnecting it will prevent 2nd suspends
    but workaround is rmmod the floppy driver before it auto unloads.
  - Screen blanking is a crap shoot while running
  - Resume may or may not bring back the screen backlight. Workaround is
    set a password and use funcF4, func to keep retrying until its OK.
  - There is a patch for the 1.20 BIOS, I haven't bothered.

By the way, the disk running while the lid is closed is normal if the
disk is in use (which is almost always unless you turn off everything
useful like cron, at, screen savers/lockers, and syslogd.

I suspend routinely without problems other than the caveats above using
the command "apm -s" rather than func-F4. I don't use hibernation as
that requires using the func-keys and does not guarantee that Linux is
in a suspendable/stoppable state. It seemed to work most of the time
when I tried it, but when it doesn't the machine is locked up and must
be reset (even the power switch was hosed).

Good luck. And if you find any more solutions, please post them!

In article <[EMAIL PROTECTED]>,
Gaylord Holder  <[EMAIL PROTECTED]> wrote:
>
>I have an IBM Thinkpad 560 (no trailing letters) running RedHat 6.0
>(linux kernel 2.2.2.5-15).
>
>I've installed the Win95 bios (sytpk111.exe) on the machine because
>the machine locks up on resume with the Win98 bios (sytpk120.exe)
>
>I have the following problems with APM on it:
>
>       Occassionally the backlight does not turn back on after a resume
>       Disk drive does not shut down when the lid closes
>       Desired APM mode can not be entered
>
>Everything seems to work the for the first suspend/resume cycle, but
>after that, getting the machine to enter suspend seems pretty random.
>
>I've configured APM with the following options:
>
>CONFIG_APM=y
># CONFIG_APM_IGNORE_USER_SUSPEND is not set
>CONFIG_APM_DO_ENABLE=y
>CONFIG_APM_CPU_IDLE=y
>CONFIG_APM_DISPLAY_BLANK=y
>CONFIG_APM_POWER_OFF=y
>CONFIG_APM_IGNORE_MULTIPLE_SUSPEND=y
>CONFIG_APM_IGNORE_SUSPEND_BOUNCE=y
>CONFIG_APM_RTC_IS_GMT=y
># CONFIG_APM_ALLOW_INTS is not set
>
>Does anyone have any insights or suggestions on this?
>
>-- 
> Gaylord


-- 
   Dr. Vincent C. Jones, PE              Expert advice and a helping hand
   Computer Network Consultant           for those who want to manage and
   Networking Unlimited, Inc.            control their networking destiny
   http://www.networkingunlimited.com
   [EMAIL PROTECTED]  +1 201 568-7810  Fax: +1 201 568-6626 

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

From: [EMAIL PROTECTED] (Alexander Viro)
Subject: Re: Filesystems: Get full pathname from I-node ??
Date: 10 Jun 1999 11:18:50 -0400

In article <[EMAIL PROTECTED]>,
ELSID Software Systems LTD. <[EMAIL PROTECTED]> wrote:
>Greetings:
>
>Does any one know of a method of finding the complete pathname of a file
>given
>the i-node of that file.
>
>From what I have read it appears that the file system structures are
>only set up
>to get the I-node given a pathname but not the reverse.

There is no such thing as pathname of a file. File may be unlinked but
still open. Then it has no pathname associated with it. There may be
any number of links to that file, i.e. there may be many pathnames.

Files in UNIX are nameless. Directories are lists of pairs (name,pointer
to file) and file may be mentioned many times in any directory.

-- 
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid.  Get yourself a better computer" - Dilbert.

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

From: David L. Bilbey <[EMAIL PROTECTED]>
Crossposted-To: alt.uu.comp.os.linux.questions,comp.os.linux.networking
Subject: Re: Linux & Cybercafe
Date: 10 Jun 1999 14:46:08 GMT

  +-----On 10 Jun 1999 02:50:19 +0100, David Knight spoke unto us:----------
   | [EMAIL PROTECTED] (David T. Blake) writes:

   | > David Knight <[EMAIL PROTECTED]> writes:
   | > 
   | > >> You can configure the windowmanager without any xterm. So the users are
   | > >> not able to start any other program. On the desktop you offer only the
   | > >> browser. Login should be via xdm !
   | > >> That's it i think !

   | > >telnet://localhost
   | > >
   | > >and it will open an xterm running the telnet session, from which they
   | > >would then be able to start other programs.
   | > 
   | > And why is inetd serving telnet on this machine ??

   | good question :-)

   | But it was just an example, the program to handle telnet could be set to be
   | any program by editing netscapes preferences, so an xterm could be started up
   | on its own, or any other program that the users knows the path and has the
   | correct permissions for on the system.


What about looking into a smaller, easier to secure browser?  Who said that
it _has_ to be Netscape?

-- 
"When I think of all the arguments Marta and I have had, I realize how
silly most of them were.  And it makes me wonder why she wanted to argue
over such stupid things.  I think I'll go ask her."  --Jack Handey


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

From: [EMAIL PROTECTED] (Peter P. Eiserloh)
Subject: Re: /etc/inittab suggestion for all distributions
Date: 11 Jun 1999 06:32:11 GMT

In article <[EMAIL PROTECTED]>, Abdullah Ramazanoglu wrote:
>Miquel van Smoorenburg wrote:
>
>> You can ofcourse also boot the machine, interrupt LILO (keep shift pressed),
>> and boot the machine with the 'single' option. That will boot into single
>> user mode for repairs.
>> 
>> You can even boot the machine with '2' as option, it will boot into
>> runlevel 2 directly.
>> 
>Oops, it's news to me, so I accept my ignorance. But, anyway, a
>kbrequest entry does no harm and it's a backup way for bringing system
>to single user. Just in case LILO is not used and boot interruption is
>disabled...

What do you mean "no harm"!  It is a big huge gaping security hole.
But then, so is CTRL-ALT-DEL.  Only the sysadmin should be able
to gain root priviledges.  

Actually, if you want it so much it should be a comment in inittab, 
then the newbie sysadmin wouldn't have to do very much (remove a
hash character), but it should not be on by default.

>
>-- 
>Abdullah Ramazanoglu   ( aramazanoglu AT demirbank DOT com DOT tr )


-- 
+...................................................................
| Peter P. Eiserloh                            [EMAIL PROTECTED]
|                                  http://www.ridgenet.net/~eiserloh
| Unix, Linux, Modula-2/3, Compilers, Esperanto, Physics, 
| Science Fiction, Babylon-5
+...................................................................

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

From: "Dan Miller" <[EMAIL PROTECTED]>
Subject: long long... how to use??
Date: Thu, 10 Jun 1999 09:14:07 -0700

This is a multi-part message in MIME format.

=======_NextPart_000_0005_01BEB321.97B5CF80
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Is there any documentation anywhere on how to use the long long data =
type??
I REALLY need a 64-bit variable and related math, but they aren't =
working the
way I would expect them to.  I tried creating a short program to test =
them, with
the following results:

//*****************************************
#include <stdio.h>
#include <asm/types.h>

int main()
{
unsigned long long v1, v2, v3 ;
v1 =3D 4118737465 ;    //  warning: const is so large it is unsigned
v2 =3D 4118466591 ;    //  warning: const is so large it is unsigned

v3 =3D 0 ;
v3 +=3D (__u64) v1 ;
v3 +=3D (__u64) v2 ;
printf("v1 =3D %12u\n", v1) ; //  warning: unsigned int format
printf("v2 =3D %12u\n", v2) ; //  warning: unsigned int format
printf("=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n") ;
printf("v3 =3D %12u\n", v3) ; //  warning: unsigned int format
return 0 ;
}
//*******************************************

and when I run the program, I get the following interesting result:

v1 =3D 4118737465
v2 =3D 4118466591
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
v3 =3D 3942236760

How do I get actual, working, 64-bit math??

    [EMAIL PROTECTED]





=======_NextPart_000_0005_01BEB321.97B5CF80
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY>
<DIV>Is there any documentation anywhere on how to use the long long =
data=20
type??</DIV>
<DIV>I REALLY need a 64-bit variable and related math, but they aren't =
working=20
the</DIV>
<DIV>way I would expect them to.&nbsp; I tried creating a short program =
to test=20
them, with</DIV>
<DIV>the following results:</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT=20
face=3D"Courier =
New"><STRONG>//*****************************************</STRONG></FONT><=
/DIV>
<DIV><FONT face=3D"Courier New"><STRONG>#include =
&lt;stdio.h&gt;<BR>#include=20
&lt;asm/types.h&gt;</STRONG></FONT></DIV>
<DIV><FONT face=3D"Courier New"><STRONG></STRONG></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New"><STRONG>int main()<BR>{<BR>unsigned long =
long v1,=20
v2, v3 ;<BR>v1 =3D 4118737465 ;&nbsp;&nbsp;&nbsp; //&nbsp; warning: =
const is so=20
large it is unsigned<BR>v2 =3D 4118466591 ;&nbsp;&nbsp;&nbsp; //&nbsp; =
warning:=20
const is so large it is unsigned</STRONG></FONT></DIV>
<DIV><FONT face=3D"Courier New"><STRONG></STRONG></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New"><STRONG>v3 =3D 0 ;<BR>v3 +=3D (__u64) v1 =
;<BR>v3 +=3D=20
(__u64) v2 ;<BR>printf(&quot;v1 =3D %12u\n&quot;, v1) ; //&nbsp; =
warning: unsigned=20
int format<BR>printf(&quot;v2 =3D %12u\n&quot;, v2) ; //&nbsp; warning: =
unsigned=20
int =
format<BR>printf(&quot;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
\n&quot;) ;<BR>printf(&quot;v3 =3D=20
%12u\n&quot;, v3) ; //&nbsp; warning: unsigned int format<BR>return 0=20
;<BR>}</STRONG></FONT></DIV>
<DIV><FONT=20
face=3D"Courier =
New"><STRONG>//*******************************************</STRONG></FONT=
></DIV>
<DIV><FONT face=3D"Courier New"><STRONG></STRONG></FONT><FONT=20
size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT size=3D3>and when I run the program, I =
get the=20
following interesting result:</FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT size=3D3></FONT></FONT><FONT=20
size=3D3></FONT>&nbsp;</DIV>
<DIV>v1 =3D 4118737465</DIV>
<DIV>v2 =3D 4118466591</DIV>
<DIV>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</DIV>
<DIV>v3 =3D 3942236760</DIV>
<DIV><FONT size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT size=3D3>How do I get actual, working, =
64-bit=20
math??</FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT size=3D3></FONT></FONT><FONT=20
size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;&nbsp;&nbsp; <FONT size=3D3><A =

href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A></FONT></FONT>=
</DIV>
<DIV><FONT color=3D#000000 size=3D2><FONT =
size=3D3></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New"><STRONG><FONT =
size=3D3></FONT></STRONG></FONT><FONT=20
size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT size=3D3><BR></FONT>&nbsp;</DIV></BODY></HTML>

=======_NextPart_000_0005_01BEB321.97B5CF80==


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

From: Kevin Miller <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Core dumping and X window problem
Date: Fri, 11 Jun 1999 06:29:38 GMT

Hello,

I have been using Red Hats software to get my boxes up and running. I
started noticing that im getting these core files in some of the
directories and I dont understand why. I would assume that the system is
having a problem and its taking a core dumpola! Could you please tell me
how to locate why this is.

The other problem that i'm starting have is lag while playing Quake2 RA
mod. It seems that when we shoot for a final rail kill, it lags for
about 1 second. Then on the next rail kill it lags for 5 seconds. Well I
went to reboot out of X and it will not reboot. No menu will pop up to
allow me to reboot the box. Any ideas before I pull the plug?

btw, the box has 256 megs of ram and running @450mhz.

Thanks!!

Kevin

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

From: [EMAIL PROTECTED] (Reality is a point of view)
Subject: Re: long long... how to use??
Date: Thu, 10 Jun 1999 16:30:00 GMT

 +---- [EMAIL PROTECTED] wrote (Thu, 10 Jun 1999 09:14:07 -0700):
 | How do I get actual, working, 64-bit math??
 +----

#include <stdio.h>

int main( void )
{
        long long int a = 4118737465LL;
        long long int b = 4118466591LL;
        long long int c = a + b;
        printf( "%lli %lli = %lli\n", a, b, c );
        return 0;
}

-- 
Gary Johnson     [EMAIL PROTECTED]
Privacy on the net is still illegal.

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

From: "ERIC" <[EMAIL PROTECTED]>
Subject: Sending a mail with attachment
Date: Fri, 11 Jun 1999 10:05:15 +0200

Hi,

I'd like to send a mail with a file attachment from my C program on an Unix
(or linux) system. How can I do




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

From: [EMAIL PROTECTED] (Adrian 'Dagurashibanipal' von Bidder)
Subject: Re: Writing Linux FileSystems for Dummies :-)
Date: Thu, 10 Jun 1999 19:49:52 GMT

On Wed, 09 Jun 1999 09:28:44 -0400, "ELSID Software Systems LTD."
<[EMAIL PROTECTED]> wrote:

>Greetings:
>
>I am working on a project that requires a very good understanding of the
>
>interaction between the Linux kernel and its file system modules [...]

>I am looking for a 'hard core' manual not the usuall computer bookstore
>stuff.

/usr/src/linux/fs/* will be pretty much what you want :-)
I don't know how much is said on the subject on the khg (kernel
hackers guide).
There _are_ some quite basic books on kernel development ('Linux
Device Drivers' or some such title) you actually _can_ buy in
bookstores.


                                Greets from over there
                                Dagurashibanipal
                                [EMAIL PROTECTED]

--
Hi! I'm a .signature virus!=20
Copy me into your ~/.signature to help me spread!

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

From: [EMAIL PROTECTED] (Remco van den Berg)
Subject: Re: Sending a mail with attachment
Date: Fri, 11 Jun 1999 09:46:16 GMT

On Fri, 11 Jun 1999 10:05:15 +0200, ERIC wrote:
>Hi,
>
>I'd like to send a mail with a file attachment from my C program on an Unix
>(or linux) system. How can I do

Use system(...) and an external program like mpack or metamail.

-- 
============================================================================
    Remco van den Berg                     Admin DSE  http://www.dse.nl/    
      [EMAIL PROTECTED]                   Linux Certified Systems Engineer :-) 
============================================================================

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

From: [EMAIL PROTECTED] (Markus Hoevener)
Subject: Re: Sending a mail with attachment
Date: 11 Jun 1999 09:45:14 GMT

In article <7jqfue$ld7$[EMAIL PROTECTED]>, "ERIC" <[EMAIL PROTECTED]> writes:

Hi,

|> I'd like to send a mail with a file attachment from my C program on an Unix
|> (or linux) system. How can I do

have a look at metasend. You can use the system() call to invoke metasend...

Bye,

Markus


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

From: [EMAIL PROTECTED] (Moritz Moeller-Herrmann)
Crossposted-To: alt.uu.comp.os.linux.questions,comp.os.linux.networking
Subject: Re: Linux & Cybercafe
Date: Thu, 10 Jun 1999 19:40:11 +0200
Reply-To: [EMAIL PROTECTED]

On 10 Jun 1999 14:46:08 GMT, David L. Bilbey <[EMAIL PROTECTED]> wrote:
>  +-----On 10 Jun 1999 02:50:19 +0100, David Knight spoke unto us:----------
>   | [EMAIL PROTECTED] (David T. Blake) writes:

>   | > David Knight <[EMAIL PROTECTED]> writes:
>   | > 
>   | > >> You can configure the windowmanager without any xterm. So the users are
>   | > >> not able to start any other program. On the desktop you offer only the
>   | > >> browser. Login should be via xdm !
>   | > >> That's it i think !

>   | > >telnet://localhost | > > | > >and it will open an xterm running the
>   telnet session, from which they | > >would then be able to start other
>   programs.  | > | > And why is inetd serving telnet on this machine ??

>   | good question :-)

>   | But it was just an example, the program to handle telnet could be set to
>   be | any program by editing netscapes preferences, so an xterm could be
>   started up | on its own, or any other program that the users knows the
>   path and has the | correct permissions for on the system.


>What about looking into a smaller, easier to secure browser?  Who said that
>it _has_ to be Netscape?

Well, iexplore.exe won't cut it. Opera hasn't been releases. KFM lacks support
for java(script) and lynx lacks almost everything. Anything I forgot for
browsing?

Remember this is for a Cybercafe not for some Linux Guru wanting to read the
LDP.

I think write protecting (mount readonly)the whole filesystem apart from the
~/.netscape/cache directory would protect you from most attacks. Set the shell
to some script starting Netscape if not running. Disable everything. Give
permissions to do zilch. Can't be that hard. Maybe not even the cache and use
a local proxy? 

BTW:
Maybe you could follow the netiquette in your postings? ">" for quotes? Is it
that hard? Look at the mess you made, bad boy!


-- 
Moritz Moeller-Herrmann [EMAIL PROTECTED] ICQ# 3585990        # Not only
Get my public pgp / gpg key from                        # Open Source(TM)
http://webrum.uni-mannheim.de/jura/moritz/pubkeymoritz  # but also
KDE forever! Use Linux to impress your friends!         # Open Minded!


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


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