|| Ethernet NC Boot File
||
Set Alias$Debug If Debug Then Echo -->
Set Alias$Netinfo If Netinfo Then Echo :
ifthere ncconfig:debug then obey ncconfig:debug else echo ***ERROR*** ncconfig/106/debug missing
ifthere ncconfig:servername then obey ncconfig:servername else echo ***ERROR*** ncconfig/106/servername missing
if debug=0 then rmload boot:system.modules.spriteutils
if debug=0 then screenload boot:bin.banner

Debug Debugging mode on
Debug This NC is running NC OS <os$version>
Debug It is booting from server distribution version <base$version>
Debug Setting up general paths... networking comes next
|| Set general paths.
||
Set System$Dir <Boot$Dir>.System
Set System$Path <System$Dir>.
Set WWW$Path Resources:$.Apps.
Set WWWRoot$Path Resources:!Boot.HTML.Startup.
Set Images$Path Root:images.
Set User$Path NFS::NCDHome.$.
Set bin$dir <Boot$Dir>.bin
set bin$path <Bin$dir>.
set 106appboot$dir <root$dir>.apps.106.boot
set 106appboot$path <106appboot$dir>.
set 106runapps$dir <root$dir>.apps.106.run
set 106runapps$path <106runapps$dir>.
set inetdbase$path root:etc.

Debug Setting up networking... modules and printing come next
ifthere ncconfig:setupnet then obey ncconfig:setupnet else echo ***ERROR*** ncconfig/106/setupnet missing
Netinfo Booting from server <Server$Name>
Netinfo This NC is <Inet$HostName>
Netinfo It has unique ID <Inet$LocalAddr>

Debug Setting up modules... SSL comes next
|| Load the new format smartcard registry modules
||
RMEnsure NCRegistry 0.20 RMLoad System:Modules.NCRegistry -init
RMEnsure NCRegistrySpprt 0.20 RMLoad System:Modules.NCregSS

|| Load new window tools and windowmanager stuff
||
RMEnsure Window 1.33 RMLoad System:Modules.Window
RMEnsure WindowManager 3.87 RMLoad System:Modules.Wimp
rmload system:modules.toolbox.window
toolsprites bin:Tools
iconsprites bin:Sprites 
RMLoad System:modules.ColourPick
RMLoad System:Modules.SpriteUtils
|| Load the timeserver module
RMKill nettime
RMLoad bin:nettime -init


|| Load the server version module.
||
RMEnsure NCConfig 0.18 RMLoad System:Modules.NCServer

|| Set up SafeRun module to allow protected files to be run.
||
RMEnsure SafeRun 0.00 RMLoad System:Modules.SafeRun
SafeRun_Register NFS::NFSBoot.$.

|| Load the HTTP module which supports SSL (if required)
||
Debug Setting up SSL... printing comes next
ifthere ncconfig:setupssl then obey ncconfig:setupssl else echo ***ERROR*** ncconfig/106/setupssl missing

|| Allow printer PDFs and resources to reside on server.
||
Debug Setting up printing... proxying comes next
Set Printers$Path ncconfig:Printers.,<Printers$Path>
RMReinit PPrimer
|| Allow user config for printing across the network
ifthere ncconfig:setupprint then obey ncconfig:setupprint else echo ***ERROR*** ncconfig/106/setupprint missing

Debug Setting up proxying; per-NC user environment customisation comes next
ifthere ncconfig:setupproxy then obey ncconfig:setupproxy else echo ***ERROR*** ncconfig/106/setupproxy missing

Debug Extra environment customisation; plugin registration comes next
ifthere ncconfig:pernc.all106ncs.run then obey ncconfig:pernc.all106ncs.run
ifthere ncconfig:pernc.<inet$hostname>.run then set private$path ncconfig:pernc.<inet$hostname>.
ifthere ncconfig:pernc.<inet$hostname>.run then obey private:run

desktop -file boot:deskboot
