Difference between revisions of "Using JFileServer From The Command Line"

From FileSys.Org Wiki
(Created page with "To run JFileServer from the command line you first need to download the latest JFileServer Kit zip file from here. Unpack the JFileServe...")
 
Line 1: Line 1:
 
To run JFileServer from the command line you first need to download the latest JFileServer Kit zip file from [[www.filesys.org/kits/jfileserver/|here]].
 
To run JFileServer from the command line you first need to download the latest JFileServer Kit zip file from [[www.filesys.org/kits/jfileserver/|here]].
  
Unpack the JFileServer Kit zip file into a new folder. You should have a folder with the following files and folders :-
+
Unpack the JFileServer Kit zip file into a new folder. You should now have a folder with the following files and folders :-
 +
 
 +
/jfileserver
 +
  |
 +
  +- /testShare
 +
      |
 +
      +- sharedFile.txt
 +
  +- /lib
 +
      |
 +
      +- bcprov-jdk5on-1.48.jar
 +
      +- hazelcast-3.10.1.jar
 +
      +- jfileserver-1.1.1.jar
 +
      +- jna-5.1.0.jar
 +
      +- jna-platform-5.1.0.jar
 +
  +- fileSrvConfig.xml
 +
  +- port445.reg
 +
  +- runsrv.bat
 +
  +- runsrv.sh
 +
 
 +
Using a command line terminal or shell set your current working directory as the JFileServer directory.
 +
 
 +
There is a default JFileServer configuration file that will share the ''testShare'' folder, which contains a single text file. For details on configuring JFileServer see [[Configuring JFileServer|here]].
 +
 
 +
To start JFileServer on linux, macOS or Unix system use the ''runsrv.sh' script file :-
 +
 
 +
./runsrv.sh
 +
 
 +
On Windows use the ''runsrv.bat'' file to start JFileServer :-
 +
 
 +
runsrv
 +
 
 +
The default JFileServer configuration will output debug logging to the console, on startup of the server you should see the following :-
 +
 
 +
JFileServer starting, enter 'x' to shutdown server, 'r' to restart server ...
 +
Starting server NetBIOS ...
 +
Starting server SMB ...
 +
[SMB] SMB Server JFILESRV starting
 +
[SMB] Version 1.0.0, Java VM 25.152-b16, OS Mac OS X, version 10.14.2
 +
[SMB] Using authenticator org.filesys.server.auth.EnterpriseSMBAuthenticator, mode=USER
 +
[SMB] Server timezone offset = 0hrs
 +
[SMB] Dialects enabled = [Core,CorePlus,DOS LANMAN 1.0,LANMAN1.0,DOS LANMAN 2.1,LM1.2X002,LANMAN2.1,NT LM 0.12]
 +
[SMB] Shares:
 +
[SMB]  [JFILESHARE,DISK,,[./testShare]] [./testShare]
 +
[SMB] Added NTServer flag to host announcement
 +
[SMB] Binding TCP-SMB session handler to address : ALL
 +
[SMB] Binding NetBIOS session handler to address : ALL
 +
[SMB] Request handler SMBRequestHandler_1 waiting for session ...
 +
[SMB] Listening for connections on [SMB,TCP-SMB,ALL:1445]
 +
[SMB] Listening for connections on [SMB,NetBIOS,ALL:1139]
 +
[SMB] Waiting for new connection ...

Revision as of 13:21, 10 January 2019

To run JFileServer from the command line you first need to download the latest JFileServer Kit zip file from here.

Unpack the JFileServer Kit zip file into a new folder. You should now have a folder with the following files and folders :-

/jfileserver
 |
 +- /testShare
     |
     +- sharedFile.txt
 +- /lib
     |
     +- bcprov-jdk5on-1.48.jar
     +- hazelcast-3.10.1.jar
     +- jfileserver-1.1.1.jar
     +- jna-5.1.0.jar
     +- jna-platform-5.1.0.jar
 +- fileSrvConfig.xml
 +- port445.reg
 +- runsrv.bat
 +- runsrv.sh

Using a command line terminal or shell set your current working directory as the JFileServer directory.

There is a default JFileServer configuration file that will share the testShare folder, which contains a single text file. For details on configuring JFileServer see here.

To start JFileServer on linux, macOS or Unix system use the runsrv.sh' script file :-

./runsrv.sh

On Windows use the runsrv.bat file to start JFileServer :-

runsrv

The default JFileServer configuration will output debug logging to the console, on startup of the server you should see the following :-

JFileServer starting, enter 'x' to shutdown server, 'r' to restart server ...
Starting server NetBIOS ...
Starting server SMB ...
[SMB] SMB Server JFILESRV starting
[SMB] Version 1.0.0, Java VM 25.152-b16, OS Mac OS X, version 10.14.2
[SMB] Using authenticator org.filesys.server.auth.EnterpriseSMBAuthenticator, mode=USER
[SMB] Server timezone offset = 0hrs
[SMB] Dialects enabled = [Core,CorePlus,DOS LANMAN 1.0,LANMAN1.0,DOS LANMAN 2.1,LM1.2X002,LANMAN2.1,NT LM 0.12]
[SMB] Shares:
[SMB]  [JFILESHARE,DISK,,[./testShare]] [./testShare]
[SMB] Added NTServer flag to host announcement
[SMB] Binding TCP-SMB session handler to address : ALL
[SMB] Binding NetBIOS session handler to address : ALL
[SMB] Request handler SMBRequestHandler_1 waiting for session ...
[SMB] Listening for connections on [SMB,TCP-SMB,ALL:1445]
[SMB] Listening for connections on [SMB,NetBIOS,ALL:1139]
[SMB] Waiting for new connection ...