@ -0,0 +1,97 @@ | |||||
#apt source | |||||
echo << 'EOF' > /etc/apt/sources.list.d/debian.list | |||||
deb http://freedom.dicea.unifi.it/debian/ wheezy main | |||||
deb http://security.debian.org/ wheezy/updates main | |||||
deb http://freedom.dicea.unifi.it/debian/ wheezy-updates main | |||||
#deb http://freedom.dicea.unifi.it/debian-backports/ wheezy-backports main | |||||
EOF | |||||
apt-get update | |||||
#date & time | |||||
apt-get install ntpdate -y -q | |||||
rm /etc/localtime | |||||
ln -s /usr/share/zoneinfo/Europe/Rome /etc/localtime | |||||
#log | |||||
apt-get install rsyslog -y -q | |||||
#email alias | |||||
if [ `grep -c "root: " /etc/aliases` -lt 1 ]; then | |||||
echo "root: roots@lilik.it" >> /etc/aliases | |||||
else | |||||
echo "alias for root alredy exists:" | |||||
grep "root: " /etc/aliases | |||||
fi | |||||
apt-get install exim4 -y -q | |||||
echo << 'EOF' > /etc/exim4/update-exim4.conf.conf | |||||
# /etc/exim4/update-exim4.conf.conf | |||||
# | |||||
# Edit this file and /etc/mailname by hand and execute update-exim4.conf | |||||
# yourself or use 'dpkg-reconfigure exim4-config' | |||||
# | |||||
# Please note that this is _not_ a dpkg-conffile and that automatic changes | |||||
# to this file might happen. The code handling this will honor your local | |||||
# changes, so this is usually fine, but will break local schemes that mess | |||||
# around with multiple versions of the file. | |||||
# | |||||
# update-exim4.conf uses this file to determine variable values to generate | |||||
# exim configuration macros for the configuration file. | |||||
# | |||||
# Most settings found in here do have corresponding questions in the | |||||
# Debconf configuration, but not all of them. | |||||
# | |||||
# This is a Debian specific file | |||||
dc_eximconfig_configtype='satellite' | |||||
dc_other_hostnames='alpha.lilik.it' | |||||
dc_local_interfaces='127.0.0.1 ; ::1' | |||||
dc_readhost='alpha.lilik.it' | |||||
dc_relay_domains='' | |||||
dc_minimaldns='false' | |||||
dc_relay_nets='' | |||||
dc_smarthost='mail.lilik.it' | |||||
CFILEMODE='644' | |||||
dc_use_split_config='true' | |||||
dc_hide_mailname='true' | |||||
dc_mailname_in_oh='true' | |||||
dc_localdelivery='mail_spool' | |||||
EOF | |||||
dpkg-reconfigure exim4-config | |||||
#apt | |||||
apt-get install cron-apt -y | |||||
#cp /usr/share/doc/cron-apt/examples/*-* /etc/cron-apt/action.d/ | |||||
sed -i 's/#[\t ]*dist-upgrade -y -o APT::Get::Show-Upgraded=true/dist-upgrade -y -o APT::Get::Show-Upgraded=true/g' /etc/locale.gen | |||||
echo << 'EOF' >/etc/cron-apt/config | |||||
# Configuration for cron-apt. For further information about the possible | |||||
# configuration settings see /usr/share/doc/cron-apt/README.gz. | |||||
# The email address to send mail to. | |||||
MAILTO="root" | |||||
# Value: error (send mail on error runs) | |||||
# upgrade (when packages is upgraded) | |||||
# changes (mail when change in output from an action) | |||||
# output (send mail when output is generated) | |||||
# always (always send mail) | |||||
# (else never send mail) | |||||
MAILON="upgrade" | |||||
EOF | |||||
#locales | |||||
sed -i 's/#[\t ]*it_IT.UTF-8 UTF-8/it_IT.UTF-8 UTF-8/g' /etc/locale.gen | |||||
locale-gen | |||||
@ -0,0 +1,97 @@ | |||||
#apt source | |||||
echo << 'EOF' > /etc/apt/sources.list.d/debian.list | |||||
deb http://freedom.dicea.unifi.it/debian/ wheezy main | |||||
deb http://security.debian.org/ wheezy/updates main | |||||
deb http://freedom.dicea.unifi.it/debian/ wheezy-updates main | |||||
#deb http://freedom.dicea.unifi.it/debian-backports/ wheezy-backports main | |||||
EOF | |||||
apt-get update | |||||
#date & time | |||||
apt-get install ntpdate -y -q | |||||
rm /etc/localtime | |||||
ln -s /usr/share/zoneinfo/Europe/Rome /etc/localtime | |||||
#log | |||||
apt-get install rsyslog -y -q | |||||
#email alias | |||||
if [ `grep -c "root: " /etc/aliases` -lt 1 ]; then | |||||
echo "root: roots@lilik.it" >> /etc/aliases | |||||
else | |||||
echo "alias for root alredy exists:" | |||||
grep "root: " /etc/aliases | |||||
fi | |||||
apt-get install exim4 -y -q | |||||
echo << 'EOF' > /etc/exim4/update-exim4.conf.conf | |||||
# /etc/exim4/update-exim4.conf.conf | |||||
# | |||||
# Edit this file and /etc/mailname by hand and execute update-exim4.conf | |||||
# yourself or use 'dpkg-reconfigure exim4-config' | |||||
# | |||||
# Please note that this is _not_ a dpkg-conffile and that automatic changes | |||||
# to this file might happen. The code handling this will honor your local | |||||
# changes, so this is usually fine, but will break local schemes that mess | |||||
# around with multiple versions of the file. | |||||
# | |||||
# update-exim4.conf uses this file to determine variable values to generate | |||||
# exim configuration macros for the configuration file. | |||||
# | |||||
# Most settings found in here do have corresponding questions in the | |||||
# Debconf configuration, but not all of them. | |||||
# | |||||
# This is a Debian specific file | |||||
dc_eximconfig_configtype='satellite' | |||||
dc_other_hostnames='alpha.lilik.it' | |||||
dc_local_interfaces='127.0.0.1 ; ::1' | |||||
dc_readhost='alpha.lilik.it' | |||||
dc_relay_domains='' | |||||
dc_minimaldns='false' | |||||
dc_relay_nets='' | |||||
dc_smarthost='mail.lilik.it' | |||||
CFILEMODE='644' | |||||
dc_use_split_config='true' | |||||
dc_hide_mailname='true' | |||||
dc_mailname_in_oh='true' | |||||
dc_localdelivery='mail_spool' | |||||
EOF | |||||
dpkg-reconfigure exim4-config | |||||
#apt | |||||
apt-get install cron-apt -y | |||||
#cp /usr/share/doc/cron-apt/examples/*-* /etc/cron-apt/action.d/ | |||||
sed -i 's/#[\t ]*dist-upgrade -y -o APT::Get::Show-Upgraded=true/dist-upgrade -y -o APT::Get::Show-Upgraded=true/g' /etc/locale.gen | |||||
echo << 'EOF' >/etc/cron-apt/config | |||||
# Configuration for cron-apt. For further information about the possible | |||||
# configuration settings see /usr/share/doc/cron-apt/README.gz. | |||||
# The email address to send mail to. | |||||
MAILTO="root" | |||||
# Value: error (send mail on error runs) | |||||
# upgrade (when packages is upgraded) | |||||
# changes (mail when change in output from an action) | |||||
# output (send mail when output is generated) | |||||
# always (always send mail) | |||||
# (else never send mail) | |||||
MAILON="upgrade" | |||||
EOF | |||||
#locales | |||||
sed -i 's/#[\t ]*it_IT.UTF-8 UTF-8/it_IT.UTF-8 UTF-8/g' /etc/locale.gen | |||||
locale-gen | |||||