Changing terminal color on Windows

asked 2022-03-15 23:06:58 +0200

DrHow gravatar image

updated 2022-04-15 15:55:55 +0200

Iguananaut gravatar image

I ran the installation without admin privileges, and the Sage Console seemed to be working. But I don't like dark mode, so I was trying to find my way around to figure out how to invoke lightBG (which I thought was supposed to be the default). Not finding that easy, I was surprised to discover that no environment variables had been created or new PATH items added. Eg., I could not run sage at the command line (without a full path). So I thought that maybe I should run the installer with admin privileges and install it for everybody. Even worse! Now, on trying to start the console, bash is immediately and repeatedly complaining "could not find file /tmp".

Furthermore, still no additions to environment variables or to PATH.

I did try starting bash and issuing command "mkdir /tmp". It claims to have succeeded. But it did not help for the console. Furthermore, a second attempt is met with "file exists".

Any helpful suggestions would be appreciated.

edit retag flag offensive close merge delete

Comments

Hi @DrHow I had the same problems as you with version 9.3 for W10.

bash.exe: warning: could not find /tmp, please create!

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.3, Release Date: 2021-05-09                     │
│ Using Python 3.7.10. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘

I suggest to rather install the latest Linux version (9.5) through WSL2 in W10:

https://www.sandyscott.net/2020/12/02...

see also: https://ask.sagemath.org/question/598...

ortollj gravatar imageortollj ( 2022-03-19 06:36:07 +0200 )edit

Don't worry, it's not as complicated as it first appears.

ortollj gravatar imageortollj ( 2022-03-19 06:51:13 +0200 )edit

Could you please break this up into two separate questions? At first I thought it was about setting the terminal colors and got confused because it then went into something about environment variables. Not really clear what you're trying to do. What do mean "no environment variables had been created"? How did you run Sage?

Iguananaut gravatar imageIguananaut ( 2022-04-15 15:57:50 +0200 )edit

You're not trying to run sage in cmd.exe are you?

Iguananaut gravatar imageIguananaut ( 2022-04-15 15:58:36 +0200 )edit