Ask Your Question
0

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

asked 2010-08-27 21:10:22 +0100

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-22 01:58:52

Comments

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 21:22:37 +0100 )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 21:29:41 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2010-08-27 21:40:08 +0100

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. =)

Thanks!

edit flag offensive delete link more

Comments

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 13:16:07 +0100 )edit

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

kkumer gravatar imagekkumer ( 2010-08-30 05:14:38 +0100 )edit

Question Tools

Stats

Asked: 2010-08-27 21:10:22 +0100

Seen: 3,109 times

Last updated: Aug 27 '10