ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 04 Dec 2010 12:26:12 -0600SAGE server using VMware bundlehttp://ask.sagemath.org/question/7786/sage-server-using-vmware-bundle/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?Wed, 01 Dec 2010 11:34:47 -0600http://ask.sagemath.org/question/7786/sage-server-using-vmware-bundle/Answer by sandyscott for <p>I'd like to use SAGE notebook on windows, but access it from a browser running natively.</p>
<p>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.</p>
<p>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.</p>
<p>Can anyone help me with this?</p>
http://ask.sagemath.org/question/7786/sage-server-using-vmware-bundle/?answer=11815#post-id-11815I 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'] = ''
notebook(**options)
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:
[http://www.virtualbox.org/](http://www.virtualbox.org/)
1. Install the sage-vmware image in VirtualBox (the "extra tip" is unnecessary for this to work:
[http://groups.google.com/group/sage-support/msg/f6811b5729c3809e](http://groups.google.com/group/sage-support/msg/f6811b5729c3809e)
2. Set up a port forward between port 8000 on the host to port 8000 on the guest:
[http://www.virtualbox.org/manual/ch06.html#natforward](http://www.virtualbox.org/manual/ch06.html#natforward)
3. Fix the network problems with this tip:
[http://blog.timc3.com/2010/05/04/vmware-ubuntu-ip-address-change/](http://blog.timc3.com/2010/05/04/vmware-ubuntu-ip-address-change/)
4. Perform the steps at the top of this answer
5. Open a browser on the host system and point it to [http://localhost:8000/](http://localhost:8000/). The default user is "admin", password "sage"
Sat, 04 Dec 2010 09:56:41 -0600http://ask.sagemath.org/question/7786/sage-server-using-vmware-bundle/?answer=11815#post-id-11815Comment by niles for <p>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.</p>
<p>Here's how:</p>
<p>Create a new file /home/sage/sagenboptions.sage with the following in it:</p>
<pre><code>options = {}
options['interface'] = ''
notebook(**options)
</code></pre>
<p>Edit /home/sage/bin/sagenb, find where it says:</p>
<pre><code>"sage -notebook require_login=False"
</code></pre>
<p>and replace it with</p>
<pre><code>"sage /home/sage/sagenboptions.sage require_login=False"
</code></pre>
<p>Go to the Desktop and double-click on "Sage Noteboook"</p>
<p>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.</p>
<hr/>
<p>If anyone's interested, here's all the steps to get this system going:</p>
<ol>
<li><p>Download and install VirtualBox:
<a href="http://www.virtualbox.org/">http://www.virtualbox.org/</a></p></li>
<li><p>Install the sage-vmware image in VirtualBox (the "extra tip" is unnecessary for this to work:
<a href="http://groups.google.com/group/sage-support/msg/f6811b5729c3809e">http://groups.google.com/group/sage-support/msg/f6811b5729c3809e</a></p></li>
<li><p>Set up a port forward between port 8000 on the host to port 8000 on the guest:
<a href="http://www.virtualbox.org/manual/ch06.html#natforward">http://www.virtualbox.org/manual/ch06.html#natforward</a></p></li>
<li><p>Fix the network problems with this tip:
<a href="http://blog.timc3.com/2010/05/04/vmware-ubuntu-ip-address-change/">http://blog.timc3.com/2010/05/04/vmware-ubuntu-ip-address-change/</a></p></li>
<li><p>Perform the steps at the top of this answer</p></li>
<li><p>Open a browser on the host system and point it to <a href="http://localhost:8000/">http://localhost:8000/</a>. The default user is "admin", password "sage" </p></li>
</ol>
http://ask.sagemath.org/question/7786/sage-server-using-vmware-bundle/?comment=22456#post-id-22456glad to hear you got it working -- thanks for sharing too!Sat, 04 Dec 2010 12:26:12 -0600http://ask.sagemath.org/question/7786/sage-server-using-vmware-bundle/?comment=22456#post-id-22456Answer by niles for <p>I'd like to use SAGE notebook on windows, but access it from a browser running natively.</p>
<p>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.</p>
<p>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.</p>
<p>Can anyone help me with this?</p>
http://ask.sagemath.org/question/7786/sage-server-using-vmware-bundle/?answer=11809#post-id-11809There were some references in another recent [VMWare Windows question](http://ask.sagemath.org/question/139/the-network-connection-is-not-working-with-453) -- are those helpful?Wed, 01 Dec 2010 16:37:03 -0600http://ask.sagemath.org/question/7786/sage-server-using-vmware-bundle/?answer=11809#post-id-11809Comment by sandyscott for <p>There were some references in another recent <a href="http://ask.sagemath.org/question/139/the-network-connection-is-not-working-with-453">VMWare Windows question</a> -- are those helpful?</p>
http://ask.sagemath.org/question/7786/sage-server-using-vmware-bundle/?comment=22462#post-id-22462Not particularly - I've got the network running, I think the problem is related the webserver/SAGE configurationThu, 02 Dec 2010 00:34:34 -0600http://ask.sagemath.org/question/7786/sage-server-using-vmware-bundle/?comment=22462#post-id-22462