Ask Your Question
2

How to open jupyter in virtualbox from shared folder?

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

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
3

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

stan gravatar image

(Inspired by https://wiki.sagemath.org/SageApplian...):

  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
  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

Comments

Thank you. This helped me.

omoplata gravatar imageomoplata ( 2016-12-29 04:14:59 +0100 )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

Stats

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

Seen: 1,378 times

Last updated: Nov 06 '16