[sage-support] Re: MAC PC configuration problem.
Thanks for your help. Your suggestion led me to the problem. I am up and running now. Part of the problem is that I am somewhat new to the MAC as well as to SAGE. Neal On Mar 8, 8:06 pm, Jason Grout [EMAIL PROTECTED] wrote: Neal wrote: Going back to the original subject, I understand that a patch has been created and approved. What is the next step? Will this patch show up in the next file version of SAGE? Is there a schedule of such versions? I realize that I could choose to recompile the source, but I am not in a position to do that. So I will wait until the fix gets incorporated into the distribution. When does that happen? The patch at trac ticket #2423 has already been merged into the next version of Sage and will available there. The next version of Sage will hopefully be release very soon. That said, going back to the original post, I don't the patch will have any effect on the original problem. The path at #2423 addresses the security issue that the notebook server was *too* easy to access from anywhere. If anything, the patch will make it a little harder to connect to a notebook server (i.e., now you have to specify notebook(address=something), whereas with 2.10.2, notebook() was sufficient). Are you still having the problem noted in the original post? The fact that you can access the laptop's web server (on port 80), but not the sage server (on port 8000) points strongly towards a firewall issue which nothing from within sage can change. If you are still having the problem, have you checked the firewall on your laptop? Thanks, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: MAC PC configuration problem.
Going back to the original subject, I understand that a patch has been created and approved. What is the next step? Will this patch show up in the next file version of SAGE? Is there a schedule of such versions? I realize that I could choose to recompile the source, but I am not in a position to do that. So I will wait until the fix gets incorporated into the distribution. When does that happen? Neal On Mar 7, 5:42 pm, Jason Grout [EMAIL PROTECTED] wrote: Yi Qiang wrote: The problem is that the notebook is never launched to bound to a specific interface. Could you please file a trac# against this? The specific issue is that in twistedconf.tac, we start the server like so: strports.service('tls:8000:privateKey=/Users/yqiang/.sage/notebook/private.pem:certKey=/Users/yqiang/.sage/notebook/public.pem', factory) It should read something like strports.service('tls:8000:interface=127.0.0.1:privateKey=/Users/yqiang/.sage/notebook/private.pem:certKey=/Users/yqiang/.sage/notebook/public.pem', factory) to only listen on localhost. Someone more familiar with the notebook should probably write the patch, since the behavior of this should depend on what the user specifies when launching the notebook. Cheers, Yi Yi and William, I just posted a patch up athttp://trac.sagemath.org/sage_trac/ticket/2423 Could one of you review it? It seems to solve the problem for me and allows notebook(address=whatever) to work as expected as well. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: MAC PC configuration problem.
Neal wrote: Going back to the original subject, I understand that a patch has been created and approved. What is the next step? Will this patch show up in the next file version of SAGE? Is there a schedule of such versions? I realize that I could choose to recompile the source, but I am not in a position to do that. So I will wait until the fix gets incorporated into the distribution. When does that happen? The patch at trac ticket #2423 has already been merged into the next version of Sage and will available there. The next version of Sage will hopefully be release very soon. That said, going back to the original post, I don't the patch will have any effect on the original problem. The path at #2423 addresses the security issue that the notebook server was *too* easy to access from anywhere. If anything, the patch will make it a little harder to connect to a notebook server (i.e., now you have to specify notebook(address=something), whereas with 2.10.2, notebook() was sufficient). Are you still having the problem noted in the original post? The fact that you can access the laptop's web server (on port 80), but not the sage server (on port 8000) points strongly towards a firewall issue which nothing from within sage can change. If you are still having the problem, have you checked the firewall on your laptop? Thanks, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: MAC PC configuration problem.
Yi Qiang wrote: The problem is that the notebook is never launched to bound to a specific interface. Could you please file a trac# against this? The specific issue is that in twistedconf.tac, we start the server like so: strports.service('tls:8000:privateKey=/Users/yqiang/.sage/notebook/private.pem:certKey=/Users/yqiang/.sage/notebook/public.pem', factory) It should read something like strports.service('tls:8000:interface=127.0.0.1:privateKey=/Users/yqiang/.sage/notebook/private.pem:certKey=/Users/yqiang/.sage/notebook/public.pem', factory) to only listen on localhost. Someone more familiar with the notebook should probably write the patch, since the behavior of this should depend on what the user specifies when launching the notebook. Cheers, Yi Yi and William, I just posted a patch up at http://trac.sagemath.org/sage_trac/ticket/2423 Could one of you review it? It seems to solve the problem for me and allows notebook(address=whatever) to work as expected as well. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: MAC PC configuration problem.
First, thanks to everyone for their suggestions. But, I'm not quite there yet. When I typed (address='192.168.1.103'), Firefox still popped up on my MAC, but with the machine address, not localhost. I still could not attach from the PC. I thought maybe the local copy of Firefox was getting in the way of remote access. So I then tried disabling the local browser by typing notebook(address='192.168.1.103', open_viewer=false) but while the browser didn't open on the MAC, there was no change in behavior in the PC. So, I tried turning off security, thinking maybe the encryption was getting in the way. I used 'inotebook', instead of notebook. The message told me I was crazy. Crazy or not, it still doesn't work. The perplexing thing about it is that the underlying system works. If I open my PC Firefox to 192.168.1.103/~neallaurance I get connected to the MAC OX X Personal Web Sharing (a MAC facility that runs on Apache), with no problem at all. The problem seems to be with remote access to port 8000. The port that the Web Sharing is on works fine. I compared the Firefox on the MAC to the Firefox on the PC. All the options are set the same, including the encryption methods. Nothing obvious there. Oh, and I did try changing the 'http' to https' in the browser address. No effect. I am a newbie at SAGE (and at the MAC, for that matter). I am trying to use it to develop a course in electronics, and ultimately, I want to take it on the road in my MAC book, but it certainly would be nice to do the development on my (much) bigger PC. Any more suggestions appreciated. Neal On Mar 5, 5:39 pm, Mike Hansen [EMAIL PROTECTED] wrote: Hi Neal, When you start up the notebook on the Mac, pass the option server='192.168.1.103' and then you should able to access it on you Windows box by going tohttps://192.168.1.103:8000. Let me know if that works. --Mike On Wed, Mar 5, 2008 at 8:06 AM, Neal [EMAIL PROTECTED] wrote: I have just installed SAGE on my MAC book, and it works fine there. But I would like to use it from my desk PC (Windows XP). The PC has a bigger display. I opened Firefox on the PC, entered the local IP address of the MAC (192.168.1.103) and I get an acknowledgment from the Apache Web server. Then I tried 192.168.1.103:8000, trying to connect with the SAGE session running on my MAC. No luck. It times out. I have tried variations like 192.168.1.103/localhost:8000 and several other combinations, but no luck. The Apache response tells me something is working; I just haven't managed to reach SAGE yet. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: MAC PC configuration problem.
Neal wrote: First, thanks to everyone for their suggestions. But, I'm not quite there yet. When I typed (address='192.168.1.103'), Firefox still popped up on my MAC, but with the machine address, not localhost. I still could not attach from the PC. I thought maybe the local copy of Firefox was getting in the way of remote access. So I then tried disabling the local browser by typing notebook(address='192.168.1.103', open_viewer=false) but while the browser didn't open on the MAC, there was no change in behavior in the PC. So, I tried turning off security, thinking maybe the encryption was getting in the way. I used 'inotebook', instead of notebook. The message told me I was crazy. Crazy or not, it still doesn't work. The perplexing thing about it is that the underlying system works. If I open my PC Firefox to 192.168.1.103/~neallaurance I get connected to the MAC OX X Personal Web Sharing (a MAC facility that runs on Apache), with no problem at all. The problem seems to be with remote access to port 8000. The port that the Web Sharing is on works fine. Do you have the port open in your firewall on your osx machine? I don't have an osx machine handy, but someone could give you instructions if you need them. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: MAC PC configuration problem.
William Stein wrote: On Wed, Mar 5, 2008 at 6:31 PM, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: On Wed, Mar 5, 2008 at 7:55 AM, Neal Laurance [EMAIL PROTECTED] wrote: I have just installed SAGE on my MAC book, and it works fine there. But I would like to use it from my desk PC (Windows XP). The PC has a bigger display. I opened Firefox on the PC, entered the local IP address of the MAC (192.168.1.103) and I get an acknowledgment from the Apache Web server. Then I tried 192.168.1.103:8000, trying to connect with the SAGE session running on my MAC. No luck. It times out. You *must* explicitly start the notebook like this: sage: notebook(address=192.168.1.103) where 192.168.1.103 is the external address of your laptop. If you don't do this the notebook will _only_ listen to connection from localhost (i.e., your laptop), as a security precaution. That's funny. Just typing notebook() lets me access from a remote server just fine! Is that a bug? Yes, and a really scary one at that. Out of curiosity do you have the same behavior if you do: sage: notebook(secure=False) That would be _actually_ scary. Well, apparently it is *actually* scary. On my desktop, I start sage and type: sage: notebook(secure=False) On my laptop, I then go to http://serveripaddress:8000/ and my home admin page appears. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: MAC PC configuration problem.
The problem is that the notebook is never launched to bound to a specific interface. Could you please file a trac# against this? The specific issue is that in twistedconf.tac, we start the server like so: strports.service('tls:8000:privateKey=/Users/yqiang/.sage/notebook/private.pem:certKey=/Users/yqiang/.sage/notebook/public.pem', factory) It should read something like strports.service('tls:8000:interface= 127.0.0.1:privateKey=/Users/yqiang/.sage/notebook/private.pem:certKey=/Users/yqiang/.sage/notebook/public.pem', factory) to only listen on localhost. Someone more familiar with the notebook should probably write the patch, since the behavior of this should depend on what the user specifies when launching the notebook. Cheers, Yi http://yiqiang.org On Thu, Mar 6, 2008 at 8:01 AM, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: On Wed, Mar 5, 2008 at 6:31 PM, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: On Wed, Mar 5, 2008 at 7:55 AM, Neal Laurance [EMAIL PROTECTED] wrote: I have just installed SAGE on my MAC book, and it works fine there. But I would like to use it from my desk PC (Windows XP). The PC has a bigger display. I opened Firefox on the PC, entered the local IP address of the MAC (192.168.1.103) and I get an acknowledgment from the Apache Web server. Then I tried 192.168.1.103:8000, trying to connect with the SAGE session running on my MAC. No luck. It times out. You *must* explicitly start the notebook like this: sage: notebook(address=192.168.1.103) where 192.168.1.103 is the external address of your laptop. If you don't do this the notebook will _only_ listen to connection from localhost (i.e., your laptop), as a security precaution. That's funny. Just typing notebook() lets me access from a remote server just fine! Is that a bug? Yes, and a really scary one at that. Out of curiosity do you have the same behavior if you do: sage: notebook(secure=False) That would be _actually_ scary. Well, apparently it is *actually* scary. On my desktop, I start sage and type: sage: notebook(secure=False) On my laptop, I then go to http://serveripaddress:8000/ and my home admin page appears. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: MAC PC configuration problem.
On Wed, Mar 5, 2008 at 7:55 AM, Neal Laurance [EMAIL PROTECTED] wrote: I have just installed SAGE on my MAC book, and it works fine there. But I would like to use it from my desk PC (Windows XP). The PC has a bigger display. I opened Firefox on the PC, entered the local IP address of the MAC (192.168.1.103) and I get an acknowledgment from the Apache Web server. Then I tried 192.168.1.103:8000, trying to connect with the SAGE session running on my MAC. No luck. It times out. You *must* explicitly start the notebook like this: sage: notebook(address=192.168.1.103) where 192.168.1.103 is the external address of your laptop. If you don't do this the notebook will _only_ listen to connection from localhost (i.e., your laptop), as a security precaution. After you type the above, from your PC navigate to https://192.168.1.103:8000 I have tried variations like 192.168.1.103/localhost:8000 and several other combinations, but no luck. The Apache response tells me something is working; I just haven't managed to reach SAGE yet. -- William Stein Associate 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: MAC PC configuration problem.
Hi Neal, When you start up the notebook on the Mac, pass the option server='192.168.1.103' and then you should able to access it on you Windows box by going to https://192.168.1.103:8000 . Let me know if that works. --Mike On Wed, Mar 5, 2008 at 8:06 AM, Neal [EMAIL PROTECTED] wrote: I have just installed SAGE on my MAC book, and it works fine there. But I would like to use it from my desk PC (Windows XP). The PC has a bigger display. I opened Firefox on the PC, entered the local IP address of the MAC (192.168.1.103) and I get an acknowledgment from the Apache Web server. Then I tried 192.168.1.103:8000, trying to connect with the SAGE session running on my MAC. No luck. It times out. I have tried variations like 192.168.1.103/localhost:8000 and several other combinations, but no luck. The Apache response tells me something is working; I just haven't managed to reach SAGE yet. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: MAC PC configuration problem.
William Stein wrote: On Wed, Mar 5, 2008 at 7:55 AM, Neal Laurance [EMAIL PROTECTED] wrote: I have just installed SAGE on my MAC book, and it works fine there. But I would like to use it from my desk PC (Windows XP). The PC has a bigger display. I opened Firefox on the PC, entered the local IP address of the MAC (192.168.1.103) and I get an acknowledgment from the Apache Web server. Then I tried 192.168.1.103:8000, trying to connect with the SAGE session running on my MAC. No luck. It times out. You *must* explicitly start the notebook like this: sage: notebook(address=192.168.1.103) where 192.168.1.103 is the external address of your laptop. If you don't do this the notebook will _only_ listen to connection from localhost (i.e., your laptop), as a security precaution. That's funny. Just typing notebook() lets me access from a remote server just fine! Is that a bug? Neal, make sure you are going to https://192.168... (note the https). Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---