59 lines
No EOL
977 B
Text
59 lines
No EOL
977 B
Text
Some commands:
|
|
|
|
```
|
|
lxc image alias list images:
|
|
lxc info <name>
|
|
lxc config edit <name>
|
|
lxc config sonw <name>
|
|
lxc exec <name> bash
|
|
lxc config set <name> limits.memory 512MB
|
|
lxc config set <name> limits.cpu 2
|
|
lxc config device set <name> root size 20GB
|
|
lxc launch images:debian/stretch/amd64 <name>
|
|
lxc list
|
|
lxc storage volume list <storagename>
|
|
# mode privileged
|
|
lxc launch ubuntu:16.04 test -c security.privileged=true -c security.nesting=true
|
|
```
|
|
|
|
Chemins :
|
|
|
|
Normal :
|
|
Snap :
|
|
|
|
Paquets à installer pour se sentir à l'aise sur une Debian ou Ubuntu
|
|
|
|
```
|
|
etckeeper vim iputils-ping
|
|
ufw
|
|
dnsutils
|
|
```
|
|
|
|
```
|
|
# systemctl disable getty@tty{1..4}
|
|
# reboot
|
|
```
|
|
|
|
- Activer ufw
|
|
- Activer journald
|
|
- Mettre le bon hostname
|
|
- Installer postfix
|
|
|
|
Paquets à installer pour se sentir à l'aise sur une Alpine
|
|
|
|
```
|
|
@edge http://dl-cdn.alpinelinux.org/alpine/edge/community
|
|
```
|
|
|
|
```
|
|
etckeeper@edge vim
|
|
|
|
```
|
|
|
|
```
|
|
sed -i 's/^tty/# tty/g' /etc/inittab
|
|
|
|
# clean messages
|
|
rm /var/log/messages
|
|
|
|
``` |