Next Previous Contents

5. Egka8istwntas to Intranet

Ena Intranet den mporei na oloklhrw8ei an oi phges (resources) den einai koines(shared) se oles tis diaforetikes platformes. 8a xreiasteite yposthrijh gia alla filesystems, wste na mporeite na prospelasete tis plhrofories poy einai dia8esimes s'aytes. Ayto to keimeno parexei odhgies gia na syndesete to Linux me ta akoloy8a dhmofilh filesystems.

Ayta ta filesystems mporei na ginoyn compile se pyrhna Linux h na proste8oun san modules, ejartatai apo thn ekdosh toy Linux. An den gnwrizetee kala na kanete compile ton pyrhna mporeite na koitajete sto Kernel HOWTO http://sunsite.unc.edu/mdw/HOWTO/Kernel-HOWTO.html kai sto Module HOWTO http://sunsite.unc.edu/mdw/HOWTO/Module-HOWTO.html gia na kanete compile ton pyrhna me modules.

5.1 NCPFS

Gia na moirastoun ta arxeia toy Netware server 8a xreiastei yposthrijh gia NCP (ncpfs). To NCPFS doyleuei me ekdosh pyrhna 1.2.x kai 1.3.71 kai panw. Den doyleuei me opoiadhpote palaioterh ekdosh pyrhna 1.3.x. Den mporei na exei prosbash sthn NDS database se Netware 4.x, alla mporei na kanei xrhsh aytou toy bindery. An xrhsimopoieite Netware 4.x mporeite na energopoihsete thn yposthrijh bindery gia sygkekrimena containers xrhsimopoiwntas thn entolh Set Bindery Context sthn konsola san:


  set Bindery Context = CORP.MYDOM;WEBUSER.MYDOM
Sto parapanw paradeigma energopoih8hke h yposthrijh bindery gia dyo periexomena.

8a xreiastei na katebasete ta NCP filesystem utilities apo to URL: ftp://sunsite.unc.edu/pub/Linux/system/filesystems/ncpfs/ncpfs.tgz (trexoysa ekdosh ncpfs-2.0.10) apo to Sunsite.

Egkatastash

Gia na egkatasthsete ta ncpfs utilities, plhktrologhste

   zcat ncpfs.tgz | tar xvf -
gia na epekteinete ta arxeia sto idio toys ton katalogo. Sthn periptwsh ayth 8a parete enan katalogo ncpfs-2.0.10 allajte ton katalogo sas s'ayto ton katalogo ncpfs prin proxwrhsete me thn egkatastash. Diabaste to arxeio README kai ftiajte to Makefile an xreiazetai.

H egkatastash twn ncpfs ejartatai apo thn ekdosh toy pyrhna poy xrhsimopoieite. Gia ton pyrhna 1.2, apla gracte 'make'. Epomenws, grafontas 'make install' 8a egkatasthsei ta ektelesima kai ta man pages.

An xrhsimopoieite pyrhna 1.3.71 kai panw, isws na prepei na kanete jana compile ton pyrhna. Me aytous toys pyrhnes, to kommati toy pyrhna toy ncpfs symperilambanetai hdh sto kyriws dendro toy kwdika. Gia na elegjete an o pyrhnas xreiazetai jana compile plhktrologhste:

   cat /proc/filesystems
Prepei na sas deijei mia grammh poy na leei oti o pyrhnas jerei to ncpfs.

An to ncpfs den einai ekei, mporeite eite na janakanete compile ton pyrhna h na pros8esete to ncpfs san module. Gia na janakanete compile ton pyrhna plhktrologhste 'make config' kai otan sas rwthsei gia

To Prwtokollo IPX (CONFIG_IPX) [N/y/?]

apanthste 'y'. Pi8anws den xreiazeste to oloklhro to eswteriko diktyo gia to opoio, sas rwtaei meta. Mias kai o pyrhnas exei egkatasta8ei epityxws, epanekkinhste ton H/Y, elegjte to /proc/filesystems kai an ola einai OK, proxwrhste me thn egkatastash twn ncpfs utilities. Allajte katalogo sthn perioxh poy exete katebasei hdh ta arxeia ncpfs, kai plhktrologhste 'make'. Meta th metaglwttish, gracte 'make install' gia na egkatasthsete ta diafora boh8htika programmata kai tis selides boh8eias.

