Printers
We can setup a network printer with an ethernet port to our lab and be able to print from every client PC. Printers without cable connection are not recommended.
Printer Network Configuration
Our network printer has 2 possible ip configurations, auto get ip from dhcp or static ip
If it is already set up with a static ip, we need to change it to auto get ip from dhcp. It probably has an LCD screen with configuration, so we set ip to auto from its LCD screen.
-
We go to menu Services/ Basic Services / Dhcp Server / Configure / Static IPs / Add.
On automatic scanning it shows up all the dynamic IPs of the PCs and devices connected to our network, with a description to help us locate the printer. We can verify the dynamic ip from our printer LCD screen settings or by opening a browser on another client PC typing the ip on the browser address. We continue and select it and press OK.
On next dialog Enter ip and host name of device we type
IP Address : 192.168.10.10
Hostname : myprinter (whatever name we want)
MAC Address : (leave as is)
We shutdown and restart the printer to get the new ip. With have configured our printer to always get the same ip 192.168.10.10 from dhcp server.
If we want to setup a 2nd printer we follow the same steps as above and can set ip as 192.168.10.11
Usb printer configuration
We connect the device to a back usb port of type usb2 (not usb3) on the Server PC
-
We login with a user with administrator permissions and we shutdown Windows virtual machine. On Proxmox on the left pane the virtual machine icon should be greyed.
We click on the virtual machine to select it. On the central pane we click on Hardware, then on Add button and we select Usb Device
We select Use USB Vendor/Device ID, click on Choose Device and select from the list, based on the manufacturer, the right usb device we have connected..
The usb id will be shown. We click on Add
We start Windows virtual machine. Usb connection has now passed through from the baremetal device to the Windows virtual machine. We can proceed to next actions like installing drivers etc.
Printer installation on Windows
Our network printer can be installed on windows virtual machine, so that we can print from any PC booting from network.
-
We install the network printer on the windows virtual machine downloading
its installation software from the internet (see
Install Windows software)
Printer Installation on Linux
Our network printer can be installed through cups on server on address http://lserver:631 with the root user of lserver vm and password. It must be set as shared. Client PCs running Linux will automatically see the printer. Any connected users might need only to logout and reconnect.
User rights
After initial installation, all users have the ability to print. If we want to give permissions to print only to teachers or individual users, we do the following:
-
We go to Control Panel / Hardware / Printers. We click on the printer and select Manage
We right click on the printer and select Properties . and go to Security
To remove permission for everyone to print we select Everyone group and click on Remove.
To give permissions only on teachers
We click on Add
If we don't want to show all users, we click on Object types, select only Groups and press OK.
On field Locations we leave our domain e.g. SCH.LOCAL
We click on Advanced and then Find now
We select the group teachers, click OK and again OK.
It should show group SCH.LOCAL\teachers on the list with Group names or users with permission to print.
We click on Apply and ΟΚ and leave from Security tab.
We have setup ability to print on a specific Windows installation, where client PCs that boot from network connect. To give permissions to Linux or another Windows installation e.g. a local installation, we need to configure separately