On Mon, Dec 21, 2009 at 12:20 PM, [email protected] <[email protected]> wrote: > OK, I did "sage: notebook(address="", open_viewer=False)" > and got the appended. > > So now how does a remote user access this Sage instance > via his browser? What would the URL be?
If the ip address of the computer you run Sage on is foo.bar, you would use http://foo.bar:8000 William > > Thanks very much, > -Richard Vaughn > > ====================================================================== > > sage: notebook(address="", open_viewer=False) > ********************************************************************** > WARNING: Running the notebook insecurely not on localhost is dangerous > because its possible for people to sniff passwords and gain access to > your account. Make sure you know what you are doing. > ********************************************************************** > The notebook files are stored in: sage_notebook.sagenb > ********************************************************************** > WARNING: Insecure notebook server listening on external address. > Unless you are running this via ssh port forwarding, you are > **crazy**! You should run the notebook with the option secure=True. > ********************************************************************** > ************************************************** > * * > * Open your web browser to http://localhost:8000 * > * * > ************************************************** > Removing stale pidfile /home/rvaughn/.sage/sage_notebook.sagenb/ > twistd.pid > 2009-12-21 15:16:51-0500 [-] Log opened. > 2009-12-21 15:16:51-0500 [-] twistd 8.2.0 (/usr/share/sage-4.2.1/local/ > bin/python 2.6.2) starting up. > 2009-12-21 15:16:51-0500 [-] reactor class: > twisted.internet.selectreactor.SelectReactor. > 2009-12-21 15:16:51-0500 [-] twisted.web2.channel.http.HTTPFactory > starting on 8000 > 2009-12-21 15:16:51-0500 [-] Starting factory > <twisted.web2.channel.http.HTTPFactory instance at 0x2ab1ce8d40> > > > On Dec 21, 2:42 pm, William Stein <[email protected]> wrote: >> On Mon, Dec 21, 2009 at 11:30 AM, [email protected] <[email protected]> >> wrote: >> > OK. Let me see if I understand this. >> > I ssh into the machine running Sage. >> > I execute "sage" and see this: >> >> > sage: >> >> > I then add the following after the "sage:" prompt: >> > notebook(address="192.NN.NN.NNN") >> > where 192.NN.NN.NNN is the IP address of the machine of... >> > the client machine from which I want to run sage remotely via a >> > browser? >> > or the 'server' machine on which the Sage instance is running? >> >> > Thanks, >> > -Richard Vaughn >> >> To repeat what I wrote above: >> >> The notebook only listens on localhost by default. Use >> >> sage: notebook(address="", open_viewer=False) >> >> to listen on any port... >> >> William > > -- > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
