Ask Your Question
0

notebook server daemon + security issues

asked 2011-04-09 05:37:09 +0100

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?

edit retag flag offensive close merge delete

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 ( 2011-04-09 21:44:57 +0100 )edit

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

Jason Grout gravatar imageJason Grout ( 2011-04-21 17:16:38 +0100 )edit

@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 ( 2011-04-21 19:32:11 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-04-21 19:25:46 +0100

Kelvin Li gravatar image

updated 2011-05-06 14:29:39 +0100

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.

edit flag offensive delete link more

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: 2011-04-09 05:37:09 +0100

Seen: 737 times

Last updated: May 06 '11