On Wed, Feb 11, 2009 at 7:54 AM, Ondrej Certik <ond...@certik.cz> wrote: > >>> Yes, I didn't realise it is that trivial. Thanks for the help, I'll >>> report back when we get this working. >> >> If you have trouble trying to make the above changes -- which is >> entirely possible -- please complain. > > I am not there yet, but I created this howto: > > http://wiki.sagemath.org/SageVirtualBox > > I didn't like that I had to install vmware as root and it was touching > my kernel, so I just installed virtualbox from ubuntu repositories and > that seems to work nice. It uses nat, but it forwards the 22 port, so > I can ssh into the image from the host, so that's all I need. > > However, after I tried to also forward the port 8000 (e.g. last 3 > commands from the howto a, so that I can access the notebook outside > the image, and I started to get:
That is not how the notebook works. By default the notebook listens *only* on localhost, which means nobody else. This is a very important security feature. If you want the notebook to listen to the outside world, just do sage: notebook(address="") and the notebook will listen for connections on all interfaces. > sage: notebook(port=8000) > The notebook files are stored in: /home/ondrej/.sage//sage_notebook > ************************************************** > * * > * Open your web browser to http://localhost:8000 * > * * > ************************************************** > 2009-02-10 16:41:12-0800 [-] Log opened. > 2009-02-10 16:41:12-0800 [-] twistd 8.1.0 > (/home/ondrej/ext/sage-3.2.3-Debian4.0-32bit-Intel-i686-Linux/local/bin/python > 2.5.2) starting up > 2009-02-10 16:41:12-0800 [-] reactor class: <class > 'twisted.internet.selectreactor.SelectReactor'> > 2009-02-10 16:41:12-0800 [-] twisted.web2.channel.http.HTTPFactory > starting on 8000 > 2009-02-10 16:41:12-0800 [-] Starting factory > <twisted.web2.channel.http.HTTPFactory instance at 0xab0236c> > http://localhost:8000/?startup_token=73e83ab5dad44c5f96b5fcd635b1933d: > No such file or directory > > > Notice the last line. Any ideas what is happening here? I googled a > bit and I think you suggested in some other email, that it is the > vmware problem (in my case virtualbox)? > > Ondrej > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---