[leaf-user] stupid linux question

2004-12-07 Thread cpu memhd
I asked this question before but received no replies, I will ask again,
if anyone knows…

Is it possible to create environment variables in linux/unix like you
would in DOS using CONFIG.SYS or AUTOEXEC.BAT? That is, a variable that
is accessible to any subsequent running program?

I vaguely remember reading sometime back that this was not possible
because of fundamental differences between DOS/Win and Unix. While I do
know you can set environment variables in /etc/profile, the problem is
they are only accessible to a logged in user, not the system.
 
Thanks.




__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] stupid linux question

2004-12-07 Thread christer
On Tue, Dec 07, 2004 at 12:35:13AM -0800, cpu memhd wrote:
 I asked this question before but received no replies, I will ask again,
 if anyone knows?
 
 Is it possible to create environment variables in linux/unix like you
 would in DOS using CONFIG.SYS or AUTOEXEC.BAT? That is, a variable that
 is accessible to any subsequent running program?
 
 I vaguely remember reading sometime back that this was not possible
 because of fundamental differences between DOS/Win and Unix. While I do
 know you can set environment variables in /etc/profile, the problem is
 they are only accessible to a logged in user, not the system.
  
 Thanks.
 

If you are running bash and have root access you should be able to change
/etc/bashrc. If there is no such file, you can create it. That is the
global rc file for bash, and it is used for all bash shells, not only
login shells.

Hope this helps.

-- 
Christer O. Andersson
Odensbacken


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] stupid linux question

2004-12-07 Thread Erich Titl
Hi
cpu memhd wrote:
I asked this question before but received no replies, I will ask again,
if anyone knows
Is it possible to create environment variables in linux/unix like you
would in DOS using CONFIG.SYS or AUTOEXEC.BAT? That is, a variable that
is accessible to any subsequent running program?
I vaguely remember reading sometime back that this was not possible
because of fundamental differences between DOS/Win and Unix. While I do
know you can set environment variables in /etc/profile, the problem is
they are only accessible to a logged in user, not the system.
 

I believe therre are multiple approaches to this, depending on your 
distro and version.
SuSe used to have a file, /etc/rc.config, which was sourced from their 
set up environment. In more recent versions this is located in 
/etc/sysconfig, distributed over a multitude of configuration files. For 
other distros there must be similar constructs.

The problem is here, each daemon process can choose what environment it 
likes to import/use. And of course you are free to source these in your 
interactive environment.

HTH
Erich

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Where's the NIC drivers?

2004-12-07 Thread Jaap Eldering
On Mon, Dec 06, 2004 at 06:47:27PM -0800, Craig Caughlin wrote:
 Thank you, Jaap.
 O.K., that's what I thought. But here's the odd part; I have an /etc/modules
 file and a /lib/modules directory IF I use the 
 Bering-uClibc 2.2.2 floppy image, but not the CD .iso. Is something missing,
 or am I doing something wrong?
 
 Thanks,
 Craig

I have no experience with the CD image, but from what I see from the
ISO, you'd just have to load the modules.lrp package, which has the
/etc/modules and /lib/modules in it.

If this doesn't help, maybe somebody else can provide more help.

Jaap


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jaap Eldering
 Sent: Monday, December 06, 2004 7:03 AM
 To: LEAF
 Subject: Re: [leaf-user] Where's the NIC drivers?
 
 
 On Mon, Dec 06, 2004 at 06:22:57AM -0800, Craig Caughlin wrote:
  Hmmm, am I missing something? I'm trying to set up Bering-uClibc 
  2.2.2, and I can't figure out how / where to specify which NIC 
  driver(s) to load. Can someone tell me which file(s) I need to edit 
  and which directory I'll need to copy drivers to should the default 
  install not have my needed driver?
  
  Thank you,
  Craig
  
  P.S. Did this change? In my old version of Bering I could edit this 
  from the lrcfg main menu. Just curious.
 
 You have to configure this in the file /etc/modules, which should be
 (almost) the same as in Bering. Modules configured here, are loaded from
 /lib/modules, so if your NIC's driver (module) is not present, you should
 copy it from the modules tarball to /lib/modules.
 
 Jaap
 
 
 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now. 
 http://productguide.itmanagersjournal.com/
 
 leaf-user mailing list: [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/leaf-user
 SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
 
 
 
 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now. 
 http://productguide.itmanagersjournal.com/
 
 leaf-user mailing list: [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/leaf-user
 SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] stupid linux question

2004-12-07 Thread Charles Steinkuehler
cpu memhd wrote:
I asked this question before but received no replies, I will ask again,
if anyone knows
Is it possible to create environment variables in linux/unix like you
would in DOS using CONFIG.SYS or AUTOEXEC.BAT? That is, a variable that
is accessible to any subsequent running program?
I vaguely remember reading sometime back that this was not possible
because of fundamental differences between DOS/Win and Unix. While I do
know you can set environment variables in /etc/profile, the problem is
they are only accessible to a logged in user, not the system.
For a truely system-wide environment settings, set them as part of init (you 
do feel comfortable hacking init, right? :), or prior to launching init (see 
the debian initrd scripts for sarge for an example of a shell script that 
launches init).

Exactly why you would want to do this is somewhat beyond me.  IMHO, you 
should spend time and effort bringing your thought process around to the 
linux/unix way of doing things, rather than trying to squeeze linux into a 
DOS mold...

--
Charles Steinkuehler
[EMAIL PROTECTED]

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] stupid linux question

