Intranet Server HOWTO GR

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 25

Linux Intranet Server HOWTO

Pramod Karnad, karnad@indiamail.com


v2.11, 7 1997
Intranet
Linux server Unix, Netware, NT
Windows . , Linux,
.
, HTTP
NCSA server '
TCP/IP clients Novell, Microsoft Windows 3.1,
WFWG, Win95, WinNT MacTCP Apple PowerMac.
______________________________________________________________________
Table of Contents

1.
1.1
1.2
1.3 (Feedback)
2. HTTP server
2.1 downloading
2.1.1
2.1.2 (ServerType)
2.1.3 Binding Port (Port)
2.1.4 Server user identity (User)
2.1.5 group Server(Group)
2.1.6 email Server (ServerAdmin)
2.1.7 server(ServerRoot)
2.1.8 HTML (DocumentRoot)
2.2 HTTPd
3. HTTPd
4. Linux Server
4.1 Linux server
4.2 Netware server
4.3 Netware Client
4.3.1 Windows 3.x
4.3.2 Windows 95
4.4 Microsoft Client
4.4.1 Windows Workgroups
4.4.2 Windows 95
4.4.3 Windows NT
4.5 TCP/IP Macintosh
4.5.1 MacTCP
5. Intranet
5.1 NCPFS
5.1.1
5.1.2 Mounting NCPFS
5.2 SMBFS
5.2.1
5.2.2 Mounting SMBFS
5.3 NFS
5.4 Web
5.5
5.6 Internet
5.7
6.
7.
7.1

7.2
______________________________________________________________________
1.
, Intranet
Internet
,
Internet.
, ,
, desktop ,
.
Intranet
, .

TCP/IP Linux server
(LAN), Ethernet.
, Netware, WinNT
Mac. Netware server ,
, 3.1x.
INETCFG . client
Windows 3.1x, Windows
Workgroups, Win95, WinNT Apple PowerMac.
"" (RFC-1918) 172.16.0.0
172.17.0.0 .
.

Linux
Netware
WFWG/WinNT
Server
Server
Server
172.16.0.1 172.16.0.2 172.16.0.3
|
|
|
172.16.0.0
------+-----+-----+--------+--+-------------|
| 172.16.0.254
W/S 1
Router
172.16.0.5
| 172.17.0.254
|
----------+-------+-------172.17.0.0
|
W/S 2
172.17.0.5

1.1.
(software)
.
HTTP server
OneStep NCSA HTTPd Downloader
http://hoohoo.ncsa.uiuc.edu/docs/setup/OneStep.html.

Novell Netware Client


HTTP://support.novell.com/ ( TCP/IP
client).
Microsoft TCP/IP client
HTTP://www.microsoft.com/
Apple MacTCP client
HTTP://www.apple.com/
WWW Browsers Netscape HTTP://home.netscape.com/
MS Internet Explorer HTTP://www.microsoft.com/ NCSA Mosaic

http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/NCSAMosaicHome.html

1.2.

Linux Intranet Server HOWTO


comp.os.linux.announce comp.os.linux.help.
Linux FTP sites, sunsite.unc.edu.
HTML
http://www.inet.co.th/cyberclub/karnadp/http.html
1.3. (Feedback)
, , ,
HOWTO, email :
voulariba@hellug.gr : evris@hellug.gr
: ep@rocketmail.com
' ,
e-mail Pramod Karnad, karnad@indiamail.com.
, mail, .
,
.
2. HTTP server
(download) server, :
(compile) ,
.
Linux (ELF) NCSA
.
2.1. downloading
server NCSA
.
download HTTPd
.

2.1.1.

.
, ,
.
Linux ,
Linux :
linux:~$ uname -a

linux:~$ uname -a
Linux linux 2.0.29 #4 Tue Sep 13 04:05:51 CDT 1994 i586
linux:~$

Linux 2.0.29.
downloading,
, srm.conf
/usr/local/etc/httpd/conf .
directives httpd.conf
(brackets). directive DocumentRoot
srm.conf
2.1.2. (ServerType)
HTTPd server.
"standalone". HTTP
. HTTPd "inetd",
server ,
server .
2.1.3. Binding Port (Port)
port HTTPd
(bind) (listen) HTTP.
"root",
80, 1025 65535.
2.1.4. Server user identity (User)

server
.
server "standalone".
root,
. ,

