Posted January 04, 2020
For anyone who gets the following error:
./stardew_valley_1_4_3_379_34693.sh: line 509: ./startmojo.sh: Permission denied
You can patch the installer by simply telling it to use the local directory instead of /tmp:
echo y | dd of=./stardew_valley_1_4_3_379_34693.sh bs=1 seek=556 conv=notrunc
This is because the .sh file is a shell script with a binary archive appended to it. The script extracts the archive into /tmp, and then attempts to execute a secondary installer inside the archive. However for some, the /tmp directory is not executable for security reasons. So we simply change keep="n" to keep="y", and it extracts to the local directory instead of /tmp. Problem solved.
We have to use dd though, because using a text editor will corrupt the binary archive data at the end of the file because it contains invalid text characters. So I just used a hex editor to find what byte the "n" is stored in, and then we can write to only that byte.
Et voila, the installer works.
./stardew_valley_1_4_3_379_34693.sh: line 509: ./startmojo.sh: Permission denied
You can patch the installer by simply telling it to use the local directory instead of /tmp:
echo y | dd of=./stardew_valley_1_4_3_379_34693.sh bs=1 seek=556 conv=notrunc
This is because the .sh file is a shell script with a binary archive appended to it. The script extracts the archive into /tmp, and then attempts to execute a secondary installer inside the archive. However for some, the /tmp directory is not executable for security reasons. So we simply change keep="n" to keep="y", and it extracts to the local directory instead of /tmp. Problem solved.
We have to use dd though, because using a text editor will corrupt the binary archive data at the end of the file because it contains invalid text characters. So I just used a hex editor to find what byte the "n" is stored in, and then we can write to only that byte.
Et voila, the installer works.