Originally posted by Andrek
Q: How do I use the installer?
A: Just do: chmod 755 PlaneShift_CBV0.3.010.run && sh PlaneShift_CBV0.3.010.run
Q: How do I use the update?
A: Same as installer: chmod 755 PlaneShift_CBV0.3.010-UPDATE.run && sh PlaneShift_CBV0.3.010-UPDATE.run
Why does this work? ie what does chmod do? As well what are the && ,sh, and 755 for? If there is a way to ask the OS this please let me know.
Just curious.
chmod is the unix change mode command. 755 is the set of bytes that turn the file read/write/execute for the owner, read/execute for the group and read/execute for anyone else. You can also do a chmod o+rwx for owner, or chmod a+rwx for all so that everyone can read, write and execute. The last statement is not a good one to be doing with system files, as anyone can change them. For these files, you\'re most likely going to delete them or archive them to cd, so it\'s not a big deal. Just don\'t leave them sitting around on a live networked filesystem.
The && is a logical AND statement. If the first command is successful, then do the second task.
The sh Planeshift_ command tells the computer to run a shell and then interpret the Planeshift_ script. If you are using Bash, or most other shells, you can just execute the program normally, using ./Planeshift_ . Some shells don\'t work this way, so the safest thing to do from a developer standpoint is have the end user execute it through shell (sh), which they know works.