1. view shared printer name: use windows to view Network Printer properties. Control Panel-printer and fax-to see if there is any printer shared in windows Network you want to add. My name is maid. If not, add a network printer, if yes, right-click on it and choose properties. The second share property tab has its share name: maid. (Or directly go to the Shared Server and check what it is called. I just don't know if I can only know the ip address of the printer server in Linux.
1. view shared printer name: use windows to view Network Printer properties. Control Panel-printer and fax-see if there is any printer shared in windows Network you want to add. My name is hp laserjet p2015. If not, add a network printer, if yes, right-click on it and choose properties. The second share property tab has its share name: maid. (Or directly go to the Shared Server and check what it is called. I just don't know if there is any way to query the printer name if I only know the ip address of the printer server in Linux .)
2. install samba. It seems that I have installed samba directly. If not, run sudo apt-get install samba on the Ubuntu terminal.
3. Add a printer: System-system management-print, click a new printer-in the pop-up window, select windows printer via samba, and enter the IP address and printer name below, enter the user name and password. Note that the printer is case sensitive.
4. Install the driver: select the corresponding Printer Driver from the corresponding manufacturer. my options are hp p2015. Naturally, HP and laserjet P2015. At this time, there are two drivers. The first one is recommended. As a result, I cannot use the driver above, so I changed it to the second one. My recommendation seems to have been installed, and the next step is OK.