From: Till Kamppeter <till.kamppeter@gmail.com>
To: yuji.saito@avasys.jp
Cc: printing-architecture@lists.linux-foundation.org,
printing-japan@lists.linux-foundation.org,
martin.pitt@ubuntu.com
Subject: Re: [Printing-architecture] Ubuntu Natty the first distribution which does automatic download of binary printer driver packages
Date: Tue, 25 Jan 2011 00:00:23 +0100 [thread overview]
Message-ID: <4D3E0487.40500@gmail.com> (raw)
In-Reply-To: <F30723B8678F584CB6A4269E911255CB04E6F468@m1a.epkowa.co.jp>
I have talked with Martin Pitt about the problem of missing Proxy
support in system-config-printer and Jockey. He will look into this.
Till
On 01/21/2011 03:36 AM, yuji.saito@avasys.jp wrote:
> Hello, Till, Martin.
>
> On Fri, 2011-01-07 at 01:20 +0100, Till Kamppeter wrote:
>> Hi,
>>
>> Ubuntu Natty (11.04, to be released end of April) will be the first
>> Linux distribution which automatically downloads binary printer driver
>> packages from manufacturers via OpenPrinting.
>
> Thank you for achieving automatic download.
>
> I checked in my home, and it works perfectly. I could read driver's
> license, and I could select one from 2 drivers for 1 printer.
>
> But I tried it in my company, it had a problem and didn't work. It was
> because of proxy. Result of my quick analysis, it could work if the
> following 3 points are changed.
>
> 1. In system-config-printer (package:
> python-cupshelpers_1.2.3+20100723-0ubuntu13)
> system-config-printer accesses to OpenPrinting.org. But it did't
> read "http_proxy". I tried like below, and it could work.
>
> (Caution! It is just example. I think proxy information should be
> acquired from "http_proxy" environment variable.)
> ========================================================================
> --- /usr/share/pyshared/cupshelpers/openprinting.py.ORG 2011-01-04
> 23:39:02.000000000 +0900
> +++ /usr/share/pyshared/cupshelpers/openprinting.py 2011-01-20
> 09:58:58.000000000 +0900
> @@ -59,8 +59,9 @@
> # Send request
> result = None
> status = 1
> + myproxies = {'http': 'http://proxy.example.com:port'}
> try:
> - conn = urllib.urlopen(self.url);
> + conn = urllib.urlopen(self.url, proxies=myproxies);
> status = conn.getcode();
> if (status == 200):
> result = conn.read()
> ========================================================================
>
> 2. In jockey (package: jockey-common_0.8-0ubuntu3)
> Jockey seems to acquire the public key from driver's fingerprint.
> But gpg command in jockey didn't read "http_proxy".
> I tried like below, and it could work.
>
> (Caution! It is just example. I think proxy information should be
> acquired from "http_proxy" environment variable.)
> ========================================================================
> --- /usr/share/pyshared/jockey/oslib.py.ORG 2011-01-20 03:57:54.000000000
> +0900
> +++ /usr/share/pyshared/jockey/oslib.py 2011-01-20 13:32:36.000000000 +0900
> @@ -436,7 +436,9 @@
> # the fingerprint
> gpg = subprocess.Popen(['gpg', '--homedir', gpghome,
> '--no-default-keyring', '--primary-keyring',
> default_keyring,
> - '--keyserver', self.gpg_key_server, '--recv-key', keyid],
> + '--keyserver', self.gpg_key_server,
> + '--keyserver-options', 'http-proxy=http://proxy.example.com:
> port',
> + '--recv-key', keyid],
> stdout=subprocess.PIPE, stderr=subprocess.PIPE,
> env={'PATH': os.environ.get('PATH', '')})
> (out, err) = gpg.communicate()
> ========================================================================
> And, in addition, I think it might be better that gpg uses http access
> to port 80 instead of hkp access by default, considering the users in
> the enterprise or the organization.
>
> 3. In apt-get
> [System]-[Preferences]-[Network Proxy] (gnome-network-properties)
> doesn't set proxy for apt, so jockey can't download the driver. Ubuntu
> 10.10 or older, gnome-network-properties could set proxy for apt.
> I created file like below, and jockey could download the driver.
> ========================================================================
> # cat<<EOF> /etc/apt/apt.conf
> Acquire::http::Proxy "http://proxy.example.com:port";
> EOF
> ========================================================================
>
> Best regards.
>
> Saito
>
next prev parent reply other threads:[~2011-01-24 23:00 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <F30723B8678F584CB6A4269E911255CB03396379@m1a.epkowa.co.jp>
[not found] ` <4B8241D4.2040207@gmail.com>
[not found] ` <F30723B8678F584CB6A4269E911255CB034CE4DE@m1a.epkowa.co.jp>
[not found] ` <4B8E4CEF.8040007@gmail.com>
[not found] ` <F30723B8678F584CB6A4269E911255CB035D7CF6@m1a.epkowa.co.jp>
[not found] ` <4BBBA6A9.5050005@gmail.com>
[not found] ` <F30723B8678F584CB6A4269E911255CB0392318F@m1a.epkowa.co.jp>
[not found] ` <4BD18655.8060000@gmail.com>
[not found] ` <F30723B8678F584CB6A4269E911255CB03BF5E5C@m1a.epkowa.co.jp>
[not found] ` <4C091F92.7050102@gmail.com>
[not found] ` <4C1284F4.3000707@gmail.com>
[not found] ` <4C89CF0C.60003@avasys.jp>
2010-11-18 16:55 ` [Printing-architecture] Updates for auto-downloadable printer packages Till Kamppeter
2010-12-03 6:16 ` yuji.saito
2010-12-06 16:54 ` Till Kamppeter
2011-01-07 0:13 ` [Printing-architecture] Ubuntu Natty the first distribution which does automatic download of binary printer driver packages Till Kamppeter
2011-01-07 0:20 ` Till Kamppeter
2011-01-21 2:36 ` yuji.saito
2011-01-24 23:00 ` Till Kamppeter [this message]
[not found] ` <20110131104358.GC4406@piware.de>
2011-02-24 9:38 ` Till Kamppeter
2011-02-25 7:00 ` yuji.saito
2011-02-25 12:40 ` Till Kamppeter
2011-02-25 21:26 ` Tim Waugh
2011-02-25 21:31 ` Till Kamppeter
2011-02-25 21:37 ` Till Kamppeter
2011-03-01 21:06 ` Till Kamppeter
2011-03-01 22:03 ` Till Kamppeter
2011-03-04 9:29 ` Olaf Meeuwissen
2011-03-04 16:50 ` Till Kamppeter
[not found] ` <20110304172254.GF30872@piware.de>
2011-03-07 1:32 ` Olaf Meeuwissen
2011-03-11 3:03 ` [Printing-architecture] [Printing-japan] " Olaf Meeuwissen
2011-03-11 16:15 ` Till Kamppeter
2011-03-11 16:59 ` Tim Waugh
2011-03-11 17:45 ` Till Kamppeter
2011-03-12 16:21 ` Till Kamppeter
2011-03-12 17:36 ` Till Kamppeter
2011-03-14 11:13 ` Tim Waugh
2011-03-14 9:39 ` Olaf Meeuwissen
2011-03-14 20:47 ` Till Kamppeter
[not found] ` <20110311080832.GB2541@piware.de>
2011-03-11 15:50 ` Till Kamppeter
2011-03-14 9:29 ` Olaf Meeuwissen
2011-03-08 15:55 ` [Printing-architecture] " Tim Waugh
2011-02-25 13:03 ` Till Kamppeter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D3E0487.40500@gmail.com \
--to=till.kamppeter@gmail.com \
--cc=martin.pitt@ubuntu.com \
--cc=printing-architecture@lists.linux-foundation.org \
--cc=printing-japan@lists.linux-foundation.org \
--cc=yuji.saito@avasys.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.