Differenze tra le versioni di "FreeDOS Networking"

Da GolemWiki.
Jump to navigation Jump to search
 
(107 versioni intermedie di uno stesso utente non sono mostrate)
Riga 1: Riga 1:
 
= Introduzione =
 
= Introduzione =
 +
Col termine [https://it.wikipedia.org/wiki/Disk_operating_system DOS] (Disk Operating System) si fa riferimento ad una famiglia di sistemi operativi per PC IBM e compatibili basati sui processori x86. La versione più popolare fu l'[https://it.wikipedia.org/wiki/MS-DOS MS-DOS], prodotto dal 1982 al 1994, anno di uscita della versione MS-DOS 6.22. Le versioni 7, 7.10 e 8.0 non furono mai rilasciate indipendentemente, ma erano incorporate rispettivamente in Windows 95, Windows 98 e Windows ME. Nel 2001 la Microsoft ha decretato la definitiva fine del supporto per questo sistema operativo.
  
Nella seguente guida si farà riferimento a [http://www.freedos.org/ FreeDOS], un sistema operativo opensource 100% compatibile con MS-DOS.
+
In questa guida si è invece scelto di fare riferimento a [http://www.freedos.org/ FreeDOS], un sistema operativo costituito unicamente da [http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/repositories/unstable/pkg-html/index.html software libero], ancora attivamente sviluppato e compatibile con MS-DOS.
  
Come hardware è stata utilizzata la macchina virtuale [https://www.virtualbox.org/ VirtualBox].
+
Per avere a disposizione un riferimento hardware standard, libero e multipiattaforma si è scelto di utilizzare la macchina virtuale [https://www.virtualbox.org/ VirtualBox].
 +
 
 +
 
 +
== File Immagine ==
 +
Potrà capitare che un programma di installazione vi chieda di caricare un floppy con i driver della scheda di rete. Nel caso create un immagine, montatela, copiateci i file necessari, smontatela. Così sarà poi possibile utilizzarla con Virtualbox.
 +
 
 +
$ mkfs.msdos -C floppyDOS.img 1440
 +
$ sudo mount -o loop myfloppy.img /media/floppy/
 +
$ sudo cp "file da copiare" /media/floppy
 +
 
 +
Lo stesso trucco può essere sfruttato per creare una ISO da montare come CD-ROM
 +
$ mkisofs -o cdrom.iso [path]/directory_con_i_file_da_copiare/
 +
 
 +
Raccolta di dischi DOS di boot con utility e driver di rete preconfiurati
 +
* [https://www.veder.com/nwdsk/#images FreeDOS boot disk]
  
 
= Networking =
 
= Networking =
 +
Esistono diverse modalità per collegare un sistema DOS ad una rete:
 +
 +
* '''Primordi''': connessioni tramite cavo seriale o parallelo tra due PC (es. laplink, interlink, [https://tldp.org/HOWTO/PLIP-9.html PLIP]), BBS (Bulletin Board System).
 +
 +
* '''Stile UNIX''': utilizza schede di rete e '''packet driver''' ed il protocollo TCP-IP, permette la configurazione servizi standard come ftp, http, telnet, ssh, NFS e di accedere ad Internet.
 +
 +
* '''Microsoft Network''': utilizza schede di rete e '''driver NDIS''' con i protocolli NetBEUI, TCP-IP o IPX, permette di condividere cartelle e stampanti in una rete Windows (o SAMBA).
 +
 +
* '''Novell NetWare''': utilizza schede di rete e '''driver ODI''' ed i protocolli TCP-IP e/o IPX, sviluppato per collegare fra loro sistemi DOS e NetWare condividendone cartelle e stampanti.
 +
  
Esistono almeno 3 modi per collegare un sistema DOS in rete:
+
[https://web.archive.org/web/20230606025936/http://brutmanlabs.org/Dos_Networking/dos_networking.html Approfondimenti teorici]
  
* '''Applicazioni TCP/IP''': basate sui Packet driver, permettono di configurare servizi come ftp, http, telnet, ssh o NFS in stile "UNIX".
 
  
* '''Microsoft / SMB workgroup''': utilizza driver NDIS, permette di aggiungere un PC DOS ad una rete di macchine Windows (o SAMBA).
+
== Primordi ==
 +
=== ''Laplink'' ===
 +
* [https://en.wikipedia.org/wiki/Laplink LapLink]: programma proprietario lanciato della Traveling Software nel 1983. Negli anni si impose come standard a tal punto da diventare sinonimo di scambio di dati via porta parallela. Tuttora il cavo per connettere tra loro due PC viene informalmente chiamato ''cavo laplink''.
  
* '''Novell NetWare''': utilizza driver ODI ed il protocollo TCP-IP, sviluppato per collegare fra loro sistemi DOS e NetWare.
+
* [http://ftpmirror.your.org/pub/misc/ftp.microsoft.com/Products/Windows/Windows95/CDRomExtras/OtherUtilities/olddos.exe INTERLINK/INTERSRV]: utility presente sul disco supplementare d'installazione di MS-DOS a partire dalla versione 6.0 o scaricabile gratuitamente sull'archivio ftp di Microsoft. Sostanzialmente prometteva le stesse funzionalità di Laplink anche se con un'interfaccia meno intuitiva.  
  
 +
* [http://www.briggsoft.com/fmdos.htm File Maven]: software freeware costituito da un file manager con capacità di trasferimento file via porta seriale, parallela o tramite modem.
  
== UNIX-way ==
+
===BBS===
 +
Prima dell'avvento di Internet e degli ISP (Internet Service Provider) era comunque possibile, attraverso i modem e la normale linea telefonica, connettere direttamente un PC a dei "server bacheca" definiti [https://it.wikipedia.org/wiki/Bulletin_board_system BBS] che potevano ospitare servizi come chat, email e condivisione di file. Il numero massimo di connessioni gestibili dal server era quindi limitato dal numero di linee telefoniche supportate ed il costo della chiamata per il client dipendeva dal fatto che si trattasse o meno di una chiamata urbana. Adesso i recenti software per le BBS, oltre alla connessione ''dial-up'' possono appoggiarsi ad Internet per permettere l'accesso ai loro servizi anche tramite un normale client telnet su protocollo TCP-IP.
  
La scheda di rete predefinita di VirtualBox è una AMD PCnet Fast III (Am79C973), il suo Packet Driver è reperibile a questo indirizzo: [http://www.georgpotthast.de/sioux/pktdrv/pcntpk.zip PCnetFast]. Di seguito una lista completa di altri [http://www.crynwr.com/drivers/ driver].
+
* [https://www.rgbbs.info/ The Renegade BBS] Il più aggiornato server BBS per DOS
  
Scaricate il pacchetto, scompattatelo ed eseguitelo. Affinché sia caricato in automatico ad ogni riavvio si consiglia di aggiungere la seguente riga all'AUTOEXEC.BAT
+
* [http://cd.textfiles.com/expandin/BBSUTIL2/X00153A.ZIP X00], [https://www.pcmicro.com/bnu/ BNU] Driver Fossil per la gestione della connessione seriale via modem
 +
 
 +
* [http://ftp.podsix.org/pub/dos/comms/ Pod Six], [http://www.dosdays.co.uk/topics/Software/comm_utilities.php DOS Days] Programmi DOS per la connessione seriale (Telix, Procomm)
 +
 
 +
* [https://www.mysticbbs.com/ Mystic BBS] BBS disponibile per Linux (x86, x86_64, ARM), MS Windows (32/64bit) e MacOS Intel 64bit
 +
 
 +
* [https://www.youtube.com/watch?v=n6AodkRngOA Video Guida]
 +
 
 +
== Stile UNIX ==
 +
Questo metodo si avvale di driver di scheda di rete chiamati "Packet Driver", la scheda di rete predefinita di VirtualBox è una AMD PCnet Fast III (Am79C973) ed  ed il suo è reperibile a questo indirizzo: [http://www.georgpotthast.de/sioux/pktdrv/pcntpk.zip PCnetFast].
 +
 
 +
Scaricate il pacchetto, scompattatelo ed eseguitelo. Affinché sia caricato in automatico ad ogni riavvio si consiglia di aggiungere la seguente riga all'<code>AUTOEXEC.BAT</code>
  
 
  LH PCNTPK INT=0x60
 
  LH PCNTPK INT=0x60
  
=== Configurazione ===
+
'''Packet driver'''
Scaricate e scompattate [http://www.brutman.com/mTCP/ mTCP]
+
 
 +
* Collezione [http://crynwr.com/drivers/00index.html Crynwr].
 +
 
 +
* [http://packetdriversdos.net/ Altri driver]
  
mTCP utilizza un file di configurazione per assegnare un IP alla macchina
+
* [https://www.lazybrowndog.net/freedos/virtualbox/downloads/drivers/odipkt31.zip ODIPKT] Convertitore di driver ODI Novell in packet driver
  
  set MTCPCFG=C:\MTCP\ETH.CFG
+
  * [https://www.shikadi.net/network/ Convertitori] per altri tipi di driver (NDIS, IPX, UNDI)
  
Nel mio caso il file era ''eth.cfg'' e si trovava nella directory ''c:\mtcp\''.
 
  
Anche questo comando può essere aggiunto all'AUTOEXEC.BAT
+
=== mTCP ===
 +
Il [http://www.brutman.com/mTCP/ Brutman] mTCP è la recente rivisitazione di una libreria di nome [http://wiki.freedos.org/wiki/index.php/Networking_FreeDOS_-_WATTCP Waterloo TCP (WatTCP)] scritta tra il 1990 ed il 1992 da Erick Engelke, all'epoca sviluppatore presso la facoltà di ingegneria di Waterloo in Ontario (Canada).
 +
 
 +
Entrambe forniscono una serie di utility ed utilizzano un semplice file di configurazione per assegnare un IP alla macchina.
 +
 
 +
Installando l'mTCP in ''C:\MTCP\'' possiamo crearne il file di configurazione ''C:\MTCP\NET.CFG'' e per comodità potremo esportarne il percorso aggiungendo la seguente riga all'<code>AUTOEXEC.BAT</code>
 +
 
 +
set MTCPCFG=C:\MTCP\NET.CFG
 +
 
  
 
Un esempio di file di configurazione:
 
Un esempio di file di configurazione:
  
  --- ETH.CFG ---
+
  --- NET.CFG ---
 
  PACKETINT 0x60
 
  PACKETINT 0x60
 
  IPADDR 192.168.1.50
 
  IPADDR 192.168.1.50
Riga 47: Riga 96:
 
Se avete un server DHCP sulla vostra rete e non volete usare un IP statico è possibile usare una configurazione di questo tipo:
 
Se avete un server DHCP sulla vostra rete e non volete usare un IP statico è possibile usare una configurazione di questo tipo:
  
  --- ETH.CFG ---
+
  --- NET.CFG ---
 
  PACKETINT 0x60
 
  PACKETINT 0x60
 
  HOSTNAME  lucados
 
  HOSTNAME  lucados
  
 
dopodiché eseguire C:\MTCP\DHCP.EXE  
 
dopodiché eseguire C:\MTCP\DHCP.EXE  
 
  
 
mTCP fornisce le seguenti applicazioni:
 
mTCP fornisce le seguenti applicazioni:
Riga 64: Riga 112:
 
* ircjr.exe -- IRC client
 
* ircjr.exe -- IRC client
 
* nc.exe -- Netcat utility
 
* nc.exe -- Netcat utility
* ping.exe -- Ping utility
+
* '''netdrive.exe''' -- permette di accedere a directory remote identificandole come unità disco [https://www.brutman.com/mTCP/mTCP_NetDrive.html (Novità di Dicembre 2023)]
* pkttool -- packet sniffer and diagnostic tool per packet drivers
+
* ping.exe -- ping utility
* telnet.exe -- Telnet client
+
* pkttool -- packet sniffer e tool di diagnostica per i packet drivers
 +
* telnet.exe -- telnet client
 
* sntp.exe -- NTP (Network Time Protocol) client
 
* sntp.exe -- NTP (Network Time Protocol) client
  
 +
=== Soluzioni obsolete ===
 +
====  IBM PC/IP ====
 +
Rilasciato sotto licenza MIT nel 1984, è stato il primo port del protocollo TCP/IP per PC DOS.
 +
 +
* [https://web.mit.edu/Saltzer/www/publications/pcip-1986.pdf Documentazione]
 +
 +
* [http://www.bitsavers.org/bits/MIT/pc-ip/ Sorgenti]
 +
 +
==== NOS-KA9Q ====
 +
Col termine NOS (Network Operating System), si fa riferimento ad una serie software, sviluppati per lo più a cavallo tra gli anni '80 e '90 per soddisfare le esigenze dei radioamatori ([https://www.linuxdoc.org/HOWTO/AX25-HOWTO/AX.25 packet radio protocol]), gestori di [https://it.wikipedia.org/wiki/Bulletin_board_system BBS] ed in generale per fornire funzionalità di rete su DOS utilizzando il protocollo IPv4 ed i packet driver. Sebbene si tratti di soluzioni datate, vista la loro rilevanza storica, verranno ugualmente trattate a scopo didattico.
  
== Microsoft SMB ==
+
Si tratta infatti di software freeware/shareware, generalmente non più aggiornato da metà anni '90, l'epoca in cui Linux si impose come standard per questo tipo di progetti.  
Nonostante la cosa più semplice per condividere file tra DOS e Windows sia utilizzare ftp (magari con l'mTCP), in rete si trovano numerose guide che trattano la condivisione attraverso i tool ufficiali di Microsoft.  
 
  
NB: il TCP/IP del Network Client 3.0 richiede 230 KByte dei famosi 640K di memoria convenzionale DOS, attivandolo è molto probabile veder crashare il proprio sistema nel giro di poche decine di minuti. SMB (a differenza del TCP/IP) è un protocollo che negli anni ha subito aggiornamenti e modifiche, in pratica esistono molti "dialetti" di che non è detto siano sempre completamente intellegibili.
+
* [http://a2.pluto.it/introduzione_a_nos_ka9q_ipv4_per_dos.htm Approfondimenti].
 +
 
 +
* [https://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/simtelnet/msdos/tcpip/ Utility Simtelnet]
 +
 
 +
* [https://dos.retropc.se/network/tcpip/ka9q/00_index.htm Software vario] (print server, POP3 server, client di posta e Usenet)
 +
 
 +
* [https://web.archive.org/web/20190925002719/http://www.forumradioamatori.it/download/download-dos/Packet/Packet.html BBS e Packet Radio]
 +
 
 +
Il suffisso [http://www.ka9q.net/code/ka9qnos KA9Q] identifica la variante sviluppata da Phil Karn, probabilmente quella che ha riscontrato maggior successo. La sua esecuzione consente a DOS di avviare una sorta di sistema operativo interno multitasking che gli permette di funzionare contemporaneamente da client, server e commutatore di pacchetto per i protocolli TCP\IP, NET/ROM e AX.25. Può fornire connettività PPP attraverso la porta seriale del modem, funzioni di instradamento router-gatway ed ha un server ftp integrato.
 +
 
 +
Nella directory utilizzata del sistema NOS andrà collocato il suo file di configurazione <code>AUTOEXEC.NET</code> in cui sarà possibile precaricare i comandi da eseguire subito dopo la sua esecuzione attraverso il comando <code>NET.EXE</code>.
 +
 
 +
'''Routing'''
 +
 
 +
Supponendo di avere due schede di rete compatibili NE2000 e che queste utilizzino rispettivamente IRQ 10, I/O 280 e IRQ 11, I/O 300, la configurazione del driver di pacchetto potrebbe essere quella seguente:
 +
 
 +
NE2000.COM 0x60 0x0a 0x280
 +
NE2000.COM 0x61 0x0b 0x300
 +
 
 +
Supponendo che queste due schede servano a connettere le reti 192.168.1.* e 192.168.2.*, e supponendo anche che l'instradamento predefinito passi per il router 192.168.1.254, il file di configurazione di NOS potrebbe contenere in particolare le righe seguenti:
 +
 
 +
# Configurazione delle interfacce di rete.
 +
attach packet 0x60 ethernet0 8 1500
 +
attach packet 0x61 ethernet1 8 1500
 +
 
 +
# Definizione degli indirizzi IP.
 +
ifconfig ethernet0 ipaddress 192.168.1.10
 +
ifconfig ethernet0 netmask 255.255.255.0
 +
ifconfig ethernet1 ipaddress 192.168.2.10
 +
ifconfig ethernet1 netmask 255.255.255.0
 +
 
 +
# Instradamento.
 +
route add 192.168.1.0/24 ethernet0
 +
route add 192.168.2.0/24 ethernet1
 +
route add default ethernet0 192.168.1.254
 +
 
 +
'''Server ftp'''
 +
 
 +
Oltre ad eseguire il comando <code>start ftp</code> occorre predisporre un file con i permessi per gli utenti: ''ftpusers''. Andrà collocato nella stessa directory del servizio NOS. Il file deve contenere delle righe scomposte in quattro campi separati da uno o più spazi col seguente schema: <code> utente   password   percorso   permessi</code>
 +
 
 +
tizio ''pswtizio'' \home\tizio 7
 +
caio ''pswcaio'' \home\caio 7
 +
sempronio ''pswsempronio'' \progetto 3
 +
ftp * \pub 1
 +
anonymous * \pub 1
 +
 
 +
Gli utenti tizio e caio hanno una loro directory personale in cui possono fare quello che vogliono; l'utente sempronio partecipa a un lavoro che si trova nella directory \PROGETTO\ e lì ha la possibilità di immettere file, senza cancellare o sovrascrivere quelli presenti. Infine, gli utenti ftp e anonymous accedono con una parola d'ordine qualunque alla directory \PUB\, con il solo permesso di lettura.
 +
 
 +
==== Internet Extender ====
 +
Stavolta si tratta di un abandonware, l'ultima versione disponibile è la [http://www.jumpjet.info/Application-Software/DOS/Interfacing/Internet_Extender/inet_ext.zip 1.0b], sono disponibili anche i [http://www.jumpjet.info/Application-Software/DOS/Interfacing/Internet_Extender/iesource.zip sorgenti].
 +
 
 +
Permette di convertire un vecchio PC DOS in un router NAT per condividere la connessione con altri computer, si può interfacciare alla rete esterna sia attraverso il protocollo PPP con modem seriali che tramite schede di rete.
 +
 
 +
 
 +
=== Client ===
 +
==== Links ====
 +
Pacchetto contenuto nella distribuzione FreeDOS e scaricabile a [http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/repositories/latest/net/links/ questo indirizzo], al momento è l'unico capace di supportare SSL.
 +
 
 +
Per eseguire il browser in modalità grafica
 +
c:\net\links\links.exe -mode 1024x768x32k
 +
 
 +
 
 +
====Arachne====
 +
Storica suite opensource composta da browser web grafico, ftp e client email. Può accedere ad Internet sfruttando una scheda di rete supportata da '''packet driver''' o tramite dialer con modem seriale. Sfortunatamente manca del supporto per JavaScript, Java e SSL.
 +
 
 +
[http://www.glennmcc.org/ Ultima versione] 23/12/2021
 +
 
 +
== Microsoft Network (SMB) ==
 +
=== Microsoft Workgroup Connection ===
 +
Microsoft Workgroup Connection ([http://ftpmirror.your.org/pub/misc/ftp.microsoft.com/Softlib/MSLFILES/MSWGCN.EXE MSWGCN]) è un tool del 1992 che permette di configurare passo passo, utilizzando il protocollo NetBEUI, l'accesso ad una cartella condivisa in una rete Microsoft (DOS o Windows).
 +
 
 +
[https://it.wikipedia.org/wiki/Samba_(software) Samba] non supporta NetBEUI, da Windows Vista in poi persino Microsoft lo ha abbandonato in favore del TCP/IP, non sarà quindi possibile utilizzare questo software per accedere a condivisioni effettuate da server UNIX/Linux/MacOS o da versioni di Windows più recenti di XP.
 +
 
 +
Al termine dell'installazione sarà possibile accedere allo share col comando
 +
 
 +
NET USE Z: \\''nomeserver''\''nomecartella''
 +
SET SOURCE=Z:
 +
 
 +
=== MS Network Client ===
 +
NB: MS Network Client 3.0 richiede 230 KByte dei 640K della memoria convenzionale DOS, ciò potrebbe rendere il sistema instabile.
 +
 
 +
Permette di utilizzare uno o più fra i protocolli: NetBEUI, IPX/SPX e TCP/IP.
 +
 
 +
SMB (Session Message Block), conosciuto anche come NetBIOS o LanManager, negli anni ha subito aggiornamenti e modifiche; le versioni 1, 2 e 3 non sono intellegibili tra di loro ed occorrerà assicurarsi che il PC Windows vogliamo collegare alla macchina DOS abbia attivato il protocollo ''[https://learn.microsoft.com/it-it/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3?tabs=server SMB v1.0]''.
  
 
Prerequisiti
 
Prerequisiti
Riga 79: Riga 220:
 
* MS Client 3.0 (1995) (3 file autoestraenti [https://www.lazybrowndog.net/freedos/virtualbox/downloads/sources/MSCLIENT/DSK3-1.EXE DSK3-1.EXE],  [https://www.lazybrowndog.net/freedos/virtualbox/downloads/sources/MSCLIENT/DSK3-2.EXE DSK3-2.EXE], [https://www.lazybrowndog.net/freedos/virtualbox/downloads/sources/MSCLIENT/WG1049.EXE WG1049.EXE])
 
* MS Client 3.0 (1995) (3 file autoestraenti [https://www.lazybrowndog.net/freedos/virtualbox/downloads/sources/MSCLIENT/DSK3-1.EXE DSK3-1.EXE],  [https://www.lazybrowndog.net/freedos/virtualbox/downloads/sources/MSCLIENT/DSK3-2.EXE DSK3-2.EXE], [https://www.lazybrowndog.net/freedos/virtualbox/downloads/sources/MSCLIENT/WG1049.EXE WG1049.EXE])
  
* Driver per la scheda di rete: [http://download.amd.com/techdownloads/pcnfs.zip PCnetFAST], [http://www.crynwr.com/drivers/ Altri]
+
* Driver per la scheda di rete: [http://download.amd.com/techdownloads/pcnfs.zip PCnetFAST], [http://crynwr.com/drivers/ Altri]
  
 
* Aggiornamenti [https://www.lazybrowndog.net/freedos/virtualbox/downloads/sources/MSCLIENT/NETSHAR.EXE NETSHAR.EXE],  
 
* Aggiornamenti [https://www.lazybrowndog.net/freedos/virtualbox/downloads/sources/MSCLIENT/NETSHAR.EXE NETSHAR.EXE],  
  
  
=== Installazione ===
+
==== Installazione ====
 
+
Creare una directory dove eseguire i file DSK3-1.EXE e DSK3-2.EXE, una volta scompattati lanciate il setup.exe.
Create una directory per eseguirvi i file DSK3-1.EXE e DSK3-2.EXE, una volta scompattati lanciate il setup.exe.
 
  
 
Copiate in una directory temporanea anche il file WG1049.EXE, eseguitelo e spostatene il contenuto in C:\NET (precedentemente creata dal setup.exe del DSK3), si tratta di un aggiornamento.
 
Copiate in una directory temporanea anche il file WG1049.EXE, eseguitelo e spostatene il contenuto in C:\NET (precedentemente creata dal setup.exe del DSK3), si tratta di un aggiornamento.
  
Spostate in C:\NET anche il file NETSHAR.EXE.
+
Spostate in C:\NET anche il file NETSHAR.EXE ed il driver della scheda di rete pcntnd.dos.
  
  
=== Configurazione ===
+
==== Configurazione Client ====
 
* FreeDOS utilizza il file configurazione <code>C:\FDCONFIG.SYS</code> invece del <code>CONFIG.SYS</code> dell'MS DOS, per cui dovremo inserirci manualmente la seguente riga
 
* FreeDOS utilizza il file configurazione <code>C:\FDCONFIG.SYS</code> invece del <code>CONFIG.SYS</code> dell'MS DOS, per cui dovremo inserirci manualmente la seguente riga
  
Riga 119: Riga 259:
 
  ...
 
  ...
  
''Gli indirizzi IP usano lo spazio come separatore, al posto del punto''
+
''Gli indirizzi IP usano lo spazio, al posto del punto, come separatore.''
 +
 
 +
 
 +
==== Configurazione server ====
 +
Modificare il file  <code>C:\net\system.ini</code>
 +
 
 +
[network]
 +
filesharing=yes
 +
printsharing=yes
 +
autostart=basic,server
 +
 
 +
[network_drivers]
 +
netcard=pcntnd.dos
 +
   
 +
Aggiungere la seguente linea alla fine del file <code>C:\config.sys</code>
 +
 
 +
install=C:\share.exe
 +
 
 +
Al successivo reboot il sistema chiederà di inserire password ed username per la condivisione della cartella.
 +
 
 +
  For example, to share drive C: as \\DOS\drivec and give full access:
 +
    net share drivec=C:\ /FULL
 +
 
 +
 
 +
==== Comandi ====
 +
* Lista dei computer connessi in rete
 +
net view
 +
 
 +
* Montare una directory condivisa:
 +
net use X: \\SERVER\SHARENAME
 +
 
 +
* Condividere la cartella <code>C:\condivisa</code>
 +
net share drivec=C:\condivisa /FULL
 +
 
 +
* Rimuovere la cartella dalla condivisione
 +
net share drivec /d
 +
 
 +
 
 +
''[https://www.lazybrowndog.net/freedos/virtualbox/?page_id=575 Guida con screenshot]''
 +
 
 +
''[https://web.archive.org/web/20060323011409if_/http://www.veder.com/ftp/nwdsk/fdmsrrc.exe FreeDOS boot disk] MS-Client e MS-Server, USB/CDROM/NTFS/LPD''
 +
 
 +
''[https://github.com/cml37/dos-utils/blob/master/network/smb/ms_dos_client_file_server/ms_dos_client_file_server_tutorial.txt Tutorial]''
 +
 
 +
''[https://www.lazybrowndog.net/freedos/virtualbox/downloads/drivers/dis_pkt9.zip DIS_PKT9.DOS] Trasforma i driver NDIS in packet driver''
 +
 
 +
''[https://ftp.zx.net.nz/pub/mirror/ftp.microsoft.com/ ftp.microsoft.com]''
 +
 
 +
 
 +
== Novell NetWare ==
 +
 
 +
Se non dovessero essere inclusi nei client occorrerà scaricare i driver ODI per la scheda di rete.
 +
 
 +
[https://www.lazybrowndog.net/freedos/virtualbox/downloads/drivers/pcnetodi.zip PCnet-FAST III] per Virtualbox
 +
 
 +
[http://www.georgpotthast.de/sioux/packet.htm Altri driver ODI]
 +
 
 +
[http://bbs.actapricot.org/files/area37/ Utility varie]
 +
 
 +
 
 +
=== VLM ===
 +
NetWare Client per DOS workstation v1.21
 +
 
 +
* Versione DOS/Win3X a 16-bit, IPX
 +
 
 +
[http://bbs.actapricot.org/files/area37/vlm121_1.exe Disco 1]
 +
 
 +
[http://bbs.actapricot.org/files/area37/vlm121_2.exe Disco 2]
 +
 
 +
[http://bbs.actapricot.org/files/area37/vlm121_3.exe Disco 3]
 +
 
 +
[http://bbs.actapricot.org/files/area37/vlm121_4.exe Disco 4]
 +
 
 +
[http://bbs.actapricot.org/files/area37/vlm121_5.exe Disco 5]
 +
 
 +
[http://bbs.actapricot.org/files/area37/vlm121_6.exe Disco 6]
 +
 
 +
[https://web.archive.org/web/19970617022019/http://ftp.novell.com/pub/updates/nwos/dsclnt12/tcp16.exe Novell TCP-IP 16-bit]
 +
 
 +
Create una nuova directory (es. NOVFILES), copiateci i file scaricati e spacchettateli al suo interno. Se usate hardware reale sarà possibile scompattare gli archivi autoestraenti direttamente su floppy nel seguente modo:
 +
 
 +
C:\NOVFILES> VLMKT1 A:
 +
C:\NOVFILES> VLMKT2 A:
 +
C:\NOVFILES> VLMKT3 A:
 +
C:\NOVFILES> VLMKT4 A:
 +
C:\NOVFILES> VLMKT5 A:
 +
C:\NOVFILES> TCP16 A:
 +
 
 +
Installate il client nella directory C:\NWCLIENT ed il tcp16.exe in C:\TCP. Per comodità, si suggerisce di usare il seguente script di avvio. Nell'esempio è stato utilizzato il driver per schede di rete NE2000.
 +
 
 +
'''C:\NWCLIENT\startnet.bat'''
 +
 
 +
LH C:\NWCLIENT\LSL.COM
 +
LH C:\NWCLIENT\NE2000.COM
 +
LH C:\NWCLIENT\IPXODI.COM
 +
LH C:\TCP\tcpip.exe
 +
LH C:\NWCLIENT\VLM.EXE
 +
 
 +
A questo punto andiamo a creare il file di configurazione della rete
  
 +
'''C:\NWCLIENT\net.cfg'''
  
=== Mounting a Samba Share ===
+
Link Driver NE2000
 +
        Protocol IPX 0 ETHERNET_802.3   
 +
        Frame ETHERNET_802.3   
 +
        Frame Ethernet_II       
 +
        FRAME Ethernet_802.2
  
* Per vedere la lista dei computer connessi in rete digitare:
+
NetWare DOS Requester
> net view
+
          FIRST NETWORK DRIVE = F
 +
          USE DEFAULTS = OFF
 +
          VLM = CONN.VLM
 +
          VLM = IPXNCP.VLM
 +
          VLM = TRAN.VLM
 +
          VLM = SECURITY.VLM
 +
          VLM = NDS.VLM
 +
          VLM = BIND.VLM
 +
          VLM = NWP.VLM
 +
          VLM = FIO.VLM
 +
          VLM = GENERAL.VLM
 +
          VLM = REDIR.VLM
 +
          VLM = PRINT.VLM
 +
          VLM = NETX.VLM
  
* Per montare una directory condivisa:
+
Link Support
> net use X: \\SERVER\SHARENAME
+
        Buffers 8 1500
 +
        MemPool 4096
  
 +
Protocol TCPIP
 +
        PATH SCRIPT    C:\NET\SCRIPT
 +
        PATH PROFILE    C:\NET\PROFILE
 +
        PATH LWP_CFG    C:\NET\HSTACC
 +
        PATH TCP_CFG    C:\NET\TCP
 +
        ip_address      192.168.0.xxx
 +
        ip_router      192.168.0.1
  
''[https://joyojc.com/2002/04/installing-microsoft-network-client-3-0/ Guida con screenshot]''
 
  
 +
Inserire nel campo "ip_address" l'indirizzo IP che vogliamo dare alla macchina e nel campo "ip_router" l'indirizzo del gateway.
  
== Novell "NetWare DOS Client" con TCP/IP ==
+
Infine creare il file per la configurazione del server DNS
  
http://freedos.sourceforge.net/wiki/index.php/Networking_FreeDOS_complete#ODI_drivers
+
'''C:\bin\resolv.cfg'''
  
https://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/configuring-novell.html
+
SEARCH DNS HOSTS SEQUENTIAL
 +
NAMESERVER 1.1.1.1
 +
NAMESERVER 8.8.8.8
  
[http://www.georgpotthast.de/sioux/packet.htm Driver ODI]
+
''[https://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/configuring-novell.html Dettagli]''
  
https://www.novell.com/coolsolutions/tools/13555.html
+
''[http://www.veder.com/ftp/nwdsk/fd16.exe FreeDOS boot disk] Client 16-bit IPX, pkt driver, USB/CDROM/VC/LFN/, LPD Print Server, Ping''
  
http://bbs.actapricot.org/files/area37/
 
  
 +
=== NLM ===
 +
 +
NetWare Client 5 per DOS workstation
 +
 +
* Versione DOS/Win3X a 32-bit, IP/IPX
 +
 +
'''NB: NetWare/IP non supporta più di una scheda di rete per PC'''
 +
 +
Per prima cosa, se non è già stato fatto, modificare il file <code>CONFIG.SYS</code> per caricare la HIMEM
 +
 +
DEVICE=A:\HIMEM.SYS
 +
 +
 +
Scompattare il Client32 in una directory vuota es. C:\NOVELL:
 +
 +
C:\NOVELL\dw271e.exe
 +
 +
 +
Installare il Client e seguire le istruzioni
 +
 +
C:\NOVELL\INSTALL.EXE
 +
 +
 +
''[http://213.211.43.206/stuff/yesican.chsoft.biz/pub/dv/potpouri/dw271e.zip Download]''
 +
 +
''[http://www.veder.com/ftp/nwdsk/fd32e.exe Disco di Boot]'' FreeDOS con Client NetWare 16/32, IP/IPX, CDROM, USB support, TinyHost
 +
 +
''[https://www.techrepublic.com/forums/discussions/who-will-send-an-ip-bootdisk/ Installazione Manuale]''
 +
 +
''[http://wiki.freedos.org/wiki/index.php/Networking_FreeDOS_-_ODI_driver_installation Guida FreeDOS ODI Driver]''
 +
 +
 +
=== NetWare Lite ===
 +
 +
Si tratta di un programma che per la realizzazione di reti peer-to-peer capaci di gestire fino a 25 computer, utilizza i driver ODI e permette di condividere stampanti e cartelle.
 +
 +
ATTENZIONE: Si possono riscontrare problemi con driver recenti che richiedono versioni più vecchie di LSL.COM (Link Support Layer).
 +
 +
[https://winworldpc.com/product/netware-lite/1x Download Netware Lite 1.1]
 +
 +
==== Configurazione ====
 +
 +
NetWare Lite è composto da una serie di programmi [https://it.wikipedia.org/wiki/Terminate_and_Stay_Resident TSR] che si caricano nella memoria, si possono suddividere in due categorie: quelli che hanno a che fare con la scheda di rete e quelli che che costituiscono la vera e propria rete NetWare.
 +
 +
* Driver di rete
 +
    LSL
 +
    <DOS ODI Driver> ''(Example: NE2000.COM)''
 +
    IPXODI A
 +
 +
''Quando si carica IPXODI, sarebbe meglio farlo aggiungendo il parametro <code>A</code> affinché il programma risparmi memoria non caricando componenti superflue per questo tipo di implementazione di rete.''
 +
 +
 +
* Rete NetWare Lite
 +
    SHARE
 +
    SERVER
 +
    CLIENT
 +
 +
Tutti gli eseguibili sopra riportati possono essere caricati nella ''upper memory'' (UMB), normalmente vengono inseriti nel batch script <code>STARTNET.BAT</code> ed eseguiti automaticamente. Sarebbe possibile caricarli direttamente nell'<code>AUTOEXEC.BAT</code>, ma è preferibile fare in questo modo per tenere il sistema il più ordinato possibile.
 +
 +
STARTNET può quindi essere eseguito dall'<code>AUTOEXEC.BAT</code> inserendo nell'ultima riga di quest'ultimo il comando
 +
 +
    call startnet
 +
 +
<code>SHARE.EXE</code> è il programma che abilita il file sharing e deve essere abilitato sulle macchine che hanno file da condividere.
 +
 +
<code>SERVER.EXE</code> deve essere caricato su tutte le macchine della rete che hanno risorse da condividere (stampanti o drive)
 +
 +
<code>CLIENT.EXE</code> va lanciato su tutte le macchine che hanno bisogno di accedere alle risorse condivise
 +
 +
Esempi:
 +
 +
Se si vuole che il PC1 stampi su una stampante installata su PC2 occorrerà che PC1 abbia caricato CLIENT.EXE e che PC2 abbia invece caricato SERVER.EXE.
 +
 +
Se invece vogliamo che PC1 abbia accesso all'hard disk di PC2 bisognerà che PC1 abbia caricato CLIENT.EXE e che su PC2 sia in esecuzione SERVER.EXE
 +
 +
NB: se un PC ha bisogno di accedere alla propria stampante, ma è in esecuzione SERVER.EXE, occorrerà che venga caricato anche CLIENT.EXE perché a questo punto la sua stampante è identificata come risorsa di rete.
 +
 +
==== Utenti e Login ====
 +
L'amministratore di rete può eseguire il login attraverso il seguente comando
 +
 +
    NET LOGIN SUPERVISOR
 +
 +
NetWare Lite permette all'amministratore di configurare utenze con limitazioni sugli accessi alla rete e personalizzandone i permessi in lettura-scrittura sulle cartelle condivise.
 +
 +
Users can be added to the network by doing the following procedure:
 +
    1. Load the network (as explained above).
 +
    2. Type NET LOGIN SUPERVISOR
 +
    3. If requested, enter a password.
 +
    4. Type NET
 +
    5. Select "Supervise the Network."
 +
    6. Select "Users."
 +
    7. Press <Insert>.
 +
    8. Enter <username>.
 +
    9. Enter any information in about the user. For example, you
 +
        can issue the user a password or give him supervisor
 +
        privileges.
 +
Now, a user can log in when desired from any machine.
 +
 +
==== Risorse di rete ====
 +
Le risorse di rete condivisibile possono essere: stampanti, unità disco e CD-ROM. Mentre le stampanti locali diventano stampanti di rete, i dispositivi di storage vengono invece identificati come cartelle di rete.
 +
 +
Onde evitare confusione Novell suggerisce nomi evocativi per le risorse di rete.
 +
 +
Nomi intuitivi per delle cartelle condivise potrebbero essere del tipo: GIOCHI, PIC, DOC, WORD, TURBOPASCAL...
 +
 +
Mentre nome per delle stampanti potrebbero essere di questo tipo: LASERJET-UFFICIO, EPSON-LABORATORIO, OLIVETTI-SEGRETERIA...
 +
 +
Sarebbe meglio evitare nomi vaghi come: CDROM, STAMPANTE1, STAMPANTE2
 +
 +
 +
* '''NETWORK DIRECTORY''' (cartelle condivise)
 +
 +
Il primo tipo di risorsa che il NetWare Lite administrator propone di creare è proprio la cartella condivisa. Gli utenti potranno ovviamente accedere solo alle risorse per le quali sono stati preventivamente abilitati dall'utente amministratore.
 +
 +
Create a network directory by doing the following steps:
 +
    1. Load the network (as explained above).
 +
    2. Type NET LOGIN SUPERVISOR
 +
    3. Enter a password if requested.
 +
    4. Type NET
 +
    5. Select "Supervise the Network."
 +
    6. Select "Network Directories."
 +
    7. Press <Insert>.
 +
    8. Select the server where the actual directory resides.
 +
    9. Type <directory name> (example: WP).
 +
    10. Type in the actual directory path (example: C:\WP51).
 +
Assign rights by doing the following:
 +
 +
In oltre un utente non può accedere alla cartella di un altro utente a meno che questo non l'abbia ''MAPPATA'' con un'apposita lettera all'interno della rete nel seguente modo:
 +
 +
'''MAPPING'''
 +
 +
Ogni computer può riconoscere un certo numero di unità disco, normalmente si ha a che fare con un floppy (A:), un disco fisso (C:), un CD-ROM (D:), ma NetWare Lite può essere configurato per far riconoscere al DOS cartelle di rete come se fossero altre unità disco mappandole con altre lettere es. F, G, H, I... Questo può essere fatto attraverso l'eseguibile <code>NET</code> o mediante il comando <code>NET MAP</code>
 +
 +
Es.: mappare un disco attraverso l'utility NET utility
 +
1) Digitare NET al prompt dei comandi
 +
2) Selezionare "Map drive letters."
 +
3) Selezionare la lettera che si vuol attribuire al drive (es.: G:).
 +
4) Selezionare la cartella da condividere che si vuol mappare con quella determinata lettera
 +
 +
Es.: per mappare la cartella WORDPERFECT attribuendole la lettera di drive G, attraverso il comando NET MAP ''<lettera>'' ''<directory>'' un utente dovrebbe eseguire un comando di questo tipo:
 +
NET MAP G: WORDPERFECT
 +
 +
If the network directory WORDPERFECT is physically located on SERVER-1 in C:\WP51, then whenever the user goes to G: (assuming G: has been mapped to WORDPERFECT), he will see the contents of C:\WP51 on SERVER-3. The user will not be able to access any other directories (other than subdirectories underneath C:\WP51) using G:.
 +
 +
If SERVER-1 has the following directory structure and a user has mapped G: to C:\WP51, then that user will be able to access both the \USERS and the \DATA subdirectories. However, he will not be able to access the \BORLANDC directory.
 +
   
 +
    C:\
 +
      |--WP51
 +
      | |--USERS
 +
      | |--DATA
 +
      |
 +
      |--BORLANDC
 +
 +
LASTDRIVE
 +
 +
The LASTDRIVE= command in your CONFIG.SYS reserves extra DOS drive letters for NetWare Lite's use. For example, if you included the statement "LASTDRIVE=M" in your CONFIG.SYS and you had the above configuration (A:, B:, and C:), then you would have ten drive letters available for mapping (D: through M:).
 +
 +
NETWORK PRINTERS
 +
 +
The setup process is similar for network printers. Network printers can be created by doing the following steps:
 +
 +
    1. Load the network (as explained above).
 +
    2. Type NET LOGIN SUPERVISOR
 +
    3. Enter a password if requested.
 +
    4. Type NET
 +
    5. Select "Supervise the network."
 +
    6. Select "Network printers."
 +
    7. Press <Insert>.
 +
    8. Select the server where the printer is actually connected.
 +
    9. Type <printer name>.
 +
    10. Select one of the "Available server ports." Make sure your
 +
        printer is attached to the port that you select.
 +
    11. Press <Esc> to use the default settings (such as setup
 +
        strings or CPS), or change as desired.
 +
 +
CAPTURING
 +
 +
Now, to print to this printer, the user only needs to capture one of the personal ports to the network printer. The user could do this by issuing the following command:
 +
 +
    NET CAPTURE LPTX <network printer>
 +
 +
        Example: NET CAPTURE LPT1 LASER-JET
 +
 +
Ports LPT1, LPT2, and LPT3 can be used to capture while any port (parallel or serial) can be used to physically attach a printer.
 +
 +
Note: There is a difference between a "captured" port and the port to which a printer is attached. A printer can be physically attached to any port (parallel or serial). This port is entered when a network printer is created so that NetWare Lite interprets where to send print jobs that are directed to that printer. After those printers are established, ports LPT1, LPT2, and LPT3 are freed so that they can be used to capture network printers. That means that a user could have a printer physically attached to LPT1 and could capture LPT2 to that printer. He could then capture LPT1 to a printer located on someone else's machine if desired.
 +
 +
EXAMPLE NETWORK SETUP
 +
 +
The following is a comprehensive example that will take the reader through the setup of an imaginary network. This example will involve three machines: KENDALL-386, DAVE-286, and JOEL-486.
 +
 +
KENDALL-386 is set up as a client only. DAVE-286 is set up as server only, and JOEL-486 is set up as a client/server. Because DAVE-286 is a server only, it will be unable use any network resources. Likewise, KENDALL-386, because it is set up as a client only, will not be able to allow others to use its drives or printers.
 +
 +
VERIFY NETWORK CONNECTIONS
 +
 +
"Verify network connections" should be run once after you have initially set up the network to ensure that you do not have any hardware or driver problems. It should also be run any time you think you might have a connection problem. See Fax Document 1200451 or KB 1200451 in the NSE Pro or on Support Connection Web Site (support.novell.com) for more details. Follow this procedure to "Verify network connections":
 +
 +
    1. Load the network (as explained above).
 +
    2. Insert PROGRAM DISKETTE into a disk drive.
 +
    3. Type INSTALL
 +
    4. Select "Verify network connections."
 +
    5. Enter the name of each machine.
 +
    6. "Verify network connections" should be running on all
 +
        machines.
 +
    7. Each screen should look something like the following (all
 +
        machines that are running "Verify network connections"
 +
        should show up):
 +
 +
NAME ADDRESS
 +
 +
    JOEL-486 00001B1E6082
 +
    KENDALL-386 00002C3I4983
 +
    DAVE-286 00008B9N4440
 +
 +
Let "Verify network connections" run for about five minutes to make sure that none of the machines disappear or flicker on and off.
 +
 +
If "Verify network connections" fails, then you know that you either have a hardware problem or a driver problem. Please refer to Fax Document 1200451 or KB 1200451 in the NSE Pro or on Support Connection Web Site (support.novell.com) for possible solutions.
 +
 +
USER SETUP
 +
 +
Next, log in to the network to setup users. Follow the instructions above for setting up users. In the example, seven users have been set up:
 +
 +
    Joel
 +
    Kendall
 +
    Dave
 +
    Rebecca
 +
    Kevin
 +
    Steve
 +
    Chad
 +
 +
Joel, Kendall, and Dave were given supervisor privileges, which means that they can perform the same functions as the supervisor.
 +
 +
REMOTE MANAGEMENT
 +
 +
If a server allows "Remote management," then users can change the server configuration from remote stations (clients). KENDALL-386 and JOEL-486 were set up so that they could not be remotely managed. DAVE-286 was set up so that it could be remotely managed by issuing the following commands:
 +
 +
    1. Type NET at the DOS prompt.
 +
    2. Select "Supervise the network."
 +
    3. Select "Server configuration."
 +
    4. Select <server name>.
 +
    5. Arrow down to "Allow remote management," and select "Yes"
 +
        or "No."
 +
    6. The change will take effect when the server has been
 +
        rebooted.
 +
 +
SETTING UP NETWORK RESOURCES
 +
 +
Next, set up network printers and network directories. JOEL-486 has a printer attached to COM1. It is a HP Laserjet III called HPIII. DAVE-286 has a dot matrix printer attached to its LPT1 port called OKIDATA.
 +
 +
Any time someone on the network wants to print to one of these printers, they need to capture a port.
 +
 +
Remove all the CDRIVE directories that NetWare Lite created, and create the following four network directories:
 +
 +
    WP51
 +
    DBASE
 +
    COMMON
 +
    DATA
 +
 +
WP51 is physically located on JOEL-486. Because JOEL-486 is set up as a server/client, the user who is using JOEL-486 can use the machine even though other user might be accessing WordPerfect from this machine.
 +
 +
DBASE is physically located on DAVE-286. Because DAVE-286 is set up as a server only, employees using DAVE-286 cannot access network resources; although, they will still be able to access their local drives (but not local printers).
 +
 +
COMMON and DATA are both located on DAVE-286.
 +
 +
KENDALL-386 cannot contain network directories because it is set up as a client only.
 +
 +
SAMPLE FILES
 +
 +
The following is an example of the files used to fine tune NetWare Lite followed by a list of configuration tips for each file:
 +
 +
    CONFIG.SYS
 +
    AUTOEXEC.BAT
 +
    STARTNET.BAT
 +
    LOG.BAT <NAME.BAT>
 +
    NET.CFG
 +
 +
CONFIG.SYS
 +
 +
The server keeps track of all files that are open. As more workstations (clients) attempt to access a server, more files will be opened. The number of files that can be opened needs to be increased on any server that will be allowing clients to access files. Enter the following command somewhere in the CONFIG.SYS, or increase it if it is already there:
 +
 +
    FILES=XX
 +
 +
AUTOEXEC.BAT
 +
 +
At the end of AUTOEXEC.BAT, the following command has been included so that the network will automatically be loaded when the computer is booted:
 +
 +
    call STARTNET
 +
 +
STARTNET.BAT
 +
 +
The STARTNET.BAT file will be different on each machine depending on its configuration. The following is an example of the one machine set up. All lines that do not have a specific designation are included in all three versions of STARTNET.BAT. Other lines are only included in the STARTNET.BAT files for the designated machines:
 +
 +
    lsl
 +
    ne2000
 +
    ipxodi a
 +
    share (on DAVE-286 and JOEL-486) **
 +
    server (on DAVE-286 and JOEL-486)
 +
    client (on KENDALL-386 and JOEL-486)
 +
 +
** See Fax Document 1200393 or KB 1200393 in the NSE Pro or on Support Connection Web Site (support.novell.com) for information on configuring SHARE.EXE.
 +
 +
<NAME>.BAT
 +
 +
Create a batch file for each user that logs each user into the network. (For example: Rebecca logs in using a batch file called BEC.BAT.) An individual batch file might contain the following commands:
 +
 +
    net login rebecca
 +
    net map d: wp51
 +
    net map e: dbase
 +
    net map f: common
 +
    net map g: data
 +
    net capture lpt1 HPIII
 +
    net capture lpt2 OKIDATA
 +
 +
Make a directory on each machine where all of these batch files exist called \NETBATCH and include this directory in the path of each machine. Now, whenever Rebecca wants to log in to the network, she can go to any machine that has client loaded and type BEC, and she will be logged into the network. Remember, this only works because the BEC.BAT batch file was copied over to the \NETBATCH directory of each machine.
 +
 +
NET.CFG
 +
 +
This NET.CFG file was created by NetWare Lite at installation. It contains information specific to the network board on each machine. See Fax Document 1200451 or KB 1200451 in the NSE Pro or on Support Connection Web Site (support.novell.com) for more information on the NET.CFG file.
  
 
= Bibliografia =
 
= Bibliografia =
Riga 152: Riga 735:
 
http://legroom.net/howto/msdos
 
http://legroom.net/howto/msdos
  
http://wiki.freedos.org/wiki/index.php/VirtualBox_-_Chapter_6
+
https://www.vogons.org/viewtopic.php?t=61823
 
 
http://www.georgpotthast.de/sioux/packet.htm
 
  
 
https://www.virtualbox.org/wiki/Sharing_files_with_DOS
 
https://www.virtualbox.org/wiki/Sharing_files_with_DOS
 
http://freedos.sourceforge.net/wiki/index.php/Networking_FreeDOS_-_mTCP
 
  
 
[[Category:Howto]]
 
[[Category:Howto]]

Versione attuale delle 09:35, 27 feb 2024

Introduzione

Col termine DOS (Disk Operating System) si fa riferimento ad una famiglia di sistemi operativi per PC IBM e compatibili basati sui processori x86. La versione più popolare fu l'MS-DOS, prodotto dal 1982 al 1994, anno di uscita della versione MS-DOS 6.22. Le versioni 7, 7.10 e 8.0 non furono mai rilasciate indipendentemente, ma erano incorporate rispettivamente in Windows 95, Windows 98 e Windows ME. Nel 2001 la Microsoft ha decretato la definitiva fine del supporto per questo sistema operativo.

In questa guida si è invece scelto di fare riferimento a FreeDOS, un sistema operativo costituito unicamente da software libero, ancora attivamente sviluppato e compatibile con MS-DOS.

Per avere a disposizione un riferimento hardware standard, libero e multipiattaforma si è scelto di utilizzare la macchina virtuale VirtualBox.


File Immagine

Potrà capitare che un programma di installazione vi chieda di caricare un floppy con i driver della scheda di rete. Nel caso create un immagine, montatela, copiateci i file necessari, smontatela. Così sarà poi possibile utilizzarla con Virtualbox.

$ mkfs.msdos -C floppyDOS.img 1440
$ sudo mount -o loop myfloppy.img /media/floppy/
$ sudo cp "file da copiare" /media/floppy

Lo stesso trucco può essere sfruttato per creare una ISO da montare come CD-ROM

$ mkisofs -o cdrom.iso [path]/directory_con_i_file_da_copiare/

Raccolta di dischi DOS di boot con utility e driver di rete preconfiurati

Networking

Esistono diverse modalità per collegare un sistema DOS ad una rete:

  • Primordi: connessioni tramite cavo seriale o parallelo tra due PC (es. laplink, interlink, PLIP), BBS (Bulletin Board System).
  • Stile UNIX: utilizza schede di rete e packet driver ed il protocollo TCP-IP, permette la configurazione servizi standard come ftp, http, telnet, ssh, NFS e di accedere ad Internet.
  • Microsoft Network: utilizza schede di rete e driver NDIS con i protocolli NetBEUI, TCP-IP o IPX, permette di condividere cartelle e stampanti in una rete Windows (o SAMBA).
  • Novell NetWare: utilizza schede di rete e driver ODI ed i protocolli TCP-IP e/o IPX, sviluppato per collegare fra loro sistemi DOS e NetWare condividendone cartelle e stampanti.


Approfondimenti teorici


Primordi

Laplink

  • LapLink: programma proprietario lanciato della Traveling Software nel 1983. Negli anni si impose come standard a tal punto da diventare sinonimo di scambio di dati via porta parallela. Tuttora il cavo per connettere tra loro due PC viene informalmente chiamato cavo laplink.
  • INTERLINK/INTERSRV: utility presente sul disco supplementare d'installazione di MS-DOS a partire dalla versione 6.0 o scaricabile gratuitamente sull'archivio ftp di Microsoft. Sostanzialmente prometteva le stesse funzionalità di Laplink anche se con un'interfaccia meno intuitiva.
  • File Maven: software freeware costituito da un file manager con capacità di trasferimento file via porta seriale, parallela o tramite modem.

BBS

Prima dell'avvento di Internet e degli ISP (Internet Service Provider) era comunque possibile, attraverso i modem e la normale linea telefonica, connettere direttamente un PC a dei "server bacheca" definiti BBS che potevano ospitare servizi come chat, email e condivisione di file. Il numero massimo di connessioni gestibili dal server era quindi limitato dal numero di linee telefoniche supportate ed il costo della chiamata per il client dipendeva dal fatto che si trattasse o meno di una chiamata urbana. Adesso i recenti software per le BBS, oltre alla connessione dial-up possono appoggiarsi ad Internet per permettere l'accesso ai loro servizi anche tramite un normale client telnet su protocollo TCP-IP.

  • X00, BNU Driver Fossil per la gestione della connessione seriale via modem
  • Pod Six, DOS Days Programmi DOS per la connessione seriale (Telix, Procomm)
  • Mystic BBS BBS disponibile per Linux (x86, x86_64, ARM), MS Windows (32/64bit) e MacOS Intel 64bit

Stile UNIX

Questo metodo si avvale di driver di scheda di rete chiamati "Packet Driver", la scheda di rete predefinita di VirtualBox è una AMD PCnet Fast III (Am79C973) ed ed il suo è reperibile a questo indirizzo: PCnetFast.

Scaricate il pacchetto, scompattatelo ed eseguitelo. Affinché sia caricato in automatico ad ogni riavvio si consiglia di aggiungere la seguente riga all'AUTOEXEC.BAT

LH PCNTPK INT=0x60

Packet driver

* Collezione Crynwr.
* Altri driver
* ODIPKT Convertitore di driver ODI Novell in packet driver 
* Convertitori per altri tipi di driver (NDIS, IPX, UNDI)


mTCP

Il Brutman mTCP è la recente rivisitazione di una libreria di nome Waterloo TCP (WatTCP) scritta tra il 1990 ed il 1992 da Erick Engelke, all'epoca sviluppatore presso la facoltà di ingegneria di Waterloo in Ontario (Canada).

Entrambe forniscono una serie di utility ed utilizzano un semplice file di configurazione per assegnare un IP alla macchina.

Installando l'mTCP in C:\MTCP\ possiamo crearne il file di configurazione C:\MTCP\NET.CFG e per comodità potremo esportarne il percorso aggiungendo la seguente riga all'AUTOEXEC.BAT

set MTCPCFG=C:\MTCP\NET.CFG


Un esempio di file di configurazione:

--- NET.CFG ---
PACKETINT 0x60
IPADDR 192.168.1.50
NETMASK 255.255.255.0
GATEWAY 192.168.1.1
NAMESERVER 192.168.1.1
MTU 1500

Se avete un server DHCP sulla vostra rete e non volete usare un IP statico è possibile usare una configurazione di questo tipo:

--- NET.CFG ---
PACKETINT 0x60
HOSTNAME  lucados

dopodiché eseguire C:\MTCP\DHCP.EXE

mTCP fornisce le seguenti applicazioni:

  • dhcp.exe -- DHCP client
  • dnstest.exe -- DNS resolver
  • ftp.exe -- FTP client
  • ftpsrv.exe -- FTP server
  • htget.exe -- programma per scaricare file dal web
  • httpserv -- HTTP server
  • ircjr.exe -- IRC client
  • nc.exe -- Netcat utility
  • netdrive.exe -- permette di accedere a directory remote identificandole come unità disco (Novità di Dicembre 2023)
  • ping.exe -- ping utility
  • pkttool -- packet sniffer e tool di diagnostica per i packet drivers
  • telnet.exe -- telnet client
  • sntp.exe -- NTP (Network Time Protocol) client

Soluzioni obsolete

IBM PC/IP

Rilasciato sotto licenza MIT nel 1984, è stato il primo port del protocollo TCP/IP per PC DOS.

NOS-KA9Q

Col termine NOS (Network Operating System), si fa riferimento ad una serie software, sviluppati per lo più a cavallo tra gli anni '80 e '90 per soddisfare le esigenze dei radioamatori (packet radio protocol), gestori di BBS ed in generale per fornire funzionalità di rete su DOS utilizzando il protocollo IPv4 ed i packet driver. Sebbene si tratti di soluzioni datate, vista la loro rilevanza storica, verranno ugualmente trattate a scopo didattico.

Si tratta infatti di software freeware/shareware, generalmente non più aggiornato da metà anni '90, l'epoca in cui Linux si impose come standard per questo tipo di progetti.

Il suffisso KA9Q identifica la variante sviluppata da Phil Karn, probabilmente quella che ha riscontrato maggior successo. La sua esecuzione consente a DOS di avviare una sorta di sistema operativo interno multitasking che gli permette di funzionare contemporaneamente da client, server e commutatore di pacchetto per i protocolli TCP\IP, NET/ROM e AX.25. Può fornire connettività PPP attraverso la porta seriale del modem, funzioni di instradamento router-gatway ed ha un server ftp integrato.

Nella directory utilizzata del sistema NOS andrà collocato il suo file di configurazione AUTOEXEC.NET in cui sarà possibile precaricare i comandi da eseguire subito dopo la sua esecuzione attraverso il comando NET.EXE.

Routing

Supponendo di avere due schede di rete compatibili NE2000 e che queste utilizzino rispettivamente IRQ 10, I/O 280 e IRQ 11, I/O 300, la configurazione del driver di pacchetto potrebbe essere quella seguente:

NE2000.COM 0x60 0x0a 0x280
NE2000.COM 0x61 0x0b 0x300

Supponendo che queste due schede servano a connettere le reti 192.168.1.* e 192.168.2.*, e supponendo anche che l'instradamento predefinito passi per il router 192.168.1.254, il file di configurazione di NOS potrebbe contenere in particolare le righe seguenti:

# Configurazione delle interfacce di rete.
attach packet 0x60 ethernet0 8 1500
attach packet 0x61 ethernet1 8 1500
# Definizione degli indirizzi IP.
ifconfig ethernet0 ipaddress 192.168.1.10
ifconfig ethernet0 netmask 255.255.255.0
ifconfig ethernet1 ipaddress 192.168.2.10
ifconfig ethernet1 netmask 255.255.255.0
# Instradamento.
route add 192.168.1.0/24 ethernet0
route add 192.168.2.0/24 ethernet1
route add default ethernet0 192.168.1.254

Server ftp

Oltre ad eseguire il comando start ftp occorre predisporre un file con i permessi per gli utenti: ftpusers. Andrà collocato nella stessa directory del servizio NOS. Il file deve contenere delle righe scomposte in quattro campi separati da uno o più spazi col seguente schema:  utente   password   percorso   permessi

tizio pswtizio \home\tizio 7
caio pswcaio \home\caio 7
sempronio pswsempronio \progetto 3
ftp * \pub 1
anonymous * \pub 1

Gli utenti tizio e caio hanno una loro directory personale in cui possono fare quello che vogliono; l'utente sempronio partecipa a un lavoro che si trova nella directory \PROGETTO\ e lì ha la possibilità di immettere file, senza cancellare o sovrascrivere quelli presenti. Infine, gli utenti ftp e anonymous accedono con una parola d'ordine qualunque alla directory \PUB\, con il solo permesso di lettura.

Internet Extender

Stavolta si tratta di un abandonware, l'ultima versione disponibile è la 1.0b, sono disponibili anche i sorgenti.

Permette di convertire un vecchio PC DOS in un router NAT per condividere la connessione con altri computer, si può interfacciare alla rete esterna sia attraverso il protocollo PPP con modem seriali che tramite schede di rete.


Client

Links

Pacchetto contenuto nella distribuzione FreeDOS e scaricabile a questo indirizzo, al momento è l'unico capace di supportare SSL.

Per eseguire il browser in modalità grafica

c:\net\links\links.exe -mode 1024x768x32k


Arachne

Storica suite opensource composta da browser web grafico, ftp e client email. Può accedere ad Internet sfruttando una scheda di rete supportata da packet driver o tramite dialer con modem seriale. Sfortunatamente manca del supporto per JavaScript, Java e SSL.

Ultima versione 23/12/2021

Microsoft Network (SMB)

Microsoft Workgroup Connection

Microsoft Workgroup Connection (MSWGCN) è un tool del 1992 che permette di configurare passo passo, utilizzando il protocollo NetBEUI, l'accesso ad una cartella condivisa in una rete Microsoft (DOS o Windows).

Samba non supporta NetBEUI, da Windows Vista in poi persino Microsoft lo ha abbandonato in favore del TCP/IP, non sarà quindi possibile utilizzare questo software per accedere a condivisioni effettuate da server UNIX/Linux/MacOS o da versioni di Windows più recenti di XP.

Al termine dell'installazione sarà possibile accedere allo share col comando

NET USE Z: \\nomeserver\nomecartella 
SET SOURCE=Z:

MS Network Client

NB: MS Network Client 3.0 richiede 230 KByte dei 640K della memoria convenzionale DOS, ciò potrebbe rendere il sistema instabile.

Permette di utilizzare uno o più fra i protocolli: NetBEUI, IPX/SPX e TCP/IP.

SMB (Session Message Block), conosciuto anche come NetBIOS o LanManager, negli anni ha subito aggiornamenti e modifiche; le versioni 1, 2 e 3 non sono intellegibili tra di loro ed occorrerà assicurarsi che il PC Windows vogliamo collegare alla macchina DOS abbia attivato il protocollo SMB v1.0.

Prerequisiti


Installazione

Creare una directory dove eseguire i file DSK3-1.EXE e DSK3-2.EXE, una volta scompattati lanciate il setup.exe.

Copiate in una directory temporanea anche il file WG1049.EXE, eseguitelo e spostatene il contenuto in C:\NET (precedentemente creata dal setup.exe del DSK3), si tratta di un aggiornamento.

Spostate in C:\NET anche il file NETSHAR.EXE ed il driver della scheda di rete pcntnd.dos.


Configurazione Client

  • FreeDOS utilizza il file configurazione C:\FDCONFIG.SYS invece del CONFIG.SYS dell'MS DOS, per cui dovremo inserirci manualmente la seguente riga

DEVICEHIGH=C:\NET\IFSHLP.SYS

  • Per inizializzare la rete all'avvio modificare il file AUTOEXEC.BAT aggiungendo le seguenti righe:
LH C:\NET\NET.EXE INITIALIZE
C:\NET\NETBIND.COM
LH C:\NET\UMB.COM
LH C:\NET\TCPTSR.EXE
LH C:\NET\TINYRFC.EXE
LH C:\NET\NMTSR.EXE
C:\NET\EMSBFR.EXE
  • Se si usa un IP dinamico si può saltare questo passaggio:
Configurazione di un IP statico:
  • Aggiornare il file C:\NET\PROTOCOL.INI con l'indirizzo di rete statico:
[TCPIP]
...
DefaultGateway0=0 0 0 0
SubNetMask0=255 0 0 0
IPAddress0=0 0 0 0
DisableDHCP=1
...

Gli indirizzi IP usano lo spazio, al posto del punto, come separatore.


Configurazione server

Modificare il file C:\net\system.ini

[network]
filesharing=yes
printsharing=yes
autostart=basic,server
 
[network_drivers]
netcard=pcntnd.dos
    

Aggiungere la seguente linea alla fine del file C:\config.sys

install=C:\share.exe
  

Al successivo reboot il sistema chiederà di inserire password ed username per la condivisione della cartella.

 For example, to share drive C: as \\DOS\drivec and give full access:
   net share drivec=C:\ /FULL


Comandi

  • Lista dei computer connessi in rete
net view
  • Montare una directory condivisa:
net use X: \\SERVER\SHARENAME
  • Condividere la cartella C:\condivisa
net share drivec=C:\condivisa /FULL
  • Rimuovere la cartella dalla condivisione
net share drivec /d


Guida con screenshot

FreeDOS boot disk MS-Client e MS-Server, USB/CDROM/NTFS/LPD

Tutorial

DIS_PKT9.DOS Trasforma i driver NDIS in packet driver

ftp.microsoft.com


Novell NetWare

Se non dovessero essere inclusi nei client occorrerà scaricare i driver ODI per la scheda di rete.

PCnet-FAST III per Virtualbox

Altri driver ODI

Utility varie


VLM

NetWare Client per DOS workstation v1.21

* Versione DOS/Win3X a 16-bit, IPX

Disco 1

Disco 2

Disco 3

Disco 4

Disco 5

Disco 6

Novell TCP-IP 16-bit

Create una nuova directory (es. NOVFILES), copiateci i file scaricati e spacchettateli al suo interno. Se usate hardware reale sarà possibile scompattare gli archivi autoestraenti direttamente su floppy nel seguente modo:

C:\NOVFILES> VLMKT1 A:
C:\NOVFILES> VLMKT2 A:
C:\NOVFILES> VLMKT3 A:
C:\NOVFILES> VLMKT4 A:
C:\NOVFILES> VLMKT5 A:
C:\NOVFILES> TCP16 A: 

Installate il client nella directory C:\NWCLIENT ed il tcp16.exe in C:\TCP. Per comodità, si suggerisce di usare il seguente script di avvio. Nell'esempio è stato utilizzato il driver per schede di rete NE2000.

C:\NWCLIENT\startnet.bat

LH C:\NWCLIENT\LSL.COM
LH C:\NWCLIENT\NE2000.COM
LH C:\NWCLIENT\IPXODI.COM
LH C:\TCP\tcpip.exe
LH C:\NWCLIENT\VLM.EXE

A questo punto andiamo a creare il file di configurazione della rete

C:\NWCLIENT\net.cfg

Link Driver NE2000
       Protocol IPX 0 ETHERNET_802.3    
       Frame ETHERNET_802.3     
       Frame Ethernet_II        
       FRAME Ethernet_802.2
NetWare DOS Requester
          FIRST NETWORK DRIVE = F
          USE DEFAULTS = OFF
          VLM = CONN.VLM
          VLM = IPXNCP.VLM
          VLM = TRAN.VLM
          VLM = SECURITY.VLM
          VLM = NDS.VLM
          VLM = BIND.VLM
          VLM = NWP.VLM
          VLM = FIO.VLM
          VLM = GENERAL.VLM
          VLM = REDIR.VLM
          VLM = PRINT.VLM
          VLM = NETX.VLM
Link Support
       Buffers 8 1500
       MemPool 4096
Protocol TCPIP
       PATH SCRIPT     C:\NET\SCRIPT
       PATH PROFILE    C:\NET\PROFILE
       PATH LWP_CFG    C:\NET\HSTACC
       PATH TCP_CFG    C:\NET\TCP
       ip_address      192.168.0.xxx
       ip_router       192.168.0.1


Inserire nel campo "ip_address" l'indirizzo IP che vogliamo dare alla macchina e nel campo "ip_router" l'indirizzo del gateway.

Infine creare il file per la configurazione del server DNS

C:\bin\resolv.cfg

SEARCH DNS HOSTS SEQUENTIAL
NAMESERVER 1.1.1.1
NAMESERVER 8.8.8.8

Dettagli

FreeDOS boot disk Client 16-bit IPX, pkt driver, USB/CDROM/VC/LFN/, LPD Print Server, Ping


NLM

NetWare Client 5 per DOS workstation

* Versione DOS/Win3X a 32-bit, IP/IPX

NB: NetWare/IP non supporta più di una scheda di rete per PC

Per prima cosa, se non è già stato fatto, modificare il file CONFIG.SYS per caricare la HIMEM

DEVICE=A:\HIMEM.SYS


Scompattare il Client32 in una directory vuota es. C:\NOVELL:

C:\NOVELL\dw271e.exe 


Installare il Client e seguire le istruzioni

C:\NOVELL\INSTALL.EXE


Download

Disco di Boot FreeDOS con Client NetWare 16/32, IP/IPX, CDROM, USB support, TinyHost

Installazione Manuale

Guida FreeDOS ODI Driver


NetWare Lite

Si tratta di un programma che per la realizzazione di reti peer-to-peer capaci di gestire fino a 25 computer, utilizza i driver ODI e permette di condividere stampanti e cartelle.

ATTENZIONE: Si possono riscontrare problemi con driver recenti che richiedono versioni più vecchie di LSL.COM (Link Support Layer).

Download Netware Lite 1.1

Configurazione

NetWare Lite è composto da una serie di programmi TSR che si caricano nella memoria, si possono suddividere in due categorie: quelli che hanno a che fare con la scheda di rete e quelli che che costituiscono la vera e propria rete NetWare.

  • Driver di rete
   LSL
   <DOS ODI Driver> (Example: NE2000.COM)
   IPXODI A

Quando si carica IPXODI, sarebbe meglio farlo aggiungendo il parametro A affinché il programma risparmi memoria non caricando componenti superflue per questo tipo di implementazione di rete.


  • Rete NetWare Lite
   SHARE 
   SERVER
   CLIENT

Tutti gli eseguibili sopra riportati possono essere caricati nella upper memory (UMB), normalmente vengono inseriti nel batch script STARTNET.BAT ed eseguiti automaticamente. Sarebbe possibile caricarli direttamente nell'AUTOEXEC.BAT, ma è preferibile fare in questo modo per tenere il sistema il più ordinato possibile.

STARTNET può quindi essere eseguito dall'AUTOEXEC.BAT inserendo nell'ultima riga di quest'ultimo il comando

   call startnet

SHARE.EXE è il programma che abilita il file sharing e deve essere abilitato sulle macchine che hanno file da condividere.

SERVER.EXE deve essere caricato su tutte le macchine della rete che hanno risorse da condividere (stampanti o drive)

CLIENT.EXE va lanciato su tutte le macchine che hanno bisogno di accedere alle risorse condivise

Esempi:

Se si vuole che il PC1 stampi su una stampante installata su PC2 occorrerà che PC1 abbia caricato CLIENT.EXE e che PC2 abbia invece caricato SERVER.EXE.

Se invece vogliamo che PC1 abbia accesso all'hard disk di PC2 bisognerà che PC1 abbia caricato CLIENT.EXE e che su PC2 sia in esecuzione SERVER.EXE

NB: se un PC ha bisogno di accedere alla propria stampante, ma è in esecuzione SERVER.EXE, occorrerà che venga caricato anche CLIENT.EXE perché a questo punto la sua stampante è identificata come risorsa di rete.

Utenti e Login

L'amministratore di rete può eseguire il login attraverso il seguente comando

   NET LOGIN SUPERVISOR

NetWare Lite permette all'amministratore di configurare utenze con limitazioni sugli accessi alla rete e personalizzandone i permessi in lettura-scrittura sulle cartelle condivise.

Users can be added to the network by doing the following procedure:
   1. Load the network (as explained above).
   2. Type NET LOGIN SUPERVISOR
   3. If requested, enter a password.
   4. Type NET
   5. Select "Supervise the Network."
   6. Select "Users."
   7. Press <Insert>.
   8. Enter <username>.
   9. Enter any information in about the user. For example, you
       can issue the user a password or give him supervisor
       privileges.
Now, a user can log in when desired from any machine.

Risorse di rete

Le risorse di rete condivisibile possono essere: stampanti, unità disco e CD-ROM. Mentre le stampanti locali diventano stampanti di rete, i dispositivi di storage vengono invece identificati come cartelle di rete.

Onde evitare confusione Novell suggerisce nomi evocativi per le risorse di rete.

Nomi intuitivi per delle cartelle condivise potrebbero essere del tipo: GIOCHI, PIC, DOC, WORD, TURBOPASCAL...

Mentre nome per delle stampanti potrebbero essere di questo tipo: LASERJET-UFFICIO, EPSON-LABORATORIO, OLIVETTI-SEGRETERIA...

Sarebbe meglio evitare nomi vaghi come: CDROM, STAMPANTE1, STAMPANTE2


  • NETWORK DIRECTORY (cartelle condivise)

Il primo tipo di risorsa che il NetWare Lite administrator propone di creare è proprio la cartella condivisa. Gli utenti potranno ovviamente accedere solo alle risorse per le quali sono stati preventivamente abilitati dall'utente amministratore.

Create a network directory by doing the following steps:
   1. Load the network (as explained above).
   2. Type NET LOGIN SUPERVISOR
   3. Enter a password if requested.
   4. Type NET
   5. Select "Supervise the Network."
   6. Select "Network Directories."
   7. Press <Insert>.
   8. Select the server where the actual directory resides.
   9. Type <directory name> (example: WP).
   10. Type in the actual directory path (example: C:\WP51).
Assign rights by doing the following:

In oltre un utente non può accedere alla cartella di un altro utente a meno che questo non l'abbia MAPPATA con un'apposita lettera all'interno della rete nel seguente modo:

MAPPING

Ogni computer può riconoscere un certo numero di unità disco, normalmente si ha a che fare con un floppy (A:), un disco fisso (C:), un CD-ROM (D:), ma NetWare Lite può essere configurato per far riconoscere al DOS cartelle di rete come se fossero altre unità disco mappandole con altre lettere es. F, G, H, I... Questo può essere fatto attraverso l'eseguibile NET o mediante il comando NET MAP

Es.: mappare un disco attraverso l'utility NET utility

1) Digitare NET al prompt dei comandi
2) Selezionare "Map drive letters."
3) Selezionare la lettera che si vuol attribuire al drive (es.: G:).
4) Selezionare la cartella da condividere che si vuol mappare con quella determinata lettera

Es.: per mappare la cartella WORDPERFECT attribuendole la lettera di drive G, attraverso il comando NET MAP <lettera> <directory> un utente dovrebbe eseguire un comando di questo tipo:

NET MAP G: WORDPERFECT

If the network directory WORDPERFECT is physically located on SERVER-1 in C:\WP51, then whenever the user goes to G: (assuming G: has been mapped to WORDPERFECT), he will see the contents of C:\WP51 on SERVER-3. The user will not be able to access any other directories (other than subdirectories underneath C:\WP51) using G:.

If SERVER-1 has the following directory structure and a user has mapped G: to C:\WP51, then that user will be able to access both the \USERS and the \DATA subdirectories. However, he will not be able to access the \BORLANDC directory.

    C:\
     |--WP51
     | |--USERS
     | |--DATA
     |
     |--BORLANDC

LASTDRIVE

The LASTDRIVE= command in your CONFIG.SYS reserves extra DOS drive letters for NetWare Lite's use. For example, if you included the statement "LASTDRIVE=M" in your CONFIG.SYS and you had the above configuration (A:, B:, and C:), then you would have ten drive letters available for mapping (D: through M:).

NETWORK PRINTERS

The setup process is similar for network printers. Network printers can be created by doing the following steps:

   1. Load the network (as explained above).
   2. Type NET LOGIN SUPERVISOR
   3. Enter a password if requested.
   4. Type NET
   5. Select "Supervise the network."
   6. Select "Network printers."
   7. Press <Insert>.
   8. Select the server where the printer is actually connected.
   9. Type <printer name>.
   10. Select one of the "Available server ports." Make sure your
       printer is attached to the port that you select.
   11. Press <Esc> to use the default settings (such as setup
       strings or CPS), or change as desired.

CAPTURING

Now, to print to this printer, the user only needs to capture one of the personal ports to the network printer. The user could do this by issuing the following command:

   NET CAPTURE LPTX <network printer>
       Example: NET CAPTURE LPT1 LASER-JET

Ports LPT1, LPT2, and LPT3 can be used to capture while any port (parallel or serial) can be used to physically attach a printer.

Note: There is a difference between a "captured" port and the port to which a printer is attached. A printer can be physically attached to any port (parallel or serial). This port is entered when a network printer is created so that NetWare Lite interprets where to send print jobs that are directed to that printer. After those printers are established, ports LPT1, LPT2, and LPT3 are freed so that they can be used to capture network printers. That means that a user could have a printer physically attached to LPT1 and could capture LPT2 to that printer. He could then capture LPT1 to a printer located on someone else's machine if desired.

EXAMPLE NETWORK SETUP

The following is a comprehensive example that will take the reader through the setup of an imaginary network. This example will involve three machines: KENDALL-386, DAVE-286, and JOEL-486.

KENDALL-386 is set up as a client only. DAVE-286 is set up as server only, and JOEL-486 is set up as a client/server. Because DAVE-286 is a server only, it will be unable use any network resources. Likewise, KENDALL-386, because it is set up as a client only, will not be able to allow others to use its drives or printers.

VERIFY NETWORK CONNECTIONS

"Verify network connections" should be run once after you have initially set up the network to ensure that you do not have any hardware or driver problems. It should also be run any time you think you might have a connection problem. See Fax Document 1200451 or KB 1200451 in the NSE Pro or on Support Connection Web Site (support.novell.com) for more details. Follow this procedure to "Verify network connections":

   1. Load the network (as explained above).
   2. Insert PROGRAM DISKETTE into a disk drive.
   3. Type INSTALL
   4. Select "Verify network connections."
   5. Enter the name of each machine.
   6. "Verify network connections" should be running on all
       machines.
   7. Each screen should look something like the following (all
       machines that are running "Verify network connections"
       should show up):

NAME ADDRESS

   JOEL-486 00001B1E6082
   KENDALL-386 00002C3I4983
   DAVE-286 00008B9N4440

Let "Verify network connections" run for about five minutes to make sure that none of the machines disappear or flicker on and off.

If "Verify network connections" fails, then you know that you either have a hardware problem or a driver problem. Please refer to Fax Document 1200451 or KB 1200451 in the NSE Pro or on Support Connection Web Site (support.novell.com) for possible solutions.

USER SETUP

Next, log in to the network to setup users. Follow the instructions above for setting up users. In the example, seven users have been set up:

   Joel
   Kendall
   Dave
   Rebecca
   Kevin
   Steve
   Chad

Joel, Kendall, and Dave were given supervisor privileges, which means that they can perform the same functions as the supervisor.

REMOTE MANAGEMENT

If a server allows "Remote management," then users can change the server configuration from remote stations (clients). KENDALL-386 and JOEL-486 were set up so that they could not be remotely managed. DAVE-286 was set up so that it could be remotely managed by issuing the following commands:

   1. Type NET at the DOS prompt.
   2. Select "Supervise the network."
   3. Select "Server configuration."
   4. Select <server name>.
   5. Arrow down to "Allow remote management," and select "Yes"
       or "No."
   6. The change will take effect when the server has been
       rebooted.

SETTING UP NETWORK RESOURCES

Next, set up network printers and network directories. JOEL-486 has a printer attached to COM1. It is a HP Laserjet III called HPIII. DAVE-286 has a dot matrix printer attached to its LPT1 port called OKIDATA.

Any time someone on the network wants to print to one of these printers, they need to capture a port.

Remove all the CDRIVE directories that NetWare Lite created, and create the following four network directories:

   WP51
   DBASE
   COMMON
   DATA

WP51 is physically located on JOEL-486. Because JOEL-486 is set up as a server/client, the user who is using JOEL-486 can use the machine even though other user might be accessing WordPerfect from this machine.

DBASE is physically located on DAVE-286. Because DAVE-286 is set up as a server only, employees using DAVE-286 cannot access network resources; although, they will still be able to access their local drives (but not local printers).

COMMON and DATA are both located on DAVE-286.

KENDALL-386 cannot contain network directories because it is set up as a client only.

SAMPLE FILES

The following is an example of the files used to fine tune NetWare Lite followed by a list of configuration tips for each file:

   CONFIG.SYS
   AUTOEXEC.BAT
   STARTNET.BAT
   LOG.BAT <NAME.BAT>
   NET.CFG

CONFIG.SYS

The server keeps track of all files that are open. As more workstations (clients) attempt to access a server, more files will be opened. The number of files that can be opened needs to be increased on any server that will be allowing clients to access files. Enter the following command somewhere in the CONFIG.SYS, or increase it if it is already there:

   FILES=XX

AUTOEXEC.BAT

At the end of AUTOEXEC.BAT, the following command has been included so that the network will automatically be loaded when the computer is booted:

   call STARTNET

STARTNET.BAT

The STARTNET.BAT file will be different on each machine depending on its configuration. The following is an example of the one machine set up. All lines that do not have a specific designation are included in all three versions of STARTNET.BAT. Other lines are only included in the STARTNET.BAT files for the designated machines:

   lsl
   ne2000
   ipxodi a
   share (on DAVE-286 and JOEL-486) **
   server (on DAVE-286 and JOEL-486)
   client (on KENDALL-386 and JOEL-486)
    • See Fax Document 1200393 or KB 1200393 in the NSE Pro or on Support Connection Web Site (support.novell.com) for information on configuring SHARE.EXE.

<NAME>.BAT

Create a batch file for each user that logs each user into the network. (For example: Rebecca logs in using a batch file called BEC.BAT.) An individual batch file might contain the following commands:

   net login rebecca
   net map d: wp51
   net map e: dbase
   net map f: common
   net map g: data
   net capture lpt1 HPIII
   net capture lpt2 OKIDATA

Make a directory on each machine where all of these batch files exist called \NETBATCH and include this directory in the path of each machine. Now, whenever Rebecca wants to log in to the network, she can go to any machine that has client loaded and type BEC, and she will be logged into the network. Remember, this only works because the BEC.BAT batch file was copied over to the \NETBATCH directory of each machine.

NET.CFG

This NET.CFG file was created by NetWare Lite at installation. It contains information specific to the network board on each machine. See Fax Document 1200451 or KB 1200451 in the NSE Pro or on Support Connection Web Site (support.novell.com) for more information on the NET.CFG file.

Bibliografia

http://freedos.sourceforge.net/wiki/index.php/Networking_FreeDOS_complete

http://legroom.net/howto/msdos

https://www.vogons.org/viewtopic.php?t=61823

https://www.virtualbox.org/wiki/Sharing_files_with_DOS