如何轻松设置Google Cloud Print打印机?

我有一台HP Photosmart B210打印机,它是一款能够通过WiFi打印的e-print打印机,我正在使用Google云打印来使用这台打印机,但是有一个问题,随附的软件只适用于Windows系统,所以为了打印任何东西,我使用我的Android设备。

将文件传输到我的手机,然后使用HP的应用程序或云打印应用程序将作业发送到打印机,这实际上并不难,但我觉得我做了比必要的步骤还多。

那么,有没有办法在Ubuntu上设置打印机,或者有没有第三方应用程序可以将作业导入/拖放到Google的服务中并打印它们呢?


可能听起来有点傻,但是为什么你不用谷歌浏览器的云打印功能呢? - dlin
我宁愿不这样做,因为并非每台电脑都有这个功能,而且我也不想登录所有那些电脑。 - Uri Herrera
2个回答

看起来有人在这里制作了一个CUPS/Google Cloud Print工具。 作者提供了一个PPA:
- 软件包:https://launchpad.net/~simon-cadman/+archive/cups-cloud-print - 源代码:https://github.com/simoncadman/CUPS-Cloud-Print 安装和配置它的方法如下:
sudo add-apt-repository ppa:simon-cadman/niftyrepo
sudo apt-get update
sudo apt-get install cupscloudprint
sudo /usr/share/cloudprint-cups/setupcloudprint.py

After it asks for Google Credentials (it will only ask if this is the first time you have used CUPS CloudPrint, or your credentials are invalid) it will then ask if you wish to add all printers from your Google Account.

To make it work with Google's 2 Step Verification system, you must create an "App password". To do this go to: the App passwords page in your Google account and set a new password for the service.

If you say ‘Y’ here, it will add all printers that are currently not added to your CUPS install.

If you would prefer to add the printers manually, say ‘N’ here, and add a printer manually:

Add a new printer ( via http://127.0.0.1:631 or usual interface ) as a ‘Google Cloud Print’ network printer. Select the ‘Make’ as Google, and ‘Model’ as Cloud Print.

/usr/lib/cloudprint-cups/listcloudprinters.py

这仅适用于将Google Cloud Print中的打印机添加到您的本地计算机。如果您想将现有的打印机添加到Google Cloud Print,请按照以下说明操作:


Ubuntu 18.04没有PPA。还有其他方法可以使用Google云打印吗?我的Google云打印机在Libreoffice打印对话窗口(以及其他具有自己打印工具的程序)中没有列出。使用默认的Ubuntu打印工具(Evience,Thunderbird,Firefox等)的程序可以使用Google云打印机,尽管它们没有在系统打印机设置中列出。 - ijonfryderyk
太棒了!非常感谢。顺便说一下,最后一行应该是“sudo /usr/share/cloudprint-cups/listcloudprinters.py”。 - Karim Sonbol

从Ubuntu的管理Shell中运行sudo apt-get install cloudprint python-requests
然后在命令行中运行cloudprint - 它会提示您输入Google用户名和密码,并将本地定义的打印机添加到您的Google账户中。
在我的情况下,我在Linux系统上设置并定义了以下柯达无线打印机: cloudprint
  • Google用户名:

  • 密码:

  • 已添加打印机KODAK-ESP-5200-Series-AiO

然后您可以从Google网站管理您的打印机。
在该页面上,这是我在Google账户上设置后列出的打印机:
  • 保存到Google Drive

  • KODAK-ESP-5200-Series-AiO (由我拥有)

  • 打印到FedEx Office