Ask Your Question
0

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

asked 14 years ago

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.

Preview: (hide)

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 ( 14 years ago )

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 ( 14 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 14 years ago

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!

Preview: (hide)
link

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 ( 14 years ago )

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

kkumer gravatar imagekkumer ( 14 years ago )

Question Tools

Stats

Asked: 14 years ago

Seen: 3,156 times

Last updated: Aug 27 '10