ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 15 Feb 2018 03:54:39 +0100run sage from windows 10 ubuntuhttps://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/ I typed bash in win 10 cmd. It installed ubuntu. Then I installed Sage. But when I type Sage into bash it can't find it. Where is it or how do I run it? Last time I did this by hand and it simply ran with "Sage" But windows lost my pw and I'm starting over.Thu, 12 Oct 2017 02:28:05 +0200https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/Comment by dan_fulea for <p>I typed bash in win 10 cmd. It installed ubuntu. Then I installed Sage. But when I type Sage into bash it can't find it. Where is it or how do I run it? Last time I did this by hand and it simply ran with "Sage" But windows lost my pw and I'm starting over.</p>
https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39133#post-id-39133It is hard to understand the dependencies between Win, ubuntu (install), bash, sage, pw, cmd. Moreover, some people like me always feel lost in win. (Since there is no "which bash".) Abbreviations and keyword hints do not help a potential helper. Which is the question again?
Here is a possible solution:
Install ubuntu on oa 5GB partition of the same machine. Then sage inside ubuntu. There is now a user password, sage is always there where `which sage` mentions it.Thu, 12 Oct 2017 04:12:50 +0200https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39133#post-id-39133Comment by cybervigilante for <p>I typed bash in win 10 cmd. It installed ubuntu. Then I installed Sage. But when I type Sage into bash it can't find it. Where is it or how do I run it? Last time I did this by hand and it simply ran with "Sage" But windows lost my pw and I'm starting over.</p>
https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39134#post-id-39134Windows already installed bash automatically when I typed bash in the cmd prompt. I need to see how to find sage from the bash prompt (which, btw types directories in blue on black, nearly impossible to read). I tried /usr/bin and /usr/sbin but no luck. I had no problem when I installed ubuntu on win 10 a while back, the hard way, but the new win default is lacking.Thu, 12 Oct 2017 04:18:35 +0200https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39134#post-id-39134Comment by dan_fulea for <p>I typed bash in win 10 cmd. It installed ubuntu. Then I installed Sage. But when I type Sage into bash it can't find it. Where is it or how do I run it? Last time I did this by hand and it simply ran with "Sage" But windows lost my pw and I'm starting over.</p>
https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39143#post-id-39143Once again. So the following details are right or wrong? (Just to see from my perspective the things.)
- The operating system is Windows 10?
- Ubuntu has nothing to do with the problem? It is not installed as virtual operating system inside Windows 10.
- cmd is cmd.exe, it gives acces to the windows command line?
- "inside cmd" one can type bash stepping in? This means, that typing in the cmd-window `WHERE bash` gives the location of that bash. Which is the location? How was it installed? Is this a cygwin-like emulator? Is there a description of "install sage" that goes through "install bash"? Which is the link?
- `WHERE sage` finds it? (Inside cmd.)
- For the blue on black issue: Does e.g. [mobaxterm](https://mobaxterm.mobatek.net/) a better job?
- What is "the new win default"?Thu, 12 Oct 2017 19:56:46 +0200https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39143#post-id-39143Comment by cybervigilante for <p>I typed bash in win 10 cmd. It installed ubuntu. Then I installed Sage. But when I type Sage into bash it can't find it. Where is it or how do I run it? Last time I did this by hand and it simply ran with "Sage" But windows lost my pw and I'm starting over.</p>
https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39144#post-id-39144Windows now just installs ubuntu if you type bash in the dos shell. Windows performs real time translation of Linux syscalls into Windows OS syscalls and it is nearly as fast as native Ubuntu. It doesn' t show up on C drive, though. But it's unclear where they put installed programs like the Sage I just installed. It didn't go on the path as it did when I manually installed ubuntu, and I can't seem to locate it. I checked /usr/bin and /usr/sbin and tried searching for "sage" but no luck.Thu, 12 Oct 2017 21:11:22 +0200https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39144#post-id-39144Comment by cybervigilante for <p>I typed bash in win 10 cmd. It installed ubuntu. Then I installed Sage. But when I type Sage into bash it can't find it. Where is it or how do I run it? Last time I did this by hand and it simply ran with "Sage" But windows lost my pw and I'm starting over.</p>
https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39145#post-id-39145where bash just gives C:\Windows\System32\bash.exe and no file locations.Thu, 12 Oct 2017 21:14:06 +0200https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39145#post-id-39145Comment by cybervigilante for <p>I typed bash in win 10 cmd. It installed ubuntu. Then I installed Sage. But when I type Sage into bash it can't find it. Where is it or how do I run it? Last time I did this by hand and it simply ran with "Sage" But windows lost my pw and I'm starting over.</p>
https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39146#post-id-39146Found it in /usr/bin sagemath. But it fails to run the browser notebook, which ran fine when I installed ubuntu on win 10 manually. This winver of ubuntu isn't ready for prime time ;)
xdg-open: no method available for opening 'http://localhost:8080/?startup_token=3d0fcef2b0fa8cd9146d31c4ddee78bd'
I'm not fooling with it anymore. I already have it on a linux mint machine. I just thought this would be more convenient.Thu, 12 Oct 2017 22:56:39 +0200https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39146#post-id-39146Answer by cybervigilante for <p>I typed bash in win 10 cmd. It installed ubuntu. Then I installed Sage. But when I type Sage into bash it can't find it. Where is it or how do I run it? Last time I did this by hand and it simply ran with "Sage" But windows lost my pw and I'm starting over.</p>
https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?answer=39152#post-id-39152Got it working. cd /usr/bin then run sage. It showed up after a second install. Fri, 13 Oct 2017 08:06:09 +0200https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?answer=39152#post-id-39152Comment by Iguananaut for <p>Got it working. cd /usr/bin then run sage. It showed up after a second install. </p>
https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39212#post-id-39212How exactly did you "install" sage? /usr/bin should be on the path by default.Thu, 19 Oct 2017 12:40:14 +0200https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=39212#post-id-39212Comment by slelievre for <p>Got it working. cd /usr/bin then run sage. It showed up after a second install. </p>
https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=41123#post-id-41123@cybervigilante -- you should accept your own answer to mark your question as solved.
Additionally, if you can, add a little more detail to answer the question in @Iguananaut's comment.Thu, 15 Feb 2018 03:54:39 +0100https://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/?comment=41123#post-id-41123