win32printer
A tool to print via the commandline on windows.
Add environment variables on Windows for C:\Python27, C:\Python27\Scripts
Install libs
pip install pypiwin32
pip install Pillow
C:\Python27\python.exe C:\path\to\win32print\print.py -i "C:\path\to\picture.jpg"
This tool was intended to use a printer that does not have drivers for linux.
We installed a VirtualBox on linux, and then run print commands with winexe.
Install winexe
sudo apt-get install winexe
Authorize remote desktop on windows.
And then you can run
winexe -U HOME/admin%password //192.168.1.xx 'C:\Python27\python.exe C:\path\to\win32print\print.py -i "C:\path\to\picture.jpg"'
If you see authorization error, try
turn off UAC remote restrictions
if it still does not work, try
if it still does not work, try to disable firewalls, and make the network private instead of public.