Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Set proxy in bashrc
· 7b27d976
David Beniamine
authored
Dec 02, 2019
7b27d976
Install microsoft fonts
· d7323832
David Beniamine
authored
Dec 16, 2019
d7323832
Show whitespace changes
Inline
Side-by-side
fix_libreoffice.sh
View file @
d7323832
...
@@ -55,3 +55,8 @@ EOF
...
@@ -55,3 +55,8 @@ EOF
fi
fi
cd
/home
cd
/home
done
done
if
[
-z
"
$(
dpkg
-l
|
grep
ttf-mscorefonts-installer
)
"
]
then
DEBIAN_FRONTEND
=
'noninteractive'
apt-get
install
-y
ttf-mscorefonts-installer
fi
fix_proxy.sh
View file @
d7323832
...
@@ -2,7 +2,24 @@
...
@@ -2,7 +2,24 @@
file
=
"/etc/apt/apt.conf.d/70debconf"
file
=
"/etc/apt/apt.conf.d/70debconf"
sed
-i
'/Acquire::.*::Proxy/d'
$file
sed
-i
'/Acquire::.*::Proxy/d'
$file
export
https_proxy
=
"http://pedago:3142"
https_proxy
=
"http://pedago:3142"
echo
"Acquire::http::Proxy
\"
$https_proxy
\"
;"
>>
$file
echo
"Acquire::http::Proxy
\"
$https_proxy
\"
;"
>>
$file
echo
"Acquire::https::Proxy
\"
$https_proxy
\"
;"
>>
$file
echo
"Acquire::https::Proxy
\"
$https_proxy
\"
;"
>>
$file
https_proxy
=
"http://dnsproxy:3128"
for
PROXY
in
HTTP_PROXY HTTPS_PROXY FTP_PROXY http_proxy https_proxy ftp_proxy
do
echo
"export
$PROXY
=
$https_proxy
"
>>
/tmp/
$$
-bashrc
done
for
h
in
/home/
*
/root
;
do
if
[
-z
"
$(
grep
HTTP_PROXY
$h
/.bashrc
)
"
]
then
u
=
$(
basename
$h
)
cat
/tmp/
$$
-bashrc
$h
/.bashrc
>
$h
/.bashrc.new
mv
$h
/.bashrc.new
$h
/.bashrc
chown
$u
:
$u
$h
/.bashrc
fi
done
rm
/tmp/
$$
-bashrc