Language:


Creating a New Database (Multi-user) - Server with no Graphical Interface (Linux and Macintosh OS X)

To create a new database on a server that does not have a graphical interface, first ensure that there is no database file with the name "1Office.HDB" in the same folder as the FirstOffice application, and that the "DBDef.txt" and "Default.txt" files are present. Then, put the server into "Terminal" mode as described on the Linux and Macintosh OS X Server Installation page.

When the Terminal window opens, and assuming you have retained the default directory structure, type:

cd /Applications/FirstOffice/1OfficeProAdv43Serv (Linux), or
cd /Applications/FirstOffice/1OfficePro43ServOSX (OS X)

./1office-server backup/TBXXXXXX.txt & (Linux), or
./1office-macosx backup/TBXXXXXX.txt & (OS X)
Starts the FirstOffice server application and imports the back-up or example data file TBXXXXXX.txt. In this example, this file is in the "backup" folder inside the folder containing the FirstOffice server application.
The progress of the import will be shown in the Terminal window. When it has finished, FirstOffice will quit. Restart it by typing:
./1office-server & (Linux), or
./1office-macosx & (OS X)
If you do not want a back-up or example data file to be imported to the new database, you need to ensure a Server Port will be open in the new database so that clients will be able to log in. You can do this using one of two methods:
  1. Before starting the FirstOffice application, ensure the "DBDef.txt" contains an instruction to set the Server Port to the required value. The "DBDef.txt" file supplied with FirstOffice will set the Server Port to 1200. If you are using this method, you may need to start FirstOffice, quit and restart to activate the port, thus enabling users to log on.

  2. By typing the following command in to the Terminal:
    ./1office-server --port 1200 & (Linux), or
    ./1office-macosx --port 1200 & (OS X)
    This starts the FirstOffice server application and sets the Server Port to 1200, for a single work session only. If you want to set it to 1200 permanently, do so from a client using the Program Mode register (or use method 1 above).
Since the server does not have a graphical interface, you will need to configure the new database from a client. Refer to the Logging on from a Client page and follow its instructions to log in to the server from a single client. Use the Port number that you specified in the final command above. Working on that client machine, first go to the System module and create a record in the Access Groups setting explicitly granting full access to the Technics module. Then, create a record in the Person register for yourself, assigning it to the Access Group you have just created. Then, quit FirstOffice and restart. You should now follow the instructions on the Setting up the Server module page to configure the new database.