[sage-support] Re: sage server
See my post to the related question. I think it should work... https://groups.google.com/forum/#!topic/sage-support/j073ILEqKYA Jonathan On Friday, August 7, 2015 at 3:29:01 PM UTC-5, Michael Waters wrote: Keeping this thread alive...I'm having the same difficulties. Any global fix here?See -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: sage server
Keeping this thread alive...I'm having the same difficulties. Any global fix here? Possibly. Jonathan Gutow has done a lot of work with proxies (about which I know nothing). See e.g. https://github.com/sagemath/sagenb/pull/328 - though I have no idea if this will be useful. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: sage server
Keeping this thread alive...I'm having the same difficulties. Any global fix here? -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: Sage server failed to start
I posted trac #17610 which is ready for review. It now tries starting it in a Terminal if it fails for any reason. This should be more robust to any sort of corruption, and also help show the problem in the cases where it does fail. For reference, this does fix the problems indicated; I hope it will also fix the problem of the original poster! -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Re: Sage server failed to start
I get about one zero sized users.pickle 2-3 times per week. Really, how does that happen? I am also running a sagenb server on my university and this never happened. It is not a server, it is standalone sage installs, and ~/.sage is on NFS. It seems to be NOT related to disk space quotas. Given how often students log out or are logged out by naughty instructors :) from their accounts in that particular lab, it's perhaps not surprising. I agree with Jeroen that perhaps 6.5 should solve some of these issues. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: Sage server failed to start
Thank you! But the problem for me is that the terminal don't start. On Wednesday, January 7, 2015 at 11:04:20 PM UTC-5, kcrisman wrote: On Wednesday, January 7, 2015 7:57:36 PM UTC-5, Ruizhi Deng wrote: I'm a new comer to Sage and I'm running sage on my mac with OS X 10.10. I started sage successfully for the first time but I have trouble running sage after that. It constantly shows that Sage server failed to start. And here's the log information I find. It might be useful. Looks like the issues at https://groups.google.com/forum/#!topic/sage-support/_Ly5eQ2E-10 and originally reported in a different form at http://trac.sagemath.org/ticket/9873#comment:33 Ivan, any ideas for a long-term fix on this? This really should work without having to do Terminal Session Sage then type notebook(). as suggested in that thread. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: Sage server failed to start
I reinstalled sage on my computer, but it still doesn't work. On Wednesday, January 7, 2015 at 7:57:36 PM UTC-5, Ruizhi Deng wrote: I'm a new comer to Sage and I'm running sage on my mac with OS X 10.10. I started sage successfully for the first time but I have trouble running sage after that. It constantly shows that Sage server failed to start. And here's the log information I find. It might be useful. Setting environment variables /Applications/Sage-6.4.1.app/Contents/Resources/start-sage.sh: line 43: spkg/bin/sage-env: No such file or directory Warning: overwriting SAGE_ROOT environment variable: Old SAGE_ROOT=/Applications/Sage-6.4.1.app/Contents/Resources/sage/ New SAGE_ROOT=/Applications/Sage-6.4.1.app/Contents/Resources/sage Checking install location Checking existence of notebook directory Starting Notebook ┌┐ │ Sage Version 6.4.1, Release Date: 2014-11-23 │ │ Type notebook() for the browser-based notebook interface.│ │ Type help() for help.│ └┘ Please wait while the Sage Notebook server starts... /Applications/Sage-6.4.1.app/Contents/Resources/sage/local/lib/python/getpass.py:83: GetPassWarning: Can not control echo on the terminal. passwd = fallback_getpass(prompt, stream) Warning: Password input may be echoed. Enter new password: The notebook files are stored in: sage_notebook.sagenb Please choose a new password for the Sage Notebook 'admin' user. Do _not_ choose a stupid password, since anybody who could guess your password and connect to your machine could access or delete your files. NOTE: Only the hash of the password you type is stored by Sage. You can change your password by typing notebook(reset=True). Traceback (most recent call last): File /Applications/Sage-6.4.1.app/Contents/Resources/sage/src/bin/sage-notebook, line 180, in module launcher(unknown) File /Applications/Sage-6.4.1.app/Contents/Resources/sage/src/bin/sage-notebook, line 63, in __init__ notebook(*self.args, **self.kwds) File /Applications/Sage-6.4.1.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sagenb-0.11.1-py2.7.egg/sagenb/notebook/notebook_object.py, line 234, in __call__ return self.notebook(*args, **kwds) File /Applications/Sage-6.4.1.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sagenb-0.11.1-py2.7.egg/sagenb/notebook/run_notebook.py, line 563, in notebook_run passwd = get_admin_passwd() File /Applications/Sage-6.4.1.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sagenb-0.11.1-py2.7.egg/sagenb/notebook/run_notebook.py, line 652, in get_admin_passwd passwd = getpass.getpass(Enter new password: ) File /Applications/Sage-6.4.1.app/Contents/Resources/sage/local/lib/python/getpass.py, line 83, in unix_getpass passwd = fallback_getpass(prompt, stream) File /Applications/Sage-6.4.1.app/Contents/Resources/sage/local/lib/python/getpass.py, line 118, in fallback_getpass return _raw_input(prompt, stream) File /Applications/Sage-6.4.1.app/Contents/Resources/sage/local/lib/python/getpass.py, line 135, in _raw_input raise EOFError EOFError Can anyone help me solve this problem? -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: Sage server failed to start
Do you mean that if you open Sage.app and click on the Terminal Session Sage menu, that Terminal.app doesn’t open? Or do you mean that Terminal.app doesn’t open automatically when you try to start the notebook server? For now, doing it manually once (and typing in a password) should fix the problem. If it doesn’t, then there is some other problem. -Ivan On Jan 8, 2015, at 4:39 PM, Ruizhi Deng wsdmd...@gmail.com wrote: Thank you! But the problem for me is that the terminal don't start. On Wednesday, January 7, 2015 at 11:04:20 PM UTC-5, kcrisman wrote: On Wednesday, January 7, 2015 7:57:36 PM UTC-5, Ruizhi Deng wrote: I'm a new comer to Sage and I'm running sage on my mac with OS X 10.10. I started sage successfully for the first time but I have trouble running sage after that. It constantly shows that Sage server failed to start. And here's the log information I find. It might be useful. Looks like the issues at https://groups.google.com/ forum/#!topic/sage-support/_Ly5eQ2E-10 and originally reported in a different form at http://trac.sagemath.org/ticket/9873#comment:33 Ivan, any ideas for a long-term fix on this? This really should work without having to do Terminal Session Sage then type notebook(). as suggested in that thread. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Re: Sage server failed to start
Hi On 8 January 2015 at 14:32, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2015-01-08 06:36, Jan Groenewald wrote: I get about one zero sized users.pickle 2-3 times per week. Really, how does that happen? I am also running a sagenb server on my university and this never happened. It is not a server, it is standalone sage installs, and ~/.sage is on NFS. It seems to be NOT related to disk space quotas. However, I also see it on laptops (non-NFS, standalone installs) at times. Regards, Jan -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: Sage server failed to start
I posted trac #17610 which is ready for review. It now tries starting it in a Terminal if it fails for any reason. This should be more robust to any sort of corruption, and also help show the problem in the cases where it does fail. -Ivan On Jan 8, 2015, at 5:17 PM, Ivan Andrus darthand...@gmail.com wrote: Do you mean that if you open Sage.app and click on the Terminal Session Sage menu, that Terminal.app doesn’t open? Or do you mean that Terminal.app doesn’t open automatically when you try to start the notebook server? For now, doing it manually once (and typing in a password) should fix the problem. If it doesn’t, then there is some other problem. -Ivan On Jan 8, 2015, at 4:39 PM, Ruizhi Deng wsdmd...@gmail.com mailto:wsdmd...@gmail.com wrote: Thank you! But the problem for me is that the terminal don't start. On Wednesday, January 7, 2015 at 11:04:20 PM UTC-5, kcrisman wrote: On Wednesday, January 7, 2015 7:57:36 PM UTC-5, Ruizhi Deng wrote: I'm a new comer to Sage and I'm running sage on my mac with OS X 10.10. I started sage successfully for the first time but I have trouble running sage after that. It constantly shows that Sage server failed to start. And here's the log information I find. It might be useful. Looks like the issues at https://groups.google.com/forum/#!topic/sage-support/_Ly5eQ2E-10 https://groups.google.com/forum/#!topic/sage-support/_Ly5eQ2E-10 and originally reported in a different form at http://trac.sagemath.org/ticket/9873#comment:33 http://trac.sagemath.org/ticket/9873#comment:33 Ivan, any ideas for a long-term fix on this? This really should work without having to do Terminal Session Sage then type notebook(). as suggested in that thread. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Re: Sage server failed to start
On 2015-01-08 06:36, Jan Groenewald wrote: I get about one zero sized users.pickle 2-3 times per week. Really, how does that happen? I am also running a sagenb server on my university and this never happened. In any case, I hope that this issue will be fixed by https://github.com/sagemath/sagenb/pull/287 -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Re: Sage server failed to start
I get about one zero sized users.pickle 2-3 times per week. Really, how does that happen? I am also running a sagenb server on my university and this never happened. In any case, I hope that this issue will be fixed by https://github.com/sagemath/sagenb/pull/287 For completeness - which is in the merged Trac 10057, I believe, so should be in Sage 6.5. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Re: Sage server failed to start
Hi On 8 January 2015 at 07:27, Ivan Andrus darthand...@gmail.com wrote: On Jan 7, 2015, at 9:04 PM, kcrisman kcris...@gmail.com wrote: On Wednesday, January 7, 2015 7:57:36 PM UTC-5, Ruizhi Deng wrote: I'm a new comer to Sage and I'm running sage on my mac with OS X 10.10. I started sage successfully for the first time but I have trouble running sage after that. It constantly shows that Sage server failed to start. And here's the log information I find. It might be useful. Looks like the issues at https://groups.google.com/forum/#!topic/sage-support/_Ly5eQ2E-10 and originally reported in a different form at http://trac.sagemath.org/ticket/9873#comment:33 Ivan, any ideas for a long-term fix on this? This really should work without having to do Terminal Session Sage then type notebook(). as suggested in that thread. I was able to reproduce this by running it once and killing the Terminal session that opened. I suppose this could happen e.g. if the user doesn’t notice that a Terminal session was opened. From then on it will fail because the ~/.sage/sage_notebook.sagenb directory already exists. Perhaps there’s something better that we can check for? Perhaps ~/.sage/sage_notebook.sagenb/users.pickle would be sufficient? It seems to not appear until the password has been successfully created, whereas the directory is created before asking for a password. In our computer lab of ~ 70 students I get about one zero sized users.pickl 2-3 times per week. (And one messed up conf.pickl once per month.) It would be great if it failed more gracefully. I'm thinking of putting a wrapper around our sagemath.desktop file to check for that zero size and if so delete it. What are the security implications? Regards, Jan -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: Sage server failed to start
On Wednesday, January 7, 2015 7:57:36 PM UTC-5, Ruizhi Deng wrote: I'm a new comer to Sage and I'm running sage on my mac with OS X 10.10. I started sage successfully for the first time but I have trouble running sage after that. It constantly shows that Sage server failed to start. And here's the log information I find. It might be useful. Looks like the issues at https://groups.google.com/forum/#!topic/sage-support/_Ly5eQ2E-10 and originally reported in a different form at http://trac.sagemath.org/ticket/9873#comment:33 Ivan, any ideas for a long-term fix on this? This really should work without having to do Terminal Session Sage then type notebook(). as suggested in that thread. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: Sage server failed to start
On Jan 7, 2015, at 9:04 PM, kcrisman kcris...@gmail.com wrote: On Wednesday, January 7, 2015 7:57:36 PM UTC-5, Ruizhi Deng wrote: I'm a new comer to Sage and I'm running sage on my mac with OS X 10.10. I started sage successfully for the first time but I have trouble running sage after that. It constantly shows that Sage server failed to start. And here's the log information I find. It might be useful. Looks like the issues at https://groups.google.com/forum/#!topic/sage-support/_Ly5eQ2E-10 and originally reported in a different form at http://trac.sagemath.org/ticket/9873#comment:33 Ivan, any ideas for a long-term fix on this? This really should work without having to do Terminal Session Sage then type notebook(). as suggested in that thread. I was able to reproduce this by running it once and killing the Terminal session that opened. I suppose this could happen e.g. if the user doesn’t notice that a Terminal session was opened. From then on it will fail because the ~/.sage/sage_notebook.sagenb directory already exists. Perhaps there’s something better that we can check for? Perhaps ~/.sage/sage_notebook.sagenb/users.pickle would be sufficient? It seems to not appear until the password has been successfully created, whereas the directory is created before asking for a password. I’ll look into creating a ticket and stuff for this tomorrow. -Ivan -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: Sage server problems
After I start sage, apache is running, so it appear that sage starts apache. In any case, I still don't understand what the problem is with the server. Mike On Thursday, July 26, 2012 9:40:24 PM UTC-7, Dima Pasechnik wrote: IMHO, Sage does not use apache at all. It runs its own webserver, on port 8000. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage server problems
On Monday, 30 July 2012 23:17:50 UTC+8, Mike OS wrote: After I start sage, apache is running, so it appear that sage starts apache. sage 4.8 does not start apache. In any case, I still don't understand what the problem is with the server. the problem seems to be that you started sage as a root, in your own home directory, and this made some files unreadable (or unwritable) for your normal user. I don't understand why you needed to jump such hoops to start Sage as server. One can start sage normally (better within a screen session, so that you can close the Terminal you started screen from, but still have Sage running), and then there run the command notebook() with appropriate options. And running Sage as root for these purposes is certainly not recommended. By the way, 4.8 is quite old. An upgrade to 5.1 is highly recommended. Mike On Thursday, July 26, 2012 9:40:24 PM UTC-7, Dima Pasechnik wrote: IMHO, Sage does not use apache at all. It runs its own webserver, on port 8000. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage server problems
Thanks for the help, Dima. I will install 5.1, but I'm still a bit unclear about the server issue. I have an Imac that I want to be a server for students while they are on campus, accessible via a web browser. We figured out the problem that I posted about: I can't run ./start_sage.sh in the background. I have to leave a terminal window open with ./start_sage.sh an active process. This seems unusual, so perhaps we have done something wrong, but I havent found clear guidelines about setting up a server, except these for ubuntu which seems to date to the sage-4.3.2. http://wiki.sagemath.org/SageServer Another strange issue is that when a user (via web browser) signs off, nothing seems to happen. The user remains logged on and has to kill the browser in order to need to login again. Two other comments below. On Monday, July 30, 2012 8:37:57 AM UTC-7, Dima Pasechnik wrote: On Monday, 30 July 2012 23:17:50 UTC+8, Mike OS wrote: After I start sage, apache is running, so it appear that sage starts apache. sage 4.8 does not start apache. Well, I'm curious about this command and response: bash-3.2# apachectl start org.apache.httpd: Already loaded Also on this web page http://wiki.sagemath.org/SageServer Steps 1) and 2) talk about installing apache and creating an apache virtual server for the sage server. In any case, I still don't understand what the problem is with the server. the problem seems to be that you started sage as a root, in your own home directory, and this made some files unreadable (or unwritable) for your normal user. I don't understand why you needed to jump such hoops to start Sage as server. One can start sage normally (better within a screen session, so that you can close the Terminal you started screen from, but still have Sage running), and then there run the command notebook() with appropriate options. And running Sage as root for these purposes is certainly not recommended. I assumed that running as root is necessary to have a server. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage server problems
IMHO, Sage does not use apache at all. It runs its own webserver, on port 8000. On Friday, 27 July 2012 07:08:25 UTC+8, Mike OS wrote: I had a sage server running on an imac running os 10.6. I stopped the server and tried to get it running again, and now I'm having problems. 1. I tried logging in on the imac as a user, then starting sage. I got the message appended below in the terminal window that pops up. When I tried the notebook (using Safari) it allowed me to type problems but didnt produce answers when entered. 2. Logging in remotely a user seems able to get in but when runing a worksheet he gets Internal Server Error: An error occurred rendering the requested page... The user was also unable to sign out. Interesting that he was able to view some published worksheets, but they appeared inactive. Thanks for any help. Here is what appeared in the terminal window when I tried to run sage as a user on the imac. sagemath:~ dummy$ sage -- | Sage Version 4.8, Release Date: 2012-01-20 | | Type notebook() for the GUI, and license() for information.| -- Traceback (most recent call last): File /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/bin/sage-ipython, line 18, in module import IPython File /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/IPython/__init__.py, line 58, in module __import__(name,glob,loc,[]) File /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/IPython/ipstruct.py, line 17, in module from IPython.genutils import list2dict2 File /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/IPython/genutils.py, line 26, in module import shlex File /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python/shlex.py, line 12, in module from collections import deque File /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python/collections.py, line 9, in module from operator import itemgetter as _itemgetter ImportError: dlopen(/Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/lib-dynload/operator.so, 2): Symbol not found: __PyUnicodeUCS4_AsDefaultEncodedString Referenced from: /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/lib-dynload/operator.so Expected in: flat namespace in /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/lib-dynload/operator.so osullivan 7- I used the following sequence to start sage prompt% sudo -s Password: pass_for_the_admin_account bash-3.2# (now you're root ...) bash-3.2# su - sageserver sagemath:~ sageserver$ ./start_sage.sh exit apachectl start The latter seemed unnecessary since the response was org.apache.httpd: Already loaded * Here is a log from when I tried to use a web browser to access the sage notebook * bash-3.2# 2012-07-26 15:35:12-0700 [HTTPChannel,9,127.0.0.1] got EOF subprocess must have crashed... 2012-07-26 15:35:12-0700 [HTTPChannel,9,127.0.0.1] You don't exist, go away! 2012-07-26 15:35:12-0700 [HTTPChannel,9,127.0.0.1] 2012-07-26 15:35:13-0700 [HTTPChannel,9,127.0.0.1] ERROR initializing compute process: 2012-07-26 15:35:13-0700 [HTTPChannel,9,127.0.0.1] 2012-07-26 15:35:13-0700 [HTTPChannel,9,127.0.0.1] unable to start subprocess using command 'sage-native-execute ssh -t sage4@localhost /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/sage -python' 2012-07-26 15:35:13-0700 [HTTPChannel,9,127.0.0.1] Exception rendering: 2012-07-26 15:35:13-0700 [HTTPChannel,9,127.0.0.1] Unhandled Error Traceback (most recent call last): File /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/internet/defer.py, line 181, in addCallbacks self._runCallbacks() File /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/internet/defer.py, line 323, in _runCallbacks self.result = callback(self.result, *args, **kw) File /Applications/Sage-4.8-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-macosx-10.6-x86_64.egg/twisted/internet/defer.py, line 284, in _continue self.unpause() File
[sage-support] Re: sage server in OS 10.6
I was using firefox primarily, but I think it happened with Safari. On Mar 16, 7:13 pm, Dan Drake dr...@kaist.edu wrote: On Fri, 16 Mar 2012 at 04:11PM -0700, Mike OS wrote: When I save and quit the worksheet, I go back to my home page. If I click sign out, nothing happens. Are you using Firefox? This happens with some recent versions of Firefox. Does that same thing happen with another browser? Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc 1KViewDownload -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage server in OS 10.6
Jason and Dan, Thank you for the info and suggestions. It took a while, but we got it running. One thing that I'm experiencing seems odd. I created an account, logged in, made a worksheet. When I save and quit the worksheet, I go back to my home page. If I click sign out, nothing happens. If I kill the browser window, then open a new one and go back to the server, I get my home page (without logging in). If I quit firefox, then I do have to login. But! If I open a worksheet and don't quit it, then it seems to keep running even after I quit firefox. I restart firefox, relogin and there it is, the worksheet still running. This seems odd, is that how it should be? Won't this lead to a lot of unused stuff being stored when people, unthinkingly leave notebooks open? Also shouldnt sign out send me back to the login page? Is there a setting that needs to be ... set? Mike On Mar 6, 6:46 pm, Jason Grout jason-s...@creativetrax.com wrote: On 3/6/12 2:53 PM, Mike OS wrote: I'd like to set up a sage notebook server at my campus. Since this is beyond my expertise, I asked the College IT specialists to handle it. Of course, they are very concerned about vulnerabilities, so they will only allow access from on campus. We browsed some of the available information and most concerns Ubuntu not OS X. I received the following from Bill Morris, our IT guru. Could anyone answer his questions and validate his understanding of things? Also, please address the overarching issue, which I have seen discussed quite a bit in recent posts: security in setting up a server. Thank you! - I invested a couple of hours yesterday trying to unwind the setting up a sage server question. I think the issues are these: 1. Sage's notebook server is built in to sage ... it is likely the same sort of python based web server as is used in zope. I don't think it's the same as zope, but it is a python-based web server. Sage uses the twisted web server [1]. 2. Coupling sage with apache is basically running apache with little more than a proxy to port 8000, the port sage's notebook server runs on. That's correct. Well, it's really a reverse proxy. 3. The part of the how-to instructions that leave me coldest are the here is where we create the accounts sage1 ... sageN on the server and try our best to keep people from exploiting them. They even go as far as talking about filesystem ACLs ... which tells me we don't want to go anywhere near this. So, my question to you, as someone who hopefully understands the desired outcome better than I, is: Does a sage notebook server require interactive logins? I'm thinking, but am not quite sure, that the interactive logins are for students to run sage from a command line, and as long as one creates sufficient accounts in the notebook server itself (not accounts on the host where the notebook server is hosted) the notebook server can exist without interactive logins. When a user executes a worksheet on the Sage server, a sage session is started up on the server to execute their commands. This sage session is basically giving them shell access on the server. If you don't create something like the sageN accounts (i.e., if you don't use the server_pool option when starting up the notebook server), then this sage session is started up as the notebook user (i.e., the sageserver user, if you're following these instructions [1]). This is bad, because it means that any notebook user can then delete the entire notebook data directory (because their worksheet commands have those user permissions). So instead, we create restricted sage0 through sage9 accounts (one account is all that is really necessary). These restricted accounts are used for executing user code. This provides privilege separation between the Sage notebook server, which maintains the list of worksheets and communicates with users, and the user code that is being run. Does that help? It would help to add clarifications to the instructions. The page is a wiki page---feel free to edit it to clarify things, if you'd like! Or let your IT person know that they are welcome to create a wiki account and edit it to make it more friendly to IT people. Thanks, Jason [1]http://twistedmatrix.com/trac/ [2]http://wiki.sagemath.org/SageServer -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage server in OS 10.6
On Mar 16, 7:11 pm, Mike OS mosul...@math.sdsu.edu wrote: Jason and Dan, Thank you for the info and suggestions. It took a while, but we got it running. One thing that I'm experiencing seems odd. I created an account, logged in, made a worksheet. When I save and quit the worksheet, I go back to my home page. If I click sign out, nothing happens. If I kill the browser window, then open a new one and go back to the server, I get my home page (without logging in). If I quit firefox, then I do have to login. But! If I open a worksheet and don't quit it, then it seems to keep running even after I quit firefox. I restart firefox, relogin and there it is, the worksheet still running. This seems odd, is that how it should be? This is actually a feature. I've used this once in a while when moving between the office and classroom. Won't this lead to a lot of unused stuff being stored when people, unthinkingly leave notebooks open? There is a default timeout, I believe... and you can set it. I think that notebook? should answer this for you. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: sage server in OS 10.6
On Fri, 16 Mar 2012 at 04:11PM -0700, Mike OS wrote: When I save and quit the worksheet, I go back to my home page. If I click sign out, nothing happens. Are you using Firefox? This happens with some recent versions of Firefox. Does that same thing happen with another browser? Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature
[sage-support] Re: sage server in OS 10.6
On 3/6/12 2:53 PM, Mike OS wrote: I'd like to set up a sage notebook server at my campus. Since this is beyond my expertise, I asked the College IT specialists to handle it. Of course, they are very concerned about vulnerabilities, so they will only allow access from on campus. We browsed some of the available information and most concerns Ubuntu not OS X. I received the following from Bill Morris, our IT guru. Could anyone answer his questions and validate his understanding of things? Also, please address the overarching issue, which I have seen discussed quite a bit in recent posts: security in setting up a server. Thank you! - I invested a couple of hours yesterday trying to unwind the setting up a sage server question. I think the issues are these: 1. Sage's notebook server is built in to sage ... it is likely the same sort of python based web server as is used in zope. I don't think it's the same as zope, but it is a python-based web server. Sage uses the twisted web server [1]. 2. Coupling sage with apache is basically running apache with little more than a proxy to port 8000, the port sage's notebook server runs on. That's correct. Well, it's really a reverse proxy. 3. The part of the how-to instructions that leave me coldest are the here is where we create the accounts sage1 ... sageN on the server and try our best to keep people from exploiting them. They even go as far as talking about filesystem ACLs ... which tells me we don't want to go anywhere near this. So, my question to you, as someone who hopefully understands the desired outcome better than I, is: Does a sage notebook server require interactive logins? I'm thinking, but am not quite sure, that the interactive logins are for students to run sage from a command line, and as long as one creates sufficient accounts in the notebook server itself (not accounts on the host where the notebook server is hosted) the notebook server can exist without interactive logins. When a user executes a worksheet on the Sage server, a sage session is started up on the server to execute their commands. This sage session is basically giving them shell access on the server. If you don't create something like the sageN accounts (i.e., if you don't use the server_pool option when starting up the notebook server), then this sage session is started up as the notebook user (i.e., the sageserver user, if you're following these instructions [1]). This is bad, because it means that any notebook user can then delete the entire notebook data directory (because their worksheet commands have those user permissions). So instead, we create restricted sage0 through sage9 accounts (one account is all that is really necessary). These restricted accounts are used for executing user code. This provides privilege separation between the Sage notebook server, which maintains the list of worksheets and communicates with users, and the user code that is being run. Does that help? It would help to add clarifications to the instructions. The page is a wiki page---feel free to edit it to clarify things, if you'd like! Or let your IT person know that they are welcome to create a wiki account and edit it to make it more friendly to IT people. Thanks, Jason [1] http://twistedmatrix.com/trac/ [2] http://wiki.sagemath.org/SageServer -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: SAGE server usernames
On 2/7/12 11:09 AM, Gwyn wrote: A second problem I've encountered trying to use sage for this class: Initially, after I'd created a Sage notebook account, if I logged out for more than (around) an hour and tried to log back in, I would receive a message: Username does not exist. I created the same username a second time with the same password and signed in -- and my worksheets were all saved and fine. This lasted for about a week and a half, where every time I was signed out, the server seemed to forget my username. When it forgot, any published worksheets I had needed to be republished, and any shared worksheets lost my collaborators (or I was removed from the collaboration list on another worksheet.) I had my students all create usernames for the lab we did in class last Wednesday, share them with their lab partner, and with myself. Within an hour after class, all of the worksheets (which I could see from my home page in my sage account) disappeared. Out of the 24 students who had signed up for accounts, I can see TWO of their usernames still (after I told them to resign up with the same username and reshare their worksheet.) Is there something I can do to make their usernames stick? I just replicated at least the problem with output not showing, and can confirm that there are errors showing up in the sagenb logs. I'm restarting the sagenb.org server. Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: SAGE server usernames
On 2/7/12 11:09 AM, Gwyn wrote: A second problem I've encountered trying to use sage for this class: Initially, after I'd created a Sage notebook account, if I logged out for more than (around) an hour and tried to log back in, I would receive a message: Username does not exist. I created the same username a second time with the same password and signed in -- and my worksheets were all saved and fine. This lasted for about a week and a half, where every time I was signed out, the server seemed to forget my username. When it forgot, any published worksheets I had needed to be republished, and any shared worksheets lost my collaborators (or I was removed from the collaboration list on another worksheet.) I had my students all create usernames for the lab we did in class last Wednesday, share them with their lab partner, and with myself. Within an hour after class, all of the worksheets (which I could see from my home page in my sage account) disappeared. Out of the 24 students who had signed up for accounts, I can see TWO of their usernames still (after I told them to resign up with the same username and reshare their worksheet.) Is there something I can do to make their usernames stick? I've just created a new account on sagenb.org to try to replicate this. The server restart I just did may have fixed this as well. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: SAGE server usernames
Is there any kind of policy stated anywhere about using the public servers such as sagenb.org for class teaching? I think I would assume that if I were to use Sage for a class then it should be my responsibility (or my institution's) to provide the service, not to reply on the public server. Of course it's different if the use of sagenb,org is explicitly tagged as experimental for the class, with an assumption that if the class works well a local server will be set up as a longer-term solution. Just wondering, John On 7 February 2012 17:42, Jason Grout jason-s...@creativetrax.com wrote: On 2/7/12 11:09 AM, Gwyn wrote: A second problem I've encountered trying to use sage for this class: Initially, after I'd created a Sage notebook account, if I logged out for more than (around) an hour and tried to log back in, I would receive a message: Username does not exist. I created the same username a second time with the same password and signed in -- and my worksheets were all saved and fine. This lasted for about a week and a half, where every time I was signed out, the server seemed to forget my username. When it forgot, any published worksheets I had needed to be republished, and any shared worksheets lost my collaborators (or I was removed from the collaboration list on another worksheet.) I had my students all create usernames for the lab we did in class last Wednesday, share them with their lab partner, and with myself. Within an hour after class, all of the worksheets (which I could see from my home page in my sage account) disappeared. Out of the 24 students who had signed up for accounts, I can see TWO of their usernames still (after I told them to resign up with the same username and reshare their worksheet.) Is there something I can do to make their usernames stick? I've just created a new account on sagenb.org to try to replicate this. The server restart I just did may have fixed this as well. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: SAGE server usernames
This was an experimental class, and we are debating about setting up a Sage server. I have a local installation of Sage for my own research, but was interested in the possibility of using it for this and other classes. We're also a fairly small school (1400 total students, with about 6-12 math majors a year) so it's not something we wanted to allocate a lot of resources to before doing a trial run in at least one class. I do see your point though, and if this works out, it'll be worth the resources to set up and maintain our own server. Thanks Jason, for fixing the other problem and looking into the username stuff. ~Gwyn On Feb 7, 1:03 pm, John Cremona john.crem...@gmail.com wrote: Is there any kind of policy stated anywhere about using the public servers such as sagenb.org for class teaching? I think I would assume that if I were to use Sage for a class then it should be my responsibility (or my institution's) to provide the service, not to reply on the public server. Of course it's different if the use of sagenb,org is explicitly tagged as experimental for the class, with an assumption that if the class works well a local server will be set up as a longer-term solution. Just wondering, John On 7 February 2012 17:42, Jason Grout jason-s...@creativetrax.com wrote: On 2/7/12 11:09 AM, Gwyn wrote: A second problem I've encountered trying to use sage for this class: Initially, after I'd created a Sage notebook account, if I logged out for more than (around) an hour and tried to log back in, I would receive a message: Username does not exist. I created the same username a second time with the same password and signed in -- and my worksheets were all saved and fine. This lasted for about a week and a half, where every time I was signed out, the server seemed to forget my username. When it forgot, any published worksheets I had needed to be republished, and any shared worksheets lost my collaborators (or I was removed from the collaboration list on another worksheet.) I had my students all create usernames for the lab we did in class last Wednesday, share them with their lab partner, and with myself. Within an hour after class, all of the worksheets (which I could see from my home page in my sage account) disappeared. Out of the 24 students who had signed up for accounts, I can see TWO of their usernames still (after I told them to resign up with the same username and reshare their worksheet.) Is there something I can do to make their usernames stick? I've just created a new account on sagenb.org to try to replicate this. The server restart I just did may have fixed this as well. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL:http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: SAGE server usernames
On 2/7/12 12:03 PM, John Cremona wrote: Is there any kind of policy stated anywhere about using the public servers such as sagenb.org for class teaching? I think I would assume that if I were to use Sage for a class then it should be my responsibility (or my institution's) to provide the service, not to reply on the public server. Of course it's different if the use of sagenb,org is explicitly tagged as experimental for the class, with an assumption that if the class works well a local server will be set up as a longer-term solution. William is certainly the one to weigh in on this (it's his equipment, after all), but in the past, he's been encouraging to people to use sagenb.org for classes and such, with the caveat that absolutely nothing was guaranteed, it might go away tomorrow, etc. Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: SAGE server usernames
On Tue, Feb 7, 2012 at 10:03 AM, John Cremona john.crem...@gmail.com wrote: Is there any kind of policy stated anywhere about using the public servers such as sagenb.org for class teaching? I think I would assume that if I were to use Sage for a class then it should be my responsibility (or my institution's) to provide the service, not to reply on the public server. Of course it's different if the use of sagenb,org is explicitly tagged as experimental for the class, with an assumption that if the class works well a local server will be set up as a longer-term solution. Just wondering, I own the sagenb.org hardware, and manage the servers, and here's what I think about how they should be used.Use of http://sagenb.org should be mainly for experimental use, and not something anybody should rely on. I make no stated -- even attempted -- guarantees about backups, privacy, security, stability, uptime, etc. That said, the wheels are in motion to start an off-campus service called http://sagenb.com; (which will initially contain a clone of http://sagenb.org), for which I will want to encourage as wide of usage as possible. It will generate revenue that will go toward supporting Sage development. -- William John On 7 February 2012 17:42, Jason Grout jason-s...@creativetrax.com wrote: On 2/7/12 11:09 AM, Gwyn wrote: A second problem I've encountered trying to use sage for this class: Initially, after I'd created a Sage notebook account, if I logged out for more than (around) an hour and tried to log back in, I would receive a message: Username does not exist. I created the same username a second time with the same password and signed in -- and my worksheets were all saved and fine. This lasted for about a week and a half, where every time I was signed out, the server seemed to forget my username. When it forgot, any published worksheets I had needed to be republished, and any shared worksheets lost my collaborators (or I was removed from the collaboration list on another worksheet.) I had my students all create usernames for the lab we did in class last Wednesday, share them with their lab partner, and with myself. Within an hour after class, all of the worksheets (which I could see from my home page in my sage account) disappeared. Out of the 24 students who had signed up for accounts, I can see TWO of their usernames still (after I told them to resign up with the same username and reshare their worksheet.) Is there something I can do to make their usernames stick? I've just created a new account on sagenb.org to try to replicate this. The server restart I just did may have fixed this as well. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage server
Hi Tom, I'm trying to do the same thing, but I haven't gotten nearly as far you. I just posted a long question about this ( https://groups.google.com/forum/#!topic/sage-support/j073ILEqKYA). Have you gotten this to work 100%? I'm not sure how to use mod rewrite to fix things -- could you post any relevant apache config directives? Thanks, Jonathan -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage server
Did you get this to work? I'm trying a similar setup, but apart from just looking in the source and changing all the links I can't get it to work. Maybe we can fix this more permanently by changing all the links to %base_url/home etc, so you can set a base_url and be done with it. I'd be happy to do that if this means we can get it to work. Bastiaan -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage server
On 3/20/11 12:37 PM, tbensky wrote: Hi Jason- Sorry to keep bugging you about this but I think I'm getting closer to getting this working. I have found a bunch of apache mod_rewrites has taken care of many problems, but I the the ajax calls are still broken. I have identified a javascript function called asych_request which appears to be a prime candidate for a base-url prefix. My problem now is that the javascript code appears to be compressed or shrouded in the deployed sage math version. Is there a command or section of the makefile that rebuilds the deployed javascript code (in /javascript) from the readable code found in the devel directory? I am thinking that I could add a base url to this function, rebuild it, and see if that moves this along. Thanks, If you change something in $SAGE_ROOT/devel/sagenb/sagenb/data/sage/js/, that change should be immediately visible in the notebook. You might have to refresh your page and/or clear your cache to get the updated javascript file, though. I believe all of the ajax requests go through the async_lib.js file (that's where you find async_request). Thanks for working on this! Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage server
Hi Jason- Sorry to keep bugging you about this but I think I'm getting closer to getting this working. I have found a bunch of apache mod_rewrites has taken care of many problems, but I the the ajax calls are still broken. I have identified a javascript function called asych_request which appears to be a prime candidate for a base-url prefix. My problem now is that the javascript code appears to be compressed or shrouded in the deployed sage math version. Is there a command or section of the makefile that rebuilds the deployed javascript code (in /javascript) from the readable code found in the devel directory? I am thinking that I could add a base url to this function, rebuild it, and see if that moves this along. Thanks, Tom On Mar 18, 5:03 pm, Jason Grout jason-s...@creativetrax.com wrote: On 3/18/11 6:22 PM, tbensky wrote: Thanks Jason---I found a todo.txt in the sagebn directory referencing some need for base_url. Is this what you are referring to? Some base_url on the html pages? When I inspect my Apache Proxy logs, Javascript calls to things like trash_notebook are routed to my /var/ www/trash_notebook directory, as are things like /var/www/eval, etc. These obviously need to be rerouted, but I am looking to dive into the core sage javascript code? This would be painful. That todo note was what I was thinking about. Unfortunately, after reading a bit more, it seems that the html base tag only works for relative URLs on a page, but there are plenty of javascript and css things that are absolute references. So I don't know how much it would do, and it looks like a much bigger (but still doable!) job to go through each URL and replace it with either a relative URL or a URL that uses some option from the notebook command to change the base directory. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage server
On 3/18/11 5:11 PM, Tom Bensky wrote: Dear sage community--- I want to set up a local sage server for my freshman physics students to use. I am using Ubuntu 10.10 and followed the directions at the SageServer wiki and it worked just fine. Assuming my server is at http://server.whatever, going to this URL would fire up sage just fine, with apache proxies rerouting / to localhost:8000. This installation, however, assumes that the document root of the web server is where the installation should occur. The associated proxy redirects essentially take over the whole web server--that is, accessing other web services, like a wiki or some other php codes becomes impossible. I tried changing the proxies to reference something like http://server.whatever/sage (that is, proxy redirect /sage/ requests to localhost:8000). This works initially, but the css, etc. was all missing. I fixed this with URL rewrites in /sage/.htaccess, which edits the absolute references in the sage html files. Things looked perfect now at http://server.whatever/sage, and my other web services were available too. The problem now is that all sage worksheets contain a red Searching for sage server... and the worksheets become useless (i.e. disconnected from the sage server). Likewise the javascript action of deleting, etc. a worksheet are broken. I am stuck here and cannot find a solution to this problem. Has anyone tried installing a sage server into any web directory other that the root one? There have been people that have discussed this before, but I can't find the links with a few minutes of searching. The conclusion (IIRC) was that a few judicious uses of the HTML base tag in the notebook html sources would hopefully take care of the issue: http://www.w3schools.com/TAGS/tag_base.asp I thought someone even had a patch at one point, but I can't find it on trac either. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage server
Thanks Jason---I found a todo.txt in the sagebn directory referencing some need for base_url. Is this what you are referring to? Some base_url on the html pages? When I inspect my Apache Proxy logs, Javascript calls to things like trash_notebook are routed to my /var/ www/trash_notebook directory, as are things like /var/www/eval, etc. These obviously need to be rerouted, but I am looking to dive into the core sage javascript code? This would be painful. Tom On Mar 18, 3:59 pm, Jason Grout jason-s...@creativetrax.com wrote: On 3/18/11 5:11 PM, Tom Bensky wrote: Dear sage community--- I want to set up a local sage server for my freshman physics students to use. I am using Ubuntu 10.10 and followed the directions at the SageServer wiki and it worked just fine. Assuming my server is at http://server.whatever, going to this URL would fire up sage just fine, with apache proxies rerouting / to localhost:8000. This installation, however, assumes that the document root of the web server is where the installation should occur. The associated proxy redirects essentially take over the whole web server--that is, accessing other web services, like a wiki or some other php codes becomes impossible. I tried changing the proxies to reference something likehttp://server.whatever/sage(that is, proxy redirect /sage/ requests to localhost:8000). This works initially, but the css, etc. was all missing. I fixed this with URL rewrites in /sage/.htaccess, which edits the absolute references in the sage html files. Things looked perfect now athttp://server.whatever/sage, and my other web services were available too. The problem now is that all sage worksheets contain a red Searching for sage server... and the worksheets become useless (i.e. disconnected from the sage server). Likewise the javascript action of deleting, etc. a worksheet are broken. I am stuck here and cannot find a solution to this problem. Has anyone tried installing a sage server into any web directory other that the root one? There have been people that have discussed this before, but I can't find the links with a few minutes of searching. The conclusion (IIRC) was that a few judicious uses of the HTML base tag in the notebook html sources would hopefully take care of the issue:http://www.w3schools.com/TAGS/tag_base.asp I thought someone even had a patch at one point, but I can't find it on trac either. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage server
On 3/18/11 6:22 PM, tbensky wrote: Thanks Jason---I found a todo.txt in the sagebn directory referencing some need for base_url. Is this what you are referring to? Some base_url on the html pages? When I inspect my Apache Proxy logs, Javascript calls to things like trash_notebook are routed to my /var/ www/trash_notebook directory, as are things like /var/www/eval, etc. These obviously need to be rerouted, but I am looking to dive into the core sage javascript code? This would be painful. That todo note was what I was thinking about. Unfortunately, after reading a bit more, it seems that the html base tag only works for relative URLs on a page, but there are plenty of javascript and css things that are absolute references. So I don't know how much it would do, and it looks like a much bigger (but still doable!) job to go through each URL and replace it with either a relative URL or a URL that uses some option from the notebook command to change the base directory. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: SAGE server connection issues
Yes, and one not run by the 'official' UW group. So you would have to ask the folks at Clemson who run it. - kcrisman On Nov 23, 2:51 am, Timothy Clemans timothy.clem...@gmail.com wrote: Looks like a public sage notebookhttps://clemix.clemson.edu:34567/pub/ On Mon, Nov 22, 2010 at 10:17 PM, Robert Bradshaw rober...@math.washington.edu wrote: What is clemix and how does it relate to Sage? On Mon, Nov 22, 2010 at 6:25 PM, calcp...@aol.com calcp...@aol.com wrote: (sorry for cross-posting from sage-edu, but there seems to be a lot more traffic here) Hi everyone, I've been using clemix this entire school year so far in my Intro Discrete Math class. My students login and do their work there every single day. I have an account there too and they can share their completed assignments. This has all been working out great until recently. Both today and this past Friday we have had lots of connection issues. Connections would time out or be very laggy taking a long time to complete even the simplest of operations or the server could not be found in order to save worksheets. I'm wondering if anyone else is have trouble like this of late? TIA, A. Jorge Garcia http://shadowfaxrant.blogspot.com -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/sage-support URL:http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/sage-support URL:http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage server question
You can publish the worksheet. The others may view the published version and refresh whenever you save changes. Hope this helps. Robert On 14 čvn, 06:13, Christian Szegedy christian.szeg...@gmail.com wrote: Thanks, this is exactly what I asked: The viewers should not be able to make changes or work on the spreadsheet, but they should get real-time updates every time a new entry is entered. So, generally I conclude from your answer that the sage server is not up to this task out of the box. So it looks that sage is not On Fri, Jun 11, 2010 at 5:41 AM, kcrisman kcris...@gmail.com wrote: Dear Christian, Can you be more specific as to what you mean? If I understand you correctly, you intend to start one worksheet, but have perhaps 20-40 people viewing it at once. It is certainly possible for multiple people to view the same worksheet at the same time, if it is 'shared' with all of them, though unlike Google Docs simultaneous editing or using is very iffy. I do not know what would happen if you did it with that many, and I don't think that the others would necessarily immediately see any changes a moderator (you?) would make. On the other hand, if you wanted 20-40 people to view copies of the same worksheet and work through them simultaneously, then it's just a matter of memory and bandwidth, and has been done. I hope this helps; please let us know if this is mischaracterizing your question. - kcrisman On Jun 9, 5:40 pm, Christian Szegedy christian.szeg...@gmail.com wrote: I have a question regarding the Sage server: Is it possible to start interactive sessions with multiple viewers? What I have in mind is to use Sage for giving interactive online presentations for up to (at most) a few dozen users. Would this be possible with the current server infrastructure? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.comsage-support%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL:http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage server question
On Jun 14, 3:02 am, ma...@mendelu.cz ma...@mendelu.cz wrote: You can publish the worksheet. The others may view the published version and refresh whenever you save changes. That is a good point. If you don't want anyone else to work on it, when you publish a worksheet there is an option update with changes or something like that. It's not instantaneous - I haven't tested whether changes show up immediately upon evaluation, or only when one saves, as Robert suggests - but it would be worth testing out, and we would love to hear whether you think it might fit your needs (and if not, what specific feature would help it do so). - kcrisman Thanks, this is exactly what I asked: The viewers should not be able to make changes or work on the spreadsheet, but they should get real-time updates every time a new entry is entered. So, generally I conclude from your answer that the sage server is not up to this task out of the box. So it looks that sage is not -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage server question
Thanks, this is exactly what I asked: The viewers should not be able to make changes or work on the spreadsheet, but they should get real-time updates every time a new entry is entered. So, generally I conclude from your answer that the sage server is not up to this task out of the box. So it looks that sage is not On Fri, Jun 11, 2010 at 5:41 AM, kcrisman kcris...@gmail.com wrote: Dear Christian, Can you be more specific as to what you mean? If I understand you correctly, you intend to start one worksheet, but have perhaps 20-40 people viewing it at once. It is certainly possible for multiple people to view the same worksheet at the same time, if it is 'shared' with all of them, though unlike Google Docs simultaneous editing or using is very iffy. I do not know what would happen if you did it with that many, and I don't think that the others would necessarily immediately see any changes a moderator (you?) would make. On the other hand, if you wanted 20-40 people to view copies of the same worksheet and work through them simultaneously, then it's just a matter of memory and bandwidth, and has been done. I hope this helps; please let us know if this is mischaracterizing your question. - kcrisman On Jun 9, 5:40 pm, Christian Szegedy christian.szeg...@gmail.com wrote: I have a question regarding the Sage server: Is it possible to start interactive sessions with multiple viewers? What I have in mind is to use Sage for giving interactive online presentations for up to (at most) a few dozen users. Would this be possible with the current server infrastructure? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.comsage-support%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage server question
Dear Christian, Can you be more specific as to what you mean? If I understand you correctly, you intend to start one worksheet, but have perhaps 20-40 people viewing it at once. It is certainly possible for multiple people to view the same worksheet at the same time, if it is 'shared' with all of them, though unlike Google Docs simultaneous editing or using is very iffy. I do not know what would happen if you did it with that many, and I don't think that the others would necessarily immediately see any changes a moderator (you?) would make. On the other hand, if you wanted 20-40 people to view copies of the same worksheet and work through them simultaneously, then it's just a matter of memory and bandwidth, and has been done. I hope this helps; please let us know if this is mischaracterizing your question. - kcrisman On Jun 9, 5:40 pm, Christian Szegedy christian.szeg...@gmail.com wrote: I have a question regarding the Sage server: Is it possible to start interactive sessions with multiple viewers? What I have in mind is to use Sage for giving interactive online presentations for up to (at most) a few dozen users. Would this be possible with the current server infrastructure? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On Jun 1, 7:19 pm, Jason Grout jason-s...@creativetrax.com wrote: On 6/1/10 8:57 PM, Vinod wrote: Yes, matlab does save the images properly to the directory. But the problem here is to get the image displayed on the web browser itself. Are you saying that in the Sage notebook: 1. You can use the above code to create a matlab plot and save it to a specific directory (the current python directory) but 2. the image is not picked up automatically by the Sage notebook? Any image created in a Sage notebook cell current directory should be displayed in the notebook under that cell. Right now, matlab stores the image in this directory. /usr/local/sage/data/extcode/matlab/user/ Is this path not a proper one for the images? Not sure how to change this to a python directory. Thanks, Vinod Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On 6/2/10 12:13 PM, Vinod wrote: On Jun 1, 7:19 pm, Jason Groutjason-s...@creativetrax.com wrote: On 6/1/10 8:57 PM, Vinod wrote: Yes, matlab does save the images properly to the directory. But the problem here is to get the image displayed on the web browser itself. Are you saying that in the Sage notebook: 1. You can use the above code to create a matlab plot and save it to a specific directory (the current python directory) but 2. the image is not picked up automatically by the Sage notebook? Any image created in a Sage notebook cell current directory should be displayed in the notebook under that cell. Right now, matlab stores the image in this directory. /usr/local/sage/data/extcode/matlab/user/ Is this path not a proper one for the images? No. Not sure how to change this to a python directory. William said how in his message: import os filename = os.path.join(os.path.abspath('.'),'matlabfig1.png') matlab.eval(h = figure('Visible', 'off')) matlab.eval(plot(1:.1:10, sin(1:.1:10))) out = matlab.eval(saveas(h,'%s')%filename) Alternatively, did you apply the patch mentioned earlier that apparently fixes the problem? You have to apply the patch: hg_sage.apply('http://trac.sagemath.org/sage_trac/attachment/ticket/9070/trac_9070.patch') then do: sage -br from the command line to restart sage and compile the patch, and then start the notebook server again Then you should be able to just use the savefig command to save figures. I don't have matlab installed, so I can't test the patch, but apparently it worked and it is included in the next version of Sage. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
hello Jason, This doesn't work either... :( matlab doesn't even start with xvfb-run command. it gives lot of errors. ~Vinod On May 28, 6:24 pm, Jason Grout jason-s...@creativetrax.com wrote: On 5/28/10 8:08 PM, William Stein wrote: On Fri, May 28, 2010 at 5:52 PM, Jason Grout jason-s...@creativetrax.com wrote: On 5/28/10 7:47 PM, Vinod wrote: X11 connection rejected because of wrong authentication. Warning: Unable to open display 'localhost:12.0'. You will not be able to display graphics on the screen. So now it's not a Sage question, but a question of how to run Matlab over an ssh session. That's something that should have an answer somewhere, either through a google search or asking MathWorks. No, that is not the problem at all. What's happening is that he's giving code to Matlab that asks it to pop up a plot. Matlab is then trying to make the plot appear on the screen using *XWindows*. Naturally, this fails in the notebook -- it simply doesn't make any sense to do this. Right. Thanks for reminding me the context of this conversation. The same problem (needing to pop up a window) appears when trying to render an image using OpenGL without X. In the OpenGL case, I believe there are ways of getting an opengl context to work without trying to pop up an XWindows window. I believe the typical way to do this is to use a framebuffer. A google search opengl without x11 turns up lots of hits for doing such a thing. Instructions for doing such a thing are also in the Mayavi manual:http://code.enthought.com/projects/mayavi/docs/development/html/mayav... I've never done this, though. Whether or not OpenGL is the problem here, using a framebuffer might solve the problem. Maybe. Assuming you are using Ubuntu, can you try following the instructions in the Mayavi manual? $ sudo apt-get install xvfb ssh in as the sage worksheet user $ xvfb-run matlab then try the plotting command Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On 6/1/10 5:53 PM, Vinod wrote: hello Jason, This doesn't work either... :( matlab doesn't even start with xvfb-run command. it gives lot of errors. As William pointed out, is the original problem resolved by one of the other messages? If not, can you precisely state the problem as it now stands? Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
Yes, matlab does save the images properly to the directory. But the problem here is to get the image displayed on the web browser itself. Thanks, Vinod On Jun 1, 4:17 pm, Jason Grout jason-s...@creativetrax.com wrote: On 6/1/10 5:53 PM, Vinod wrote: hello Jason, This doesn't work either... :( matlab doesn't even start with xvfb-run command. it gives lot of errors. As William pointed out, is the original problem resolved by one of the other messages? If not, can you precisely state the problem as it now stands? Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On 6/1/10 8:57 PM, Vinod wrote: Yes, matlab does save the images properly to the directory. But the problem here is to get the image displayed on the web browser itself. Are you saying that in the Sage notebook: 1. You can use the above code to create a matlab plot and save it to a specific directory (the current python directory) but 2. the image is not picked up automatically by the Sage notebook? Any image created in a Sage notebook cell current directory should be displayed in the notebook under that cell. Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On May 27, 6:40 pm, William Stein wst...@gmail.com wrote: On Thu, May 27, 2010 at 6:39 PM, Vinod vinodprab...@gmail.com wrote: That's Awesome! Thanks for the help. When would the sage4.4.3 release? Should I wait till then or is it possible for you guys to post the patch here in the forum? Vinod Just type sage: hg_sage.apply('http://trac.sagemath.org/sage_trac/attachment/ticket/9070/trac_9070.p...) exit sage, then type sage -br And you should have the patch installed into your copy of Sage. William Thank you William and Mike. I installed the patch and tried with the matlab again. Now I have a different error message in the terminal when I try to execute the matlab code involving plots in the webserver X11 connection rejected because of wrong authentication. I verified all the X11 settings and it looks fine. The link lists all the check points one should look for: http://www.cyberciti.biz/faq/x11-connection-rejected-because-of-wrong-authentication/ The sage server was setup using the method discussed under the last section Other Instructions -from JasonGrout in the below link. http://wiki.sagemath.org/DanDrake/JustEnoughSageServer Is there anything wrong with the server setup itself? Vinod -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage Server - displaying Matlab plots
On Thu, May 27, 2010 at 11:53 PM, Vinod vinodprab...@gmail.com wrote: On May 27, 6:40 pm, William Stein wst...@gmail.com wrote: On Thu, May 27, 2010 at 6:39 PM, Vinod vinodprab...@gmail.com wrote: That's Awesome! Thanks for the help. When would the sage4.4.3 release? Should I wait till then or is it possible for you guys to post the patch here in the forum? Vinod Just type sage: hg_sage.apply('http://trac.sagemath.org/sage_trac/attachment/ticket/9070/trac_9070.p...) exit sage, then type sage -br And you should have the patch installed into your copy of Sage. William Thank you William and Mike. I installed the patch and tried with the matlab again. Now I have a different error message in the terminal when I try to execute the matlab code involving plots in the webserver What code are you executing. What if you try: h = figure('Visible', 'off') plot(1:.1:10, sin(1:.1:10)) saveas(h,'foo.png') -- William X11 connection rejected because of wrong authentication. I verified all the X11 settings and it looks fine. The link lists all the check points one should look for: http://www.cyberciti.biz/faq/x11-connection-rejected-because-of-wrong-authentication/ The sage server was setup using the method discussed under the last section Other Instructions -from JasonGrout in the below link. http://wiki.sagemath.org/DanDrake/JustEnoughSageServer Is there anything wrong with the server setup itself? Vinod -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On May 28, 12:08 am, William Stein wst...@gmail.com wrote: On Thu, May 27, 2010 at 11:53 PM, Vinod vinodprab...@gmail.com wrote: On May 27, 6:40 pm, William Stein wst...@gmail.com wrote: On Thu, May 27, 2010 at 6:39 PM, Vinod vinodprab...@gmail.com wrote: That's Awesome! Thanks for the help. When would the sage4.4.3 release? Should I wait till then or is it possible for you guys to post the patch here in the forum? Vinod Just type sage: hg_sage.apply('http://trac.sagemath.org/sage_trac/attachment/ticket/9070/trac_9070.p...) exit sage, then type sage -br And you should have the patch installed into your copy of Sage. William Thank you William and Mike. I installed the patch and tried with the matlab again. Now I have a different error message in the terminal when I try to execute the matlab code involving plots in the webserver What code are you executing. What if you try: h = figure('Visible', 'off') plot(1:.1:10, sin(1:.1:10)) saveas(h,'foo.png') -- William Even this doesn't display the plot. Here is the snapshot of what I tried. http://math.asu.edu/~scimm/images/screenshot_code1.png Below is the snapshot with the other matlab code that I tried earlier http://math.asu.edu/~scimm/images/screenshot_code2.png In both cases, the image is created in the directory. Vinod -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On 5/28/10 1:53 AM, Vinod wrote: Now I have a different error message in the terminal when I try to execute the matlab code involving plots in the webserver X11 connection rejected because of wrong authentication. I verified all the X11 settings and it looks fine. The link lists all the check points one should look for: http://www.cyberciti.biz/faq/x11-connection-rejected-because-of-wrong-authentication/ The sage server was setup using the method discussed under the last section Other Instructions -from JasonGrout in the below link. http://wiki.sagemath.org/DanDrake/JustEnoughSageServer I wonder if you'll have to do something to the Sage worksheet process users. See, for example, http://umdmath.blogspot.com/ What happens if you ssh into a Sage worksheet account and try running matlab? ssh sageus...@localhost then try running matlab from the command line. My guess is that if you get that working, then Sage will be able to get matlab to work. Note that there might be legal issues with providing access to matlab via a webserver (whether or not it is a private webserver). I don't know, but it would be something to be aware of if it is an issue. Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On May 28, 12:38 pm, Jason Grout jason-s...@creativetrax.com wrote: On 5/28/10 1:53 AM, Vinod wrote: Now I have a different error message in the terminal when I try to execute the matlab code involving plots in the webserver X11 connection rejected because of wrong authentication. I verified all the X11 settings and it looks fine. The link lists all the check points one should look for: http://www.cyberciti.biz/faq/x11-connection-rejected-because-of-wrong... The sage server was setup using the method discussed under the last section Other Instructions -from JasonGrout in the below link. http://wiki.sagemath.org/DanDrake/JustEnoughSageServer I wonder if you'll have to do something to the Sage worksheet process users. See, for example,http://umdmath.blogspot.com/ What happens if you ssh into a Sage worksheet account and try running matlab? ssh sageus...@localhost then try running matlab from the command line. My guess is that if you get that working, then Sage will be able to get matlab to work. I tried all this and it displays the following error message when the matlab is started from the command line. X11 connection rejected because of wrong authentication. Warning: Unable to open display 'localhost:12.0'. You will not be able to display graphics on the screen. So if we get this working, I can make other softwares like octave working too. Note that there might be legal issues with providing access to matlab via a webserver (whether or not it is a private webserver). I don't know, but it would be something to be aware of if it is an issue. Yes, We are planning to have a word with matlab before we bring this to our students. Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On 5/28/10 7:47 PM, Vinod wrote: X11 connection rejected because of wrong authentication. Warning: Unable to open display 'localhost:12.0'. You will not be able to display graphics on the screen. So now it's not a Sage question, but a question of how to run Matlab over an ssh session. That's something that should have an answer somewhere, either through a google search or asking MathWorks. So if we get this working, I can make other softwares like octave working too. Does Octave not work right now? Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage Server - displaying Matlab plots
On Fri, May 28, 2010 at 5:52 PM, Jason Grout jason-s...@creativetrax.com wrote: On 5/28/10 7:47 PM, Vinod wrote: X11 connection rejected because of wrong authentication. Warning: Unable to open display 'localhost:12.0'. You will not be able to display graphics on the screen. So now it's not a Sage question, but a question of how to run Matlab over an ssh session. That's something that should have an answer somewhere, either through a google search or asking MathWorks. No, that is not the problem at all. What's happening is that he's giving code to Matlab that asks it to pop up a plot. Matlab is then trying to make the plot appear on the screen using *XWindows*. Naturally, this fails in the notebook -- it simply doesn't make any sense to do this. So if we get this working, I can make other softwares like octave working too. Does Octave not work right now? Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On 5/28/10 8:08 PM, William Stein wrote: On Fri, May 28, 2010 at 5:52 PM, Jason Grout jason-s...@creativetrax.com wrote: On 5/28/10 7:47 PM, Vinod wrote: X11 connection rejected because of wrong authentication. Warning: Unable to open display 'localhost:12.0'. You will not be able to display graphics on the screen. So now it's not a Sage question, but a question of how to run Matlab over an ssh session. That's something that should have an answer somewhere, either through a google search or asking MathWorks. No, that is not the problem at all. What's happening is that he's giving code to Matlab that asks it to pop up a plot. Matlab is then trying to make the plot appear on the screen using *XWindows*. Naturally, this fails in the notebook -- it simply doesn't make any sense to do this. Right. Thanks for reminding me the context of this conversation. The same problem (needing to pop up a window) appears when trying to render an image using OpenGL without X. In the OpenGL case, I believe there are ways of getting an opengl context to work without trying to pop up an XWindows window. I believe the typical way to do this is to use a framebuffer. A google search opengl without x11 turns up lots of hits for doing such a thing. Instructions for doing such a thing are also in the Mayavi manual: http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/tips.html#rendering-using-the-virtual-framebuffer I've never done this, though. Whether or not OpenGL is the problem here, using a framebuffer might solve the problem. Maybe. Assuming you are using Ubuntu, can you try following the instructions in the Mayavi manual? $ sudo apt-get install xvfb ssh in as the sage worksheet user $ xvfb-run matlab then try the plotting command Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage Server - displaying Matlab plots
On Fri, May 28, 2010 at 6:24 PM, Jason Grout jason-s...@creativetrax.com wrote: On 5/28/10 8:08 PM, William Stein wrote: On Fri, May 28, 2010 at 5:52 PM, Jason Grout jason-s...@creativetrax.com wrote: On 5/28/10 7:47 PM, Vinod wrote: X11 connection rejected because of wrong authentication. Warning: Unable to open display 'localhost:12.0'. You will not be able to display graphics on the screen. So now it's not a Sage question, but a question of how to run Matlab over an ssh session. That's something that should have an answer somewhere, either through a google search or asking MathWorks. No, that is not the problem at all. What's happening is that he's giving code to Matlab that asks it to pop up a plot. Matlab is then trying to make the plot appear on the screen using *XWindows*. Naturally, this fails in the notebook -- it simply doesn't make any sense to do this. Right. Thanks for reminding me the context of this conversation. The same problem (needing to pop up a window) appears when trying to render an image using OpenGL without X. In the OpenGL case, I believe there are ways of getting an opengl context to work without trying to pop up an XWindows window. I believe the typical way to do this is to use a framebuffer. A google search opengl without x11 turns up lots of hits for doing such a thing. Instructions for doing such a thing are also in the Mayavi manual: http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/tips.html#rendering-using-the-virtual-framebuffer I've never done this, though. Whether or not OpenGL is the problem here, using a framebuffer might solve the problem. Maybe. Assuming you are using Ubuntu, can you try following the instructions in the Mayavi manual? I don't think this makes any sense. Matlab is fully capable of saving images to file using the saveas command, as explained in detail I think earlier in this very thread. -- William $ sudo apt-get install xvfb ssh in as the sage worksheet user $ xvfb-run matlab then try the plotting command Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On May 26, 11:40 pm, Vinod vinodprab...@gmail.com wrote: Is there anything else that needs to be done? It's not working for me either. What I did in a cell is this: import os filename = os.path.join(SAGE_TMP,'matlabfig1.png') matlab(h = figure('Visible', 'off')) matlab(plot(1:4,5:8)) matlab(saveas(h,'+filename+')) h -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On May 27, 9:21 am, William Stein wst...@gmail.com wrote: On Thursday, May 27, 2010, Harald Schilly harald.schi...@gmail.com wrote: On May 26, 11:40 pm, Vinod vinodprab...@gmail.com wrote: Is there anything else that needs to be done? It's not working for me either. What I did in a cell is this: import os filename = os.path.join(SAGE_TMP,'matlabfig1.png') matlab(h = figure('Visible', 'off')) matlab(plot(1:4,5:8)) matlab(saveas(h,'+filename+')) That should not work, since you are not writing then file to the current python directory. William yes. It didn't work for me either. Below is the list of steps followed: 1. Log in to the sage webserver with firefox browser. 2. create a new worksheet. 3. select the matlab option in the list of softwares available. 4. write the below code in the editor Delay = [1 2 3 4 5 6] Vctrl = [0.781 1.025 1.19 1.37 1.469 1.533] plot(Vctrl,Delay) savefig('nicefig2', 'png', '-rgb', '-c0.1', '-r250') 5. press evaluate. The simple matlab code I wrote is functional and the sage server evaluates it properly and generates the .png file in the directory. Only issue that need to be addressed is to get the sage server display the plots in the web browser itself. We are planning to provide this to a set of students who take summer classes and it would be really great if we can get this working. rightnow, this creates the nicefig2.png file in the directory home/ sageserver/matlab/user/ Is it something to do with the directory it writes? Thank you all for your sincere replies. Vinod h -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/sage-support URL:http://www.sagemath.org -- William Stein Professor of Mathematics University of Washingtonhttp://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage Server - displaying Matlab plots
On Thu, May 27, 2010 at 12:20 PM, Vinod vinodprab...@gmail.com wrote: The simple matlab code I wrote is functional and the sage server evaluates it properly and generates the .png file in the directory. Only issue that need to be addressed is to get the sage server display the plots in the web browser itself. We are planning to provide this to a set of students who take summer classes and it would be really great if we can get this working. rightnow, this creates the nicefig2.png file in the directory home/ sageserver/matlab/user/ Is it something to do with the directory it writes? Yes. In order for this to work, someone needs to implement the chdir method for the Matlab interface. See the example in sage/interfaces/mathematica.py --Mike -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage Server - displaying Matlab plots
On Thu, May 27, 2010 at 12:23 PM, Mike Hansen mhan...@gmail.com wrote: On Thu, May 27, 2010 at 12:20 PM, Vinod vinodprab...@gmail.com wrote: The simple matlab code I wrote is functional and the sage server evaluates it properly and generates the .png file in the directory. Only issue that need to be addressed is to get the sage server display the plots in the web browser itself. We are planning to provide this to a set of students who take summer classes and it would be really great if we can get this working. rightnow, this creates the nicefig2.png file in the directory home/ sageserver/matlab/user/ Is it something to do with the directory it writes? Yes. In order for this to work, someone needs to implement the chdir method for the Matlab interface. See the example in sage/interfaces/mathematica.py In the meantime, try this: import os filename = os.path.join(os.path.abspath('.'),'matlabfig1.png') matlab.eval(h = figure('Visible', 'off')) matlab.eval(plot(1:.1:10, sin(1:.1:10))) out = matlab.eval(saveas(h,'%s')%filename) See screenshot for proof this works... -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org attachment: Screen shot 2010-05-27 at 2.04.31 PM.png
[sage-support] Re: Sage Server - displaying Matlab plots
Yes William, Your code works for me as well. I get a neat plot displayed as yours. Here the software chosen is sage. My question is: Is it not possible to write a simple matlab code as I wrote before and select the option Matlab instead of sage in the list of softwares available and have it working? It does all the math and displays the result but not the plot. Vinod On May 27, 2:05 pm, William Stein wst...@gmail.com wrote: On Thu, May 27, 2010 at 12:23 PM, Mike Hansen mhan...@gmail.com wrote: On Thu, May 27, 2010 at 12:20 PM, Vinod vinodprab...@gmail.com wrote: The simple matlab code I wrote is functional and the sage server evaluates it properly and generates the .png file in the directory. Only issue that need to be addressed is to get the sage server display the plots in the web browser itself. We are planning to provide this to a set of students who take summer classes and it would be really great if we can get this working. rightnow, this creates the nicefig2.png file in the directory home/ sageserver/matlab/user/ Is it something to do with the directory it writes? Yes. In order for this to work, someone needs to implement the chdir method for the Matlab interface. See the example in sage/interfaces/mathematica.py In the meantime, try this: import os filename = os.path.join(os.path.abspath('.'),'matlabfig1.png') matlab.eval(h = figure('Visible', 'off')) matlab.eval(plot(1:.1:10, sin(1:.1:10))) out = matlab.eval(saveas(h,'%s')%filename) See screenshot for proof this works... -- William Stein Professor of Mathematics University of Washingtonhttp://wstein.org Screen shot 2010-05-27 at 2.04.31 PM.png 52KViewDownload -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage Server - displaying Matlab plots
On Thu, May 27, 2010 at 5:32 PM, Vinod vinodprab...@gmail.com wrote: Yes William, Your code works for me as well. I get a neat plot displayed as yours. Here the software chosen is sage. My question is: Is it not possible to write a simple matlab code as I wrote before and select the option Matlab instead of sage in the list of softwares available and have it working? It does all the math and displays the result but not the plot. Unfortunately, that isn't yet possible, but there is a very simple 3-line patch that would fix it. Mike Hansen just told me that he will create such a patch tonight. http://trac.sagemath.org/sage_trac/ticket/9072 -- William Vinod On May 27, 2:05 pm, William Stein wst...@gmail.com wrote: On Thu, May 27, 2010 at 12:23 PM, Mike Hansen mhan...@gmail.com wrote: On Thu, May 27, 2010 at 12:20 PM, Vinod vinodprab...@gmail.com wrote: The simple matlab code I wrote is functional and the sage server evaluates it properly and generates the .png file in the directory. Only issue that need to be addressed is to get the sage server display the plots in the web browser itself. We are planning to provide this to a set of students who take summer classes and it would be really great if we can get this working. rightnow, this creates the nicefig2.png file in the directory home/ sageserver/matlab/user/ Is it something to do with the directory it writes? Yes. In order for this to work, someone needs to implement the chdir method for the Matlab interface. See the example in sage/interfaces/mathematica.py In the meantime, try this: import os filename = os.path.join(os.path.abspath('.'),'matlabfig1.png') matlab.eval(h = figure('Visible', 'off')) matlab.eval(plot(1:.1:10, sin(1:.1:10))) out = matlab.eval(saveas(h,'%s')%filename) See screenshot for proof this works... -- William Stein Professor of Mathematics University of Washingtonhttp://wstein.org Screen shot 2010-05-27 at 2.04.31 PM.png 52KViewDownload -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage Server - displaying Matlab plots
On Thu, May 27, 2010 at 5:42 PM, William Stein wst...@gmail.com wrote: Mike Hansen just told me that he will create such a patch tonight. http://trac.sagemath.org/sage_trac/ticket/9072 The patch is up, but it needs testing. --Mike -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage Server - displaying Matlab plots
Positive review -- this will be in sage-4.4.3. On Thu, May 27, 2010 at 5:54 PM, Mike Hansen mhan...@gmail.com wrote: On Thu, May 27, 2010 at 5:42 PM, William Stein wst...@gmail.com wrote: Mike Hansen just told me that he will create such a patch tonight. http://trac.sagemath.org/sage_trac/ticket/9072 The patch is up, but it needs testing. --Mike -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
That's Awesome! Thanks for the help. When would the sage4.4.3 release? Should I wait till then or is it possible for you guys to post the patch here in the forum? Vinod On May 27, 6:00 pm, William Stein wst...@gmail.com wrote: Positive review -- this will be in sage-4.4.3. On Thu, May 27, 2010 at 5:54 PM, Mike Hansen mhan...@gmail.com wrote: On Thu, May 27, 2010 at 5:42 PM, William Stein wst...@gmail.com wrote: Mike Hansen just told me that he will create such a patch tonight. http://trac.sagemath.org/sage_trac/ticket/9072 The patch is up, but it needs testing. --Mike -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/sage-support URL:http://www.sagemath.org -- William Stein Professor of Mathematics University of Washingtonhttp://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Sage Server - displaying Matlab plots
On Thu, May 27, 2010 at 6:39 PM, Vinod vinodprab...@gmail.com wrote: That's Awesome! Thanks for the help. When would the sage4.4.3 release? Should I wait till then or is it possible for you guys to post the patch here in the forum? Vinod Just type sage: hg_sage.apply('http://trac.sagemath.org/sage_trac/attachment/ticket/9070/trac_9070.patch') exit sage, then type sage -br And you should have the patch installed into your copy of Sage. William On May 27, 6:00 pm, William Stein wst...@gmail.com wrote: Positive review -- this will be in sage-4.4.3. On Thu, May 27, 2010 at 5:54 PM, Mike Hansen mhan...@gmail.com wrote: On Thu, May 27, 2010 at 5:42 PM, William Stein wst...@gmail.com wrote: Mike Hansen just told me that he will create such a patch tonight. http://trac.sagemath.org/sage_trac/ticket/9072 The patch is up, but it needs testing. --Mike -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/sage-support URL:http://www.sagemath.org -- William Stein Professor of Mathematics University of Washingtonhttp://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On 5/25/10 9:32 PM, Vinod wrote: I tried installing a sage server and did succeed with it partially. Now the server is up and my aim is get the sage, matlab, mathematica, and maple softwares function properly displaying plots. but as of now, I could only get sage working with plot options. Can anyone please give some information on how to get the matlab and other softwares display plots using sage notebook webserver? Any help would be appreciated... If you can get matlab to generate an image in the current directory, the sage notebook will automatically display the image. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
William, Thanks for the note. I tried using the savefig command and it does create a .png file in the directory but doesn't get the image displayed on the sage notebook webserver. below is the simple matlab code that I used: Delay = [95e-3 119e-3 142e-3 190e-3 238e-3 285e-3 333e-3 380e-3 428e-3 476e-3] Vctrl = [0.781 1.025 1.19 1.37 1.469 1.533 1.578 1.61 1.636 1.656] plot(Vctrl,Delay) savefig('nicefig1', 'png', '-rgb', '-c0.1', '-r250') Is there anything else that needs to be done? Thanks, Vinod On May 26, 1:03 am, William Stein wst...@gmail.com wrote: On Tue, May 25, 2010 at 7:32 PM, Vinod vinodprab...@gmail.com wrote: I tried installing a sage server and did succeed with it partially. Now the server is up and my aim is get the sage, matlab, mathematica, and maple softwares function properly displaying plots. but as of now, I could only get sage working with plot options. One important point is that in the Sage notebook, if you run a command and it creates a .png image as output, then that image will appear. This might be helpful for some of these other systems. E.g., matlab has a savefig command: http://www.mathworks.com/matlabcentral/fileexchange/10889-savefig Can anyone please give some information on how to get the matlab and other softwares display plots using sage notebook webserver? Any help would be appreciated... Thanks, Vinod -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/sage-support URL:http://www.sagemath.org -- William Stein Professor of Mathematics University of Washingtonhttp://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
Hello Jason, Thanks for the reply. Can you please let me know what current directory you exactly referred to? is it the sage path or matlab working directory? Thanks, Vinod On May 26, 7:38 am, Jason Grout jason-s...@creativetrax.com wrote: On 5/25/10 9:32 PM, Vinod wrote: I tried installing a sage server and did succeed with it partially. Now the server is up and my aim is get the sage, matlab, mathematica, and maple softwares function properly displaying plots. but as of now, I could only get sage working with plot options. Can anyone please give some information on how to get the matlab and other softwares display plots using sage notebook webserver? Any help would be appreciated... If you can get matlab to generate an image in the current directory, the sage notebook will automatically display the image. Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Sage Server - displaying Matlab plots
On 5/26/10 4:53 PM, Vinod wrote: Hello Jason, Thanks for the reply. Can you please let me know what current directory you exactly referred to? is it the sage path or matlab working directory? the current directory that the code is executing in (which happens to be a temporary directory created specifically for that cell) Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: sage server problem
On Mar 27, 9:46 pm, gerhard ge01...@yahoo.de wrote: The solution for me was to omit the serverpool=[...] argument Thanks Gerhard! It is working now. But... I'm still a bit nervous. Having read the documentation on the server_pool option, I see that it specifies that worksheet processes run as a separate user. I'm a bit unclear on exactly what that's supposed to mean but it makes me wonder what might happen if a large number of people log on? In particular, what might happen if I have 20 students in a class working on individual worksheets simultaneously? Will there be a problem because worksheet processes aren't running simultaneously? Also, will the ulimit option really work? Thanks, Mark -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[sage-support] Re: sage server problem
On Mar 28, 8:32 am, mark mcclure mcmcc...@unca.edu wrote: Having read the documentation on the server_pool option, I see that it specifies that worksheet processes run as a separate user. I'm a bit unclear on exactly what that's supposed to mean but it makes me wonder what might happen if a large number of people log on? OK, searching around a bit more in the newsgroups, I find that the server_pool option is required to really run the notebook securely. Evidently, an option of the form server_pool=['sage_server_n...@myserver.edu'] specifies the user name that the worksheets run under. I *think* that otherwise, every user runs with the same permissions as the user who started notebook. In my case, I am not a privileged user on the system so that might not be a problem for the system, but it is still a problem for the Sage notebook. In order to use the server_pool option, you must create and account (or accounts) that requires no password, i.e. the command 'ssh sage_server_n...@myserver.edu' should run with no password. I don't have the ability to do this so I'd have to ask our sys admin. I wonder if he would have any reason to balk at that? Mark -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[sage-support] Re: sage server problem
The solution for me was to omit the serverpool=[...] argument -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[sage-support] Re: SAGE server in Ukraine
On Mar 25, 10:32 am, dmitrey dmitrey.kros...@scipy.org wrote: http://sage.openopt.org ... Cool! The published worksheets are nice and somebody can start playing with openopt right away. btw, latest optional openopt suite spkg is waiting here: http://trac.sagemath.org/sage_trac/ticket/7708 H -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[sage-support] Re: sage server problem
Has nobody encounteres this problem before? Any ideas of how to try and debug this? On Mar 19, 11:37 am, gerhard ge01...@yahoo.de wrote: Hi all, I tried to bring up a server on a new machine: compiled sage version 4.3.3 from scratch and tested it. Starting the server with notebooks_start.py import sagenb.notebook.notebook_object as n server_pool=['s...@company.com'] n.notebook( port=8000, accounts=True, interface='', directory='/home/sage/sage_dir', server_pool=server_pool, secure=True, open_viewer=False, ulimit='-v 200') lets me open a browser and login tohttps://company.com:8000, create, edit, save and publish worksheets. Trying to execute code in a cell however hangs?! *** Interrupting the computation causes an output got EOF subprocess must have crashed... in the server log. What do I need to look for to resolve this? Thanks! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [sage-support] Re: sage server problem
On Sat, Mar 20, 2010 at 3:12 PM, gerhard ge01...@yahoo.de wrote: Has nobody encounteres this problem before? Any ideas of how to try and debug this? On Mar 19, 11:37 am, gerhard ge01...@yahoo.de wrote: Hi all, I tried to bring up a server on a new machine: compiled sage version 4.3.3 from scratch and tested it. Starting the server with notebooks_start.py Why do you want to do this instead of $ sage -notebook or sage: notebook() ? import sagenb.notebook.notebook_object as n server_pool=['s...@company.com'] n.notebook( port=8000, accounts=True, interface='', directory='/home/sage/sage_dir', server_pool=server_pool, secure=True, open_viewer=False, ulimit='-v 200') lets me open a browser and login tohttps://company.com:8000, create, edit, save and publish worksheets. Trying to execute code in a cell however hangs?! *** Interrupting the computation causes an output got EOF subprocess must have crashed... in the server log. What do I need to look for to resolve this? Thanks! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[sage-support] Re: sage server problem
Why do you want to do this instead of $ sage -notebook I want to run sage on a remote machine that I and my colleagues can access, potentially (but not necessarily) sharing worksheets? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [sage-support] Re: sage server problem
On Sat, Mar 20, 2010 at 8:34 PM, gerhard ge01...@yahoo.de wrote: Why do you want to do this instead of $ sage -notebook I want to run sage on a remote machine that I and my colleagues can access, potentially (but not necessarily) sharing worksheets? Then use $ sage -notebook or sage: notebook() -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-support+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[sage-support] Re: sage server
Thanks! I'll give it a try. -- David --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server
On Sun, 25 Oct 2009 at 08:19PM -0700, David wrote: Where can I find documentation on setting up a local Sage server? I gather it is possible to duplicate sagenb on a local network, but I can't find any documentation. Start Sage, and do notebook(). Then you're running a local Sage server. Every copy of Sage has all the bits necessary to run a notebook server. More documention is found by doing notebook? at a prompt. For more information on setting up a real server, you can see http://wiki.sagemath.org/DanDrake/JustEnoughSageServer and http://wiki.sagemath.org/SageVirtualBox . Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature
[sage-support] Re: sage server setup support sought
I now can connect to that sage server (running on ubuntu, by the way, and administered by Bill Hart and myself) but this is from another machine on the university network so I'll have to try form home too. I started the server using exactly notebook (address=selmer.warwick.ac.uk, port=8000, secure=True) (we now have a proper name for the machine!) Now I need to see how to create other accounts. thanks for people's help! John On 17 Aug, 19:04, William Stein wst...@gmail.com wrote: On Mon, Aug 17, 2009 at 4:27 AM, Bill Hartgoodwillh...@googlemail.com wrote: It's ubuntu and we can open the port as we have root access (assuming John is talking about the same machine - which I am pretty sure he is). How secure is the notebook server these days. Is it still advised to set it up in a chroot jail (see my other post about problems I had doing that). That was *only* for a public notebook server. If you're using secure=True and accounts=False, so only people with existing accounts can us the notebook server, there is no reason to use a chroot. Moreover, the standard wisdom in security is that it is in fact never ever in any case ever a good idea to use a chroot for security purposes. Thus one should never do that for the Sage notebook. The only acceptable thing for a public server is to use a virtual machine (say virtualbox or vmware). William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
Progress report. After succesfully logging into my own notebook as admin, I started to set up a few user accounts. I followed the instructions in the notebook? docstring: accounts -- (default: False) if True, any visitor to the website will be able to create a new account. If False, only the admin can create accounts (currently, this can only be done by running with accounts=True for a few minutes, or on the command line with, e.g., nb = load('./sage/sage_notebook/ nb.sobj') nb.set_accounts(True) nb.add_user(username, password, em...@place, user) nb.save() [Note that the path to sage_notebook/nb.sobj may be different than given above.] Specifically I did nb = load('nb.sobj') nb.set_accounts(True) nb.add_user(john, xx, john.crem...@gmail.com, user) nb.save() and then restarted the notebook(). Now I could not login as john, nor as admin. Reloading the nb,sobj and doing nb.usernames() showed only 'admin', so the extra username was not saved. And admin logins do not work now either. (I just get a whilte screen with nothing in it at all after pressing the sign in button, while the tab shows Error | Sage ...] Am I doing something stupid? John For example, On 18 Aug, 05:51, Bill Hart goodwillh...@googlemail.com wrote: Ah, OK, thanks for clearing that up. Bill. On Aug 17, 7:04 pm, William Stein wst...@gmail.com wrote: On Mon, Aug 17, 2009 at 4:27 AM, Bill Hartgoodwillh...@googlemail.com wrote: It's ubuntu and we can open the port as we have root access (assuming John is talking about the same machine - which I am pretty sure he is). How secure is the notebook server these days. Is it still advised to set it up in a chroot jail (see my other post about problems I had doing that). That was *only* for a public notebook server. If you're using secure=True and accounts=False, so only people with existing accounts can us the notebook server, there is no reason to use a chroot. Moreover, the standard wisdom in security is that it is in fact never ever in any case ever a good idea to use a chroot for security purposes. Thus one should never do that for the Sage notebook. The only acceptable thing for a public server is to use a virtual machine (say virtualbox or vmware). William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
One more thing I just noticed. When I run notebook(...) to start up the notebook server, the last line displayed is https://selmer.warwick.ac.uk:8000/?startup_token=634498ad5f3559f3b0121beeb6e0beb8: No such file or directory and this may be a clue to the problem. On 19 Aug, 15:10, John Cremona john.crem...@gmail.com wrote: Progress report. After succesfully logging into my own notebook as admin, I started to set up a few user accounts. I followed the instructions in the notebook? docstring: accounts -- (default: False) if True, any visitor to the website will be able to create a new account. If False, only the admin can create accounts (currently, this can only be done by running with accounts=True for a few minutes, or on the command line with, e.g., nb = load('./sage/sage_notebook/ nb.sobj') nb.set_accounts(True) nb.add_user(username, password, em...@place, user) nb.save() [Note that the path to sage_notebook/nb.sobj may be different than given above.] Specifically I did nb = load('nb.sobj') nb.set_accounts(True) nb.add_user(john, xx, john.crem...@gmail.com, user) nb.save() and then restarted the notebook(). Now I could not login as john, nor as admin. Reloading the nb,sobj and doing nb.usernames() showed only 'admin', so the extra username was not saved. And admin logins do not work now either. (I just get a whilte screen with nothing in it at all after pressing the sign in button, while the tab shows Error | Sage ...] Am I doing something stupid? John For example, On 18 Aug, 05:51, Bill Hart goodwillh...@googlemail.com wrote: Ah, OK, thanks for clearing that up. Bill. On Aug 17, 7:04 pm, William Stein wst...@gmail.com wrote: On Mon, Aug 17, 2009 at 4:27 AM, Bill Hartgoodwillh...@googlemail.com wrote: It's ubuntu and we can open the port as we have root access (assuming John is talking about the same machine - which I am pretty sure he is). How secure is the notebook server these days. Is it still advised to set it up in a chroot jail (see my other post about problems I had doing that). That was *only* for a public notebook server. If you're using secure=True and accounts=False, so only people with existing accounts can us the notebook server, there is no reason to use a chroot. Moreover, the standard wisdom in security is that it is in fact never ever in any case ever a good idea to use a chroot for security purposes. Thus one should never do that for the Sage notebook. The only acceptable thing for a public server is to use a virtual machine (say virtualbox or vmware). William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
On Wed, Aug 19, 2009 at 7:10 AM, John Cremonajohn.crem...@gmail.com wrote: Progress report. After succesfully logging into my own notebook as admin, I started to set up a few user accounts. I followed the instructions in the notebook? docstring: accounts -- (default: False) if True, any visitor to the website will be able to create a new account. If False, only the admin can create accounts (currently, this can only be done by running with accounts=True for a few minutes, or on the command line with, e.g., nb = load('./sage/sage_notebook/ nb.sobj') nb.set_accounts(True) nb.add_user(username, password, em...@place, user) nb.save() [Note that the path to sage_notebook/nb.sobj may be different than given above.] Specifically I did nb = load('nb.sobj') nb.set_accounts(True) nb.add_user(john, xx, john.crem...@gmail.com, user) nb.save() and then restarted the notebook(). Now I could not login as john, nor as admin. Reloading the nb,sobj and doing nb.usernames() showed only 'admin', so the extra username was not saved. And admin logins do not work now either. (I just get a whilte screen with nothing in it at all after pressing the sign in button, while the tab shows Error | Sage ...] Am I doing something stupid? I would just startup the server with accounts=True and create the accounts through the web interface by clicking on the big link on the right that says Sign up for a new Sage Notebook account. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
On Sun, Aug 16, 2009 at 4:45 PM, Kevin Hortonkhorto...@rogers.com wrote: Actually, I probably spoke out of turn. The :8000 at the end of the url specifies the port to use, so https shouldn't be using the default port. But, there could be a firewall preventing port 8000 from working, or a port forwarding problem if your server is hiding behind a router. I recall having similar issues connecting to sage over https, but I don't recall all the gory details. I do recall that I had to set up ssl certificates, and enable ssh in apache before I could connect with https. Google enable https ubuntu. I can connect to your server using http, but not using https. I think the first step is to ensure you can connect to your web server using https. Once you've confirmed that https works, you can then try connecting to the sage server. The Sage notebook run via the notebook command has nothing to do with apache or your web server. So that's not the first step, IMHO. Kevin's other remarks seem very on I'm guessing you have a firewall setup on that computer which doesn't let anything in except on ports that have been explicitly opened. The right command (now that you gave more info) is sage: notebook(address=137.205.37.242, port=8000, secure=True) Questions: (1) On that computer itself say from a text console, can you do lynx https://137.205.37.242:8000 ? Can you do lynx https://localhost:8000 (2) What happens if you try sage: notebook(address=137.205.37.242, port=8000, secure=False) and http://137.205.37.242 (3) What happens if you try shutting down apache, then run the notebook as *root* and type sage: notebook(address=137.205.37.242, port=80, secure=True) and try to connect from some other computer? Maybe you can't if you're not root and the university controls root. (I'm guessing this box is at Univ of Warwick.) (4) Precisely what operating system are you using? Was it say Redhat (or similar) setup by the university? If so, they almost *surely* have lots of firewall stuff setup completely standard to avoid malware, hackers, etc. If this is the case, you must talk to them and ask them to open up port 8000 so you can run a Sage notebook server on it and have outside connections. (5) Failing all that, you might want to do ssh port forwarding. I think Nils Bruin posted some nice instructions about how to do this to sage-devel once. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
It's ubuntu and we can open the port as we have root access (assuming John is talking about the same machine - which I am pretty sure he is). How secure is the notebook server these days. Is it still advised to set it up in a chroot jail (see my other post about problems I had doing that). Bill. On Aug 17, 8:40 am, William Stein wst...@gmail.com wrote: On Sun, Aug 16, 2009 at 4:45 PM, Kevin Hortonkhorto...@rogers.com wrote: Actually, I probably spoke out of turn. The :8000 at the end of the url specifies the port to use, so https shouldn't be using the default port. But, there could be a firewall preventing port 8000 from working, or a port forwarding problem if your server is hiding behind a router. I recall having similar issues connecting to sage over https, but I don't recall all the gory details. I do recall that I had to set up ssl certificates, and enable ssh in apache before I could connect with https. Google enable https ubuntu. I can connect to your server using http, but not using https. I think the first step is to ensure you can connect to your web server using https. Once you've confirmed that https works, you can then try connecting to the sage server. The Sage notebook run via the notebook command has nothing to do with apache or your web server. So that's not the first step, IMHO. Kevin's other remarks seem very on I'm guessing you have a firewall setup on that computer which doesn't let anything in except on ports that have been explicitly opened. The right command (now that you gave more info) is sage: notebook(address=137.205.37.242, port=8000, secure=True) Questions: (1) On that computer itself say from a text console, can you do lynxhttps://137.205.37.242:8000 ? Can you do lynxhttps://localhost:8000 (2) What happens if you try sage: notebook(address=137.205.37.242, port=8000, secure=False) andhttp://137.205.37.242 (3) What happens if you try shutting down apache, then run the notebook as *root* and type sage: notebook(address=137.205.37.242, port=80, secure=True) and try to connect from some other computer? Maybe you can't if you're not root and the university controls root. (I'm guessing this box is at Univ of Warwick.) (4) Precisely what operating system are you using? Was it say Redhat (or similar) setup by the university? If so, they almost *surely* have lots of firewall stuff setup completely standard to avoid malware, hackers, etc. If this is the case, you must talk to them and ask them to open up port 8000 so you can run a Sage notebook server on it and have outside connections. (5) Failing all that, you might want to do ssh port forwarding. I think Nils Bruin posted some nice instructions about how to do this to sage-devel once. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
Actually, to keep everything in the same place, here is a message I tried to send but which bounced because I hadn't subscribed yet, relevant to the same machine John is trying to set up a server on. I'm trying to set up a chroot_jail for sage to run in so I can get a notebook working on my new machine. I followed the instructions here: http://www.msri.org/about/computing/docs/sage/inst/node4.html There seems to be one step missing, which is to first create the directory /sage_chroot, otherwise when you try to mount onto it Ubuntu complains. However, even after I do that, it says: mount: not a directory when I try to do mount -a It doesn't give me any other clues. The only thing I am doing slightly differently to the instructions is I made the image (and the filesystem it contains) on /storage, which is where the Raid array is mounted. But I don't see that this is part of the problem. Naturally I changed all the relevant paths in the instructions to /storage/sage_chroot.image. Can anyone help? Bill. On Aug 17, 8:40 am, William Stein wst...@gmail.com wrote: On Sun, Aug 16, 2009 at 4:45 PM, Kevin Hortonkhorto...@rogers.com wrote: Actually, I probably spoke out of turn. The :8000 at the end of the url specifies the port to use, so https shouldn't be using the default port. But, there could be a firewall preventing port 8000 from working, or a port forwarding problem if your server is hiding behind a router. I recall having similar issues connecting to sage over https, but I don't recall all the gory details. I do recall that I had to set up ssl certificates, and enable ssh in apache before I could connect with https. Google enable https ubuntu. I can connect to your server using http, but not using https. I think the first step is to ensure you can connect to your web server using https. Once you've confirmed that https works, you can then try connecting to the sage server. The Sage notebook run via the notebook command has nothing to do with apache or your web server. So that's not the first step, IMHO. Kevin's other remarks seem very on I'm guessing you have a firewall setup on that computer which doesn't let anything in except on ports that have been explicitly opened. The right command (now that you gave more info) is sage: notebook(address=137.205.37.242, port=8000, secure=True) Questions: (1) On that computer itself say from a text console, can you do lynxhttps://137.205.37.242:8000 ? Can you do lynxhttps://localhost:8000 (2) What happens if you try sage: notebook(address=137.205.37.242, port=8000, secure=False) andhttp://137.205.37.242 (3) What happens if you try shutting down apache, then run the notebook as *root* and type sage: notebook(address=137.205.37.242, port=80, secure=True) and try to connect from some other computer? Maybe you can't if you're not root and the university controls root. (I'm guessing this box is at Univ of Warwick.) (4) Precisely what operating system are you using? Was it say Redhat (or similar) setup by the university? If so, they almost *surely* have lots of firewall stuff setup completely standard to avoid malware, hackers, etc. If this is the case, you must talk to them and ask them to open up port 8000 so you can run a Sage notebook server on it and have outside connections. (5) Failing all that, you might want to do ssh port forwarding. I think Nils Bruin posted some nice instructions about how to do this to sage-devel once. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
On Mon, Aug 17, 2009 at 4:27 AM, Bill Hartgoodwillh...@googlemail.com wrote: It's ubuntu and we can open the port as we have root access (assuming John is talking about the same machine - which I am pretty sure he is). How secure is the notebook server these days. Is it still advised to set it up in a chroot jail (see my other post about problems I had doing that). That was *only* for a public notebook server. If you're using secure=True and accounts=False, so only people with existing accounts can us the notebook server, there is no reason to use a chroot. Moreover, the standard wisdom in security is that it is in fact never ever in any case ever a good idea to use a chroot for security purposes. Thus one should never do that for the Sage notebook. The only acceptable thing for a public server is to use a virtual machine (say virtualbox or vmware). William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
Ah, OK, thanks for clearing that up. Bill. On Aug 17, 7:04 pm, William Stein wst...@gmail.com wrote: On Mon, Aug 17, 2009 at 4:27 AM, Bill Hartgoodwillh...@googlemail.com wrote: It's ubuntu and we can open the port as we have root access (assuming John is talking about the same machine - which I am pretty sure he is). How secure is the notebook server these days. Is it still advised to set it up in a chroot jail (see my other post about problems I had doing that). That was *only* for a public notebook server. If you're using secure=True and accounts=False, so only people with existing accounts can us the notebook server, there is no reason to use a chroot. Moreover, the standard wisdom in security is that it is in fact never ever in any case ever a good idea to use a chroot for security purposes. Thus one should never do that for the Sage notebook. The only acceptable thing for a public server is to use a virtual machine (say virtualbox or vmware). William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
The answer really depends on if your server is on an intranet LAN (inaccessible from the rest of the world) or on a (public) internet web server. In the former case, the answer is very easy and even I can answer your question! On Sun, Aug 16, 2009 at 9:49 AM, John Cremonajohn.crem...@gmail.com wrote: In the docstring for notebook() it says More documentation is available in the Sage installation guide, in the Running the Sage Notebook Securely chapter but there is not such chapter. Has this documentation moved? There is also a link to a wiki page, but that page has almost no information on it. For the first time in my life I tried running sage on one machine and connecting from another, and I cannot get it to work. John Cremona --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
On Sun, Aug 16, 2009 at 6:49 AM, John Cremonajohn.crem...@gmail.com wrote: In the docstring for notebook() it says More documentation is available in the Sage installation guide, in the Running the Sage Notebook Securely chapter but there is not such chapter. Has this documentation moved? There is also a link to a wiki page, but that page has almost no information on it. For the first time in my life I tried running sage on one machine and connecting from another, and I cannot get it to work. What exactly did you do that didn't work? Do sage: notebook(address=, secure=True, open_viewer=False) and then go to https://address.of.the.machine.you.did.that.on:8000 on the other machine. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
Thanks for the replies. It's on the big wide internet, not local. On 16 Aug, 19:27, William Stein wst...@gmail.com wrote: On Sun, Aug 16, 2009 at 6:49 AM, John Cremonajohn.crem...@gmail.com wrote: In the docstring for notebook() it says More documentation is available in the Sage installation guide, in the Running the Sage Notebook Securely chapter but there is not such chapter. Has this documentation moved? There is also a link to a wiki page, but that page has almost no information on it. For the first time in my life I tried running sage on one machine and connecting from another, and I cannot get it to work. What exactly did you do that didn't work? Do sage: notebook(address=, secure=True, open_viewer=False) and then go tohttps://address.of.the.machine.you.did.that.on:8000 on the other machine. That is what I did. firefox just waits, displaying loading... until it times out. Note that the output from that notebook command says Open your web browser to https://localhost:8000; which is definitely not right since I am trying to connect from somewhere else entirely. So the address I go to is in fact https://137.205.37.242:8000 That machine is reachable, as you'll see if you try going to http://137.205.37.242 (that's http not https). John William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
Re: [Bulk] [sage-support] Re: sage server setup support sought
John Cremona wrote: Thanks for the replies. It's on the big wide internet, not local. On 16 Aug, 19:27, William Stein wst...@gmail.com wrote: On Sun, Aug 16, 2009 at 6:49 AM, John Cremonajohn.crem...@gmail.com wrote: In the docstring for notebook() it says More documentation is available in the Sage installation guide, in the Running the Sage Notebook Securely chapter but there is not such chapter. Has this documentation moved? There is also a link to a wiki page, but that page has almost no information on it. For the first time in my life I tried running sage on one machine and connecting from another, and I cannot get it to work. What exactly did you do that didn't work? Do sage: notebook(address=, secure=True, open_viewer=False) and then go tohttps://address.of.the.machine.you.did.that.on:8000 on the other machine. That is what I did. firefox just waits, displaying loading... until it times out. Note that the output from that notebook command says Open your web browser to https://localhost:8000; which is definitely not right since I am trying to connect from somewhere else entirely. So the address I go to is in fact https://137.205.37.242:8000 That machine is reachable, as you'll see if you try going to http://137.205.37.242 (that's http not https). Could there possibly be a firewall or port forwarding issue? The default ports for http and https are 80 and 443 respectively, so an ability to connect with http does not guarantee that https will work. -- Kevin Horton --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
Thanks Kevin -- do you know how to test that? On the sever, netstat - a starts Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 0 *:8000 *:* LISTEN tcp0 0 *:58244 *:* LISTEN tcp0 0 *:sunrpc*:* LISTEN tcp0 0 *:www *:* LISTEN tcp0 0 *:ssh *:* LISTEN tcp0 0 localhost:6010 *:* LISTEN tcp0 0 localhost:6011 *:* LISTEN tcp0 0 localhost:6012 *:* LISTEN which includes a listen on 8000 (and the sage server is running), but what does that prove? John On 16 Aug, 21:22, Kevin Horton khorto...@rogers.com wrote: John Cremona wrote: Thanks for the replies. It's on the big wide internet, not local. On 16 Aug, 19:27, William Stein wst...@gmail.com wrote: On Sun, Aug 16, 2009 at 6:49 AM, John Cremonajohn.crem...@gmail.com wrote: In the docstring for notebook() it says More documentation is available in the Sage installation guide, in the Running the Sage Notebook Securely chapter but there is not such chapter. Has this documentation moved? There is also a link to a wiki page, but that page has almost no information on it. For the first time in my life I tried running sage on one machine and connecting from another, and I cannot get it to work. What exactly did you do that didn't work? Do sage: notebook(address=, secure=True, open_viewer=False) and then go tohttps://address.of.the.machine.you.did.that.on:8000 on the other machine. That is what I did. firefox just waits, displaying loading... until it times out. Note that the output from that notebook command says Open your web browser tohttps://localhost:8000; which is definitely not right since I am trying to connect from somewhere else entirely. So the address I go to is in facthttps://137.205.37.242:8000 That machine is reachable, as you'll see if you try going to http://137.205.37.242(that's http not https). Could there possibly be a firewall or port forwarding issue? The default ports for http and https are 80 and 443 respectively, so an ability to connect with http does not guarantee that https will work. -- Kevin Horton --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage server setup support sought
Actually, I probably spoke out of turn. The :8000 at the end of the url specifies the port to use, so https shouldn't be using the default port. But, there could be a firewall preventing port 8000 from working, or a port forwarding problem if your server is hiding behind a router. I recall having similar issues connecting to sage over https, but I don't recall all the gory details. I do recall that I had to set up ssl certificates, and enable ssh in apache before I could connect with https. Google enable https ubuntu. I can connect to your server using http, but not using https. I think the first step is to ensure you can connect to your web server using https. Once you've confirmed that https works, you can then try connecting to the sage server. Kevin Horton On 16 Aug 2009, at 17:28, John Cremona wrote: Thanks Kevin -- do you know how to test that? On the sever, netstat - a starts Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 0 *:8000 *:* LISTEN tcp0 0 *:58244 *:* LISTEN tcp0 0 *:sunrpc*:* LISTEN tcp0 0 *:www *:* LISTEN tcp0 0 *:ssh *:* LISTEN tcp0 0 localhost:6010 *:* LISTEN tcp0 0 localhost:6011 *:* LISTEN tcp0 0 localhost:6012 *:* LISTEN which includes a listen on 8000 (and the sage server is running), but what does that prove? John On 16 Aug, 21:22, Kevin Horton khorto...@rogers.com wrote: John Cremona wrote: Thanks for the replies. It's on the big wide internet, not local. On 16 Aug, 19:27, William Stein wst...@gmail.com wrote: On Sun, Aug 16, 2009 at 6:49 AM, John Cremonajohn.crem...@gmail.com wrote: In the docstring for notebook() it says More documentation is available in the Sage installation guide, in the Running the Sage Notebook Securely chapter but there is not such chapter. Has this documentation moved? There is also a link to a wiki page, but that page has almost no information on it. For the first time in my life I tried running sage on one machine and connecting from another, and I cannot get it to work. What exactly did you do that didn't work? Do sage: notebook(address=, secure=True, open_viewer=False) and then go tohttps://address.of.the.machine.you.did.that.on:8000 on the other machine. That is what I did. firefox just waits, displaying loading... until it times out. Note that the output from that notebook command says Open your web browser tohttps://localhost:8000; which is definitely not right since I am trying to connect from somewhere else entirely. So the address I go to is in facthttps://137.205.37.242:8000 That machine is reachable, as you'll see if you try going to http://137.205.37.242(that's http not https). Could there possibly be a firewall or port forwarding issue? The default ports for http and https are 80 and 443 respectively, so an ability to connect with http does not guarantee that https will work. -- Kevin Horton --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: SAGE server
On Jan 17, 3:45 am, Jason Grout jason-s...@creativetrax.com wrote: This time I'm writing more and more things down. I can post up notes to Dan's wiki page, since I'm doing things a bit differently than him. I'm trying to make it easy to have several separate sage notebooks running, one for each class that I teach. Hello, as you have experienced, Sage is somewhat lacking tutorials and instructions for things like this. I would suggest you to write your notes in a new wiki page. Especially if there are too many differeces to this other page and just linking to it. Also, to help others to find it, please make an entry here: http://wiki.sagemath.org/DocumentationProject As you can see in the wish list, there is something like you are doing already in the first row! greetings Harald --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: SAGE server
I've been attempting to answer my own questions here by Googling around, and I must admit that this is a highly frustrating experience. I have rather extensive computer experience and I'm finding a SAGE server maddening to set up. Do normal mathematicians find this easy and I'm just being boneheaded today, or is SAGE server setup only for the ultimate in Unix ninjas? For instance, the best two resources I've found are (a) Dan's post mentioned earlier in this thread (about which I still have unanswered questions that are keeping me from succeeding in that direction; see earlier in this thread), and (b) a post by Luiz here: http://markmail.org/message/aovcanxgna6alwvs but in replies to it, William Stein throws out numerous corrections, some of which include frightening comments about how everything will be brought down by a malicious user if you do X instead of Y. If the terrain is truly this perilous, why is there not clear documentation on how to set this up? Is this not a crucial bridge anyone must cross if they hope to adopt SAGE for classroom use? Is it truly the case that SAGE is as mature and well-known as it is becoming without a tutorial on how to set it up for a class of students to use? I'm hoping that perhaps I just haven't Googled correctly, and someone can point me to the right doc page that I'm just not seeing. Nathan On Jan 14, 10:40 am, Nathan Carter nathancart...@gmail.com wrote: Thank you for the reply! On Jan 14, 2009, at 10:20 AM, mabshoff wrote: 1. I had some confusion when I ran sage the first time, because it complained about permissions for creating some files. So I ran it with sudo in front, and it worked fine. Now thereafter, I can run it without sudo and it doesn't complain. So it seems the first run has to have privileges to make certain files?? No, do you remember which files it was complaining about? This should not happen unless you unpack Sage as root and then run it as a non- root user user. This would explain the need to run Sage with sudo once and then it worked without it. Unfortunately, because I'm doing this under VirtualBox and JeOS (as in Dan's tutorial--link below) what scrolls off the screen is gone for good. But I should mention that when I followed Dan's directions for downloading SAGE, the first time I ran it, it said my processor was incompatible with the one on which the binary was compiled, so I should expect invalid instruction errors, and my only option was to build from sources. So I deleted that installation, downloaded the sources, and built them. And yes, IIRC I did the unpacking and the making with sudo in front. If doing so has painted myself into a corner, then including in Dan's wiki page what people in my situation *should* do instead is, I think, essential. The processor isn't even that old, so this may impact a nontrivial percentage of that page's readers. Well, not *that* old; it's a 3.something GHz Pentium something. 2. When I run sage start_notebook.sage it claims that nb1 cannot run the command sage (no such file or directory). I thought perhaps I had to add the sage path to that user's ~/.bashrc, but that did not fix the problem. Thus the whole sage start_notebook.sage fails in the end. You can invoke the notebook via ./sage -notebook, but if you post start_notebook.sage or tell us what you want to do I am sure this can be sorted out. The start_notebook.sage is the one in Dan's wiki article, mentioned in the first post in this thread. Here's the link for convenience; the .sage file is at the bottom (linked). http://wiki.sagemath.org/DanDrake/JustEnoughSageServer Thanks again for any assistance available! Nathan --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: SAGE server
Well, I guess I'll answer my own question, especially since I'm feeling rather like a moron. I Googled like crazy when what I should just have done was read the manual. D'oh. http://www.sagemath.org/doc/inst/node8.html http://www.sagemath.org/doc/inst/node10.html Nathan On Jan 16, 9:18 pm, Nathan Carter nathancart...@gmail.com wrote: I've been attempting to answer my own questions here by Googling around, and I must admit that this is a highly frustrating experience. I have rather extensive computer experience and I'm finding a SAGE server maddening to set up. Do normal mathematicians find this easy and I'm just being boneheaded today, or is SAGE server setup only for the ultimate in Unix ninjas? For instance, the best two resources I've found are (a) Dan's post mentioned earlier in this thread (about which I still have unanswered questions that are keeping me from succeeding in that direction; see earlier in this thread), and (b) a post by Luiz here:http://markmail.org/message/aovcanxgna6alwvs but in replies to it, William Stein throws out numerous corrections, some of which include frightening comments about how everything will be brought down by a malicious user if you do X instead of Y. If the terrain is truly this perilous, why is there not clear documentation on how to set this up? Is this not a crucial bridge anyone must cross if they hope to adopt SAGE for classroom use? Is it truly the case that SAGE is as mature and well-known as it is becoming without a tutorial on how to set it up for a class of students to use? I'm hoping that perhaps I just haven't Googled correctly, and someone can point me to the right doc page that I'm just not seeing. Nathan On Jan 14, 10:40 am, Nathan Carter nathancart...@gmail.com wrote: Thank you for the reply! On Jan 14, 2009, at 10:20 AM, mabshoff wrote: 1. I had some confusion when I ran sage the first time, because it complained about permissions for creating some files. So I ran it with sudo in front, and it worked fine. Now thereafter, I can run it without sudo and it doesn't complain. So it seems the first run has to have privileges to make certain files?? No, do you remember which files it was complaining about? This should not happen unless you unpack Sage as root and then run it as a non- root user user. This would explain the need to run Sage with sudo once and then it worked without it. Unfortunately, because I'm doing this under VirtualBox and JeOS (as in Dan's tutorial--link below) what scrolls off the screen is gone for good. But I should mention that when I followed Dan's directions for downloading SAGE, the first time I ran it, it said my processor was incompatible with the one on which the binary was compiled, so I should expect invalid instruction errors, and my only option was to build from sources. So I deleted that installation, downloaded the sources, and built them. And yes, IIRC I did the unpacking and the making with sudo in front. If doing so has painted myself into a corner, then including in Dan's wiki page what people in my situation *should* do instead is, I think, essential. The processor isn't even that old, so this may impact a nontrivial percentage of that page's readers. Well, not *that* old; it's a 3.something GHz Pentium something. 2. When I run sage start_notebook.sage it claims that nb1 cannot run the command sage (no such file or directory). I thought perhaps I had to add the sage path to that user's ~/.bashrc, but that did not fix the problem. Thus the whole sage start_notebook.sage fails in the end. You can invoke the notebook via ./sage -notebook, but if you post start_notebook.sage or tell us what you want to do I am sure this can be sorted out. The start_notebook.sage is the one in Dan's wiki article, mentioned in the first post in this thread. Here's the link for convenience; the .sage file is at the bottom (linked). http://wiki.sagemath.org/DanDrake/JustEnoughSageServer Thanks again for any assistance available! Nathan --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: SAGE server
Nathan, I'm sorry to hear of your frustration. We've tried to make it easy, in fact everyone who uses Sage via the notebook interface starts up a Sage server. The issue here is that giving someone a Sage notebook account is basically giving them shell access--something you wouldn't want to hand out to just anyone on one of your computers. The best page I found was at http://wiki.sagemath.org/DanDrake/ JustEnoughSageServer . Hopefully those in the know could consolidate their expertise here. - Robert On Jan 16, 2009, at 6:18 PM, Nathan Carter wrote: I've been attempting to answer my own questions here by Googling around, and I must admit that this is a highly frustrating experience. I have rather extensive computer experience and I'm finding a SAGE server maddening to set up. Do normal mathematicians find this easy and I'm just being boneheaded today, or is SAGE server setup only for the ultimate in Unix ninjas? For instance, the best two resources I've found are (a) Dan's post mentioned earlier in this thread (about which I still have unanswered questions that are keeping me from succeeding in that direction; see earlier in this thread), and (b) a post by Luiz here: http://markmail.org/message/aovcanxgna6alwvs but in replies to it, William Stein throws out numerous corrections, some of which include frightening comments about how everything will be brought down by a malicious user if you do X instead of Y. If the terrain is truly this perilous, why is there not clear documentation on how to set this up? Is this not a crucial bridge anyone must cross if they hope to adopt SAGE for classroom use? Is it truly the case that SAGE is as mature and well-known as it is becoming without a tutorial on how to set it up for a class of students to use? I'm hoping that perhaps I just haven't Googled correctly, and someone can point me to the right doc page that I'm just not seeing. Nathan On Jan 14, 10:40 am, Nathan Carter nathancart...@gmail.com wrote: Thank you for the reply! On Jan 14, 2009, at 10:20 AM, mabshoff wrote: 1. I had some confusion when I ran sage the first time, because it complained about permissions for creating some files. So I ran it with sudo in front, and it worked fine. Now thereafter, I can run it without sudo and it doesn't complain. So it seems the first run has to have privileges to make certain files?? No, do you remember which files it was complaining about? This should not happen unless you unpack Sage as root and then run it as a non- root user user. This would explain the need to run Sage with sudo once and then it worked without it. Unfortunately, because I'm doing this under VirtualBox and JeOS (as in Dan's tutorial--link below) what scrolls off the screen is gone for good. But I should mention that when I followed Dan's directions for downloading SAGE, the first time I ran it, it said my processor was incompatible with the one on which the binary was compiled, so I should expect invalid instruction errors, and my only option was to build from sources. So I deleted that installation, downloaded the sources, and built them. And yes, IIRC I did the unpacking and the making with sudo in front. If doing so has painted myself into a corner, then including in Dan's wiki page what people in my situation *should* do instead is, I think, essential. The processor isn't even that old, so this may impact a nontrivial percentage of that page's readers. Well, not *that* old; it's a 3.something GHz Pentium something. 2. When I run sage start_notebook.sage it claims that nb1 cannot run the command sage (no such file or directory). I thought perhaps I had to add the sage path to that user's ~/.bashrc, but that did not fix the problem. Thus the whole sage start_notebook.sage fails in the end. You can invoke the notebook via ./sage -notebook, but if you post start_notebook.sage or tell us what you want to do I am sure this can be sorted out. The start_notebook.sage is the one in Dan's wiki article, mentioned in the first post in this thread. Here's the link for convenience; the .sage file is at the bottom (linked). http://wiki.sagemath.org/DanDrake/JustEnoughSageServer Thanks again for any assistance available! Nathan --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---