Hi all, I recently had a play with Mandrake 9.0 and although not bad is not imho as good as Suse 8. However there was a rather nice scrolling, space shoot em up game that was with mandrake called Chromium. So I went off and found the source for the game, compiled it and am happily running it under Suse but with one problem. I can only run the game if I am physically in the dir that the binary is. The readme says I have to set some Environment Variables so that it can find the data required no matter what dir I am in. My question is how do I set these "Environment Variables" ? btw this is the bit about the environment vars here quoted from the readme Environment Variables: * CHROMIUM_SCORE - By default, high scores are kept in the ~/.chromium-score file. If the CHROMIUM_SCORE env var is set, Chromium will use that filename instead. (for example, if you want to compete w/ friends for high scores) * CHROMIUM_DATA - directory name where data files are kept. By default, Chromium will look for ../data. Thanks, Glenn -- Call on God, but row away from the rocks. -- Indian proverb
Hi, That is interesting... ...I just did a search for 'chromium' via YAST2: License: Artistic License Version: 0.9.12-286, Tue Mar 26 05:25:14 2002 Description: Chromium B.S.U. is a fast paced, arcade-style,top-scrolling space shooter. Authors: I installed it and it works fine by me. Maybe you shouldn't try to compile things that already exist and work perfectly well in SuSE. AFAIK this game has been with SuSE since 7.2 and I have played it on several occassions. Regards Q On Mon, 2002-10-21 at 09:21, Glenn Pedersen wrote:
Hi all, I recently had a play with Mandrake 9.0 and although not bad is not imho as good as Suse 8.
However there was a rather nice scrolling, space shoot em up game that was with mandrake called Chromium.
So I went off and found the source for the game, compiled it and am happily running it under Suse but with one problem.
I can only run the game if I am physically in the dir that the binary is. The readme says I have to set some Environment Variables so that it can find the data required no matter what dir I am in.
My question is how do I set these "Environment Variables" ?
btw this is the bit about the environment vars here quoted from the readme
Environment Variables:
* CHROMIUM_SCORE - By default, high scores are kept in the ~/.chromium-score file. If the CHROMIUM_SCORE env var is set, Chromium will use that filename instead. (for example, if you want to compete w/ friends for high scores) * CHROMIUM_DATA - directory name where data files are kept. By default, Chromium will look for ../data.
Thanks, Glenn
-- Call on God, but row away from the rocks. -- Indian proverb
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Monday 21 October 2002 5:37 pm, Quinton Delpeche wrote:
Hi,
That is interesting...
...I just did a search for 'chromium' via YAST2:
License: Artistic License Version: 0.9.12-286, Tue Mar 26 05:25:14 2002 Description: Chromium B.S.U. is a fast paced, arcade-style,top-scrolling space shooter. Authors:
I installed it and it works fine by me. Maybe you shouldn't try to compile things that already exist and work perfectly well in SuSE.
AFAIK this game has been with SuSE since 7.2 and I have played it on several occassions.
Regards Q
Ah so it is! Boy do I feel like a silly bugger :) Still its good to know how to set these things up anyway :) Thanks Glenn
On Mon, 2002-10-21 at 09:21, Glenn Pedersen wrote:
Hi all, I recently had a play with Mandrake 9.0 and although not bad is not imho as good as Suse 8.
However there was a rather nice scrolling, space shoot em up game that was with mandrake called Chromium.
So I went off and found the source for the game, compiled it and am happily running it under Suse but with one problem.
I can only run the game if I am physically in the dir that the binary is. The readme says I have to set some Environment Variables so that it can find the data required no matter what dir I am in.
My question is how do I set these "Environment Variables" ? high scores)
Hi, As far as I understand you would have to edit your .profile file or the /etc/profile.local file (create it if it does not exist) and edit this line: PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin: (...) Append the /path/for/chromium ;-) Your .profile is only valid for you, /etc/profile.local is valid for everyone. Cheers .... Wolfi ============================================= mailto:wolfi_z@gmx.net Linux ... the better OS!
Hi,
As far as I understand you would have to edit your .profile file or the /etc/profile.local file (create it if it does not exist) and edit this line:
PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin: (...)
Append the /path/for/chromium ;-) Your .profile is only valid for you, /etc/profile.local is valid for everyone.
Thanks Ill give that a try. Glenn -- When the government bureau's remedies don't match your problem, you modify the problem, not the remedy.
On Monday 21 October 2002 6:07 pm, David List wrote:
On Mon, 21 Oct 2002, Glenn Pedersen wrote:
I can only run the game if I am physically in the dir that the binary is.
Wow, how do you get yourself on the disk? :)
Best regards, David List
hehe havn't you seen tron. Glenn -- "Cable is not a luxury, since many areas have poor TV reception." -- The mayor of Tucson, Arizona, 1989
On Mon, 21 Oct 2002, Glenn Pedersen wrote:
My question is how do I set these "Environment Variables" ?
btw this is the bit about the environment vars here quoted from the readme
Environment Variables:
* CHROMIUM_SCORE - By default, high scores are kept in the ~/.chromium-score file. If the CHROMIUM_SCORE env var is set, Chromium will use that filename instead. (for example, if you want to compete w/ friends for high scores)
In your ~/.bashrc (if you use bash), insert lines like this: export CHROMIUM_SCORE=<path to score file> This is generally the way to permanently change environment variables on a per user basis. Best regards, David List
On Monday 21 October 2002 08:21, Glenn Pedersen wrote:
Hi all, I recently had a play with Mandrake 9.0 and although not bad is not imho as good as Suse 8.
However there was a rather nice scrolling, space shoot em up game that was with mandrake called Chromium.
So I went off and found the source for the game, compiled it and am happily running it under Suse but with one problem.
I can only run the game if I am physically in the dir that the binary is. The readme says I have to set some Environment Variables so that it can find the data required no matter what dir I am in.
My question is how do I set these "Environment Variables" ?
btw this is the bit about the environment vars here quoted from the readme
Environment Variables:
* CHROMIUM_SCORE - By default, high scores are kept in the ~/.chromium-score file. If the CHROMIUM_SCORE env var is set, Chromium will use that filename instead. (for example, if you want to compete w/ friends for high scores) * CHROMIUM_DATA - directory name where data files are kept. By default, Chromium will look for ../data.
Hi Glenn, The machine keeps a whole stack of environment variables for each user, fed from a variety of sources when you login. If you want to see them, type env or pipe the output through more (env | more) if it runs off the screen. One important variable is $PATH, you can see this with 'echo $PATH'. You can add or modify variables per session by using (assuming you're using the SuSE default Bash shell): export PATH=$PATH:/my/new/path This appends a new directory for programs you start within that session to look in, leaving your original path undisturbed. You could add this same line to the configuration files Wolfi mentioned to get this variable set each time you log in. The machine will read it when you log in. You could set your variables by adding the following to .bashrc: export CHROMIUM_SCORE=/wherever/you/like export CHROMIUM_DATA=/wherever/it/lives Save and then do 'source .bashrc'. You can then confirm they are set with env | grep CHROMIUM and you should see: $CHROMIUM_SCORE=/wherever/you/like $CHROMIUM_DATA=/wherever/it/lives You're then ready to go, and the system will load that variable next time too. HTH Fergus -- Fergus Wilde Chetham's Library Long Millgate Manchester M3 1SB Tel: +44 161 834 7961 Fax: +44 161 839 5797 http://www.chethams.org.uk
Hi Glenn,
The machine keeps a whole stack of environment variables for each user, fed from a variety of sources when you login. If you want to see them, type
env
lotsa informative stuff cut :)
HTH Fergus
Wow I wasn't aware of all of the many things that env returned. I did know some of the things you had mentioned but nowhere near the complexity of what you have told me here. Thanks very much for the detailed info. Things have become much clearer now. btw this has been printed and archived for future use. Thanks again Glenn -- Giving up on assembly language was the apple in our Garden of Eden: Languages whose use squanders machine cycles are sinful. The LISP machine now permits LISP programmers to abandon bra and fig-leaf. -- Epigrams in Programming, ACM SIGPLAN Sept. 1982
Glenn Pedersen wrote:
My question is how do I set these "Environment Variables"
* CHROMIUM_SCORE - By default, high scores are kept in the ~/.chromium-score file. If the CHROMIUM_SCORE env var is set, Chromium will use that filename instead. (for example, if you want to compete w/ friends for high scores) * CHROMIUM_DATA - directory name where data files are kept. By default, Chromium will look for ../data.
export CHROMIUM_SCORE="/path/to/chromium-score.file" export CHROMIUM_DATA="/path/to/chromium/data" Put these in ~/.bashrc to have them available when you login. sjb
export CHROMIUM_SCORE="/path/to/chromium-score.file" export CHROMIUM_DATA="/path/to/chromium/data"
Put these in ~/.bashrc to have them available when you login.
sjb
Thanks everyone! I got it now Glenn -- Law of the Perversity of Nature: You cannot successfully determine beforehand which side of the bread to butter.
On Mon, 21 Oct 2002, Glenn Pedersen wrote:
I can only run the game if I am physically in the dir that the binary is. The readme says I have to set some Environment Variables so that it can find the data required no matter what dir I am in.
My question is how do I set these "Environment Variables" ?
There have been good suggestions to put "export CHROMIUM_DATA=/dir/name" in .bashrc or "setenv CHROMIUM_DATA /dir/name" in .cshrc. However, in a situation like this I generally write a little script to start the app, dropping it in my personal bin directory or /usr/local/bin. It would be like this: #!/bin/sh CHROMIUM_DATA=/dir/name export CHROMIUM_DATA exec /dir/name/bin/chromium (substitute appropriate dirnames, and add whatever additional variables are needed. The real /bin/sh does not have the combined export and variable setting syntax that bash does, so I'm in the habit of doing it that way.) Hope this helps. James F. Carter Voice 310 825 2897 FAX 310 206 6673 UCLA-Mathnet; 6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555 Email: jimc@math.ucla.edu http://www.math.ucla.edu/~jimc (q.v. for PGP key)
participants (7)
-
David List
-
Fergus Wilde
-
Glenn Pedersen
-
Jim Carter
-
Quinton Delpeche
-
sjb
-
wolfi