0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ubuntu 20.04 on WSLにおける認証Proxy設定

Posted at

Ubuntu 20.04 on WSLにおける認証Proxy設定

社内の認証proxyのせいで一筋縄でいかなかったので、proxyメモ

  • 通常のproxy設定
proxy_id=name@domain→name%40domain
proxy_pass=password
https_proxy="http://${proxy_id}p:${proxy_pass}1@proxy.domain.com:port_number/"
http_proxy="${https_proxy}"
ftp_proxy="${https_proxy}"
  • apt-get向けのproxy設定

以下のファイルを作成

$> sudo vi /etc/apt/apt.conf.d/30proxy

中身は以下の通り

Acquire::http { Proxy "http://name@domain:password@proxy.domain.com:port_number/"; };
Acquire::https { Proxy "http://name@domain:password@proxy.domain.com:port_number/"; };

これで、wgetもapt-getも動作するようになった。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?