TORCS SetupPermissionsBecause we want later compile and install your driver, we have to change some permissions. We assume that the username is uname and it belongs to the group ugroup. Simply replace uname and ugroup with your real values. Do (still as root)
# cd /usr/src/ If the sound doesn't work, you have perhaps to put your user in a group like "audio". Look up your distribution manual for more information about sound. You're finished with administrator stuff, so you can go back to your normal user account. EnvironmentNow we have to set up some environment variables. That you don't need to type this all the time, you put it best in your shell's rc file. For bash on SuSE that is .bashrc in your home directory. Copy the following on the end of the file. Don't forget to put a newline after the last line in the file:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib Open a new terminal with a shell to check if the .bashrc did its job. Check if the variables have the right values. We will do now a final check if everything is set up correct by recompiling a single driver (remember, you are working now as normal user in a shell where the above variables are set):
$ cd $TORCS_BASE If everything worked without errors, you are ready now! Execute
$ torcs
If TORCS hangs or something went wrong, double check the stuff and look up the
torcs mailing list
archives. And you know, if you get stuck... the force
may be with you. Command Line Options
Feedback
Let me know
if you read this chapter and your thoughts about it. Please
send me
also spelling, grammar, math and code corrections. Thank you for the feedback. |
Back |
Up |