Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
appletalk_printserver_macos_and_osx [2018/02/18 14:58] – [CUPS configuration and PAP backend] mabam | appletalk_printserver_macos_and_osx [2023/06/25 12:19] (current) – [[OPTIONAL] Configuring Samba shares] mabam | ||
---|---|---|---|
Line 26: | Line 26: | ||
< | < | ||
Except for a few cases when you are asked to substitute parts of an entry, just select all text within the box and copy-paste it into Terminal. | Except for a few cases when you are asked to substitute parts of an entry, just select all text within the box and copy-paste it into Terminal. | ||
- | <file>A dark blue box does not represent an entry, but output to be expected from Terminal.</ | + | <code text [highlight_lines_extra=" |
===== Prerequesites ===== | ===== Prerequesites ===== | ||
==== ==== | ==== ==== | ||
Line 177: | Line 177: | ||
If only disk "''/ | If only disk "''/ | ||
- | <file>Disk /dev/sdb: 15.1 GiB, 16172187648 bytes, 31586304 sectors</ | + | <code text [highlight_lines_extra=" |
You can recognize it by its size. I use a 16 GB SD card which in reality has 15.1 GB capacity. That is reflected in above line. If you use an 8 GB SD card (which is more than enough), the line above should report a bit more than 7 GB capacity. For the virtual machine we had created a hard disk image of 32 GB, so "'' | You can recognize it by its size. I use a 16 GB SD card which in reality has 15.1 GB capacity. That is reflected in above line. If you use an 8 GB SD card (which is more than enough), the line above should report a bit more than 7 GB capacity. For the virtual machine we had created a hard disk image of 32 GB, so "'' | ||
Line 188: | Line 188: | ||
//(If necessary, substitute "'' | //(If necessary, substitute "'' | ||
This should return something like | This should return something like | ||
- | <file>dd if=/ | + | <code text [highlight_lines_extra=" |
If it does, write the Armbian image to your SD card //(again substitute "'' | If it does, write the Armbian image to your SD card //(again substitute "'' | ||
< | < | ||
Line 289: | Line 289: | ||
< | < | ||
The response should contain your HDD's id preceded by "'' | The response should contain your HDD's id preceded by "'' | ||
- | <file> | + | <code text [highlight_lines_extra=" |
If it does, make the HDD auto-mount at "''/ | If it does, make the HDD auto-mount at "''/ | ||
< | < | ||
Line 397: | Line 397: | ||
< | < | ||
In my case the last lines of the response look like this: | In my case the last lines of the response look like this: | ||
- | <file>/ | + | <code text [highlight_lines_extra=" |
/ | / | ||
- | / | + | / |
For Netatalk to properly handle the newly shared volume(s), have it create .volinfo and AppleDouble files for them: | For Netatalk to properly handle the newly shared volume(s), have it create .volinfo and AppleDouble files for them: | ||
Line 412: | Line 412: | ||
< | < | ||
Terminal should return something like this: | Terminal should return something like this: | ||
- | <file> | + | <code text [highlight_lines_extra=" |
| | ||
| | ||
Line 421: | Line 421: | ||
Asant?Talk 94B88903: | Asant?Talk 94B88903: | ||
| | ||
- | USER_NAME@bananapi: | + | USER_NAME@bananapi: |
My printer and its LocalTalk-to-Ethernet bridge are recognized as "'' | My printer and its LocalTalk-to-Ethernet bridge are recognized as "'' | ||
Line 460: | Line 460: | ||
Terminal should respond with something like this: | Terminal should respond with something like this: | ||
- | <file> | + | <code text [highlight_lines_extra=" |
path = / | path = / | ||
browsable = yes | browsable = yes | ||
Line 483: | Line 483: | ||
create mask = 0666 | create mask = 0666 | ||
force user = USER_NAME | force user = USER_NAME | ||
- | USER_NAME@bananapi: | + | USER_NAME@bananapi: |
Now start Samba: | Now start Samba: | ||
Line 493: | Line 493: | ||
Change to your home folder and download the archive containing the PAP backend((There are at least three other PAP backends available on the net (Duncan Gibb [based on Rupi]: [[ftp:// | Change to your home folder and download the archive containing the PAP backend((There are at least three other PAP backends available on the net (Duncan Gibb [based on Rupi]: [[ftp:// | ||
- | < | + | < |
Extract the downloaded archive: | Extract the downloaded archive: | ||
< | < | ||
Line 515: | Line 515: | ||
BrowseLocalProtocols CUPS dnssd pap' / | BrowseLocalProtocols CUPS dnssd pap' / | ||
- | To prevent the spool folder at / | + | To prevent the spool folder at / |
- | < | + | < |
- | That way, if the size of the spool folder exceeds | + | You could also choose to keep the job files for a certain |
Finally restart CUPS: | Finally restart CUPS: | ||
Line 530: | Line 530: | ||
In the browser, click on "Add Printer" | In the browser, click on "Add Printer" | ||
- | On the following page, you may amend name, description and location to your needs. Click on "Share This Printer" | + | On the following page, you may amend name, description |
- | On the next page, do not choose a PPD file (you want OS X to handle that). Choose "Make: -> Raw" and click on " | + | On the next page, do not choose a PPD file (you want OS X to handle that)((It is also possible to have CUPS on the Banana Pi handle it. That is especially useful if you use the printer from more than one computer or if you want to use AirPrint (to print from an iPhone or iPad). If you want that, click the button behind "Or Provide a PPD File:", |
Now you are asked to set the default options for your printer. Just click on "Set Default Options" | Now you are asked to set the default options for your printer. Just click on "Set Default Options" | ||
Line 538: | Line 538: | ||
==== Adding the printer to OS X ==== | ==== Adding the printer to OS X ==== | ||
=== === | === === | ||
- | Add your printer via " | + | Add your printer via " |
- | It is also possible to have the Banana Pi manage the PPD. But I got empty pages when trying to print that way.((Next to that this only works for printers with [[https:// | + | It is also possible to have the Banana Pi manage the PPD. But I got empty pages when trying to print that way. //(I have found a fix for that by now. It will also enable you to share the printer via AirPrint and use it from your iPhone or iPad. See the two footnotes above.)((This |
====== ====== | ====== ====== |