Mounting NCPFS

Gia na elegjete thn egkatastash plhktrologhste:

   ipx_configure --auto_interface=on --auto_primary=on

....perimenete 10 deyterolepta kai gracte

   slist
8a prepei na mporeite na deite mia lista me ta onomata twn Netware servers. Twra eimaste etoimoi na moirastoume arxeia me ton Netware server.

As ypo8esoyme oti 8eloyme na exoyme prosbash se arxeia HTML apo ton katalogo \home\htmldocs sto volume VOL1: ston server MYDOM_NW. Synistatai na dhmioyrghsete enan neo xrhsth (as poume) 'EXPORT' me password 'EXP123' sto server ayto ston opoio na dwsete katallhla dikaiwmata s'ayton ton katalogo xrhsimopoiwntas to SYSCON h to NWADMIN.

Sto mhxanhma Linux dhmioyrghste enan neo katalogo /mnt/MYDOM_NW. Twra plhktrologhste thn entolh:

   ncpmount -S MYDOM_NW -U EXPORT -P EXP123 /mnt/MYDOM_NW
gia na prosarthsete to susthma arxeiwn netware. Me thn entolh
   ls /mnt/MYDOM_NW/vol1/home/htmldocs
8a deite mia lista me ola ta arxeia stoMYDOM_NW/VOL1:\HOME\HTMLDOCS (xrhsimopoiwntas thn shmeiografia toy Netware). An exete problhmata diabaste to IPX HOWTO sto http://sunsite.unc.edu/mdw/HOWTO/IPX-HOWTO.html gia perissotera panw se systhmata IPX.

5.2 SMBFS

Gia na moirasteite arxeia me ton Windows server 8a xreiasteite yposthrijh gia SMB (smbfs).

8a xreiastei na katebasete tis boh8htikes efarmoges gia systhmata arxeiwn SMB apo to: ftp://sunsite.unc.edu/pub/Linux/system/filesystems/smbfs/smbfs.tgz (trexoysa ekdosh smbfs-2.0.1) apo to Sunsite.

Egkatastash

Gia na egkatasthsete tis boh8htikes efarmoges smbfs, gracte

   zcat smbfs.tgz | tar xvf -
gia na aposympiesei ta arxeia ston idio toy ton katalogo. Tote 8a prepei na exei dhmioyrgh8ei o katalogos smbfs-2.0.1. Phgainete ston katalogo smbfs prin proxwrhsete me thn egkatastash. Diabaste to arxeio README, kai allajte to Makefile an xreiazetai.

H egkatastash toy smbfs ejartatai apo thn ekdosh toy pyrhna poy xrhsimopoieite. Gia ton pyrhna 1.2, aplws plhktrologhste 'make'. Epomenws, grafontas 'make install' 8a egkatasthsei ta ektelesima kai tis selides boh8eias.

An xrhsimopoieite pyrhna 2.0 kai panw, isws na prepei na janametaglwttisete ton pyrhna. Me aytous toys pyrhnes, to kommati toy pyrhna toy smbfs perilambanete hdh sto kyriws dendro toy kwdika. Gia na elegjete an o pyrhnas sas xreiazetai na janametaglwttistei gracte:

   cat /proc/filesystems
8a prepei na sas dinei mia grammh poy na leei oti o pyrhnas sas gnwrizei to smbfs.

An to smbfs den yparxei, prepei eite na janakanete compile ton pyrhna h na pros8esete to smbfs san module. Gia na janametaglwttisete ton pyrhna prepei na gracete 'make config' kai otan sas rwthsei gia na pros8esei yposthrijh gia susthma arxeiwn SMB, aplws apanthste yes. Afou o pyrhnas sas exei egkatasta8ei epityxws, epanekkinhste, elegjte to /proc/filesystemskai an ola einai entajei, proxwrhste sthn egkatastash twn boh8htikwn efarmogwn smbfs. Allajte katalogo sthn perioxh poy exete katebasei ta arxeia toy smbfs, kai gracte 'make'. Afou teleiwsei h metaglwttish, gracte 'make install' gia na egkatasthsete tis diafores boh8htikes efarmoges kai tis selides boh8eias.

