Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer: Add net-tools (netstat command is needed) #610

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

ceskyDJ
Copy link
Contributor

@ceskyDJ ceskyDJ commented May 23, 2023

Hi Sam! I found a little missing thing in your installer. Scanservjs uses netstat command (from net-tools package) but doesn't install required package in preparation phase of installation.

@ceskyDJ
Copy link
Contributor Author

ceskyDJ commented May 23, 2023

Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Hit:5 https://pkg.cloudflare.com/cloudflared jammy InRelease
Reading package lists... Done
Reading package lists...
Building dependency tree...
Reading state information...
sane-utils is already the newest version (1.1.1-5).
nodejs is already the newest version (12.22.9~dfsg-1ubuntu3).
npm is already the newest version (8.5.1~ds-1).
tesseract-ocr is already the newest version (4.1.1-2.1build1).
tesseract-ocr-ara is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-ces is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-chi-sim is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-deu is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-eng is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-fra is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-ita is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-nld is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-pol is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-por is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-rus is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-spa is already the newest version (1:4.00~git30-7274cfa-1.1).
tesseract-ocr-tur is already the newest version (1:4.00~git30-7274cfa-1.1).
curl is already the newest version (7.81.0-1ubuntu1.10).
imagemagick is already the newest version (8:6.9.11.60+dfsg-1.3ubuntu0.22.04.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

changed 14 packages, and audited 215 packages in 11s

10 packages are looking for funding
  run `npm fund` for details

4 high severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

To address all issues, run:
  npm audit fix --force

Run `npm audit` for details.
Backing up existing files
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 3016k  100 3016k    0     0  2277k      0  0:00:01  0:00:01 --:--:-- 8160k
Restoring files
'/tmp/scanservjs.bkp/config/config.default.js' -> '/var/www/scanservjs/config/config.default.js'
'/tmp/scanservjs.bkp/config/devices.json' -> '/var/www/scanservjs/config/devices.json'
'/tmp/scanservjs.bkp/config/config.local.js' -> '/var/www/scanservjs/config/config.local.js'
'/tmp/scanservjs.bkp/data/preview/default.jpg' -> '/var/www/scanservjs/data/preview/default.jpg'
'/tmp/scanservjs.bkp/data/preview/preview.tif' -> '/var/www/scanservjs/data/preview/preview.tif'
'/tmp/scanservjs.bkp/data/output' -> '/var/www/scanservjs/data/output'
'/tmp/scanservjs.bkp/data/output/ITT - konzultace.pdf' -> '/var/www/scanservjs/data/output/ITT - konzultace.pdf'
'/tmp/scanservjs.bkp/data/output/IMS 3.pdf' -> '/var/www/scanservjs/data/output/IMS 3.pdf'
'/tmp/scanservjs.bkp/data/output/scan_23-05-2023 15-19-25.pdf' -> '/var/www/scanservjs/data/output/scan_23-05-2023 15-19-25.pdf'
'/tmp/scanservjs.bkp/data/output/ISA 1.pdf' -> '/var/www/scanservjs/data/output/ISA 1.pdf'
'/tmp/scanservjs.bkp/data/output/ITU.pdf' -> '/var/www/scanservjs/data/output/ITU.pdf'
'/tmp/scanservjs.bkp/data/output/IMS 1.pdf' -> '/var/www/scanservjs/data/output/IMS 1.pdf'
'/tmp/scanservjs.bkp/data/output/ISA 2.pdf' -> '/var/www/scanservjs/data/output/ISA 2.pdf'
'/tmp/scanservjs.bkp/data/output/IIS.pdf' -> '/var/www/scanservjs/data/output/IIS.pdf'
'/tmp/scanservjs.bkp/data/output/scan_19-05-2023 16-49-53.pdf' -> '/var/www/scanservjs/data/output/scan_19-05-2023 16-49-53.pdf'
'/tmp/scanservjs.bkp/data/output/IMS 2.pdf' -> '/var/www/scanservjs/data/output/IMS 2.pdf'
'/tmp/scanservjs.bkp/data/output/IMP.pdf' -> '/var/www/scanservjs/data/output/IMP.pdf'
'/tmp/scanservjs.bkp/data/temp' -> '/var/www/scanservjs/data/temp'

added 106 packages, and audited 107 packages in 9s

5 vulnerabilities (4 high, 1 critical)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
/var/www/scanservjs/installer.sh: line 115: netstat: command not found

scanservjs installed and running
  http://127.0.0.1:8080

If you encounter problems when running, try
  sudo journalctl -e -u scanservjs

@ceskyDJ
Copy link
Contributor Author

ceskyDJ commented May 23, 2023

It's used on line 115 of installer.sh:

Run `npm audit` for details.
/var/www/scanservjs/installer.sh: line 115: netstat: command not found

@sbs20
Copy link
Owner

sbs20 commented Sep 25, 2023

Thank you!

@sbs20 sbs20 merged commit 3ae7609 into sbs20:master Sep 25, 2023
2 checks passed
@ceskyDJ ceskyDJ deleted the patch-3 branch September 25, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants