git-learning-game / oh-my-git

An interactive Git learning game!
https://ohmygit.org
Other
1.98k stars 143 forks source link

How to open 'Oh my Git' on Linux? #180

Closed gdwhittaker94 closed 1 year ago

gdwhittaker94 commented 1 year ago

Hi there.

I would like to try 'Oh my Git' and I'm using a Linux OS.

I've downloaded the folder, clicked on the file 'oh-my-git' and my laptop is unable to access it. It tries to open it with a program called 'Anki', and apart from that it doesn't give me any other options or programs to open the game with.

Using the terminal, I've created a folder, put the files in the folder, accessed the folder via the terminal, but ... then what? What command do I need to run the game?

Thanks in advance!

bleeptrack commented 1 year ago

Hey, thanks a lot for trying 'Oh my Git'! Just to make sure: you downloaded the .zip from https://blinry.itch.io/oh-my-git, correct?

On your terminal, go to the folder you created which contains everything inside the .zip (that should be two files). then run ./oh-my-git (including the dot and slash - that's a shorthand command to execute a file). Let me know if that worked for you :)

gdwhittaker94 commented 1 year ago

Hi Bleeptrack,

Ah ok, I saw ./ on the website but I didn't realise it was a shorthand command!

So I have followed your instructions, changing directory to the directory that contains the oh-my-git files, run that command and I get a "permission denied" message in the terminal.

What now?

Screenshot 2023-07-17 11 36 59

blinry commented 1 year ago

You're almost there! Seems like you need to set the executable permission on the file, you can do it like this:

chmod u+x oh-my-git

After that, the ./ command should work!

gdwhittaker94 commented 1 year ago

Hi there. Have had a busy few weeks and didn't get time to sit down and try the solution in order to play the game.

Just to confirm, the chmod command solved the problem!

Thanks a lot guys :)