2004-12-07 Thread Livio R.
Try to put the application in a shell script. The shell script will get 
its environment variable from /etc/profile if configured properly.

cpu memhd wrote:
I asked this question before but received no replies, I will ask again,
if anyone knows
Is it possible to create environment variables in linux/unix like you
would in DOS using CONFIG.SYS or AUTOEXEC.BAT? That is, a variable that
is accessible to any subsequent running program?
I vaguely remember reading sometime back that this was not possible
because of fundamental differences between DOS/Win and Unix. While I do
know you can set environment variables in /etc/profile, the problem is
they are only accessible to a logged in user, not the system.
Thanks.

		
__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
 


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Where's the NIC drivers?

2004-12-07 Thread M Lu
I am using CD image and here is part of my /etc/modules. Pay attention to 
the 'mount', 'umount' and 'dir' commands so you can specify the modules 
directly from CD and you do not have to copy them to your modules.lrp.

! mount iso9660 /dev/cdrom
# You can directly reference modules, like this:
#/scsi/aic7xxx
#/fs/ext2
# Or change the default directory, like this:
#! dir /lib/modules/net
! dir /lib/modules/2.4.26/kernel/drivers/net
# PCI ethernet cards
#pci-scan
mii
eepro100
# pci-scan required by drivers below...
3c59x
# Masquerading 'helper' modules
# Don't remove anything here, unless you know what you are doing
# Other modules available in kernel/net/ipv4/netfilter
#
! dir /lib/modules/2.4.26/kernel/net/ipv4/netfilter
ip_conntrack
ip_conntrack_ftp
...
# the end of file
! umount


- Original Message - 
From: Jaap Eldering [EMAIL PROTECTED]
To: LEAF [EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 5:20 AM
Subject: Re: [leaf-user] Where's the NIC drivers?


On Mon, Dec 06, 2004 at 06:47:27PM -0800, Craig Caughlin wrote:
Thank you, Jaap.
O.K., that's what I thought. But here's the odd part; I have an 
/etc/modules
file and a /lib/modules directory IF I use the
Bering-uClibc 2.2.2 floppy image, but not the CD .iso. Is something 
missing,
or am I doing something wrong?

Thanks,
Craig
I have no experience with the CD image, but from what I see from the
ISO, you'd just have to load the modules.lrp package, which has the
/etc/modules and /lib/modules in it.
If this doesn't help, maybe somebody else can provide more help.
Jaap

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jaap Eldering
Sent: Monday, December 06, 2004 7:03 AM
To: LEAF
Subject: Re: [leaf-user] Where's the NIC drivers?
On Mon, Dec 06, 2004 at 06:22:57AM -0800, Craig Caughlin wrote:
 Hmmm, am I missing something? I'm trying to set up Bering-uClibc
 2.2.2, and I can't figure out how / where to specify which NIC
 driver(s) to load. Can someone tell me which file(s) I need to edit
 and which directory I'll need to copy drivers to should the default
 install not have my needed driver?

 Thank you,
 Craig

 P.S. Did this change? In my old version of Bering I could edit this
 from the lrcfg main menu. Just curious.
You have to configure this in the file /etc/modules, which should be
(almost) the same as in Bering. Modules configured here, are loaded from
/lib/modules, so if your NIC's driver (module) is not present, you should
copy it from the modules tarball to /lib/modules.
Jaap
---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


[leaf-user] Re: [leaf-devel] ANN: leaf-project.org website

2004-12-07 Thread Mike Noyes
On Sun, 2004-12-05 at 19:42, Mike Noyes wrote:
 leaf.sourceforge.net is working properly, but something isn't quite
 right with leaf-project.org. I'll work on it tomorrow.

Everyone,
Our leaf-project.org domain should be working properly now.

-- 
Mike Noyes mhnoyes at users.sourceforge.net
http://sourceforge.net/users/mhnoyes/
SF.net Projects: ffl, leaf, phpwebsite, phpwebsite-comm, sitedocs



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


[leaf-user] SNMP

2004-12-07 Thread Joe Nelson
I'm having a little trouble getting snmpd to work correctly.  I've installed
the following packages on my Bering uClibc box:

libm.lrp
libsnmp.lrp
snmpmibs.lrp
netsnmpd.lrp
netsnmpu.lrp

A ps -aux shows that snmpd is running so that's good, but I can't query
anything from it.  I set up /etc/snmp/snmpd.conf exactly as it is shown in
the documentation on http://leaf.sourceforge.net/doc/guide/bk05ch13.html (I
changed the community name of course).

Since I have the netsnmpu.lrp installed, I thought that I'd be able to
snmpwalk from the localhost.  This is what I ran:

snmpwalk -v2c -m ALL -c airwired -O vq localhost

I don't get any output or any error messages.  I think my problem lies with
the snmpd.conf file, but I'm not really sure what else to change.  Does
anyone have a working copy that they'd be willing to share?  Or do I have
another problem?

--
Joe Nelson
Air Wired
[EMAIL PROTECTED]
http://www.airwired.net 



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html