HLServer: OS X Server Setup

From Headus Docs

(Difference between revisions)
Jump to: navigation, search
Revision as of 05:07, 15 January 2014 (edit)
Headus (Talk | contribs)
(Update)
← Previous diff
Revision as of 09:11, 21 June 2016 (edit) (undo)
Headus (Talk | contribs)
(Setup)
Next diff →
Line 21: Line 21:
</ul> </ul>
-== Setup ==+== Setup v2 ==
 + 
 +Double click the '''setup''' script to start the installation.
 +First you will be asked where you want to install the hlserver
 +files, so just tap the Enter key here to accept the default ...
 + 
 +<pre>
 +If prompted, type in your password for sudo access.
 + 
 +Installation location (/usr/local/hlserver) ?
 +</pre>
 + 
 +Next you will most likely be asked for your password for sudo access;
 +this is so the install folder can be created and the service daemon
 +started ...
 + 
 +<pre>
 +sudo mkdir -p /usr/local/hlserver
 +Password:
 +sudo chown architec /usr/local/hlserver
 +sudo cp com.headus.hlserver.plist /Library/LaunchDaemons
 +sudo chown root /Library/LaunchDaemons/com.headus.hlserver.plist
 +sudo chmod 644 /Library/LaunchDaemons/com.headus.hlserver.plist
 +cp -f hlmanager hlserver hlserver.conf .keys /usr/local/hlserver
 +sudo launchctl unload /Library/LaunchDaemons/com.headus.hlserver.plist
 +sudo rm -f /tmp/hlserver.pid
 +sudo launchctl load /Library/LaunchDaemons/com.headus.hlserver.plist
 +</pre>
 + 
 +After that, the setup script will wait for the service to start up, and
 +then runs the manager command ...
 + 
 +<pre>
 +Waiting for HLServer to start ... 10 9 8
 +Trying HLManager ...
 +Trying architec@localhost ... Connected ... Fetching ...
 +</pre>
 + 
 +Once hlmanager is connected, you will see something like this ...
 + 
 +<pre>
 +Server v2.00 localhost up 00:00
 + 
 + Your login has been added automatically to
 + the hlserver.conf file for Manager access.
 + If you want to add Manager access for other
 + users, you will need to edit that file on
 + the server.
 + 
 +----------------------------------------------
 + 
 + No valid floating licenses found. Please
 + email the following code to your vendor so
 + new license keys can be generated.
 + 
 + RF55 RDH4 WGA4 9P2D XECG F530 2MHX 9ZST
 + 
 + Copy of above code: '/tmp/hlmanager-code.txt'
 + 
 + If you've already received your license keys,
 + now use the "add" command to append one at
 + a time to the keys file on the server.
 +</pre>
 + 
 +== Setup v1 ==
Double click the '''setup''' script to start the installation. Double click the '''setup''' script to start the installation.

Revision as of 09:11, 21 June 2016

Cover Page
About HLServer
Linux Server Setup
Windows Server Setup
OS X Server Setup
Server Config
Application Config
The Manager
Adding New Keys
Trouble Shooting
Download PDF
Download the TGZ file and double click it to extract the contents into the hlserver folder.

The following files make up the OS X license server installation:

    hlserver 
    This is the server application.
    hlserver.conf 
    The contents of this file, explained in detail in the Server Config chapter, controls the behavior of the server.
    hlserver.log 
    This is a series of date stamped log messages from the server showing, amongst other things, who is grabbing which licenses.
    setup 
    Installation script.
    uninstall 
    Removal script.
    hlmanager 
    This is the manager application. See The Manager chapter for details.
    .keys 
    This file holds the floating license keys.

Setup v2

Double click the setup script to start the installation. First you will be asked where you want to install the hlserver files, so just tap the Enter key here to accept the default ...

If prompted, type in your password for sudo access.

Installation location (/usr/local/hlserver) ?

Next you will most likely be asked for your password for sudo access; this is so the install folder can be created and the service daemon started ...

sudo mkdir -p /usr/local/hlserver
Password:
sudo chown architec /usr/local/hlserver
sudo cp com.headus.hlserver.plist /Library/LaunchDaemons
sudo chown root /Library/LaunchDaemons/com.headus.hlserver.plist
sudo chmod 644 /Library/LaunchDaemons/com.headus.hlserver.plist
cp -f hlmanager hlserver hlserver.conf .keys /usr/local/hlserver
sudo launchctl unload /Library/LaunchDaemons/com.headus.hlserver.plist
sudo rm -f /tmp/hlserver.pid
sudo launchctl load /Library/LaunchDaemons/com.headus.hlserver.plist

After that, the setup script will wait for the service to start up, and then runs the manager command ...

Waiting for HLServer to start ... 10 9 8
Trying HLManager ...
Trying architec@localhost ... Connected ... Fetching ...

Once hlmanager is connected, you will see something like this ...

Server v2.00 localhost up 00:00

  Your login has been added automatically to
  the hlserver.conf file for Manager access.
  If you want to add Manager access for other
  users, you will need to edit that file on
  the server.

----------------------------------------------

  No valid floating licenses found. Please
  email the following code to your vendor so
  new license keys can be generated.

  RF55 RDH4 WGA4 9P2D XECG F530 2MHX 9ZST

  Copy of above code: '/tmp/hlmanager-code.txt'

  If you've already received your license keys,
  now use the "add" command to append one at
  a time to the keys file on the server.

Setup v1

Double click the setup script to start the installation.

  1. First you'll be asked to check the config file. The "GROUP lan" IP range will have been set already to match your local network, but this may need to be adjusted if you have a more complicated setup (e.g. multiple sub-nets in a larger campus network). Save the file, kill the window, then re-run the setup script to continue.

  2. Initially you wont have license keys, so at the "Do you have the keys" question type n followed by Enter to generate the code strings. Email the 5 code strings to your vendor to get your license keys.

  3. When you get your license keys, re-run the setup script and answer y to the "Do you have the keys" question, then type Enter to continue and the keys file will open up in the text editor. Cut'n'paste your license keys in, save the file, kill the window, then re-run the setup script to continue.

  4. At the "Do you have updated license keys" question, answer n and then you'll be asked for an installation location. By default the script will want to put the binaries and config files into /usr/local/hlserver, but you can type in a different path at the prompt if you wish.

If the setup script runs smoothly, hlserver will be started and hlmanager is run as a final check. You should see something like the following as output ...

 Waiting for HLServer to start ... 10 9 8 
 Trying HLManager ...
 Trying architec@localhost ...
 Server localhost up 4 seconds
 <--------- Licenses ---------->  <------------------------- Users ------------------------->
 Name        Status    Free Used  Id Hostname        User     App           Age       Idle   
 uvlayoutv2  29 days      4    0

hlserver will be automatically restarted whenever the system is rebooted, and you can stop and start it via the launchctl command.

We recommend that you keep the hlserver folder in case you need to re-run the setup script. It can be moved if you dont want to leave it on your Desktop or in the Downloads folder.

Update

If you need to update your keys file (e.g. replacing temp keys with permanent ones) then re-run the setup script and answer y to the "Do you have updated keys" question. Type Enter to edit the keys file, cut'n'paste in the new keys, then save the file, kill the window, and re-run the setup script to restart HLServer and check the results with HLManager.