Writing /var/lib/dokuwiki/data/meta/tutorials/ubuntu_bionic_chroot.meta failed
Unable to save metadata file. Hint: disk full; file permissions; safe_mode setting.
tutorials:ubuntu_bionic_chroot
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tutorials:ubuntu_bionic_chroot [2019/04/04 20:51] – created admin | tutorials:ubuntu_bionic_chroot [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Ubuntu | + | ====== Ubuntu |
| * Install the base system | * Install the base system | ||
| Line 18: | Line 18: | ||
| #!/bin/bash | #!/bin/bash | ||
| CHROOT_DIR=/ | CHROOT_DIR=/ | ||
| - | CHROOT_NAME=`basename $0 .sh` | + | CHROOT_NAME=`basename $0 .sh` |
| + | |||
| + | xhost +local: | ||
| | | ||
| if [ ! -e / | if [ ! -e / | ||
| Line 38: | Line 40: | ||
| sudo mount none -t devpts $CHROOT_DIR/ | sudo mount none -t devpts $CHROOT_DIR/ | ||
| sudo mount -o bind / $CHROOT_DIR/ | sudo mount -o bind / $CHROOT_DIR/ | ||
| - | | + | sudo mount -o bind /dev/shm $CHROOT_DIR/ |
| fi | fi | ||
| | | ||
| Line 50: | Line 52: | ||
| then | then | ||
| echo " | echo " | ||
| - | for i in dev/pts hostfs proc dev sys | + | for i in dev/ |
| do | do | ||
| sudo umount $CHROOT_DIR/ | sudo umount $CHROOT_DIR/ | ||
| Line 66: | Line 68: | ||
| * Configure schroot. Edit / | * Configure schroot. Edit / | ||
| - | [ubuntu-trusty] | + | [ubuntu-bionic] |
| - | description=Ubuntu | + | description=Ubuntu |
| location=/ | location=/ | ||
| priority=3 | priority=3 | ||
| Line 83: | Line 85: | ||
| * If you want to exit the chroot, you should type exit and the script should automatically do the job! | * If you want to exit the chroot, you should type exit and the script should automatically do the job! | ||
| + | |||
| + | * There is this error every time you log in: | ||
| + | |||
| + | mesg: ttyname failed: No such device | ||
| + | |||
| + | * To fix this error. Enter the Chroot and edit the file / | ||
| + | |||
| ~~DISCUSSION~~ | ~~DISCUSSION~~ | ||
tutorials/ubuntu_bionic_chroot.1554411072.txt.gz · Last modified: 2022/09/20 00:08 (external edit)