User talk:Tampa
From OpenSimulator
Hello Tampa
On the Dependencies/fr page, at the end of the “On Linux” section, I added this paragraph. I don't know if it's necessary or correct. I had this error on my computer and corrected it this way.
« Possible error under Linux:
When running the `opensim.sh` script, the following error may appear:
-bash: ./opensim.sh : /bin/sh^M : bad interpreter: No file or directory of this type
This error indicates that there is a problem with the file format, often caused by incompatible line endings (e.g., Windows-style carriage returns).
To resolve this issue, you need to convert the file using the `dos2unix` command. Install dos2Unix:
sudo apt install dos2unix
Run the following command in the simulator's bin folder:
dos2unix opensim.sh
» Acryline
The problem is likely that on your system /bin/sh doesn't exist. These days the proper shebang should be /bin/bash so that's something to be fixed in the script itself, which can thankfully be edited easily through nano or vim.
dos2unix is not meant for that.
All opensim.sh really does is run dotnet OpenSim.dll which it does just on the terminal, so the moment that's closed the process is killed. Using screen or tmux is probably better advice to give to users, but that's sort of basic linux admin 101 so should know that already.
bin/sh is meant to be a symlink to the currently configured shell, so something is wrong on your system if that's not set. Debian and Ubuntu will point to dash, but that should still work fine given the commands in the script are normally available to all shells from zsh to bash.
Tampa