.
2.1.5. group Server(Group)
group (group id) server
.
Server User identity
server "standalone".
root, group
. group groups
Linux.
2.1.6. email Server (ServerAdmin)
email
email server.
e-mail .

2.1.7. server(ServerRoot)
server "" .
root permissions
/usr/local/etc/httpd. root,
- (home path).
path home pwd.

2.1.8. HTML (DocumentRoot)


HTML .
/usr/local/etc/httpd/htdocs.
, , o home
Server user identity,
- home ,
root.
, .
,
Download NCSA HTTPd
http://hoohoo.ncsa.uiuc.edu/docs/setup/OneStep.html.
HTTPd
http://hoohoo.ncsa.uiuc.edu/docs/ .
,
makefiles
support, src, cgi-src. Linux
, make linux
(i.e. /usr/local/etc/httpd)

2.2. HTTPd
, make linux
(prompt), server. :
pre-ELF Linux #define NO_PASS,
portability.h DBM_LIBS= -ldbm Makefile
HTTPd.
3. HTTPd
HTTPd, root ,
httpd & . (
standalone)
ps.
HTTPd Telnet. Linux

linux:~$ telnet 172.16.0.1 80

80 (port) HTTP.
"Port" ,
. ,
Trying 172.16.0.1...
Connected to linux.mydomain.
Escape character is '^]'.
, Enter,
:
HTTP/1.0 400 Bad Request
Date: Wed, 10 Jan 1996 10:24:37 GMT
Server: NCSA/1.5
Content-type: text/html
<HEAD><TITLE>400 Bad Request < /TITLE> < /HEAD>
<BODY><H1>400 Bad Request < /H1>
Your client sent a query that this server could
not understand.<P>
Reason: Invalid or unsupported method.<P>
< /BODY>

server
PC WWW Browser.
4. Linux Server

``''
. 1
(W/S1) 172.16.0.0 Linux
server ' 2 (W/S2)
172.17.0.0 (gateway) (router)
172.17.0.254 Linux box.
(gateway)
clients W/S2. Netware 'ip_router'.
W/S2 client.
W/S1 172.17.0.5 172.16.0.5
/ (gateway/router).
router

`` Netware Server'' Netware server.
`` MS Windows Client'' Microsoft
Client.
4.1. Linux server
router.
Linux server router
2 Web server.
Linux server root.
server :
route add gw default 172.16.0.254

(gateway)
Linux server /etc/rc.d/rc.inet1
gateway GATEWAY
= "172.16.0.254".
gateway .
: routes
router.
route add -net 172.17.0.0 gw 172.16.0.254


Linux /etc/rc.d/rc.local.

4.2. Netware server

Netware server
Supervisor Console operator .
, Administrator
. Server Ethernet_II
frame LAN,
AUTOEXEC.ncf .
load NE2000 frame=Ethernet_II name=IPNET
load TCPIP
bind IP to IPNET addr=172.16.0.2 mask=FF.FF.FF.0

slot board number


NE2000 driver,
. (..: load NE2000 slot=3 frame=.....)
4.3. Netware Client
PC Win3.1,WFWG Win95.
Win95 windows,
32 client Microsoft Novell.
16 client,
Windows
3.x . 32 client Win95
' `` Windows 95''.
4.3.1. Windows 3.x
Win3.1 WFWG Netware
Client (VLMs)
TCP/IP,
TCPIP.exe, VTCPIP.386, WINSOCK.dll and WLIBSOCK.dll
WINSOCK.dll
Win95 Trumpet. Netware Client
windows. VTCPIP.386, WINSOCK.dll
WLIBSOCK.dll SYSTEM, TCPIP.exe
NWCLIENT. STARTNET.bat
NWCLIENT

lsl
ne2000
---> driver
c:\windows\odihlp.exe
----> WFWG
ipxodi
tcpip
--->
nwip
---> Netware/IP
vlm

- () \NET\TCP

HOSTS, NETWORKS, PROTOCOLS SERVICES /etc Linux


server SYS:ETC Netware server.
HOSTS
Linux server . Linux
server , http://linux.mydomain/ http://172.16.0.1/ WWW
browser
127.0.0.1
172.16.0.1

localhost
linux.mydomain

to NET.cfg NWCLIENT
Link Driver NE2000
port 300
int 3
MEM D0000
FRAME Ethernet_802.2
; ---- ---FRAME Ethernet_II
Protocol TCPIP
PATH TCP_CFG C:\NET\TCP
ip_address 172.17.0.5
ip_netmask 255.255.255.0
ip_router 172.17.0.254

