You can use the steps here, but you need to know what you're doing, or it will be trial and error until you get it. Also from what I know and expect, you'll be unable to use the Synaptic Package Manager so everything must be done from the terminal.
The first step is installing the Ubuntu terminal from the Windows Store, and activating it, as here. Note that you'll need to have the developer mode activated.
Then, you'll need to open it to finish its installation, and set up a user and password.
The next step, from the terminal is to add the line
deb http://www.math.uiuc.edu/Macaulay2/Repositories/Ubuntu XXXX main
to the file /etc/apt/sources.list, replacing XXXX by the corresponding word, and if, like me, you have no idea how to do that, then you first have to check the Ubuntu version from the terminal with the comand lsb_release -a. Now, to add that line to the sources.list file I wrote the following in the terminal, just like it said here:
echo "deb http://www.math.uiuc.edu/Macaulay2/Repositories/Ubuntu XXXX main" | sudo tee -a /etc/apt/sources.list
I didn't use gedit because I don't know if I can install it and make it work from the terminal (It's a text editor for ubuntu). I think it can be done following the instructions for Macaulay with emacs but when I tried that way something like a year ago it didn't work. But then I didn't know how to use apt so that is likely to be the reason. This way it doesn't require to install anything else. The following is to add the key, but it's tricky. You have to download de key, and get to that folder. If you don't know the syntax for the directories in Ubuntu it may be confusing. You must download the key, and then you can move it to C://, use the command cd /mnt/c/ to get to C:// and then use the command in the instructions:
sudo apt-key add Macaulay2-key
From then on, everything should be like in the instructions: Just use the commands
sudo apt-get update -q
sudo apt-get install -y -q macaulay2
then wait for it to install and you'll be done in no time. You can open Macaulay from the terminal using M2.

No comments:
Post a Comment