Skip to content
Snippets Groups Projects
Commit 508d01d4 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Moved APT proxy config to correct file.

parent c22efcf7
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ def setup(interactive=True):
cmds = [
'apt-get clean',
'apt-get update',
'apt-get install --yes make ipython ipython3 vim netcat git htop iotop bmon host lm-sensors pciutils ntp nfs-client smartmontools pwgen ntpdate dialog',
'apt-get install --yes make ipython ipython3 vim netcat git htop iotop bmon host lm-sensors pciutils ntp nfs-client smartmontools pwgen ntpdate dialog curl',
'[ -f ~/.vimrc ] || echo "color ron" > ~/.vimrc',
]
utils.run_commands(cmds)
......
......@@ -30,7 +30,7 @@ fi
# DELL server - install dell openmanage
if ( ! dpkg -l | grep dmidecode )
then
aptitude install -y dmidecode
apt-get install -y dmidecode
fi
dmidecode > /tmp/dmidecode
......@@ -41,7 +41,7 @@ echo 'deb http://linux.dell.com/repo/community/ubuntu xenial openmanage' | sudo
gpg --keyserver pool.sks-keyservers.net --recv-key 1285491434D8786F
gpg -a --export 1285491434D8786F | sudo apt-key add -
aptitude update && aptitude install -y srvadmin-all
apt-get update && apt-get install -y srvadmin-all
update-rc.d dsm_om_connsvc defaults
echo "@reboot root /usr/sbin/service dsm_om_connsvc start" > /etc/cron.d/dell_openmanage
......
......@@ -18,8 +18,7 @@ fi
# update
apt-get update
apt-get install -y aptitude apt-transport-https
#apt-get dist-upgrade -y
apt-get install -y apt-transport-https
# modify sources.list to use ubicast cache
if ( ! test -z ${APT_CACHE_HOST} ); then
......@@ -34,9 +33,21 @@ if ( ! test -z ${SKYREACH_API_KEY} ); then
echo "Adding skyreach.list to APT sources."
wget -q "https://${SKYREACH_HOST}/media/public.gpg" -O- | sudo apt-key add -
echo "deb https://${SKYREACH_HOST} packaging/apt/${SKYREACH_API_KEY}/" > /etc/apt/sources.list.d/skyreach.list
apt-get update
fi
# APT proxy
if [ ${PROXY} = "1" ]; then
if [ ${PROXY_AUTHENTICATION} = "1" ]; then
# general settings
echo "Proxy: http://${PROXY_USER}:${PROXY_PWD}@${PROXY_HTTP}:${PROXY_PORT}" >> /etc/apt-cacher-ng/acng.conf
else
# general settings
echo "Proxy: http://${PROXY_HTTP}:${PROXY_PORT}" >> /etc/apt-cacher-ng/acng.conf
fi
fi
apt-get update
# unattended-upgrades
echo "Installing and configuring unattended-upgrades."
apt-get install -y unattended-upgrades
......
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial universe
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
......@@ -22,9 +22,9 @@ deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
......@@ -32,14 +32,7 @@ deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
......@@ -48,9 +41,9 @@ deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu xenial main
# deb-src http://extras.ubuntu.com/ubuntu xenial main
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
......@@ -16,17 +16,6 @@ if ( ! rgrep 'AdminAuth: admin:' /etc/apt-cacher-ng/security.conf >/dev/null );
service apt-cacher-ng restart
fi
# proxy
if [ ${PROXY} = "1" ]; then
if [ ${PROXY_AUTHENTICATION} = "1" ]; then
# general settings
echo "Proxy: http://${PROXY_USER}:${PROXY_PWD}@${PROXY_HTTP}:${PROXY_PORT}" >> /etc/apt-cacher-ng/acng.conf
else
# general settings
echo "Proxy: http://${PROXY_HTTP}:${PROXY_PORT}" >> /etc/apt-cacher-ng/acng.conf
fi
fi
# iptables rules for port 3142
DEBIAN_FRONTEND=noninteractive apt-get install -y iptables-persistent
iptables -A INPUT -p tcp -s localhost --destination-port 3142 -j ACCEPT
......
#!/bin/bash
source /root/envsetup/conf.sh
DEBIAN_FRONTEND=noninteractive aptitude install -y ferm
DEBIAN_FRONTEND=noninteractive apt-get install -y ferm
cp ferm.conf /etc/ferm/ferm.conf
service ferm restart
#!/bin/bash
source /root/envsetup/conf.sh
aptitude install -y dialog
apt-get install -y dialog
cd /root
git clone https://git.ubicast.net/mediaserver/burp-custom.git &&
mv burp-custom/* /root/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment