Commit f6674c0e authored by Vitaly Lipatov's avatar Vitaly Lipatov

update tune_new_system.sh

parent a14b8085
#!/bin/sh #!/bin/sh
echo -n "Checking for epm ... " #if grep -q ftp.altlinux.org /etc/apt/sources.list.d/alt.list ; then
if ! which epm ; then if [ ! -r /etc/apt/sources.list.d/etersoft.list ] ; then
cat /etc/apt/sources.list.d/alt.list | sed -e "s|http://ftp.altlinux.org/pub/distributions|http://download.etersoft.ru/pub|" > /etc/apt/sources.list.d/etersoft.list cat /etc/apt/sources.list.d/alt.list | sed -e "s|http://ftp.altlinux.org/pub/distributions|http://download.etersoft.ru/pub|" > /etc/apt/sources.list.d/etersoft.list
subst "s|^rpm|# rpm|" /etc/apt/sources.list.d/alt.list subst "s|^rpm|# rpm|" /etc/apt/sources.list.d/alt.list
fi
echo -n "Checking for epm ... "
if ! which epm ; then
apt-get update apt-get update
apt-get install eepm || exit apt-get install eepm || exit
echo OK echo OK
...@@ -11,7 +15,7 @@ fi ...@@ -11,7 +15,7 @@ fi
if [ ! -d /etc/.git ] ; then if [ ! -d /etc/.git ] ; then
cd /etc cd /etc
epmi etckeeper epmi etckeeper || exit
etckeeper init etckeeper init
etckeeper commit "initial commit" etckeeper commit "initial commit"
fi fi
...@@ -55,3 +59,16 @@ userdel user ...@@ -55,3 +59,16 @@ userdel user
subst "s|^#GSSAPIAuthentication no|GSSAPIAuthentication yes|" /etc/openssh/sshd_config subst "s|^#GSSAPIAuthentication no|GSSAPIAuthentication yes|" /etc/openssh/sshd_config
subst "s|^#GSSAPICleanupCredentials yes|GSSAPICleanupCredentials yes|" /etc/openssh/sshd_config subst "s|^#GSSAPICleanupCredentials yes|GSSAPICleanupCredentials yes|" /etc/openssh/sshd_config
# TODO: тонкости. seat?
serv lightdm off
serv dm on
# https://bugs.etersoft.ru/show_bug.cgi?id=12207
epmi chrony
serv chronyd on
subst "s|^\(pool pool.ntp.*\)|server ntp.etersoft.ru iburst\n#\1|" /etc/chrony.conf
# TODO: выключение NetworkManager для интерфейса
# DISABLED=yes
# NM_=no
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment