Linux - Installing HarlequinDirect (Internal Only)

Create A Network Share

These instructions are based on Ubuntu, the steps required may be different for other flavors of Linux

Install Samba

The following line may vary depending on the flavor of Linux

  1. Execute sudo apt install samba

Create the Shared Folder

Create a directory for Harlequin Direct:

  1. Execute sudo mkdir -p /srv/samba/SPCHD

  2. Execute sudo chmod -R 0777 /srv/samba/SPCHD

  3. Execute sudo chown -R nobody:nogroup /srv/samba/SPCHD

Update the Samba config

Keep the original configuration safe

  1. Execute sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.orig

  2. Update smb.conf

Add the following to the end of the file:
[SPCHD]
comment = SPCHD Share
path = /srv/samba/SPCHD
browsable = yes
writable = yes
guest ok = yes
read only = no
force user = nobody
create mask = 0777
force create mode = 0777
directory mask = 0777
force directory mode = 0777

  1. Add the following to the global section of smb.conf

map to guest = bad user
inherit permissions = yes

  1. Verify the smb.conf file by executing testparm

  2. Execute sudo service smbd restart

  3. Execute sudo ufw allow samba

Configuring Shared Memory

These instructions are based on Ubuntu, the steps required may be different for other flavors of Linux

To increase the memory to the same amount of RAM installed in the machine edit /etc/fstab:

  1. Back up the existing fstab file:
    sudo cp /etc/fstab /etc/fstab.orig

  2. Add the following line or update it (if it already exists:
    none /dev/shm tmpfs defaults,size=64G 0 0
    NOTE: 64G should be changed to match the memory installed in the PC

  3. Reload the /dev/shm file system::
    sudo mount /dev/shm

Install HarlequinDirect

  1. Copy the HarlequinDirect archive onto the samba share, file will be of the form HarlequinDirect_<Platform>_<Build>.zip

  2. Execute unzip HarlequinDirect_<Platform>_<Build>.zip

  3. Execute tar -xvf HarlequinDirect.tar.gz

  4. Execute sudo chmod 777 *

  5. Execute sudo ./Start.sh