Mounting SMBFS

Gia to paradeigma mas, as ypo8esoyme oti o WinNT server legetai 'MYDOM_NT' kai moirazetai(sharing) ton katalogo C:\PUB\HTMLDOCS me to koino (share) onoma 'HTMLDOCS' xwris password. Dhmioyrghste sto Linux enan neo katalogo /mnt/MYDOM_NT. Twra gracte thn entolh

   smbmount //MYDOM_NT/HTMLDOCS /mnt/MYDOM_NT -n

gia na prosarthsete to susthma arxeiwn SMB (windows share). An ayto de doyleuei, prospa8hste to

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

Plhktrologwntas thn entolh

   ls /mnt/MYDOM_NT
8a sas deijei mia lista olwn twn arxeiwn sto bsol;bsol;MYDOM_NT\PUB\HTMLDOCS (xrhsimopoiwntas thn shmeiografia twn Windows ).

5.3 NFS

Prwta 8a xreiasteite ena pyrhna me to susthma arxeiwn NFS h metaglwttismeno (compiled) h dia8esimo san module.

As ypo8esoyme oti exoyme enan Unix host poy trexei NFS me to onoma MYDOM_UNIX kai IP dieu8ynsh 172.16.0.4. Mporeite na deite toys katalogoys poy moirazontai apo ayton me thn entolh


   showmount -e 172.16.0.4
Afou jeroyme toys katalogoys poy moirazetai, mporeite na toys prosarthsete eisagontas mia katallhlh entolh. Synistatai na dhmioyrghsete enan ypokatalogo katw apo to '/mnt' (As poume) 'MYDOM_UNIX' kai na to xrhsimopoihsete san to shmeio prosarthshs.

   mount -o rsize=1024,wsize=1024 172.16.0.4:/pub/htmldocs /mnt/MYDOM_UNIX
Ta rsize kai wsize mporei na 8eloyn allagh, analoga me periballon sas.

An exete problhmata diabaste to NFS HOWTO sto http://sunsite.unc.edu/mdw/HOWTO/NFS-HOWTO.html gia perissotera panw sto susthma NFS.

5.4 Prosbash sto Web

Twra poy exoyme egkatasthsei ton HTTP server, toys clients kai exoyme syndesei ton Linux server me alloys servers, prepei na kanoyme orismenes mikroallages ston Linux server gia na mporoume na exoyme prosbash s' ayta ta prosarthmena systhmata arxeiwn apo ton Web Browser.

5.5 Prosbash sta prosarthmena systhmata arxeiwn

Gia na exoyme prosbash se prosarthmenoys katalogoys stis HTML selides sas yparxoyn duo me8odoi:

  # 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

kai epanekkinhste ton HTTPd. Mporeite na prospelasete ta keimena ston netware server anaferomenoi s' ayta ws: http://linux.mydomain/netware/index.htm gia ta arxeia toy netware kai paromoiws gia ta alla.

5.6 Sundesh sto Internet

Mporeite telika na syndesete to diko sas Intranet sto Internet gia na exete prosbash se E-Mail kai oles tis alles plhrofories poy yparxoyn ekei. Sas proteinw na gracete ena analytiko shmeiwma gia to pws 8a to epanalabete ayto sto mellon. Leptomereis ejhghseis briskontai sto ISP Hookup HOWTO apo to http://sunsite.unc.edu/mdw/HOWTO/ISP-Hookup-HOWTO.html kai to Diald mini HOWTO sto http://sunsite.unc.edu/mdw/HOWTO/mini/Diald gia na egkatasthsete aytes tis syndeseis.

5.7 Alles xrhseis

O HTTP server mporei na xrhsimopoih8ei sto grafeio gia na parexei diafanh prosbash plhrofories poy briskontai se diaforetiko server, se diafores topo8esies kai katalogoys. Oi plhrofories mporei na einai apla keimena toy word, Lotus spreadsheets, h poluplokes baseis dedomenwn

H efarmogh ayths ths texnologias xrhsimopoieitai kanonika ws ejhs


Next Previous Contents