Ask Your Question

How to open jupyter in virtualbox from shared folder?

asked 2016-09-28 14:04:18 +0200

stan gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-06 22:33:13 +0200

stan gravatar image

(Inspired by

  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
Last login: Tue Jul 12 13:32:39 on tty9
[sage@sagevm ~]# nano .xinitrc
  1. 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.

edit flag offensive delete link more


Thank you. This helped me.

omoplata gravatar imageomoplata ( 2016-12-29 04:14:59 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-09-28 14:04:18 +0200

Seen: 1,125 times

Last updated: Nov 06 '16