User Tools

Site Tools


infrastructure:schroot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
infrastructure:schroot [2021/10/18 10:45] s_fuyedcinfrastructure:schroot [2022/09/01 15:01] (current) stelter
Line 18: Line 18:
 </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>
Line 28: Line 28:
 root-groups=root root-groups=root
 root-users=root root-users=root
 +profile=default
 </code> </code>
  
Line 97: Line 98:
  
  
-===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>
Line 120: Line 121:
 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. 
infrastructure/schroot.1634553937.txt.gz · Last modified: 2021/10/18 10:45 by s_fuyedc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki