X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=postinst-setup;h=44ab3500e241fe068282eaeb3365176775c70b1d;hp=191bcf707b54c9c777d5961b49338f454dac1d35;hb=343e156dfb61ceefd01f9d2245d0421fa0622c2e;hpb=31d93a08cbf894bc37eed23e99c2ed03ad213ac2 diff --git a/postinst-setup b/postinst-setup index 191bcf7..44ab350 100755 --- a/postinst-setup +++ b/postinst-setup @@ -1,13 +1,7 @@ #!/bin/sh -e -# move backup to /var -if [ -d /home/martin/backup ] && [ ! -d /var/backups/martin ]; then - cp -a /home/martin/backup /var/backups/martin - rm -rf /home/martin/backup -fi - # need bzr and postfix for the setup below -DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends postfix openssh-server bzr python-paramiko +DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends postfix openssh-server bzr python-paramiko apt-cacher-ng eatmydata # root's ssh stuff if [ ! -d /root/.ssh ] && [ -d /home/martin/.ssh ]; then @@ -28,29 +22,24 @@ if [ ! -d /etc/.bzr ]; then chmod 700 /etc/ssl/private chmod 640 /etc/ssl/private/ssl-cert-* chown root:ssl-cert /etc/ssl/private/ssl-cert* + echo "none /tmp tmpfs defaults 0 0" >> /etc/fstab fi # update postfix for new configuration newaliases /etc/init.d/postfix restart -# other setup -dpkg -i /home/martin/download/libdvdcss2_*amd64.deb || true -locale-gen ru_RU ru_RU.UTF-8 - # remove packages that we do not need killall apt-get || true # cronjob goo -apt-get purge -y --auto-remove hplip hplip-data printer-driver-hpijs printer-driver-hpcups brltty bluez-cups gnome-accessibility-themes gnome-orca onboard thunderbird || true - -#rm -f /etc/rcS.d/*pcmcia* /etc/rcS.d/*ppp* +apt-get install -y linux-signed-image-generic +apt-get purge -y --auto-remove hplip hplip-data printer-driver-hpcups brltty bluez-cups gnome-accessibility-themes gnome-orca onboard thunderbird deja-dup gnome-screensaver linux-headers-generic linux-generic || true # install packages from network sources killall apt-get || true apt-get update -DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y --force-yes vim patchutils offlineimap diffstat gtimelog libtool devhelp python3-doc manpages-dev weechat weechat-plugins weechat-scripts dpatch wdiff ccache listadmin quilt mutt editmoin lintian fakechroot ubuntu-dev-tools dput easytag rsnapshot texlive-lang-german texlive-latex-extra powertop qemu-kvm bzr-buildpackage git-core build-essential fakeroot devscripts libglib2.0-doc libgtk-3-doc git-buildpackage d-feet debootstrap wmctrl mumble libnotify-bin svn-buildpackage pastebinit lptools openvpn pdfjam sbuild schroot - -apt-get -y --no-install-recommends build-dep postgresql-9.1 apport calibre gvfs udisks2 upower gnome-disk-utility udev pygobject +DEBIAN_FRONTEND=noninteractive eatmydata apt-get install --no-install-recommends -y --force-yes vim patchutils offlineimap diffstat gtimelog devhelp python3-doc manpages-dev weechat weechat-plugins weechat-scripts python-notify2 listadmin quilt mutt editmoin lintian ubuntu-dev-tools dput easytag texlive-lang-german texlive-latex-extra powertop qemu-kvm qemu-utils bzr-buildpackage git build-essential fakeroot devscripts libglib2.0-doc git-buildpackage d-feet libnotify-bin pastebinit lptools openvpn pdfjam sbuild schroot exiv2 gstreamer1.0-plugins-ugly gstreamer1.0-libav valgrind calibre autopkgtest +eatmydata apt-get install -y lxc lxd pandoc lmodern texlive-fonts-recommended pep8 pyflakes pssh network-manager-openvpn-gnome i3-wm i3status # have schroot use tmpfs rmdir /var/lib/schroot/unpack /var/lib/schroot/union/overlay/ @@ -61,8 +50,9 @@ ln -s /tmp /var/lib/schroot/union/overlay echo "Setting up users" adduser martin sbuild if ! getent passwd joe > /dev/null; then - adduser --gecos "Joe" joe + adduser --gecos "Joe" --encrypt-home joe adduser joe audio + adduser joe video fi # crontabs