On Tue, Dec 22, 2009 at 6:55 AM, [email protected] <[email protected]> wrote: > OK, here's what I did and here's what happened. > > ssh'd to Sage server as normal (non-root) user, started sage. At sage > prompt: > > sage: notebook(address="",open_viewer=False) > > This produced the output appended. > > Then, in a browser on a separate Linux machine, > I entered a URL of http://128.N.NN.NNN:8000/, > where 128.N.NN.NNN is the IP address of the Sage server. > In trying to connect, the browser then displays the following: > > "Failed to Connect > > Firefox can't establish a connection to the server at > 128.N.NN.NNN:8000. > > Though the site seems valid, the browser was unable to establish > a connection. > > * Could the site be temporarily unavailable? Try again later. > * Are you unable to browse other sites? Check the computer's > network connection. > * Is your computer or network protected by a firewall or proxy? > Incorrect settings can interfere with Web browsing." > > Is there something I'm not doing, or doing incorrectly?
You are doing everything right on generic system without a firewall. Maybe your remote system has a firewall or something. William > > Thanks again for the help, > -Richard Vaughn > > ********************************************************************** > 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 * > * * > ************************************************** > 2009-12-22 09:43:35-0500 [-] Log opened. > 2009-12-22 09:43:35-0500 [-] twistd 8.2.0 (/usr/share/sage-4.2.1/local/ > bin/python 2.6.2) starting up. > 2009-12-22 09:43:35-0500 [-] reactor class: > twisted.internet.selectreactor.SelectReactor. > 2009-12-22 09:43:35-0500 [-] twisted.web2.channel.http.HTTPFactory > starting on 8000 > 2009-12-22 09:43:35-0500 [-] Starting factory > <twisted.web2.channel.http.HTTPFactory instance at 0x2ab1ce8d40> > > > > > > > > > On Dec 21, 4:19 pm, William Stein <[email protected]> wrote: >> 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 tohttp://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 >> > athttp://groups.google.com/group/sage-support >> > URL:http://www.sagemath.org >> >> -- >> William Stein >> Associate Professor of Mathematics >> University of Washingtonhttp://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 > -- 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
