It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
This may be a silly suggestion, but have you tried to move the files from Desktop to another location?

E: or even try rebooting pc? I can remember that once I had frustrating problem when this stupid thing just didn't like long paths with spaces, no matter what I did it said they were wrong, incomplete, files didn't exist, etc. Finally I gave up, restarted my computer in act of desperation and... it suddenly worked. To this day I have no idea what was wrong...
Post edited November 08, 2015 by InkPanther
avatar
arvid4prez: I've tried with 2 games, same result:

~/Desktop $ sudo chmod a+x gog_baldur_s_gate_enhanced_edition_2.0.0.3.sh
~/Desktop $ ./gog_baldur_s_gate_enhanced_edition_2.0.0.3.sh
/bin/sh: 0: Can't open ./gog_baldur_s_gate_enhanced_edition_2.0.0.3.sh

and

~/Desktop $ sudo chmod a+x gog_brutal_legend_2.0.0.2.sh
~/Desktop $ ./gog_brutal_legend_2.0.0.2.sh
/bin/sh: 0: Can't open ./gog_brutal_legend_2.0.0.2.sh

dragging, same thing:

~/Desktop $ '/home/arvid4prez/Desktop/gog_brutal_legend_2.0.0.2.sh' /bin/sh: 0: Can't open /home/arvid4prez/Desktop/gog_brutal_legend_2.0.0.2.sh

Both files have full Read+Write permissions, I am the only user and administrator.
Assuming you have the right permissions try:
bash gog_brutal_legend_2.0.0.2.sh
avatar
classicgogger: Assuming you have the right permissions try:
bash gog_brutal_legend_2.0.0.2.sh
I was just going to suggest that.

You could also just extract the installers: $ 7z x gog_brutal_legend_2.0.0.2.sh
Post edited November 08, 2015 by Gydion
avatar
classicgogger: Assuming you have the right permissions try:
bash gog_brutal_legend_2.0.0.2.sh
avatar
Gydion: I was just going to suggest that.

You could also just extract the installers: $ 7z x gog_brutal_legend_2.0.0.2.sh
Seriously, even more people?

To anyone who's not using bash (unintentionally):
- verify where bash lies:
which bash

- if it doesn't show anything you have to install bash first
- then change it for your account:
chsh -s full_path_and_binary

i.e. chsh -s /bin/bash

- then logout or reboot
- don't try to be smart and try to enter something else, it won't work the way you might think
Post edited November 08, 2015 by classicgogger
avatar
classicgogger: Seriously, even more people?
Except the MojoSetup installers should run correctly in DASH or Bourne shell (it specifies #!/bin/sh). I would consider it a bug if it doesn't.
avatar
classicgogger: Seriously, even more people?
avatar
Gydion: Except the MojoSetup installers should run correctly in DASH or Bourne shell (it specifies #!/bin/sh). I would consider it a bug if it doesn't.
It's not a bug. It does work with dash too.
Thanks everybody, especially classicgogger, BASH worked.

If anybody needs me, I'll be lying on the sword coast beach listening to some heavy metal music.
One thing I'd like to add: don't install (ie, run the .sh script) your games with sudo (as root).

If you install your games in your home directory, you should get away with installing as yourself.

Games are not system software. They shouldn't require elevated privilege to install/run.

If you install with sudo, the installed game files will be owned by root which is an annoyance in your home directory.

Also, if you alternate between running the game with and without sudo, you might get some weird errors like the game suddenly being unable to access save files (ie, if you ran as root, saved your game and then later ran as yourself).
Post edited November 09, 2015 by Magnitus
avatar
Magnitus: Games are not system software. They shouldn't require elevated privilege to install/run.
Sure, but it would be nice if the installers allowed for installing the games in system-wide locations (say, /opt/somewhere, and with symlinks to the main executables in path) so that different users could have them easily available.
avatar
Maighstir: it would be nice if the installers allowed for installing the games in system-wide locations (say, /opt/somewhere, and with symlinks to the main executables in path) so that different users could have them easily available.
Check my previous post in this thread for that ;)
avatar
Magnitus: Games are not system software. They shouldn't require elevated privilege to install/run.
avatar
Maighstir: Sure, but it would be nice if the installers allowed for installing the games in system-wide locations (say, /opt/somewhere, and with symlinks to the main executables in path) so that different users could have them easily available.
I'm pretty sure you can pull it off with groups (with the caveat at the bottom to keep in mind).

Basically, give the entire content of the game's folder (recursively) a 'gog' group. Make sure the group permissions are the same as the owner (usually, that's the default).

Then, add various users to the gog group.

The main thing I see that could go really wrong (across multiple users) is if the game centralise saves somewhere in the game's directory (I know for a fact that some games are smart and save somewhere in your home directory, but many probably won't).
Post edited November 14, 2015 by Magnitus