https://github.com/kevin-doolaeghe/crostini
Crostini - Containers and VM support on Chrome OS
https://github.com/kevin-doolaeghe/crostini
crostini documentation
Last synced: 5 months ago
JSON representation
Crostini - Containers and VM support on Chrome OS
- Host: GitHub
- URL: https://github.com/kevin-doolaeghe/crostini
- Owner: kevin-doolaeghe
- Created: 2021-10-30T11:05:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-06T22:58:21.000Z (over 4 years ago)
- Last Synced: 2025-05-31T11:38:00.491Z (about 1 year ago)
- Topics: crostini, documentation
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Crostini - Containers and VM support on Chrome OS
## Auteur
### Kevin Doolaeghe
## Sources
* [Reddit - Instructions for Kali Linux on Crostini](https://www.reddit.com/r/Crostini/comments/fj8ddg/instructions_for_kali_linux_on_crostini/)
* [Installer un dual boot de Kali avec Chrome OS](https://chromeready.com/4714/install-kali-linux-chromebook/)
* [Kali Linux - Tutoriels](https://www.kali-linux.fr/tutoriels)
* [Chromium - Running Custom Containers Under Chrome OS](https://chromium.googlesource.com/chromiumos/docs/+/master/containers_and_vms.md)
* [Crouton - Chrooter un système Linux](https://github.com/dnschneid/crouton)
* [Crouton - Exemple d'installation d'une distribution Xenial](https://itsfoss.com/install-linux-chromebook/)
## Accès au terminal `crosh`
Sur Google Chrome, le raccourci `Ctrl`+`Alt`+`T` permet d'ouvrir un nouvel onglet donnant accès à un shell `crosh`.
## Commande `vmc`
* Afficher les VM :
```
vmc list
```
La VM existante se nomme `termina`.
* Démarrer `termina` :
```
vmc start termina
```
La commande `exit` permet de revenir sur le shell `crosh`.
* Arrêter `termina` :
```
vmc stop termina
```
* Détruire `termina` :
```
vmc destroy termina
```
* Créer un conteneur `kali` dans `termina` :
```
vmc container termina kali https://us.images.linuxcontainers.org kali
```
Les images Linux utilisables pour les conteneurs de `termina` sont disponibles [ici](https://us.images.linuxcontainers.org).
## Commande `lxc`
* Ouvrir un Virtual SHell `vsh` sur la VM `termina` :
```
vsh termina
```
* Afficher les conteneurs :
```
lxc list
```
* Afficher les conteneurs :
```
lxc info
```
* Créer une snapshot de conteneur :
```
lxc snapshot
```
* Restaurer une snapshot de conteneur :
```
lxc restore
```
* Supprimer un conteneur :
```
lxc delete
```
* Copier un conteneur :
```
lxc copy
```
* Exécuter un shell `bash` sur le conteneur `kali` :
```
lxc exec -- bash
```
## Configuration initiale du conteneur
* Mettre à jour le conteneur :
```
sudo apt update
sudo apt upgrade
```
* Trouver l'utilisateur non-root créé pour le conteneur :
```
grep 1000:1000 /etc/passwd|cut -d':' -f1
```
* Donner à l'utilisateur un mot de passe et les permissions super-utilisateur :
```
passwd
usermod -aG sudo
```
* Se connecter avec le compte de l'utilisateur non-root :
```
su -
```