System tools for shell: Remove bluetooth packages and Disable Openvpn service.

This commit is contained in:
gardouille 2015-09-09 14:20:02 +02:00
parent c73385cfa5
commit 4a2a6c6ae6
3 changed files with 45 additions and 6 deletions

10
CHANGELOG.md Normal file
View File

@ -0,0 +1,10 @@
---------------------------------------
### 0.3.0
#### Remove
* Remove bluetooth packages (System tools for shell).
#### Changes
* Disable Openvpn service (System tools for shell).

View File

@ -1 +1,22 @@
* post_install_sid.sh: Script to complete the installation of Debian Sid on my laptop.
#### Table of Contents
1. [Post installation script for Debian Sid](#post_install_sid.sh)
* [ System tools for shell](#system-tools-for-shell)
## post_install_sid.sh
Script to complete the installation of Debian Sid on my laptop.
#### System tools for shell
##### Remove
* bluetooth packages (bluetooth, bluez)
##### Configuration
* Disable Openvpn service.
* Useful in case of many configuration files. A default vpn is launch by "post-up" instruction in '/etc/network/interfaces' file:
```
allow-hotplug enp0s25
iface enp0s25 inet dhcp
post-up openvpn /etc/openvpn/XYZ_tunnel.conf
```

View File

@ -3,7 +3,7 @@
##
## Nom: new_post_install.sh
##
## Version: 0.02.30
## Version: 0.3.0
##
## Licence: Creative Commons
##
@ -1060,17 +1060,19 @@ EOF
###########################################################
## Outils système (shell)
## System tools for shell
# Liste: backuppc - bsdmainutils - colordiff - cpio - ethtool - exuberant-ctags - iperf - genisoimage - knockd - lzip - moreutils - multitail - mr - ntfs-3g - openvpn - pmount - rsyslog - screen - sudo - tmux - unrar - unzip - urlview - vim-nox - vim-doc - vim-scripts - vlock - wakeonlan - zsh - zip
## Remove: bluetooth bluez
###########################################################
###### Pré-configuration
# Chargement d'un fichier preseed
preconfig backuppc
###### Installation
aptins "Outils système (shell)" backuppc bsdmainutils colordiff cpio ethtool iperf genisoimage knockd lzip moreutils multitail mr ntfs-3g openvpn pmount rsyslog screen sudo tmux unrar unzip urlview vim-nox vim-doc vim-scripts vlock wakeonlan zsh zip
aptins "System tools for shell" backuppc bsdmainutils colordiff cpio ethtool iperf genisoimage knockd lzip moreutils multitail mr ntfs-3g openvpn pmount rsyslog screen sudo tmux unrar unzip urlview vim-nox vim-doc vim-scripts vlock wakeonlan zsh zip
adduser ${UTILISATEUR} sudo
###### Remove
aptitude remove bluetooth bluez
###### Post-configuration
# sysklogd par défaut sur la console tty9
@ -1084,6 +1086,9 @@ update-alternatives --set editor /usr/bin/vim.nox
# Suppression de vim-tiny (la purge se fera à la fin du script)
aptitude remove vim-tiny
# Add default user to sudo group
adduser ${UTILISATEUR} sudo
## Changement du shell par défaut pour les utilisateurs
# Root
chsh -s /bin/zsh
@ -1096,10 +1101,13 @@ sed -i "s;/bin/bash;/bin/zsh;" /etc/adduser.conf
mkdir /home/"${UTILISATEUR}"/.zsh
chown "${UTILISATEUR}":"${UTILISATEUR}" /home/"${UTILISATEUR}"/.zsh
## Disable Openvpn to automatically start
systemctl disable openvpn.service
###### Information pour l'utilisateur final
cat >> "${INFORMATION}" << EOF
======Instructions Outils systèmes (shell)======
====== System tools for shell - Doc ======
Voici la liste des paquets installés :
+backuppc : Outils de sauvegarde/restauration (totale et incrémentielle) disposant en plus d'une interface web