Ask Your Question

SAGE server using VMware bundle

asked 2010-12-01 18:34:47 +0200

sandyscott gravatar image

updated 2011-02-21 15:41:04 +0200

niles gravatar image

I'd like to use SAGE notebook on windows, but access it from a browser running natively.

I've downloaded the package, and got it running in VirtualBox, turned on the network, and forwarded ports into the VM, but can't persuade SAGE to respond.

The port forwards are working: SSH works and apache responds to port 80 requests, but absolutely nothing appears to happens in response to requests on port 8000.

Can anyone help me with this?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2010-12-04 16:56:41 +0200

sandyscott gravatar image

I fixed the problem - by default sage notebook only listen to connections from localhost, by changing setting it to listen on any interface, connections from the host machine could be accepted.

Here's how:

Create a new file /home/sage/sagenboptions.sage with the following in it:

options = {}
options['interface'] = ''

Edit /home/sage/bin/sagenb, find where it says:

"sage -notebook require_login=False"

and replace it with

"sage /home/sage/sagenboptions.sage require_login=False"

Go to the Desktop and double-click on "Sage Noteboook"

SAFETY WARNING: Don't do this if your machine is directly connected to the internet - a nasty cracker might come and steal/mess up/delete your files.

If anyone's interested, here's all the steps to get this system going:

  1. Download and install VirtualBox:

  2. Install the sage-vmware image in VirtualBox (the "extra tip" is unnecessary for this to work:

  3. Set up a port forward between port 8000 on the host to port 8000 on the guest:

  4. Fix the network problems with this tip:

  5. Perform the steps at the top of this answer

  6. Open a browser on the host system and point it to http://localhost:8000/. The default user is "admin", password "sage"

edit flag offensive delete link more


glad to hear you got it working -- thanks for sharing too!

niles gravatar imageniles ( 2010-12-04 19:26:12 +0200 )edit

answered 2010-12-01 23:37:03 +0200

niles gravatar image

There were some references in another recent VMWare Windows question -- are those helpful?

edit flag offensive delete link more


Not particularly - I've got the network running, I think the problem is related the webserver/SAGE configuration

sandyscott gravatar imagesandyscott ( 2010-12-02 07:34:34 +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


Asked: 2010-12-01 18:34:47 +0200

Seen: 1,840 times

Last updated: Dec 04 '10