You are not logged in.

#1 2019-01-16 14:27:54

barronmo
Member
Registered: 2012-08-21
Posts: 55

Printing down over Samba share after Arch update

I did an update last weekend and now none of the documents accessed via the samba share with our server can be printed.  The print option is greyed out on the menu.  I tried changing the permissions on the share to root but that didn't help.  The documents are all pdf files which are opened using Atril Document Viewer.

Thanks for any help.

Mike

Here is my systemd mount file.

[Unit]
Description=Mount server share at boot
Requires=systemd-networkd.service
After=network-online.target
Wants=network-online.target

[Mount]
What=//192.168.1.6/GECKO
Where=/mnt/GECKO
Options=credentials=/home/mb/share_server,uid=1000,x-systemd.automount,vers=1.0
Type=cifs
TimeoutSec=30

[Install]
WantedBy=multi-user.target

And some info about the share.

$ sudo smbclient -L EXAM-DESKTOP -U%

	Sharename       Type      Comment
	---------       ----      -------
	gecko           Disk      for gecko use only
	IPC$            IPC       IPC Service (Samba 4.7.0)
Reconnecting with SMB1 for workgroup listing.

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------
	IMPGROUP             EXAM-DESKTOP

Offline

#2 2019-01-17 10:39:45

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Printing down over Samba share after Arch update

The print option is greyed out on the menu.

I'm guessing that menu is from the atril viewer ?

If you copy the shared documents to a local folder folder does atril print them correctly ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2019-01-17 16:06:12

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Printing down over Samba share after Arch update

I'm guessing that menu is from the atril viewer ?

If you copy the shared documents to a local folder folder does atril print them correctly ?

They do not!  That is surprising.  pdf files on my local can print, but when I copy a pdf file from the server to local it won't.  I changed the permissions (777) but that made no difference; the Atril print option on the menu is greyed out.

Offline

#4 2019-01-17 16:20:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: Printing down over Samba share after Arch update

Did you or anyone ever print any of these specific PDFs? It's possible to add certificates to prevent printing of PDFs if that is the case here then you might simply be seeing that.

Offline

#5 2019-01-17 18:53:23

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Printing down over Samba share after Arch update

Yes, we could print anything on the server up until this past weekend when I did an Arch update (which went fine).

Offline

#6 2019-01-17 19:09:35

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Printing down over Samba share after Arch update

Update.  It appears most of the documents on the server can be printed.  The change is that after this weekend the documents we scanned to the server from our scanner cannot be printed, ie the print option is greyed out.  I've never heard of a pdf file that couldn't be printed.  As I mentioned earlier, this is independent of permissions.

Offline

#7 2019-01-17 19:16:25

seth
Member
Registered: 2012-09-03
Posts: 50,015

Re: Printing down over Samba share after Arch update

pdfinfo somefile.pdf

The viewer might have previously simply ignored the flag.

Online

#8 2019-01-20 02:12:47

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Printing down over Samba share after Arch update

$ pdfinfo test.pdf 
Syntax Warning: May not be a PDF file (continuing anyway)
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table

Offline

#9 2019-01-20 08:19:36

seth
Member
Registered: 2012-09-03
Posts: 50,015

Re: Printing down over Samba share after Arch update

That doesn't sound like it's a PDF at all.

file test.pdf

Can you upload the file (or are there privacy/copyright issues)?

Online

#10 2019-01-20 12:58:19

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Printing down over Samba share after Arch update

The change is that after this weekend the documents we scanned to the server from our scanner cannot be printed, ie the print option is greyed out.

Are those documents that were newly scanned ?

Was scanner / share / printerserver hardware or software changed recently ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#11 2019-01-28 19:40:22

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Printing down over Samba share after Arch update

seth wrote:

That doesn't sound like it's a PDF at all.

file test.pdf

Can you upload the file (or are there privacy/copyright issues)?

No privacy problems.  How do I upload a file?  I couldn't find instructions on the forum (searched "how to upload a file").

Offline

#12 2019-01-28 20:35:11

seth
Member
Registered: 2012-09-03
Posts: 50,015

Re: Printing down over Samba share after Arch update

You'll have to rely on some external service, eg. https://ptpb.pw/

Online

