Add Vim for better development experience.
This commit is contained in:
parent
de2456c0c4
commit
f280cc02c4
@ -7,7 +7,7 @@ apt-get -y purge bsdmainutils dictionaries-common emacsen-common iamerican ibrit
|
|||||||
|
|
||||||
# Install useful packages
|
# Install useful packages
|
||||||
apt-get -y update
|
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
|
# Copy profile files
|
||||||
cp ${SOURCE_DIR}/basic/root/.bashrc /root/.bashrc
|
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
|
cp ${SOURCE_DIR}/basic/root/.ssh/authorized_keys /root/.ssh/authorized_keys
|
||||||
|
|
||||||
# Remove default user
|
# Remove default user
|
||||||
@ -58,7 +59,7 @@ update-grub
|
|||||||
#####
|
#####
|
||||||
|
|
||||||
# Install packages
|
# 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
|
# Configure LXC
|
||||||
cp ${SOURCE_DIR}/basic/etc/default/lxc-net /etc/default/lxc-net
|
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)"
|
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
|
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
|
# Modify default nginx site
|
||||||
mkdir /etc/nginx/apps-available /etc/nginx/apps-enabled
|
mkdir /etc/nginx/apps-available /etc/nginx/apps-enabled
|
||||||
mkdir /srv/portal
|
mkdir /srv/portal
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Remove git metadata
|
|
||||||
find / -name '.git*' -exec rm -rf {} \;
|
|
||||||
|
|
||||||
# Remove SSH settings
|
|
||||||
rm -rf /root/.ssh/
|
|
||||||
|
|
||||||
# Remove packages not necessary for release
|
# 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
|
apt-get -y --purge autoremove
|
||||||
|
|
||||||
# Clean package cache
|
# Clean package cache
|
||||||
apt-get -y clean
|
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
2
basic/root/.vimrc.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
runtime! defaults.vim
|
||||||
|
set mouse-=a
|
Loading…
Reference in New Issue
Block a user