#!/bin/bash set -e install() { echo -n installing $@... apt-get -y install $@ >/dev/null && echo done } export DEBIAN_FRONTEND=noninteractive export TERM=xterm export HOME=/root echo -n setting up mirror for FRANCE... mv /etc/apt/sources.list /etc/apt/sources.list.dist cat > /etc/apt/sources.list </dev/null && echo done #STDERR debconf: delaying package configuration, since apt-utils is not installed install apt-utils 2>/dev/null install locales tzdata echo LANG=en_US.UTF-8 > /etc/default/locale echo en_US.UTF-8 UTF-8 > /etc/locale.gen locale-gen export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export LANGUAGE=en_US:en # TODO perl doesn't complain anymore on ubuntu -- find another way to check perl -e exit echo setting up time zone echo "Europe/Paris" > /etc/timezone #echo "Europe/Moscow" > /etc/timezone rm -f /etc/localtime ln -s ../usr/share/zoneinfo/Europe/Paris /etc/localtime #ln -s ../usr/share/zoneinfo/Europe/Moscow /etc/localtime dpkg-reconfigure tzdata echo -n full-upgrade... apt-get -y full-upgrade >/dev/null && echo done echo -n autoremove with purge... apt-get -y autoremove --purge >/dev/null && echo done [[ -n `dpkg -l | grep ^rc` ]] && echo DPKG LEFTOVER RC CLEAN-UP REQUIRED # apt-utils already installed above install \ apt-transport-https \ biff \ bzip2 \ colordiff \ curl \ dialog \ dma \ dnsutils \ dos2unix \ elvis-tiny \ git \ htop \ iftop \ ifupdown \ iputils-ping \ iotop \ ksh \ less \ lftp \ lsb-release \ lynx \ man-db \ manpages \ mlocate \ mtr \ net-tools \ netcat \ ngrep \ nmap \ procps \ pwgen \ software-properties-common \ sysstat \ telnet \ unzip \ uuid \ uuid-runtime \ wget \ whois \ xxd install dumb-init \ openssh-server openssh-client echo -n preparing rc.local ... # no exist cat > /etc/rc.local <> /etc/bash.bashrc <