Linux-Misc Digest #823, Volume #20 Mon, 28 Jun 99 09:13:13 EDT
Contents:
Re: home network with linux box (Adrian Hands)
Re: help me please, system... (Adrian Hands)
Re: Linux balkanization a potential blessing (was: Depoliticising the argument (was:
The End of Free Software)) (Tom Christiansen)
Re: Netscape bus error (Ted Sikora)
Re: Kernel 2.2.5: config.o missing (DavidJ)
----------------------------------------------------------------------------
From: Adrian Hands <[EMAIL PROTECTED]>
Subject: Re: home network with linux box
Date: Mon, 28 Jun 1999 08:20:00 -0400
Reply-To: [EMAIL PROTECTED]
Hugh wrote:
>
> Is it possible to network a couple win95 boxes to a linux box and use the
> linux box to connect to my ISP. Then both pc's could work online
> simultaneously. I have never done this. Both of the win95 boxes have linux
> installed as well, and I'm sure I could network that scenario, but not sure
> on the other. Any information would be helpful.
>
> Thanks,
> Hugh
It works the same regardless of whether you have Win95 or Linux on the
other boxes.
I've setup my system to do this.
I also installed "diald" so that when any user on any of the LAN clients
tries to access the internet while the connection is down, my linux box
will automatically dial out and establish a ppp-connection and setup the
routing.
I've included the config I'm using.
It's not necessarily perfect, but it works good for me!
If you want a book, Barnes & Noble carries "The Linux Network"
which covers this and Samba and...
(BTW, I'm using RH6.0)
===========
This is my /etc/rc.d/rc.local file (below).
My NE-2000 compatible nic doesn't get detected at boot,
so I added the depmod and modprobe lines here.
I put "alias eth0 ne io=0x240" to in /etc/conf.modules, but that didn't
seem to fix the problem.
The "ipchains" lines configure forwarding and masquerading.
The "ipfwadm" lines are the old commands that worked with RH5.2.
ipfwadm is *supposed* to work with 6.0 too, but I don't believe it does.
I setup the other PCs with 10.x.x.x addresses.
The "/8" means netmask = 255.0.0.0.
Using redhat's netcfg tool, I clicked on "Network Packet Forwarding
(IPv4)"
set the "default gateway" to be the IP address of the linux box
(10.1.1.130)
set the "default gateway device" to be "ppp0".
and put in a static route: if=eth0 addr=10.0.0.0 mask=255.0.0.0
gw=10.1.1.130
Since my system doesn't seem to pickup the ethernet card at boot,
(I think because it's configured to be at I/O=0x0240 and that's not one
of the addresses that ne.c probes),
I think I have to go into netcfg (as root) and click on
interfaces/eth0/activate at boot.
I'm not sure because I almost NEVER reboot my linux box.
I'm also running a DNS server (bind) on the linux box.
If you want the config files for that, let me know and I'll e-mail those
too.
$ rpm -q ipchains
ipchains-1.3.8-3
$
/etc/rc.d/rc.local:
#!/bin/sh
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
if [ -f /etc/redhat-release ]; then
R=$(cat /etc/redhat-release)
arch=$(uname -m)
a="a"
case "_$arch" in
_a*) a="an";;
_i*) a="an";;
esac
# This will overwrite /etc/issue at every boot. So, make any
changes you
# want to make to /etc/issue here or you will lose them when you
reboot.
echo "" > /etc/issue
echo "$R" >> /etc/issue
echo "Kernel $(uname -r) on $a $(uname -m)" >> /etc/issue
cp -f /etc/issue /etc/issue.net
echo >> /etc/issue
fi
#echo "Building module dependencies..."
#depmod -a
#echo "Loading module for NIC card (NE2000 at 0x3a0)..."
# modprobe ne io=0x3a0
#modprobe ne io=0x240
echo "Enabling IP maquerading and configuring the firewall..."
modprobe ip_masq_ftp
#ipfwadm -Fp deny
ipchains -P forward DENY
#ipfwadm -Fa m -S10.0.0.0/8
ipchains -A forward -j MASQ -s 10.0.0.0/8
echo "Starting diald..."
if [ -x /usr/sbin/diald ]
then
# starting diald
echo "Starting diald daemon to SpryNet ..."
# (cd /usr/lib/ppp && /usr/lib/ppp/diald.sprynet)
/usr/sbin/diald /dev/modem \
lock \
debug 20 \
mode ppp \
local 127.0.0.2 \
remote 127.0.0.3 \
defaultroute \
modem \
crtscts \
connect "chat -v -f /etc/sysconfig/network-scripts/chat-ppp0" \
dynamic \
-- debug noipdefault
fi
echo "rc.local done."
------------------------------
From: Adrian Hands <[EMAIL PROTECTED]>
Subject: Re: help me please, system...
Date: Mon, 28 Jun 1999 08:35:41 -0400
Reply-To: [EMAIL PROTECTED]
> So when i execute myprogram, the stdout.txt file is created but there is
> nothing into. I must stop my program to see information into stdout.txt.
>
> the problem is my program can't be stopped.
I believe what you need to do is to turn off output buffering in the
programs you are calling (the called program, not the calling program).
I don't remember how you do this in C.
In perl it's something like "$| = 0;".
If I remember right, in C there's some call (fcntl ?) you make after
opening the file to set the buffersize to zero.
Try any basic C book, or a C newsgroup.
Hope this helps.
-Adrian
------------------------------
From: Tom Christiansen <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.bsd.misc
Subject: Re: Linux balkanization a potential blessing (was: Depoliticising the
argument (was: The End of Free Software))
Reply-To: [EMAIL PROTECTED] (Tom Christiansen)
Date: 28 Jun 1999 06:29:25 -0700
In comp.os.linux.misc,
o r c @ p e l l . p o r t l a n d . o r . u s (david parsons) writes:
: You're mentioned in the working parts of the
: page, so do you know if the project is active but hasn't updated
: the web pages for a while (this is also a problem with Mastodon,
: though I'm doing a source dump today), or if the smoke has been
: let out of it?
As with any such thing, a project needs a champion or three fiendishly
devoted to producing results. The guy pulling most of the week decided
to go on a world tour for a long spell. There was a bit of activity from
someone else doing very similar things. Perhaps it was you. What we
really need is a coherently packaged distribution. I don't mean CDs.
I just mean something you can type "make" against. The hardest thing is
getting all the libc issues resolved. It's annoying in the extreme when
things that compile on one of Linux or BSD won't build on the other one.
--tom
--
"Patriotism is a pernicious, psychopathic form of idiocy."
- George Bernard Shaw
------------------------------
From: Ted Sikora <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Netscape bus error
Date: Mon, 28 Jun 1999 12:29:00 GMT
Anita Lewis wrote:
>
> I have looked on deja.com for this and found several articles on it. I
> had the bus error with 4.07 and it was recommended I upgrade to 4.61. I
> did that and still have the error when running from xterm.
>
> Supposedly the library link problem was corrected before 4.07.
>
> I'm thinking it must be a problem with fonts. I know in the fs/config
> there is a listing for 100dpi. I also not that in XF86Config, 100dip is
> commented out. Does this mean I should take it out of fs/config? I
> haven't tried that yet, because in the reading I did, it talked about
> adding 75dpi and 100dpi in to the fs/config. Now I'm thinking that
> maybe in my case I need to take 100 dpi out, because my X config doesn't
> allow for it. Either that or I need to work some more on X config to
> see if I can get 100 dpi. I'm just thankful to have X working.
>
The problem is not the Netscape version. The bus error problem was
fixed by v4.03. The problem is your libraries do not match those
required by Netscape. Go to Netscape's directory and type # ldd netscape
This will give the dependencies. You either need an OS upgrade or you
can make a /usr/local/lib/netscape directory and put the needed
libraries there. By default Netscape will look there without doing
anything special. This 'old' fix may do the trick if you are using an
old version of libc5. Give it a try if all else fails.
ftp://24.2.168.186/pub/linux/Netscape/fixes/nets-2.0.tar.gz
Without knowing which version of Linux you use this is the best I can
do.
--
Ted Sikora
[EMAIL PROTECTED]
http://tsikora.tiac.net
------------------------------
From: DavidJ <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.kernel
Subject: Re: Kernel 2.2.5: config.o missing
Date: Mon, 28 Jun 1999 12:35:33 GMT
In article <7kvtdl$2uc$[EMAIL PROTECTED]>,
DavidJ <[EMAIL PROTECTED]> wrote:
> it did expect to find a file called config.o (in ./fs/config/).
I finally found out, it was linked with /proc/config.
I can nowadays build the kernel without any problems, if I do not
include /proc/config in the kernel.
I still do not understand what is /proc/config use for, but that's too
bad.
David
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
** 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
******************************