0

OS Ubuntu 22.04
posper 3.0-1390-6.851-09.02.2023.tar.gz

I downloaded and unzipped the archive to /opt/posper following instructions on readme.txt.

On property of posper.exe and on config.exe change to Allow executing file as program

I tried the GUI method, but it gave the following error message:

An error occurred while loading the archive.

I also tried with Terminal, but it was not successful either.

luis@l-System-luisj:/opt/posper$ sudo chmod +rw-rx-r-- /opt/posper/posper.exe
luis@l-System-luisj:/opt/posper$ sudo ./posper.exe
sudo: ./posper.exe: command not found
luis@l-System-luisj:/opt/posper$  

What am I doing wrong?

Dan
  • 14,180

1 Answers1

4

You are copying the wrong file, and extracting it with the wrong command. The normal unzip marks the permissions as executable as expected. Here is a working installation procedure:

  1. Download "posper-3.0-1390-6.851-09.02.2023.zip" from https://sourceforge.net/projects/posper/files/POSper%20Releases/3.0/
  2. sudo apt install openjdk-8-jre to Install Java 8 (newer won't work with the config program)
  3. rm -rf ~/posper* to clean up the old POSper install
  4. sudo rm -rf /opt/posper
  5. sudo unzip -d /opt posper-3.0-1390-6.851-09.02.2023.zip This should extract things with the proper permissions
  6. sudo mv /opt/posper-3.0-1390-6.851-09.02.2023 /opt/posper
  7. sudo chmod 755 /opt/posper/{config,newlog,posper,startmenu.{de,en},update}. This allows running when not root.
  8. echo '#!/bin/true' | sudo tee /opt/posper/update to neutralize the file that doesn't work
  9. sudo touch /opt/posper/{audit,posper,trace}.log Create the dummy log files (the real ones are in ~/posper_logs)
  10. sudo chmod 666 /opt/posper/{audit,posper,trace}.log Make the dummy log files writable or else POSper will crash
  11. Edit /opt/posper/posper and /opt/posper/config to uncomment and replace the relevant line to look like JAVAEXEC=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
  12. Install and start a MySQL database. For a Docker example, open another terminal window and run docker run --rm -it -p 3306:3306 -e MYSQL_ROOT_PASSWORD=test123 -e MYSQL_DATABASE=posperdb mysql:5.7.41. MySQL ≥ 8 won't work. The example is insecure and will delete all data on shutdown, so set up a proper database later
  13. Start /opt/posper/config
  14. Click on the database tab
  15. Select /opt/posper/libs/mysql-connector-java-5.1.27.jar as the driver library. I used the picker with the folder icon, so make sure that the driver class and URL are updated to MySQL properly
  16. Enter "root" as username
  17. Enter "test123" as password
  18. Press "Save"
  19. Press "Exit"
  20. Launch /opt/posper/posper. It's a graphical application, so you shouldn't use sudo to run it as root. The Windows version is posper.exe, so make sure to use the Linux version, which is named just posper
  21. Click through all the dialogs
  22. Click a role to begin

Your chmod +rw-rx-r-- does not make sense, and it sets the permissions to --w--w----. sudo ./posper.exe says "command not found" because it is not executable.

The infinite loading cursor when clicking a role is caused by a database error. The builtin HSQL database doesn't work, so we use a MySQL database as /opt/posper/readme.txt suggests. If there is a problem, you can look at the logs in ~/posper_logs/posper.log to debug.

welcome screen admin screen employee screen guest screen manager screen

Daniel T
  • 5,339