Fw: help for pointers

1999-10-26 Thread venu
hi all

heres a nice query from a friend

where can i find an utility which can account for bandwidth usage of each of 
the sites hosted on one web server with only one ip address

can we help him ?

http logs ??
and then he is bound to ask about controlling so ip route ? tc ?
solutions ???

cherio
venu




how do i NAT a legacy network ?

1999-10-07 Thread venu
An interesting problem...

we have a legacy network which has IPs : 95.x.x.x ( NOT REGISTERED, i.e illegal)
that we can't change now !!! ( those network enginners of 1994,when the network
was installed; obviously did not know about rfc1918  )

now we want to connect this network to the Internet... we cannot re-number our
network... so i looked at using a linux box with NAT ...that should be straight
forward ... right ? wrong ! hey this is fun !!

and i am a bit confused...

NAT -- for 2.0.36 and 2.2.x is available ... but it does NOT support Dynamic
NAT i.e. 95.x.x.x NATed behind ONE IP
(http://www.csn.tu-chemnitz.de/HyperNews/get/linux-ip-nat.html)
It does support static NAT though ... it should be good to NAT our internal web
server with a Legal IP (any comments ?)

The new NAT code IPROUTE in the  2.3.x kernels requires iproute ... whose docs
are not good enough for me(anybody care to explain ?)... and then the code is
still very alpha...

IP MASQ supports network NAT very wellbut the docs say that we have to use
only private IPs. so .. can i use IP MASQ to hide my 95.x.x.x network also
??

I also plan to use IPCHAINS to filter the trafficthe HOWTO is clear
enough... !

so what is the best solution ? ... we have been using Checkpoint FW-1 till
now... and it works fine i believe i can reproduce all functionality on
Linux too...

what says u ?

cheers
venu

[EMAIL PROTECTED]



Re: what are the standard programming tools available in Debian?

1999-09-15 Thread venu


  as for other bits of the toolbox, you need to use manpages, (perldoc has
  perl info, the C ones are harder to find; I don't think there is one
manpage
  that lists all the other C-based manpages..) grep, find, and maybe other
  bits too.


For C/C++  man pages beautifully organised ... tried gnu info ?
good documentation on GCC , GLIB , GDB etc and hyperlinked !!
btw: info pages for cp, ls , ln are also verrry informative !! my students
(and myself) learn from them...

cheers
venu




script to remove blank lines ?

1999-08-10 Thread venu
hi all shell scripters !

if in a file I have say 10 lines and some of them are blank lines ,how do i
remove the blank lines ?

cherio
venu



Re: script to remove blank lines ?

1999-08-10 Thread venu
hey... that was quick !! thanks stephan...

Stephan wrote:...

grep -v ^$ filename

This gets you all lines with something between the line's beginning (^)
and its end ($).  Or rather without nothing between beginning and
end (-v is grep's negation option).



i did it like this uing awk.

cat m | awk '$1 != { print  $1 }'

but i believe ur method would be faster !!

thanks
venu




Re: A doubt...

1999-07-30 Thread venu
hi mahendra ...

congrats on getting ur debian system up and going !!!


 I am facing is about the network.  After configuring the network,
  machine can connect to other machines on the network but it is not allowing

ok..so ur networking is working fine..

 other machines to connect to itself. The error on  other machines is
  Connection refused .  I tried a lot by playing with the files


looks like either the applications are not installed or not started...
more details reqd. here ... do u mean that u r not able to telnet to the linux
box ? or ftp or www browse ?
u can check what servers are stated by the command

netstat -at | less

for example , my machine shows the following...
_
[EMAIL PROTECTED] venu]$ netstat -at |less
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address   Foreign Address State
tcp0  0 *:telnet*:* LISTEN
tcp0  0 *:ftp   *:* LISTEN
tcp0  0 *:800   *:* LISTEN
tcp0  0 *:www   *:* LISTEN
__

the above shows that the telnet, ftp , www servers are in the active (LISTEN)
so u can telnet into this server from another machine etc...
look into the man pages of netstat for more details..

all initialization scripts are installed in /etc/init* ... ( check that out )

 /etc/hosts.allow and /etc/hosts.deny. It is not working. Will you please
 sort out the problem for me ?


another thing ... have u installed the relevant packages ?
check with dselect.. or dpkg

look into the man pages for dpkg.. (don't remember the command !!)


  By the way , one more thing. Can I configure various utilities (e.g. network)
 after system is installed once ? Or everytime I have to for boot/root
 (installation ) floppies ?


sure u can configure all the utilities after installation 
btw: have u read the debian installation manual ? its available at
http://www.debian.org/releases/stable/i386/install

also tons of info is available in /usr/doc and especially /usr/doc/HOWTO

 Thanking you in anticipation,


cherio...

venu

ps: so mahendra... are u from Pune Univ. Physics dept ?... then i may have met u
before... are u involved with the IT syllabus etc 


telnet access control

1999-07-29 Thread venu
hi all !!

the default config on most unices restricts root login via telnet...
how is this done ? i have done it once before.. but don't remember how...is it
thru inetd.conf ?

and if i need to restrict number of simultaneous logins (total and for a
particular user).. how do i do it ?

thanks in advance
venu--


What's All the Buzz About Linux? L I N U X   .~.
 The Choice  /V\
http://www.ourmanpann.com/linux/  of a GNU  /( )\
 Generation ^^-^^
--
borrowed this from manpann, thanks man !
[EMAIL PROTECTED]
pune, india...


Re: Help me stay away from visual C++ :)

1999-07-27 Thread venu
dear carl 


The more I think about it, the following is better.
No more buffer overflow problem.

 
have heard lots about it in security bulletins ...
what is a buffer over flow ? and how does it appear in code ?

cheers
venu



Re: Ethernet card problems

1999-06-17 Thread Venu
hi manuel

i had similar problems ..the solution

1. check the ethernet cable is connected properly
(i have this problem 80% of the time !!)
2. make sure ..especially in the case of an ISA card, that u r using the correct
IRQ and IO address... use the DOS Utility of the card to check this... as on
linux... the card driver sometimes gets installed even if the irq is specified
wrongly
3. if the card is a combo BNC + UTP, in some cases, the driver is not able to
switch on the correct interface.. so this may be fixed using the Ethernet card
DOS utility to specify the same

 eth0: EtherExpress 16 at 0x300 (IRQ 5, RJ45 connector, 16-bit bus, 32k
 RAM)
 eth0: TDR reports transceiver problem

from this .. the problem may probably be option 2 above... check it out !

let me know how it works out..

cherio
venu

 Hi there,

 I have an Intel Ether Express 16 ISA card and I'm trying to
 get it to
 work with linux.  Linux seems to detect the card ok, but after detection
 on boot up I get the message:

  eth0: TDR reports transceiver problem


 The dos diagnostics program for the card indicates that everything is
 OK, and it seems to work fine with Windows 98I have included my boot
 message,...followed by the result of ifconfig...

 Any help is appreciated,
 Thanx,
 Manuel

 --
 Memory: sized by int13 088h
 Console: 16 point font, 400 scans
 Console: colour VGA+ 80x25, 1 virtual console (max 63)
 pcibios_init : BIOS32 Service Directory structure at 0x000fad40
 pcibios_init : BIOS32 Service Directory entry at 0xfb1c0
 pcibios_init : PCI BIOS revision 2.10 entry at 0xfb1f0
 Probing PCI hardware.
 Calibrating delay loop.. ok - 53.25 BogoMIPS
 Memory: 30216k/32768k available (1136k kernel code, 384k reserved, 1032k
 data)
 Swansea University Computer Society NET3.035 for Linux 2.0
 NET3: Unix domain sockets 0.13 for Linux NET3.035.
 Swansea University Computer Society TCP/IP for NET3.034
 IP Protocols: IGMP, ICMP, UDP, TCP
 VFS: Diskquotas version dquot_5.6.0 initialized
 Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.
 Checking 'hlt' instruction... Ok.
 Intel Pentium with F0 0F bug - workaround enabled.
 alias mapping IDT readonly ...  ... done
 Linux version 2.0.36 ([EMAIL PROTECTED]) (gcc version 2.7.2.3) #2 Sun Feb 21
 15:55:27 EST 1999
 Starting kswapd v 1.4.2.2
 Real Time Clock Driver v1.09
 tpqic02: Runtime config, $Revision: 0.4.1.5 $, $Date: 1994/10/29
 02:46:13 $
 tpqic02: DMA buffers: 20 blocks, at address 0x282600 (0x28254c)
 Ramdisk driver initialized : 16 ramdisks of 4096K size
 loop: registered device at major 7
 ide: i82371 PIIX (Triton) on PCI bus 0 function 57
 ide0: BM-DMA at 0xf000-0xf007
 ide1: BM-DMA at 0xf008-0xf00f
 hdc: IBM-DAQA-32160, 2067MB w/96kB Cache, CHS=4200/16/63, DMA
 hdd: TATUNG CD-652E, ATAPI CDROM drive
 ide1 at 0x170-0x177,0x376 on irq 15
 Floppy drive(s): fd0 is 1.44M
 FDC 0 is a post-1991 82077
 md driver 0.36.3 MAX_MD_DEV=4, MAX_REAL=8
 Failed initialization of WD-7000 SCSI card!
 scsi : 0 hosts.
 scsi : detected total.
 Partition check:
  hdc: [PTBL] [525/128/63] hdc1 hdc2 hdc3 hdc4  hdc5 hdc6 hdc7 hdc8 
 VFS: Mounted root (ext2 filesystem) readonly.
 Adding Swap: 12060k swap-space (priority -1)
 Adding Swap: 16092k swap-space (priority -2)
 Module inserted $Id: cdrom.c,v 0.8 1996/08/10 10:52:11 david Exp $
 eth0: EtherExpress 16 at 0x300 (IRQ 5, RJ45 connector, 16-bit bus, 32k
 RAM)
 eth0: TDR reports transceiver problem
 Serial driver version 4.13 with no serial options enabled
 tty00 at 0x03f8 (irq = 4) is a 16550A
 tty01 at 0x02f8 (irq = 3) is a 16550A
  --
 loLink encap:Local Loopback
   inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
   UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
   Collisions:0

 eth0  Link encap:Ethernet  HWaddr 00:AA:00:3C:20:89
   inet addr:192.168.0.20  Bcast:192.168.0.255
 Mask:255.255.255.0
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
   TX packets:6 errors:6 dropped:0 overruns:0 carrier:6
   Collisions:0
   Interrupt:5 Base address:0x300



--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null


Re: Repeat Borne Shell Tutorial URL

1999-06-17 Thread venu
hi monte
heres a compilation

__

I haven't come accross a good complete shell programming tutorial, but
I learned some tricks from Intermediate Bourne Shell Programming
(http://consult.cern.ch/writeups/bournint/); the C shell isn't really suited
for most script jobs for reasons discussed in
http://language.perl.com/versus/csh.whynot

HTH,
Ray
--
 I've found this site to be particularly helpful:

http://www.mcsr.olemiss.edu/unixhelp/

My favorite reference for bash is http://www.gnu.org/manual/bash/

ksb

__
cheers
venu



A few day ago someone submitted a request for tutorial URL's concerning the
Borne
shell. I have accidentaly deleted the re:'s and I've searched the debian email
archive for it, but no luck. Could some send me the URL. The tutorial was a .ps
document that looked like a good read for a newbie like myself trying to learn
a little shell script programming.

Thank you,

--
Monte Copeland



Re: tcp ip need information

1999-06-11 Thread Venu
hi...


On 10-Jun-99 matthew lamb wrote:
 i would like to know more about the low level end of tcp ip and how the
 packets are handeled and formated on the transmission medium if you can
 point me in the right direction i would be grateful.


Try the books by W. Richard Stevens.  He is one of the key authors on the
subject.  And of course, the kernel source.


there is a TCP/IP Tutorial RFC...
its one of the earliest docs on the subject and very good !

describes the protocol etc...

search yahoo for the same...
or can somebody give the right number  ?

cheers
venu






--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null


Re: tcp ip need information

1999-06-11 Thread Venu
dear matthew...

i would like to know more about the low level end of tcp ip and how the 
packets are handeled and formated on the transmission medium if you can 
point me in the right direction i would be grateful.


check out 
rfc1180

and then 

rfc2151 
has good references ...

to get them

send mail to: [EMAIL PROTECTED]

with no subject and this in the body

RETRIEVE: RFC
Doc-ID: RFC

 = 4 digit rfc number

more details in rfc2151

cheers
venu



Re: CD images

1999-06-11 Thread Venu

dear newton ?


I'm having a problem with the CD images at
http://sunsite.doc.ic.ac.uk/packages/Linux/debian-cd/2.1r_0/i386. I have
free internet
access at work so I thought I'd download the images and write them to CD
myself. Because of the way the network is set up I can only use
IE or Netscape to get the images. Using Netscape both the binary images are


it is always better to get the images using a ftp program...or thru rsync..

but if u have only http access... (may be thru a proxy ?) then use some
program like
getright which supports proxies

or

wget ( for windows /Linux)

enlarged by about 2Mb from the listed size so
censequently the md5sums don't match. IE can't handle the download. The
binary 2 image completed at 404Mb.

 What I want to know is, what's causing this 2Mb enlargement. Is it


no idea here ...anybody else ?

going to be a problem? What's the best way to write these
images under windows? We had a go yesterday and we just got an .iso file on
a cd rather than an imaged cd. I read the CD image FAQ
and it's not a lot of help.


2) How do I get this windows software to write the Image files to a CD ?

change the file extension from .raw to .iso, and your windows sorftware
should be able to see it, and write it.

What software do people use?


hey the CD image FAQ is very clear about this
to write a cd image thru windows software like Adaptec Easy CD Creator
select
File-- Write CD from Image -- then select the image file... and write !!!
simple.
i have done this many times and have had no problems..

cheers
venu


Re: GNOME installation screw-up

1999-06-03 Thread Venu
dear matthew

:c) how to get out of XDM so that I can start fixing the above two problems

try Ctrl + Alt + F1  to F6

will switch to vitual consoles where u can log in...

cheers
venu

:I downloaded the GNOME 1.0 distribution with apt, installed, put the
:
:exec gnome-session
:
:line in my .xsession file, and quit X to try out what I had done.  Oops.
:
:I could have done the smart thing and logged out as Root before I put
:any GNOME startup stuff in a .xsession, but NOOO.  I was too eager for
:that.  Now, I can't get out of xdm at all if I try to log in as Root;  if
:I try to log in with one of the user accounts, Enlightenment breaks --
:possibly because they had existing .enlightenment directories from the
:0.14 that came with Slink.
:
:I wouldn't have a problem, except that I can't figure out how to get out
:of XDM and into another virtual console so that I could fix stuff (well,
:maybe I'd still have a problem, but I wouldn't be completely stuck in XDM
:where I can't do anything)
:
:So, any ideas about 
:
:a) why X won't start as root (the account with  exec gnome-session in
:the .xsession file)
:
:b) why Enlightenment isn't working on user accounts with no GNOME startup
:instructions
:
:or
:



[no subject]

1999-06-01 Thread Venu
unsubsribe