8 # Post-installation reduction. (Answer "no" to GRUB question.)
9 dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > list_white_unsorted
10 echo 'ifupdown' >> list_white_unsorted
11 echo 'isc-dhcp-client' >> list_white_unsorted
12 sort list_white_unsorted > list_white
13 dpkg-query -Wf '${Package}\n' > list_all_packages
14 sort list_all_packages > foo
15 mv foo list_all_packages
16 comm -3 list_all_packages list_white > list_black
17 apt-mark auto `cat list_black`
18 echo 'APT::AutoRemove::RecommendsImportant "false";' > /etc/apt/apt.conf.d/99mindeps
19 echo 'APT::AutoRemove::SuggestsImportant "false";' >> /etc/apt/apt.conf.d/99mindeps
20 DEBIAN_FRONTEND=noninteractive apt-get -y --purge autoremove
21 rm list_all_packages list_white_unsorted list_white list_black
22 echo 'APT::Install-Recommends "false";' >> /etc/apt/apt.conf.d/99mindeps
23 echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/99mindeps
26 apt-get -y install man-db manpages less
29 apt-get -y install locales
30 echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
33 # Clone git repository.
34 apt-get -y install ca-certificates
35 apt-get -y install git
36 git clone http://github.com/plomlompom/config
39 # Add user. Remove old user's config/ if it exists.
40 useradd -m -s /bin/bash plom
41 rm -rf /home/plom/config
42 su - plom -c 'git clone http://github.com/plomlompom/config /home/plom/config'
43 su plom -c '/home/plom/config/symlink.sh'
46 apt-get -y install vim
48 su plom -c 'mkdir -p /home/plom/.vimbackups/'
50 # Set up openssh-server.
51 apt-get -y install openssh-server
54 rm jessie_start_server.sh
56 # Set password for user.