Ask Your Question

How do I quickly setup a remote Sage server? [closed]

asked 2010-08-27 14:10:22 -0600

ccanonc gravatar image

I ssh'd to a remote machine on my local LAN, ran "./sage -n"; but I can't login to port 8000 remotely with https or http. Does twisted by default disallow remote connections, or are there likely platform-by-platform firewall issues? What's the quickest and closest thing to a zero-configuration setup? Like most casual users, I just "want it to work" -- minimal setup fuss. This isn't a complaint, but I think a common question.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by ccanonc
close date 2010-09-21 18:58:52


What happens if you use `sage -notebook interface=''`? This will tell Twisted to listen on all network interfaces. See the docstring for `notebook` for other options. For example, on the Sage cluster I usually use `sage -notebook interface='' open_viewer=False port=XXXXX secure=True`.

Mitesh Patel gravatar imageMitesh Patel ( 2010-08-27 14:22:37 -0600 )edit

Good point Mitesh, I should have tried the question mark before pulling the question trigger. :) I will try a few things, and self-answer.

ccanonc gravatar imageccanonc ( 2010-08-27 14:29:41 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2010-08-27 14:40:08 -0600

ccanonc gravatar image

Mitesh: Ok, it was my MacOSX Firewall Rules. I had to click "Allow" from the console.

Running "./sage" then "sage: notebook(interface='', secure=True, open_viewer=False)" worked fine after I clicked "Allow" on the console. Not ideal, but security is tricky. Of course my local browser complained about the SSL certificate since it was dynamically generated. =)


edit flag offensive delete link more


This works well, and the firewall rule has been retained (OSX 10.6.4). Now I just need to add the following to my startup scripts: ./sage -c 'notebook(interface="",secure=True,open_viewer=False)'

ccanonc gravatar imageccanonc ( 2010-08-28 06:16:07 -0600 )edit

How to create proper SSL certificate for sage server, so that browsers stop complaining? Anybody knows?

kkumer gravatar imagekkumer ( 2010-08-29 22:14:38 -0600 )edit

Question Tools


Asked: 2010-08-27 14:10:22 -0600

Seen: 2,120 times

Last updated: Aug 27 '10