System tools for shell: Remove bluetooth packages and Disable Openvpn service.
This commit is contained in:
parent
c73385cfa5
commit
4a2a6c6ae6
10
CHANGELOG.md
Normal file
10
CHANGELOG.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
---------------------------------------
|
||||||
|
|
||||||
|
### 0.3.0
|
||||||
|
|
||||||
|
#### Remove
|
||||||
|
* Remove bluetooth packages (System tools for shell).
|
||||||
|
|
||||||
|
#### Changes
|
||||||
|
* Disable Openvpn service (System tools for shell).
|
23
README.md
23
README.md
@ -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
|
||||||
|
```
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
##
|
##
|
||||||
## Nom: new_post_install.sh
|
## Nom: new_post_install.sh
|
||||||
##
|
##
|
||||||
## Version: 0.02.30
|
## Version: 0.3.0
|
||||||
##
|
##
|
||||||
## Licence: Creative Commons
|
## 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
|
# 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
|
###### Pré-configuration
|
||||||
# Chargement d'un fichier preseed
|
# Chargement d'un fichier preseed
|
||||||
preconfig backuppc
|
preconfig backuppc
|
||||||
|
|
||||||
###### Installation
|
###### 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
|
###### Post-configuration
|
||||||
# sysklogd par défaut sur la console tty9
|
# 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)
|
# Suppression de vim-tiny (la purge se fera à la fin du script)
|
||||||
aptitude remove vim-tiny
|
aptitude remove vim-tiny
|
||||||
|
|
||||||
|
# Add default user to sudo group
|
||||||
|
adduser ${UTILISATEUR} sudo
|
||||||
|
|
||||||
## Changement du shell par défaut pour les utilisateurs
|
## Changement du shell par défaut pour les utilisateurs
|
||||||
# Root
|
# Root
|
||||||
chsh -s /bin/zsh
|
chsh -s /bin/zsh
|
||||||
@ -1096,10 +1101,13 @@ sed -i "s;/bin/bash;/bin/zsh;" /etc/adduser.conf
|
|||||||
mkdir /home/"${UTILISATEUR}"/.zsh
|
mkdir /home/"${UTILISATEUR}"/.zsh
|
||||||
chown "${UTILISATEUR}":"${UTILISATEUR}" /home/"${UTILISATEUR}"/.zsh
|
chown "${UTILISATEUR}":"${UTILISATEUR}" /home/"${UTILISATEUR}"/.zsh
|
||||||
|
|
||||||
|
## Disable Openvpn to automatically start
|
||||||
|
systemctl disable openvpn.service
|
||||||
|
|
||||||
###### Information pour l'utilisateur final
|
###### Information pour l'utilisateur final
|
||||||
cat >> "${INFORMATION}" << EOF
|
cat >> "${INFORMATION}" << EOF
|
||||||
|
|
||||||
======Instructions Outils systèmes (shell)======
|
====== System tools for shell - Doc ======
|
||||||
Voici la liste des paquets installés :
|
Voici la liste des paquets installés :
|
||||||
|
|
||||||
+backuppc : Outils de sauvegarde/restauration (totale et incrémentielle) disposant en plus d'une interface web
|
+backuppc : Outils de sauvegarde/restauration (totale et incrémentielle) disposant en plus d'une interface web
|
||||||
|
Loading…
Reference in New Issue
Block a user