#13 2019-01-29 16:05:11

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Printing down over Samba share after Arch update

These services seem to be for uploading text.  I don't see any instructions for sharing a pdf file.

Offline

#14 2019-01-29 16:11:19

seth
Member
Registered: 2012-09-03
Posts: 50,015

Re: Printing down over Samba share after Arch update

Nope, you can paste binaries (kinda given away by the name ;-)

cat /path/to/file.pdf |  curl -F c=@- https://ptpb.pw

Online

#15 2019-01-29 18:01:39

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: Printing down over Samba share after Arch update

barronmo wrote:

These services seem to be for uploading text.  I don't see any instructions for sharing a pdf file.

Or just post a hex dump of the start of the supposed PDF file here. That is usually sufficient to determine file type:

$ hexdump -C fortran_class.pdf | head
00000000  25 50 44 46 2d 31 2e 34  0d 25 e2 e3 cf d3 0d 0a  |%PDF-1.4.%......|
00000010  39 39 35 20 30 20 6f 62  6a 0d 3c 3c 2f 4c 69 6e  |995 0 obj.<</Lin|
00000020  65 61 72 69 7a 65 64 20  31 2f 4c 20 31 34 37 33  |earized 1/L 1473|
00000030  37 31 39 2f 4f 20 39 39  38 2f 45 20 34 37 33 31  |719/O 998/E 4731|
00000040  36 30 2f 4e 20 39 32 2f  54 20 31 34 37 32 36 34  |60/N 92/T 147264|
00000050  37 2f 48 20 5b 20 37 31  34 20 31 35 33 38 5d 3e  |7/H [ 714 1538]>|
00000060  3e 0d 65 6e 64 6f 62 6a  0d 20 20 20 20 20 20 20  |>.endobj.       |
00000070  20 20 0d 0a 31 30 33 34  20 30 20 6f 62 6a 0d 3c  |  ..1034 0 obj.<|
00000080  3c 2f 44 65 63 6f 64 65  50 61 72 6d 73 3c 3c 2f  |</DecodeParms<</|
00000090  43 6f 6c 75 6d 6e 73 20  35 2f 50 72 65 64 69 63  |Columns 5/Predic|

Offline

#16 2019-01-29 18:53:47

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Printing down over Samba share after Arch update

Morn wrote:
barronmo wrote:

These services seem to be for uploading text.  I don't see any instructions for sharing a pdf file.

Or just post a hex dump of the start of the supposed PDF file here. That is usually sufficient to determine file type:

Thanks.  Here are the results.

hexdump -C ~/Desktop/test.pdf | head
00000000  ff d8 ff e0 00 10 4a 46  49 46 00 01 01 01 00 96  |......JFIF......|
00000010  00 96 00 00 ff db 00 43  00 10 0b 0c 0e 0c 0a 10  |.......C........|
00000020  0e 0d 0e 12 11 10 13 18  28 1a 18 16 16 18 31 23  |........(.....1#|
00000030  25 1d 28 3a 33 3d 3c 39  33 38 37 40 48 5c 4e 40  |%.(:3=<9387@H\N@|
00000040  44 57 45 37 38 50 6d 51  57 5f 62 67 68 67 3e 4d  |DWE78PmQW_bghg>M|
00000050  71 79 70 64 78 5c 65 67  63 ff c0 00 0b 08 06 72  |qypdx\egc......r|
00000060  04 fb 01 01 11 00 ff c4  00 1b 00 01 01 01 01 01  |................|
00000070  01 01 01 00 00 00 00 00  00 00 00 00 01 02 04 03  |................|
00000080  05 06 07 ff c4 00 55 10  00 01 03 03 01 04 05 06  |......U.........|
00000090  08 0a 0a 02 02 01 01 09  01 00 02 11 03 04 21 31  |..............!1|

Offline

#17 2019-01-29 19:19:07

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Printing down over Samba share after Arch update

that is a JFIF (JPEG) file , not a pdf. You can probably create a pdf with img2pdf

Last edited by progandy (2019-01-29 19:21:57)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#18 2019-01-29 19:25:49

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: Printing down over Samba share after Arch update

And put your scanner back in PDF mode, obviously someone switched it to JPEG (or it reset itself).

Offline

Board footer

Powered by FluxBB