71 lines
1.0 KiB
Markdown
71 lines
1.0 KiB
Markdown
|
# Tentative de dockeriser tout mon serveur kimsufi (et de prendre des notes)
|
||
|
|
||
|
## Commande et mise en place
|
||
|
|
||
|
### Commande
|
||
|
|
||
|
ok
|
||
|
|
||
|
### Mise en place
|
||
|
|
||
|
Systeme exploitation:
|
||
|
|
||
|
Debian stable (Jessie)
|
||
|
|
||
|
Partitionnement:
|
||
|
|
||
|
- 5G /
|
||
|
- 512MB swap
|
||
|
|
||
|
Option:
|
||
|
|
||
|
- hostname: Embrevade
|
||
|
|
||
|
- utilisateur: lafrite - root
|
||
|
|
||
|
## Premières actions
|
||
|
|
||
|
Changer le mot de passe pour root.
|
||
|
|
||
|
### Ajouter un utilisateur
|
||
|
|
||
|
Sur le serveur
|
||
|
|
||
|
adduser lafrite
|
||
|
|
||
|
### Sécuriser ssh
|
||
|
|
||
|
Envoie le notre clé public
|
||
|
|
||
|
ssh-copy-id ...
|
||
|
|
||
|
Édition de */etc/ssh/sshd_config* (penser à garder une console connectée au cas où...!)
|
||
|
|
||
|
PermitRootLogin no
|
||
|
PasswordAuthentication no
|
||
|
ChallengeResponseAuthentication no
|
||
|
|
||
|
Puis on relance le service
|
||
|
|
||
|
systemclt reload sshd
|
||
|
|
||
|
## Moins important
|
||
|
|
||
|
### zsh
|
||
|
|
||
|
Installation de zsh
|
||
|
|
||
|
apt-get install zsh
|
||
|
|
||
|
Configuration sympa et rapide
|
||
|
|
||
|
cp /etc/zsh/zshrc /etc/zsh/zshrc.back
|
||
|
|
||
|
Téléchagement de la config grml
|
||
|
|
||
|
wget -O /etc/zsh/zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
|
||
|
|
||
|
Shell par defaut
|
||
|
|
||
|
chsh -s $(which zsh)
|