tech:documentation:exams:scanning
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tech:documentation:exams:scanning [2022/03/10 13:58] – created kohofer | tech:documentation:exams:scanning [2024/03/07 15:34] (current) – kohofer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Procedure to enable scanning of exams ====== | + | ====== Procedure to enable scanning of Exams/PIS etc ====== |
- | This allows to scan exams on the Printer and save them in a folder in the Archive. | + | Use the VM gutenberg.inf.unibz.it Ubuntu 20.04.6 LTS with samba version: Version 4.13.17-Ubuntu |
+ | |||
+ | IMPORTANT | ||
+ | |||
+ | To make scan to folder work, this 2 options in [global] section | ||
+ | are necessary in smb.conf | ||
+ | |||
+ | vi / | ||
+ | |||
+ | < | ||
+ | client min protocol = NT1 | ||
+ | server min protocol = NT1 | ||
+ | </ | ||
+ | |||
+ | systemctl restart smbd.service | ||
+ | |||
+ | |||
+ | https:// | ||
+ | |||
+ | Check status of samba: | ||
+ | |||
+ | < | ||
+ | root@gutenberg: | ||
+ | |||
+ | Samba version 4.15.13-Ubuntu | ||
+ | PID | ||
+ | ---------------------------------------------------------------------------------------------------------------------------------------- | ||
+ | 3510511 skanners | ||
+ | |||
+ | Service | ||
+ | --------------------------------------------------------------------------------------------- | ||
+ | scans 3510511 10.7.88.144 | ||
+ | |||
+ | Locked files: | ||
+ | Pid User(ID) | ||
+ | -------------------------------------------------------------------------------------------------- | ||
+ | 3510511 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | This allows to scan exams on the Multifunction | ||
Printer: UBZ125POS100 http:// | Printer: UBZ125POS100 http:// | ||
- | Archive: \\ubz02bdc.unibz.it\Users\Faculty of Computer Science\1 Didattica\1.7 Esami\Copie Esami\Scans \\ | + | Archive/Path: \\fsu.unibz.it\Users\Faculty of Computer Science\1 Didattica\1.7 Esami\Copie Esami\scans \\ |
- | Infos: IP: 10.7.4.111 | + | Infos: IP: 10.7.28.68 |
+ | |||
+ | ---- | ||
===== Prepare Printer ===== | ===== Prepare Printer ===== | ||
Line 11: | Line 55: | ||
Login into printer via web: | Login into printer via web: | ||
- | http:// | + | http:// |
- | login: | + | login: |
- | password: | + | password: |
- | Click on **Address Book** | + | - Click on **Address Book** |
+ | - Select Address List 02 | ||
+ | - Register New Destination... | ||
+ | - Type: file | ||
+ | - Click Set | ||
+ | - Enter Name: gutenberg | ||
+ | - Protocol: Windows (SMB) | ||
+ | - Hostname: \\gutenberg.inf.unibz.it\scans | ||
+ | - Click: OK | ||
- | Press Add User and enter this details: | + | ===== Set Firewall/ |
+ | |||
+ | Open SMB port 139 or 445 on the firewall for the 2 machines! | ||
+ | |||
+ | telnet 10.7.28.68 445 | ||
+ | Trying 10.7.28.68... | ||
+ | Connected to 10.7.28.68. | ||
+ | Escape character is ' | ||
+ | ^CConnection closed by foreign host. | ||
+ | |||
+ | ACL rulez set by Andreas Zöschg! | ||
+ | |||
+ | ===== Set-up VM: gutenberg ===== | ||
+ | |||
+ | ssh gutenberg | ||
+ | |||
+ | Make sure after reboot that the drive is mounted! | ||
+ | |||
+ | cat / | ||
+ | mount -a | ||
+ | |||
+ | Entry in /etc/fstab | ||
< | < | ||
- | Registration No. : consecutive number, system will do | + | \\fsu.unibz.it\inf\Faculty\040of\040Computer\040Science\1\040Didattica\1.7\040Esami\Copie\040Esami\Scans / |
- | Name : CompScieScans | + | |
- | Key Display : CompScieScans | + | |
- | ... | + | |
- | ... | + | |
- | Add to Freq. : On | + | |
- | ... | + | |
- | Folder Authentication : Specify Other Auth. Info below | + | |
- | Login User Name : sync_user@unibz.it | + | |
- | Login Password : ****************** | + | |
- | ... | + | |
- | ... | + | |
- | ... | + | |
- | ... | + | |
- | Folder | + | |
- | Protocol : SMB | + | |
- | Port No. : 21 | + | |
- | Connection Type : | + | |
- | Server Name : | + | |
- | Path : \\10.7.4.111\Users\Faculty of Computer Science\1 Didattica\1.7 Esami\Copie | + | |
</ | </ | ||
+ | |||
+ | Cronjob | ||
+ | |||
+ | | ||
+ | |||
+ | < | ||
+ | # execute mount -a command | ||
+ | @reboot / | ||
+ | |||
+ | # copy exams scans to Archive fsu | ||
+ | */2 7-19 * * MON-FRI | ||
+ | |||
+ | # remove all pdfs if the file: remove is found in / | ||
+ | */5 * * * * / | ||
+ | </ | ||
+ | |||
+ | To clean up all pdfs in /home/scans run the hidden command: **.cleanup.sh** | ||
+ | |||
+ | cat / | ||
+ | #!/bin/sh -x | ||
+ | | ||
+ | # Create file: " | ||
+ | # touch remove | ||
+ | # run the script to remove all pdf files in directory | ||
+ | # sh .cleanup.sh | ||
+ | if [ -f " | ||
+ | then | ||
+ | echo File " | ||
+ | rm -I / | ||
+ | fi | ||
+ | |||
+ | Run script! | ||
+ | |||
+ | cd /home/scans | ||
+ | sh .cleanup.sh | ||
+ | |||
+ | ===== Login from Windows Explorer ===== | ||
+ | |||
+ | Open Windows Explorer (Win+E) and enter into the path: \\gutenberg.inf.unibz.it\scans | ||
+ | |||
+ | When it asks for login information: | ||
+ | |||
+ | username: skanners\\ | ||
+ | password: Igloo# | ||
+ | |||
/data/www/wiki.inf.unibz.it/data/attic/tech/documentation/exams/scanning.1646917089.txt.gz · Last modified: 2022/03/10 13:58 by kohofer