Ask Your Question
1

run sage from windows 10 ubuntu

asked 2017-10-12 02:28:05 +0100

cybervigilante gravatar image

updated 2022-01-21 11:14:52 +0100

FrédéricC gravatar image

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.

edit retag flag offensive close merge delete

Comments

It 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.

dan_fulea gravatar imagedan_fulea ( 2017-10-12 04:12:50 +0100 )edit

Windows 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.

cybervigilante gravatar imagecybervigilante ( 2017-10-12 04:18:35 +0100 )edit

Once 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 a better job?
  • What is "the new win default"?
dan_fulea gravatar imagedan_fulea ( 2017-10-12 19:56:46 +0100 )edit

Windows 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.

cybervigilante gravatar imagecybervigilante ( 2017-10-12 21:11:22 +0100 )edit

where bash just gives C:\Windows\System32\bash.exe and no file locations.

cybervigilante gravatar imagecybervigilante ( 2017-10-12 21:14:06 +0100 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2017-10-13 08:06:09 +0100

cybervigilante gravatar image

Got it working. cd /usr/bin then run sage. It showed up after a second install.

edit flag offensive delete link more

Comments

How exactly did you "install" sage? /usr/bin should be on the path by default.

Iguananaut gravatar imageIguananaut ( 2017-10-19 12:40:14 +0100 )edit

@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.

slelievre gravatar imageslelievre ( 2018-02-15 03:54:39 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-10-12 02:28:05 +0100

Seen: 1,194 times

Last updated: Oct 13 '17