ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 29 Dec 2016 04:14:59 +0100How to open jupyter in virtualbox from shared folder?https://ask.sagemath.org/question/34983/how-to-open-jupyter-in-virtualbox-from-shared-folder/If I install the SageAppliance in windows, the jupyter notebook is started automatically with some internal folder as the base directory. I would like it to start from a custom folder on a shared drive, i.e. a local folder that I enabled for sharing with the virtual machine. Could anyone give me a tip how to do this. In other words, I want to first cd into that shared folder and only then start the jupyter notebook. Is there a way to do that automatically?
Thanks a lot!
StanWed, 28 Sep 2016 14:04:18 +0200https://ask.sagemath.org/question/34983/how-to-open-jupyter-in-virtualbox-from-shared-folder/Answer by stan for <p>If I install the SageAppliance in windows, the jupyter notebook is started automatically with some internal folder as the base directory. I would like it to start from a custom folder on a shared drive, i.e. a local folder that I enabled for sharing with the virtual machine. Could anyone give me a tip how to do this. In other words, I want to first cd into that shared folder and only then start the jupyter notebook. Is there a way to do that automatically?
Thanks a lot!
Stan</p>
https://ask.sagemath.org/question/34983/how-to-open-jupyter-in-virtualbox-from-shared-folder/?answer=35460#post-id-35460 (Inspired by https://wiki.sagemath.org/SageAppliance/SageMath-7):
1. Log into the virtual machine as user sage. For example, you can log into the virtual machine from the text-mode console: Press Right-Ctrl and F1 for a different tty. The user account running the web browser is called sage with password sage. See the advanced options section for more details.
2. Edit the sage user's .xinitrc file:
> sagevm login: sage
> Password:
> Last login: Tue Jul 12 13:32:39 on tty9
> [sage@sagevm ~]# nano .xinitrc
3. Modify .xinitrc by adding the following line, just before the last line that starts google-chrome:
> cd /media/sf_sage_local/jupyter
assuming that your shared folder is sage_local with a sub-folder jupyter.Sun, 06 Nov 2016 22:33:13 +0100https://ask.sagemath.org/question/34983/how-to-open-jupyter-in-virtualbox-from-shared-folder/?answer=35460#post-id-35460Comment by omoplata for <p>(Inspired by <a href="https://wiki.sagemath.org/SageAppliance/SageMath-7">https://wiki.sagemath.org/SageApplian...</a>):</p>
<ol>
<li><p>Log into the virtual machine as user sage. For example, you can log into the virtual machine from the text-mode console: Press Right-Ctrl and F1 for a different tty. The user account running the web browser is called sage with password sage. See the advanced options section for more details.</p></li>
<li><p>Edit the sage user's .xinitrc file:</p></li>
</ol>
<blockquote>
<pre><code>sagevm login: sage
Password:
Last login: Tue Jul 12 13:32:39 on tty9
[sage@sagevm ~]# nano .xinitrc
</code></pre>
</blockquote>
<ol>
<li>Modify .xinitrc by adding the following line, just before the last line that starts google-chrome:</li>
</ol>
<blockquote>
<pre><code>cd /media/sf_sage_local/jupyter
</code></pre>
</blockquote>
<p>assuming that your shared folder is sage_local with a sub-folder jupyter.</p>
https://ask.sagemath.org/question/34983/how-to-open-jupyter-in-virtualbox-from-shared-folder/?comment=36119#post-id-36119Thank you. This helped me.Thu, 29 Dec 2016 04:14:59 +0100https://ask.sagemath.org/question/34983/how-to-open-jupyter-in-virtualbox-from-shared-folder/?comment=36119#post-id-36119