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
-
Execute sudo apt install samba
Create the Shared Folder
Create a directory for Harlequin Direct:
-
Execute sudo mkdir -p /srv/samba/SPCHD
-
Execute sudo chmod -R 0777 /srv/samba/SPCHD
-
Execute sudo chown -R nobody:nogroup /srv/samba/SPCHD
Update the Samba config
Keep the original configuration safe
-
Execute sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.orig
-
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
-
Add the following to the global section of smb.conf
map to guest = bad user
inherit permissions = yes
-
Verify the smb.conf file by executing testparm
-
Execute sudo service smbd restart
-
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:
-
Back up the existing fstab file:
sudo cp /etc/fstab /etc/fstab.orig -
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 -
Reload the /dev/shm file system::
sudo mount /dev/shm
Install HarlequinDirect
-
Copy the HarlequinDirect archive onto the samba share, file will be of the form HarlequinDirect_<Platform>_<Build>.zip
-
Execute unzip HarlequinDirect_<Platform>_<Build>.zip
-
Execute tar -xvf HarlequinDirect.tar.gz
-
Execute sudo chmod 777 *
-
Execute sudo ./Start.sh