---> add the address of your gateway o

nly
---> if you have to use this
---> gateway to reach your HTTP server
Link Support
MemPool 6192

---> the minimum is 1024. Try with different val

ues
Buffers 10 1580

---> this again can be fine tuned

;--------------------------------; You may need to add lines like these if you are using Netware/IP
;
NWIP
NWIP_DOMAIN_NAME mydomain
NSQ_BROADCAST ON
NWIP1_1 COMPATIBILITY OFF
AUTORETRIES
1
AUTORETRY SECS 10

SYSTEM.ini WINDOWS
VTCPIP.386
[386Enh]

.....
network=*vnetbios, vipx.386, vnetware.386, VTCPIP.386
.....

PC, STARTNET.bat
WWW browser Web
. Netware
TCPMAN ( Trumpet Winsock).
4.3.2. Windows 95
32 client
Win95. .
Client for Netware Networks ( Microsoft Novell)
Microsoft TCP/IP Protocol
Network Adapter

, My Computer, Control
Panel, Networks. Add.
Client, Adapter, Protocol Service.
Client Netware:
1. Client
2. Microsoft Novell
3. Client Netware

TCP/IP:
1. Protocol
2. Microsoft
3. TCP/IP

Windows95 .
, '
remove. Win95
Microsoft NetBeui, IPX/SPX .
NetBEUI,
IPX/SPX, Netware Server.
TCP/IP TCP/IP,
Properties IP address

IP "Specify an IP address "


box as 172.17.0.5
Subnet Mask 255.255.255.0

tab Gateway
gateway (router) New gateway
172.17.0.254
Add

gateway
gateways. OK.
. .
Browser
HTTP Server.
4.4. Microsoft Client
Microsoft Client ,
TCP/IP
``Windows Workgroups (WFWG)''
``Windows 95''
``Windows NT 4.0''
: Linux server
http://linux.mydomain/ http://172.16.0.1/ WWW browser
intranet
hosts.
hosts (Netware, Unix, WinNT).
Windows HOSTS \WINDOWS
\WINDOWS\SYSTEM .
Linux server , :
127.0.0.1
172.16.0.1

localhost
linux.mydomain

172.16.0.2
172.16.0.3
172.16.0.5

netware.mydomain
winNT.mydomain
ws_1

4.4.1. Windows Workgroups

32 client WFWG.
TCP/IP Windows
Microsoft. version 3.11b ftp://ftp.microsoft.com
site tcp32b.exe.
Win32s TCP/IP-32 .
TCP/IP
( C:\TEMP), \WINDOWS\SYSTEM
OEMSETUP.INF. , .
OEMSETUP.INF TEMP
\WINDOWS\SYSTEM. TCP/IP stacks
, .
Network Setup Windows Setup/Change Network Settings
Networks
Install Microsoft Windows Network.
( )
Click OK

network adapter - .
:
Click Adapter button
adapter (.: NE2000)
Click OK
Click Protocol button
MS TCP/IP-32 protocol
click OK

TCP/IP protocol stack.


click TCP/IP
protocol Adapters click
Setup.
IP address box 172.17.0.5
Subnet Mask box 255.255.255.0
gateway (router) gateway
172.17.0.254

OK. .
. Browser
HTTP Server.
4.4.2. Windows 95

32bit client
Microsoft Win95. :
Client Microsoft Networks
Microsoft TCP/IP Protocol
Network Adapter

, click My Computer, Control


Panel, Networks. Add.
Client, Adapter, Protocol
Service. Client Microsoft Networks:
1. Client
2. Microsoft
3. Client Microsoft Networks

TCP/IP :
1. Protocol
2. Microsoft
3. TCP/IP

Windows 95 .
click ' click Remove.
Win95 Microsoft NetBeui.
TCP/IP click TCP/IP, Properties
tab IP address
IP address "Specify an IP address "
172.17.0.5
Subnet Mask box 255.255.255.0

tab Gateway
gateway (router) New gateway
172.17.0.254
Add

gateway
gateways box. OK.
. .
Browser
HTTP Server.
4.4.3. Windows NT

TCP/IP client WinNT 4.0. Control Panel/ Network

