How to convert USB printer into Network printer?
|Problem statement : Many of us will be having a printer which has interface.
Because of these two reasons, network printer is preferred than USB interface.
Availability of High speed fiber/ADSL connections
(increasing) Number of phones at an house
Solution:
Simplest solution could be buying network printer. But then it is costly (and what to do with current USB enabled printer)
Other possible solution could be buying a print server from TPlink like companies (but again cost is high, and justifiable in case of small office , but not for home)
So I was looking for an easy solution and understood that Raspberry Pi can be used for making this task at 4 K INR (advantage is one can use the raspbberry pi for other uses as well) CUPS Common unix printing system
Solution steps:
1. Upgrade the OS
sudo apt-get update
sudo apt-get upgrade
2. Install CUPS
sudo apt-get install cups
3.Add admin rights to user pi
sudo usermod -a -G lpadmin pi
4.Enable free access with home hotspot connections
sudo cupsctl --remote-any
sudo /etc/init.d/cups restart
5. Adding printer to CUPS using SAMBA
sudo apt-get install samba
6. add the following lines to smb.conf
sudo nano /etc/samba/smb.conf
# CUPS printing.
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer
Drivers
path = /var/lib/samba/printers
browseable = yes
read only = no
guest ok = no
7. Check CUPS installation
it should be available on port 631 of pi
From administration, Add printer and install drivers
8. Now one can connect to this printer from mobile or PC and start using this printer.
hey the last step does not work in my case the page does not display any thing