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).

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
scan_ssid=1
ssid=ā€your_wifi_ssidā€
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
    https://www.tomshardware.com/how-to/raspberry-pi-print-server
    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.
https://raspberrypi.stackexchange.com/questions/40415/how-to-enable-auto-login#:~:text=4%20Answers&text=To%20enable%20Auto%2Dlogin%20with,then%20log%20you%20in%20automatically

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:
http://192.168.1.99:631/printers/EPSON_L210_Series
(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 192.168.1.99, which also has the alias ā€œraspberrypiā€.
(If you have connected Pi using LAN, then try ā€œraspberrypi.localā€).
So the Login/ management page: http://192.168.1.99:631/ 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/
https://howchoo.com/g/mwnlytk3zmm/how-to-add-a-power-button-to-your-raspberry-pi

Thanks