Adapter tab.
Add adapter (

network adapter - .
.
Protocols tab
Add
TCP/IP protocol
OK

TCP/IP protocol stack.


click TCP/IP
protocol click properties.
tab IP Address
checkbox 'Specify an IP address'
IP address box 172.17.0.5
Subnet Mask box 255.255.255.0
gateway (router) Default Gateway
172.17.0.254

OK. .
. Browser
HTTP Server.
4.5. TCP/IP Macintosh
Macintosh ,
MacTCP
PowerMacs.
: Linux server
http://linux.mydomain/ http://172.16.0.1/ WWW browser
intranet edit
hosts. format hosts
Unix. hosts Mac
RFC-1035.
hosts (Netware, Unix, WinNT). MacOS
HOSTS Preferences folder System folder.

edit Linux server


:
linux.mydomain

A 172.16.0.1

netware.mydomain A 172.16.0.2
winNT.mydomain
A 172.16.0.3
ws_1
A 172.16.0.5

4.5.1. MacTCP
MacTCP.
MacTCP Apple
Internet Connection CD. MacTCP, click
Apple Menu/ Control Panels/ TCP/IP.
'Connect via:' 'Ethernet'
'Configure' 'Manually'

IP address box 172.17.0.5


Subnet Mask box 255.255.255.0
gateway (router)
Router address 172.17.0.254

OK.
Browser HTTP Server.
5. Intranet
Intranet (resources)
(shared) .
filesystems,
'.
Linux
filesystems.
``NCP filesystem for Netware''
``SMB filesystem for Windows''
``NFS filesystem for Unix''
filesystems compile Linux
modules, Linux.
e compile
Kernel HOWTO http://sunsite.unc.edu/mdw/HOWTO/Kernel-HOWTO.html
Module HOWTO http://sunsite.unc.edu/mdw/HOWTO/Module-HOWTO.html
compile modules.

5.1. NCPFS
Netware server
NCP (ncpfs). NCPFS 1.2.x 1.3.71
. 1.3.x.
NDS database Netware 4.x,
bindery. Netware 4.x
bindery
containers Set Bindery Context
:

set Bindery Context = CORP.MYDOM;WEBUSER.MYDOM

bindery
.
NCP filesystem utilities URL:
ftp://sunsite.unc.edu/pub/Linux/system/filesystems/ncpfs/ncpfs.tgz
( ncpfs-2.0.10) Sunsite.
5.1.1.
ncpfs utilities,
zcat ncpfs.tgz | tar xvf -

.
ncpfs-2.0.10
' ncpfs
. README Makefile
.
ncpfs
. 1.2, 'make'. ,
'make install' man
pages.
1.3.71 ,
compile . ,
ncpfs .
compile :
cat /proc/filesystems

ncpfs.
ncpfs , compile
ncpfs module. compile
'make config'
IPX (CONFIG_IPX) [N/y/?]
'y'.
, .
, /, /proc/filesystems
OK, ncpfs utilities.
ncpfs,
'make'. , 'make
install'
.
5.1.2. Mounting NCPFS
:
ipx_configure --auto_interface=on --auto_primary=on
.... 10
slist

Netware
servers. Netware
server.
HTML
\home\htmldocs volume VOL1: server MYDOM_NW.
( ) 'EXPORT'
password 'EXP123' server
' SYSCON
NWADMIN.
Linux /mnt/MYDOM_NW.
:
ncpmount -S MYDOM_NW -U EXPORT -P EXP123 /mnt/MYDOM_NW

netware.
ls /mnt/MYDOM_NW/vol1/home/htmldocs

MYDOM_NW/VOL1:\HOME\HTMLDOCS
( Netware).
IPX HOWTO http://sunsite.unc.edu/mdw/HOWTO/IPXHOWTO.html IPX.

5.2. SMBFS
Windows server
SMB (smbfs).

SMB :
ftp://sunsite.unc.edu/pub/Linux/system/filesystems/smbfs/smbfs.tgz
( smbfs-2.0.1) Sunsite.
5.2.1.
smbfs,
zcat smbfs.tgz | tar xvf -

.
smbfs-2.0.1.
smbfs .
README, Makefile .
smbfs
. 1.2, 'make'.
, 'make install'
.
2.0 ,
. ,
smbfs .
:
cat /proc/filesystems


smbfs.
smbfs , compile
smbfs module.
'make config'
SMB, yes.
, ,
/proc/filesystems ,
smbfs.
smbfs, 'make'.

, 'make install'

.
5.2.2. Mounting SMBFS
, WinNT server
'MYDOM_NT' (sharing) C:\PUB\HTMLDOCS
(share) 'HTMLDOCS' password. Linux
/mnt/MYDOM_NT.
smbmount //MYDOM_NT/HTMLDOCS /mnt/MYDOM_NT -n

SMB (windows share).


,
smbmount //MYDOM_NT/COMMON /mnt/MYDOM_NT -n -I 172.16.0.3


ls /mnt/MYDOM_NT


bsol;bsol;MYDOM_NT\PUB\HTMLDOCS (
Windows ).

5.3. NFS
NFS
(compiled) module.
Unix host NFS
MYDOM_UNIX IP 172.16.0.4.

showmount -e 172.16.0.4

,
.
'/mnt' ( )
'MYDOM_UNIX' .

mount -o rsize=1024,wsize=1024 172.16.0.4:/pub/htmldocs /mnt/MYDOM_UNI


X

rsize wsize , .
NFS HOWTO
http://sunsite.unc.edu/mdw/HOWTO/NFS-HOWTO.html
NFS.

5.4. Web
HTTP server, clients
Linux server servers,
Linux server
' Web
Browser.
5.5.
HTML
:
link DocumentRoot
(/usr/local/etc/httpd/htdocs)

ln -s /mnt/MYDOM_NW/vol1/home/htmldocs netware

ln -s /mnt/MYDOM_NT

ln -s /mnt/MYDOM_UNIX

winNT
unix

srm.conf
/usr/local/etc/httpd/conf
(alias).

# Alias fakename realname


Alias /icons/
/usr/local/etc/httpd/icons/

# alias for netware server


Alias /netware/ /mnt/MYDOM_NW/vol1/home/htmldocs/
Alias /winNT/
/mnt/MYDOM_NT/
Alias /unix/
/mnt/MYDOM_UNIX

HTTPd.
netware server ' :
http://linux.mydomain/netware/index.htm netware
.
5.6. Internet
Intranet Internet
E-Mail
.
. ISP
Hookup HOWTO http://sunsite.unc.edu/mdw/HOWTO/ISP-HookupHOWTO.html Diald mini HOWTO
http://sunsite.unc.edu/mdw/HOWTO/mini/Diald
.
5.7.
HTTP server
server,
.
word, Lotus spreadsheets,



newsletters, ,
, , ,
, ,
.

.
Web site , CGI
scripts, Web server backend . ,
,
.

interface RDBMS ORACLE SYBASE
.
sites Web.
- Web Access http://cscsun1.larc.nasa.gov/~beowulf/db/web_access.html - CGI
gateways - HTTP://www.w3.org/hypertext/WWW/RDBGate/Overview.html

Corporate/Department/Individual pages


, Intranet

.


.

HTML forms, sites
, .

administrators Intranet

. 'Java'

.
Linux
Java.
Mail
Intranet mail
attachment , ,
, mail
, de facto . Mail
,
.
Linux E-mail sendmail,
pop3d, imapd.
User Interface
Intranet
, HTML,
.
HTML, Interface
.
Intranet ' .
hyperlink HTML ,
, yearend
.
6.

Linux Intranet server.
freeware shareware.

Browse Linux server Network Neighbourhood


Win95/ NT. NBT server WINS. Web
SAMBA
http://lake.canberra.edu.au/pub/samba/samba.html
Intranet.
ht://Dig http://htdig.sdsu.edu/
CUSeeMe reflector.
Cornell http://cu-seeme.cornell.edu/
Web Conferencing. COW
http://thecity.sfsu.edu/COW/
SQL . mSQL Home page
http://Hughes.com.au/
FTP,Gopher,Finger,Bootp servers Netware server.
http://mft.ucs.ed.ac.uk/
Netware server. NCP
ftp://sunsite.unc.edu/pub/Linux/system/filesystems/ncpfs/
Linux
Intranet server, mail.
7.

7.1.
NCSA
, David Anderson
HOWTO .
Netware/IP Romel Flores
(rom@mnl.sequel.net).

7.2.
(C) 1996,1997 Pramod
Karnad :
HOWTO Linux
,
,
.
. ,
.
, ,
Linux HOWTO
.
, HOWTO
.


.
Linux HOWTO .
, Tim Bynum,
Linux HOWTO, linux-howto@sunsite.unc.edu
finger snail mail address.

You might also like