{"id":56,"date":"2025-09-18T20:26:02","date_gmt":"2025-09-18T20:26:02","guid":{"rendered":"https:\/\/me.where.com.vn\/?p=56"},"modified":"2025-09-19T09:12:05","modified_gmt":"2025-09-19T09:12:05","slug":"raspberry-pi-print-server-setup-a-network-printer-and-share-to-windows-user","status":"publish","type":"post","link":"https:\/\/me.where.com.vn\/?p=56","title":{"rendered":"Raspberry Pi Print Server: Setup a Network Printer and Share to Windows\/Mac user."},"content":{"rendered":"\n<h2 id=\"1-to-get-started-we-should-first-update-the-raspberry-pi-to-ensure-we-are-running-the-latest-software\">1. To get started we should first update the Raspberry Pi to ensure we are running the latest software.<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt upgrade<\/code><\/pre>\n\n\n\n<h2 id=\"2-install-cups-and-these-packages-by-typing-the-following-command-into-the-terminal-on-your-raspberry-pi\">2. Install CUPS and these packages by typing the following command into the terminal on your Raspberry Pi.<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install cups printer-driver-gutenprint printer-driver-brlaser hplip samba <\/code><\/pre>\n\n\n\n<h2 id=\"3-add-user-and-grant-public-access\">3. Add User and grant public access<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo usermod -a -G lpadmin $USER\nsudo cupsctl --remote-any\nsudo systemctl restart cups<\/code><\/pre>\n\n\n\n<h2 id=\"4-once-you-have-your-raspberry-pi-s-ip-address-go-to-the-following-web-address-in-your-favorite-web-browser\">4. Once you have your Raspberry Pi\u2019s IP Address, go to the following web address in your favorite web browser.<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;x.x.x.x:631\n\n#Allow port 631 (if require)\nsudo ufw allow 631<\/code><\/pre>\n\n\n\n<h2 id=\"5-setting-up-samba-for-the-pi-print-server\">5. Setting up SAMBA for the Pi Print Server<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install samba\nsudo nano \/etc\/samba\/smb.conf<\/code><\/pre>\n\n\n\n<h2 id=\"6-now-with-the-file-open-we-will-need-to-scroll-to-the-bottom-of-the-file\">6. Now with the file open, we will need to scroll to the bottom of the file.<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># CUPS printing.\n&#91;printers]\ncomment = All Printers\nbrowseable = no\npath = \/var\/spool\/samba\nprintable = yes\nguest ok = yes\nread only = yes\ncreate mask = 0700\n\n# Windows clients look for this share name as a source of downloadable\n# printer drivers\n&#91;print$]\ncomment = Printer Drivers\npath = \/var\/lib\/samba\/printers\nbrowseable = yes\nread only = no\nguest ok = no<\/code><\/pre>\n\n\n\n<h2 id=\"7-we-can-now-restart-samba-to-get-it-to-load-in-our-new-configuration\">7. We can now restart SAMBA to get it to load in our new configuration.<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart smbd<\/code><\/pre>\n\n\n\n<h2 id=\"8-adding-a-printer-to-cups\">8. Adding a printer to CUPS<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>GOTO: https:\/\/x.x.x.x:631\n\nOn here we need to click \u201cAdministration\u201d in the navigation menu at the top of the screen.\nOn here, we need to click on the \u201cAdd Printer\u201d button.\n\nThen set printer Model<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/pimylifeup.com\/wp-content\/uploads\/2017\/02\/cups-select-model-e1488003289609.png\" alt=\"cups select model\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 id=\"9-find-and-add-printer-from-windows\">9. Find and Add Printer from Windows<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1028\" height=\"162\" src=\"https:\/\/me.where.com.vn\/wp-content\/uploads\/2025\/09\/image.png\" alt=\"\" class=\"wp-image-57\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 id=\"10-setup-for-mac-user\">10. Setup for MAC user<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install avahi-daemon\nsudo systemctl restart avahi-daemon\nsudo systemctl enable avahi-daemon\n\n#Allow port 5353 (if require)\nsudo ufw allow 5353<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. To get started we should first update the Raspberry Pi to ensure we are running the latest software. 2. Install CUPS and these.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/me.where.com.vn\/index.php?rest_route=\/wp\/v2\/posts\/56"}],"collection":[{"href":"https:\/\/me.where.com.vn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/me.where.com.vn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/me.where.com.vn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/me.where.com.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56"}],"version-history":[{"count":3,"href":"https:\/\/me.where.com.vn\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":60,"href":"https:\/\/me.where.com.vn\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions\/60"}],"wp:attachment":[{"href":"https:\/\/me.where.com.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/me.where.com.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/me.where.com.vn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}