#!/bin/bash # # https://help.ubuntu.ru/wiki/%D0%BF%D1%80%D0%BE%D0%BA%D1%81%D0%B8 #add to: /etc/environment echo "http_proxy=\"http://10.0.50.52:3128/\" " tee -a /etc/environment echo "https_proxy=\"https://10.0.50.52:3128/\" " tee -a /etc/environment echo "ftp_proxy=\"ftp://10.0.50.52:3128\" " tee -a /etc/environment # echo "socks_proxy=\"socks://10.0.50.52:3128/\" " tee -a /etc/environment echo "no_proxy=\"localhost,energypk.ru,energypk.loc,127.0.0.1,::1\" " tee -a /etc/environment # apt proxy old ubuntu # add to: /etc/apt/apt.conf.d/apt.conf # echo "Acquire::http::Proxy \"http://10.0.50.52:3128/\"; " tee -a /etc/apt/apt.conf.d/apt.conf # echo "Acquire::https::Proxy \"http://10.0.50.52:3128/\"; " tee -a /etc/apt/apt.conf.d/apt.conf # echo "Acquire::ftp::proxy \"http://10.0.50.52:3128/\"; " tee -a /etc/apt/apt.conf.d/apt.conf # echo "Acquire::socks::proxy \"http://10.0.50.52:3128/\"; " tee -a /etc/apt/apt.conf.d/apt.conf # echo "Acquire::::Proxy \"true\"; " tee -a /etc/apt/apt.conf.d/apt.conf cp ca.root.crt /usr/share/ca-certificates/mozilla/ca.root.crt dpkg-reconfigure ca-certificates