4 231
modifications
Ligne 661 : | Ligne 661 : | ||
chmod 700 /root | chmod 700 /root | ||
dpkg-reconfigure tzdata | dpkg-reconfigure tzdata | ||
locale-gen fr_FR.UTF-8 fr_FR.ISO8859-1 | |||
</pre> | </pre> | ||
Ligne 703 : | Ligne 704 : | ||
update-rc.d -f mtab.sh remove | update-rc.d -f mtab.sh remove | ||
</pre> | </pre> | ||
Installez ssh : | |||
aptitude install openssh-server | |||
Générez automatiquement une nouvelle clé ssh au premier boot (sécurité) : | |||
<pre> | |||
rm -f /etc/ssh/ssh_host_* | |||
cat << EOF > /etc/init.d/ssh_gen_host_keys | |||
#!/bin/sh | |||
### BEGIN INIT INFO | |||
# Provides: Generates new ssh host keys on first boot | |||
# Required-Start: $remote_fs $syslog | |||
# Required-Stop: $remote_fs $syslog | |||
# Default-Start: 2 3 4 5 | |||
# Default-Stop: | |||
# Short-Description: Generates new ssh host keys on first boot | |||
# Description: Generates new ssh host keys on first boot | |||
### END INIT INFO | |||
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -t rsa -N '' | |||
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -t dsa -N '' | |||
insserv -r /etc/init.d/ssh_gen_host_keys | |||
rm -f \$0 | |||
EOF | |||
chmod a+x /etc/init.d/ssh_gen_host_keys | |||
insserv /etc/init.d/ssh_gen_host_keys | |||
</pre> | |||
Nettoyez votre liste de paquets : | |||
<pre>aptitude clean</pre> | |||
Quittez le VE : | |||
<pre>exit</pre> | |||
=Créer son template Archlinux 2010.05= | =Créer son template Archlinux 2010.05= |