home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22447 < prev    next >
Encoding:
Text File  |  1993-01-02  |  2.4 KB  |  73 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!destroyer!cs.ubc.ca!newsserver.sfu.ca!wonge
  3. From: wonge@fraser.sfu.ca (Edmund Wong)
  4. Subject: sockets  and kernels?  <yummy for breakfasts! NOT!>
  5. Message-ID: <1993Jan2.170346.14116@sfu.ca>
  6. Sender: news@sfu.ca
  7. Organization: Simon Fraser University, Burnaby, B.C., Canada
  8. Date: Sat, 2 Jan 1993 17:03:46 GMT
  9. Lines: 62
  10.  
  11.    After a VERY frustrating and fruitless duel with these stupid
  12. socket problems, I had to revert to my SECRET weapon.  Here.
  13.  
  14.    The problem that I'm having with Linux is that when the system
  15. boots up, and /etc/inet/rc.net is executed, the following three
  16. commands give me a "socket: Invalid argument":-
  17.  
  18.     # in /etc/inet/rc.net
  19.     .
  20.     .
  21.     HOSTS=/usr/etc/inet/hosts
  22.     CONFIG=/usr/etc/inet/config
  23.     INETD=/usr/etc/inet/inetd
  24.     NAMED=/usr/etc/inet/named
  25.     PORTMAP=/usr/etc/inet/portmap
  26.     NFSD=/usr/etc/inet/nfsd
  27.     MOUNTD=/usr/etc/inet/mountd
  28.     #
  29.     HOSTNAME=`hostname`
  30.     #
  31.     echo "$HOSTNAME -> $IPADDR"
  32.     #
  33.     ROUTER=0.0.0.0
  34.     NET=142.101.245.0
  35.     #
  36.     $CONFIG loopback $IPADDR
  37.     $CONFIG loopback 127.0.0.1
  38.     $CONFIG -n $NET -r $ROUTER eth0 $IPADDR
  39.     #
  40.     ....<the normal 'if [...' stuff..>
  41.  
  42.    
  43.  
  44.   Now, of course, being quite an experimental young lad, I changed
  45. '$CONFIG loopback $IPADDR' to '$CONFIG $HOSTNAME $IPADDR', still
  46. it gives me 'socket: Invalid argument'.   
  47.  
  48.   So I figured.  Hey, maybe it's something wrong with config*,
  49. so I back'ed up the old config, and compiled config.c and
  50. ran it. (since I did a 'cc config.c' I had to rename the a.out
  51. to config)   Then I re-ran rc.net.  But to still no avail.
  52.  
  53.    Someone suggested I get rid of 'eth0' and change it to 'loopback',
  54. so I did.  Still the same ugly result.
  55.  
  56.    So, if possible, can someone please enlighten me on what is
  57. going on?  The hostname IS defined as 'eagles'. No, I'm not in
  58. a network.  Does that mean I won't be needing TCP/IP to work?
  59.  
  60.    Secondly, an easy question about kernels.  I've downloaded
  61. the Linux 0.99pl0 kernel from tsx, and did the neccessary stuff
  62. to compile it.  After I did a 'make dep;make clean' and sync'd
  63. and rebooted the system, it still displays '.98pl5-3?' right
  64. before (root@softland).  Why?    
  65.  
  66.   
  67.   Any help appreciated....thanks
  68.  
  69. -- 
  70. InterNet: wonge@fraser.sfu.ca  |  "Fail not; Learn Not.
  71.                                |  It is with failing, that one learns,
  72.                                |  So by Learning, one must fail." - Edmund Wong
  73.