Hi, Today I had to move the home printer to a new location, and I was thinking of connecting remotely to the “dumb” printer.
I had a spare RPi lying near me, so thought of giving a try.
Since I had formatted my PC, I had to start from scratch to set up the pi-pc/network communication.

How to connect Pi to PC for configuration?
I had to heedlessly connect (without knowing Pi’s IP address) to pi and I also want it to talk to my computer through the home router.
(Then I can take print-out from my phone/laptop/ or even remotely)( For remotely, you can create a VNC account and control the Pi through it if you are outside your home network.)

  1. Instal putty, VNC and bonjour print service.
  2. Back up my Pi’s SD card previous data using ext2explore utility. (Not needed, but recommended).
  3. To connect headlessly:
    Open notepad.
    save it into sd card with name ssh and select all files option. (make sure file is empty)
    Close notepad, then again open notepad type the following.
    (this will save your router info so that pi will automatically connect to your network when it boots up).

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
psk=”your_wifi_password” }

save the file with the name wpa_supplicant.conf and again select all files option and save it to Pi’s SD card.

You can follow this for further ref: https://www.tomshardware.com/reviews/raspberry-pi-headless-setup-how-to,6028.html

Voila! Restart and now your Pi will be try to automatically connect to the saved Wifi access point. (unless your pi doesn’t have wifi problems or you previously played with it’s connectivity settings.) (at least mine did work.)

Start putty and enter raspberrypi in the address bar (port remains same as 22) and connect.
It should ask for username and password.

How to setup printing service?

Here I used CUPS.

  1. Install Common Unix Print System software
    sudo apt install cups
    After installing, follow the steps as discussed in
    Go to raspberrypi:631 from any device in your network, preferably your pc and verify if you see the cups startup page.

Additional help:
You can see connection details using the command - ip link show
(see this: https://www.cyberciti.biz/faq/linux-list-network-interfaces-names-command/)

I would suggest to turn on Rpi Automatic login.

If in windows Printers & Scanners settings, if printer is not found, then click the printer I want is not listed option and in the select a shared printer by name field, enter this:
(This is your printer admin page in CUPS, change the IP and name accordingly, mine is given for ref.)
Here, my Pi’s IP is, which also has the alias “raspberrypi”.
(If you have connected Pi using LAN, then try “raspberrypi.local”).
So the Login/ management page: is equivalent to http://raspberrypi:631/

If any of the website’s link is unavailable, try using wayback machine archive to find it’s old snapshot.

I tried printing from phone using xodo (uses Android print spooler service) and succeeded. So I think it should work on yours too.

I am also planning to do a button – ON and OFF for Pi, inspired from: https://www.makeuseof.com/tag/add-power-button-raspberry-pi/