Ask Your Question
0

notebook server daemon + security issues

asked 14 years ago

sporeohr gravatar image

Hi I installed sage on my vserver and run it with a lighttpd proxy. All I need now is a daemon so I can run it in the background on my vserver, because I use this server for other things as well. Is there a way I can start the sage notebook as a daemon? Or do I need to make a bash script (I'm not good at bash)? What would be the best way to invoke the notebook, which parameters should I use?

I am also a bit worried about security, as my notebook can be accessed through the web publicly. Is there anything I should take account of?

Preview: (hide)

Comments

I don't think Sage has a "daemon mode", but there is a trac ticket on it (http://trac.sagemath.org/sage_trac/ticket/381). Usually, screen or nohup will accomplish the desired effect, and they have been suggested on sage-support (http://groups.google.com/group/sage-support/browse_thread/thread/dd0941ed21112c03/a127a3fafbb0be32). Regarding security, it might be useful to enable HTTPS via "secure=True" option and to use a strong password. If you intend to make this notebook publicly available for anyone to use, there are some more things to consider, like running the server with restricted user permissions.

Kelvin Li gravatar imageKelvin Li ( 14 years ago )

Kelvin: can you post your comment as an answer so I can mod it up?

Jason Grout gravatar imageJason Grout ( 13 years ago )

@Jason Grout: I can delete my comment above if that would be appropriate. The content has been posted as an answer.

Kelvin Li gravatar imageKelvin Li ( 13 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 13 years ago

Kelvin Li gravatar image

updated 13 years ago

I do not believe that Sage has a "daemon mode" yet, but ticket 381 is tracking this. Usually, screen or nohup will accomplish the desired effect, and they have been suggested on sage-support [2].

Regarding security, it might be useful to enable HTTPS via the notebook(secure=True) option and to use a strong password. If you intend to make this notebook publicly available for anyone to use, there are some more things to consider, like running the server with restricted user permissions.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 14 years ago

Seen: 778 times

Last updated: May 06 '11