Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
infrastructure:schroot [2021/10/18 10:45] – s_fuyedc | infrastructure:schroot [2022/09/01 15:01] (current) – stelter |
---|
</code> | </code> |
| |
Now put the following settings into it. | Now put the following settings into it. Don't forget to replace your own username at 'users' and to remove the comment after the user name. |
| |
<code> | <code> |
root-groups=root | root-groups=root |
root-users=root | root-users=root |
| profile=default |
</code> | </code> |
| |
| |
| |
===Additional=== | ===Final touches=== |
| |
For a little bit more convenience, put the following in your host-machine's bash setup (.bashrc in the home directory). Streaming to /dev/null only prevents these calls to produce output. The conditional (== "focal") depends on the name of your environment, which was set in the file at the beginning of this page. The PYTHONPATH needs to be reset because focal and bionic use different default versions of python. Also, the ssh-agent needs a restart when the environment changes. | For a little bit more convenience, put the following in your host-machine's bash setup (.bashrc in the home directory). Streaming to /dev/null only prevents these calls from producing output. The conditional (== "focal") depends on the name of your environment, which was set in the file at the beginning of this page. The PYTHONPATH needs to be reset because focal and bionic use different default versions of python. Also, the ssh-agent needs a restart when the environment changes. |
| |
<code> | <code> |
alias start_noetic='schroot -b -p -c focal -n noetic' # creates a persistent schroot session | alias start_noetic='schroot -b -p -c focal -n noetic' # creates a persistent schroot session |
alias stop_noetic='schroot -e -c noetic' # terminates the schroot session | alias stop_noetic='schroot -e -c noetic' # terminates the schroot session |
| </code> |
| |
| If the following message appears when calling 'start_melodic', a session already exists. |
| <code> |
| Failed to lock chroot: /var/lib/schroot/session/melodic: Failed to write session file: File exists |
</code> | </code> |
| |
Congratulations, you can now connect to the 20.04 environment from your 18.04 machine. Run packages for noetic while in your 20.04 environment, and those for melodic on your host machine. | Congratulations, you can now connect to the 20.04 environment from your 18.04 machine. Run packages for noetic while in your 20.04 environment, and those for melodic on your host machine. |