ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 02 Aug 2013 01:15:32 -0500notebook version loginhttp://ask.sagemath.org/question/10387/notebook-version-login/I'm moving to a new linux box. Old box had Sage 5.4. Installed Sage 5.10 on the new box. When I type
sage -notebook
the text says to open my web browser to http://localhost:8080.
Doing this in Firefox, I get a login page. It says 'Sign into the Sage Notebook 5.10'. My standard sagenb login name and password do not work. To check this, I opened another tab on the browser and went to www.sagenb.org. This gives a similar looking page, except now it says "Sign into the Sage Notebook 5.4' instead of 'Sage 5.10'. And the Sage logo on the top left says Sage 5.4 instead of 5.10. Here my standard sagenb name and password DO work. I can see several old notebooks I must have created when learning Sage.
One issue may be that, since the IT staff moved over my old home directory, I still have my original settings. I checked my $HOME/.tcshrc, for example, but there is nothing here related to the browser. (I did change SAGE_ROOT to point to the new sage install and sourced the file - the "sage" command itself works fine).
So why does www.sagenb.org still point me to 5.4? And why can't I log onto the 5.10 version? Checked the FAQ section, etc. Thanks.Thu, 01 Aug 2013 05:45:20 -0500http://ask.sagemath.org/question/10387/notebook-version-login/Answer by kcrisman for <p>I'm moving to a new linux box. Old box had Sage 5.4. Installed Sage 5.10 on the new box. When I type </p>
<p>sage -notebook</p>
<p>the text says to open my web browser to <a href="http://localhost:8080">http://localhost:8080</a>.
Doing this in Firefox, I get a login page. It says 'Sign into the Sage Notebook 5.10'. My standard sagenb login name and password do not work. To check this, I opened another tab on the browser and went to <a href="http://www.sagenb.org">www.sagenb.org</a>. This gives a similar looking page, except now it says "Sign into the Sage Notebook 5.4' instead of 'Sage 5.10'. And the Sage logo on the top left says Sage 5.4 instead of 5.10. Here my standard sagenb name and password DO work. I can see several old notebooks I must have created when learning Sage.</p>
<p>One issue may be that, since the IT staff moved over my old home directory, I still have my original settings. I checked my $HOME/.tcshrc, for example, but there is nothing here related to the browser. (I did change SAGE_ROOT to point to the new sage install and sourced the file - the "sage" command itself works fine). </p>
<p>So why does <a href="http://www.sagenb.org">www.sagenb.org</a> still point me to 5.4? And why can't I log onto the 5.10 version? Checked the FAQ section, etc. Thanks.</p>
http://ask.sagemath.org/question/10387/notebook-version-login/?answer=15298#post-id-15298You should note that the sagenb.org site is a hosted cloud service, where you have created an account. It happens to still be at Sage 5.4 for reasons that are not quite clear to me.
Your personal linux Sage version is only available to you, and lives on your computer. Naturally, the name and password might have no relation to each other.
You can do `sage` and then at the Sage prompt do
sage: notebook()
and see if that does anything different. It *should* open a browser by itself, no login required.Thu, 01 Aug 2013 06:44:16 -0500http://ask.sagemath.org/question/10387/notebook-version-login/?answer=15298#post-id-15298Comment by burningbright for <p>You should note that the <a href="http://sagenb.org">sagenb.org</a> site is a hosted cloud service, where you have created an account. It happens to still be at Sage 5.4 for reasons that are not quite clear to me.</p>
<p>Your personal linux Sage version is only available to you, and lives on your computer. Naturally, the name and password might have no relation to each other.</p>
<p>You can do <code>sage</code> and then at the Sage prompt do</p>
<pre><code>sage: notebook()
</code></pre>
<p>and see if that does anything different. It <em>should</em> open a browser by itself, no login required.</p>
http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17203#post-id-17203Oddly, "www.sagenb.org" still thinks I'm running sage 10.4. But I can get in using my account and it doesn't really seem to matter.Thu, 01 Aug 2013 12:32:56 -0500http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17203#post-id-17203Comment by kcrisman for <p>You should note that the <a href="http://sagenb.org">sagenb.org</a> site is a hosted cloud service, where you have created an account. It happens to still be at Sage 5.4 for reasons that are not quite clear to me.</p>
<p>Your personal linux Sage version is only available to you, and lives on your computer. Naturally, the name and password might have no relation to each other.</p>
<p>You can do <code>sage</code> and then at the Sage prompt do</p>
<pre><code>sage: notebook()
</code></pre>
<p>and see if that does anything different. It <em>should</em> open a browser by itself, no login required.</p>
http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17199#post-id-17199I'm glad this workaround worked for you. I'm not sure why you are getting the error you are getting. You shouldn't have had to move your `./sage` folder, though; why don't you try moving them back to the usual location and see if the FF symlink solves it? As I allude to above, you may be able to solve it all by using the `SAGE_BROWSER` variable.Fri, 02 Aug 2013 01:15:32 -0500http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17199#post-id-17199Comment by kcrisman for <p>You should note that the <a href="http://sagenb.org">sagenb.org</a> site is a hosted cloud service, where you have created an account. It happens to still be at Sage 5.4 for reasons that are not quite clear to me.</p>
<p>Your personal linux Sage version is only available to you, and lives on your computer. Naturally, the name and password might have no relation to each other.</p>
<p>You can do <code>sage</code> and then at the Sage prompt do</p>
<pre><code>sage: notebook()
</code></pre>
<p>and see if that does anything different. It <em>should</em> open a browser by itself, no login required.</p>
http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17200#post-id-17200As I explained above, www.sagenb.org **IS** running Sage 10.4. It is completely independent of your local Sage installation.Fri, 02 Aug 2013 01:12:52 -0500http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17200#post-id-17200Comment by burningbright for <p>You should note that the <a href="http://sagenb.org">sagenb.org</a> site is a hosted cloud service, where you have created an account. It happens to still be at Sage 5.4 for reasons that are not quite clear to me.</p>
<p>Your personal linux Sage version is only available to you, and lives on your computer. Naturally, the name and password might have no relation to each other.</p>
<p>You can do <code>sage</code> and then at the Sage prompt do</p>
<pre><code>sage: notebook()
</code></pre>
<p>and see if that does anything different. It <em>should</em> open a browser by itself, no login required.</p>
http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17208#post-id-17208This gives the same error. Yes, all I really want is to get the local notebook working again. Reading more closely, the notebook command is looking for firefox in its install location on the old box, not the new box. I think I need to delete the entire $HOME/.sage area (which contains a number of files from the older install) and reinstall sage from scratch again. Not sure if this explains all of these issues - will report my results.Thu, 01 Aug 2013 07:35:29 -0500http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17208#post-id-17208Comment by burningbright for <p>You should note that the <a href="http://sagenb.org">sagenb.org</a> site is a hosted cloud service, where you have created an account. It happens to still be at Sage 5.4 for reasons that are not quite clear to me.</p>
<p>Your personal linux Sage version is only available to you, and lives on your computer. Naturally, the name and password might have no relation to each other.</p>
<p>You can do <code>sage</code> and then at the Sage prompt do</p>
<pre><code>sage: notebook()
</code></pre>
<p>and see if that does anything different. It <em>should</em> open a browser by itself, no login required.</p>
http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17204#post-id-17204I moved my pre-existing .sage to .sage_old. Deleted the entire sage-5.10 folder, reinstalled it fresh from the tarball and let it make a new .sage area. However, I still get the same error message: the notebook looks for firefox at the old location and bombs. So as a kludge for now, I added a symbolic link at the old location of firefox, pointing to the new location. This works, and at least I don't have to ask IT to wipe my entire account back to defaults. And I can indeed get to my old notebooks with notebook(.../.sage_old/sage_notebook.sagenb"), so I'm happy. "Symbolic links - the duct tape of Linux".Thu, 01 Aug 2013 12:23:22 -0500http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17204#post-id-17204Comment by kcrisman for <p>You should note that the <a href="http://sagenb.org">sagenb.org</a> site is a hosted cloud service, where you have created an account. It happens to still be at Sage 5.4 for reasons that are not quite clear to me.</p>
<p>Your personal linux Sage version is only available to you, and lives on your computer. Naturally, the name and password might have no relation to each other.</p>
<p>You can do <code>sage</code> and then at the Sage prompt do</p>
<pre><code>sage: notebook()
</code></pre>
<p>and see if that does anything different. It <em>should</em> open a browser by itself, no login required.</p>
http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17205#post-id-17205I wouldn't necessarily get rid of all those things, and you definitely shouldn't have to move the sagenb stuff. At best there might be some specific file in `./sage` which is causing trouble. Does [this question](http://ask.sagemath.org/question/1803/change-default-web-browser) help?Thu, 01 Aug 2013 11:08:33 -0500http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17205#post-id-17205Comment by burningbright for <p>You should note that the <a href="http://sagenb.org">sagenb.org</a> site is a hosted cloud service, where you have created an account. It happens to still be at Sage 5.4 for reasons that are not quite clear to me.</p>
<p>Your personal linux Sage version is only available to you, and lives on your computer. Naturally, the name and password might have no relation to each other.</p>
<p>You can do <code>sage</code> and then at the Sage prompt do</p>
<pre><code>sage: notebook()
</code></pre>
<p>and see if that does anything different. It <em>should</em> open a browser by itself, no login required.</p>
http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17207#post-id-17207And it looks like I should back up $HOME/.sage/sage_notebook.sagenb first to hopefully get back the notebooks I neglected to explicitly save to .sws format ...Thu, 01 Aug 2013 07:52:50 -0500http://ask.sagemath.org/question/10387/notebook-version-login/?comment=17207#post-id-17207