TODO: Finish this page!

add hasp user
/etc/udev/rules.d/52-hasp.rules to set ownership of /dev/bus/usb/... node and create /dev/aks/hasp symlink (aksusbd has this hardcoded!)
# cat /etc/udev/rules.d/52-hasp.rules
# change owner for /dev/bus/usb node:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0529", ATTRS{idProduct}=="0001", OWNER="hasp", ENV{HASP}="1", SYMLINK+="aks/hasp/%k"




run aksusbd and hasplmd... I don't know what winehasp does, but it doesn't seem to be required.

mkdir /opt/hasp/etc
ln -s /opt/hasp/etc /etc/hasplm
** /opt/hasp/etc/hasplm.ini **

# cat /opt/hasp/etc/hasplm.ini
[SERVER]
adminpassword = **REDACTED**
ACCremote = 1
enabledetach = 0
reservedseats = 0
reservedpercent = 0
requestlog = 1
loglocal = 0
logremote = 1
logadmin = 0
errorlog = 1
rotatelogs = 0
access_log_maxsize = 0 ;kB
error_log_maxsize = 0 ;kB
zip_logs_days = 0
delete_logs_days = 0
pidfile = 0
passacc = 0
accessfromremote = 1
accesstoremote = 0
bind_local_only = 0  ; 0=all adapters, 1=localhost only

[REMOTE]
broadcastsearch = 0
aggressive = 0




mkdir /opt/hasp/var
ln -s /opt/hasp/var /var/hasplm
chown hasp /opt/hasp/var
ln -s /var/log/hasp-access.log /opt/hasp/var/access.log
ln -s /var/log/hasp-error.log /opt/hasp/var/error.log
touch /var/log/hasp-access.log
touch /var/log/hasp-error.log
chown hasp:adm /var/log/hasp-access.log
chown hasp:adm /var/log/hasp-error.log
chmod 0640 /var/log/hasp-access.log
chmod 0640 /var/log/hasp-error.log

unit files /etc/systemd/system/hasp-aksusbd.service and /etc/systemd/system/hasplmd.service
# cat /etc/systemd/system/hasp-aksusbd.service
[Unit]
Description=HASP USB Daemon

[Service]
Type=forking
ExecStart=/opt/hasp/aksusbd
User=hasp

[Install]
WantedBy=multi-user.target




# cat /etc/systemd/system/hasplmd.service
[Unit]
Description=HASP Server
Requires=hasp-aksusbd.service
After=hasp-aksusbd.service

[Service]
Type=forking
ExecStart=/opt/hasp/hasplmd -s
User=hasp

[Install]
WantedBy=multi-user.target
computer/hasp_properly_installed_in_debian.txt · Last modified: 2014/08/21 11:51 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS