Add Vim for better development experience.

This commit is contained in:
Disassembler 2017-08-31 21:54:13 +02:00
parent de2456c0c4
commit f280cc02c4
3 changed files with 12 additions and 13 deletions

View File

@ -7,7 +7,7 @@ apt-get -y purge bsdmainutils dictionaries-common emacsen-common iamerican ibrit
# Install useful packages
apt-get -y update
apt-get -y --no-install-recommends install bash-completion ca-certificates git ntp openssl sudo unzip
apt-get -y --no-install-recommends install bash-completion ca-certificates git ntp openssl sudo unzip vim
######
@ -19,6 +19,7 @@ apt-get -y --no-install-recommends install openssh-server
# Copy profile files
cp ${SOURCE_DIR}/basic/root/.bashrc /root/.bashrc
cp ${SOURCE_DIR}/basic/root/.vimrc /root/.vimrc
cp ${SOURCE_DIR}/basic/root/.ssh/authorized_keys /root/.ssh/authorized_keys
# Remove default user
@ -58,7 +59,7 @@ update-grub
#####
# Install packages
apt-get --no-install-recommends install lxc debootstrap rsync dnsmasq-base xz-utils
apt-get -y --no-install-recommends install lxc debootstrap rsync dnsmasq-base xz-utils
# Configure LXC
cp ${SOURCE_DIR}/basic/etc/default/lxc-net /etc/default/lxc-net
@ -79,10 +80,6 @@ apt-get -y --no-install-recommends install nginx-light uwsgi uwsgi-plugin-python
openssl req -x509 -new -out /etc/ssl/certs/services.pem -keyout /etc/ssl/private/services.key -nodes -days 3654 -subj "/C=CZ/CN=$(hostname -f)"
chmod 640 /etc/ssl/private/services.key
# Create Diffie-Hellman param
openssl dhparam -out /etc/ssl/dhparam.pem 2048
chmod 640 /etc/ssl/dhparam.pem
# Modify default nginx site
mkdir /etc/nginx/apps-available /etc/nginx/apps-enabled
mkdir /srv/portal

View File

@ -1,14 +1,14 @@
#!/bin/bash
# Remove git metadata
find / -name '.git*' -exec rm -rf {} \;
# Remove SSH settings
rm -rf /root/.ssh/
# Remove packages not necessary for release
apt-get -y purge git openssh-server
apt-get -y purge git openssh-server vim
apt-get -y --purge autoremove
# Clean package cache
apt-get -y clean
# Remove user settings
rm -rf /root/* /root/.*
# Remove git metadata
find / -name '.git*' -exec rm -rf {} \;

2
basic/root/.vimrc.txt Normal file
View File

@ -0,0 +1,2 @@
runtime! defaults.vim
set mouse-=a