Author Topic: Re: Updated AprQ2 for Mac and Linux users  (Read 1892 times)

Offline VaeVictis

  • i was -1 because you fucking suck
  • Brobdingnagian Member
  • *
  • Posts: 4498
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« on: February 25, 2011, 10:05:34 PM »
NVM! oops on my part :P

i figured cd'ing to /usr/local/games/quake2/ and just typing aq2 to start would be sufficient for it to know that its supposed to run in that directory xD apparently not... still have to type out ./aq2 lol XD now to make a simple script so i dont have to cd to that shit EVERY SINGLE TIME i wanna play q2 lol :) wont be hard... should be as simple as making a file complaining plain text that says

cd /usr/local/games/quake2/
./aq2

and set that file to be executable, and then set the quake2 directory to be 777 :) SHOULD work like a charm now WOOT
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline quadz

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5352
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #1 on: February 26, 2011, 06:00:52 PM »
i figured cd'ing to /usr/local/games/quake2/ and just typing aq2 to start would be sufficient for it to know that its supposed to run in that directory xD apparently not... still have to type out ./aq2 lol XD

If you type echo $PATH, you'll see the list of directories the shell is searching for executable commands.

If you really wanted it to search the current directory for commands, you could add "." to your PATH environment variable.

However, doing so is inadvisable from a security standpoint.  (Any directory with write access by untrusted users could contain executable commands, and if you visit those directories with "." in your PATH, you have the potential to inadvertently execute their commands.)


now to make a simple script so i dont have to cd to that shit EVERY SINGLE TIME i wanna play q2 lol :) wont be hard... should be as simple as making a file complaining plain text that says

cd /usr/local/games/quake2/
./aq2

and set that file to be executable, and then set the quake2 directory to be 777 :) SHOULD work like a charm now WOOT

Note, you can also accomplish similar things with aliases.

For ex., in your ~/.bashrc:

alias q2='cd /usr/local/games/quake2'

Then typing q2 at the shell will take you to that location.


then set the quake2 directory to be 777

BTW, it's almost never a good idea to make a world-writable directory.

I realize this is your "home" system and you may be willing to take the risk.  But anything world-writable outside of /tmp should almost always be avoided.


 :exqueezeme:
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
"He knew all the tricks, dramatic irony, metaphor, bathos, puns, parody, litotes and... satire. He was vicious."

Offline VaeVictis

  • i was -1 because you fucking suck
  • Brobdingnagian Member
  • *
  • Posts: 4498
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #2 on: February 26, 2011, 08:09:47 PM »
lol ill keep that in mind :) just wasnt sure about execution permissions where i installed it as root... WAS considering just changing ownership over to my user but then if i wanted to use it as another user in the future (dunno why i would but it was a thought) id have the same problem... ended up just goin for it and it worked without any permission changes except i cant write configs and stuff from in game unless i run it as root
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

 

Costigan_Q2

November 11, 2024, 06:41:06 AM
"Stay cozy folks.

Everything is gonna be fine."

There'll be no excuses for having TDS after January 20th, there'll be no excuses AT ALL!!!
 

|iR|Focalor

November 06, 2024, 03:28:50 AM
 

RailWolf

November 05, 2024, 03:13:44 PM
Nice :)

Tom Servo

November 04, 2024, 05:05:24 PM
The Joe Rogan Experience episode 223 that dropped a couple hours ago with Musk, they're talking about Quake lol.
 

Costigan_Q2

November 04, 2024, 03:37:55 PM
Stay cozy folks.

Everything is gonna be fine.
 

|iR|Focalor

October 31, 2024, 08:56:37 PM
 

Costigan_Q2

October 17, 2024, 06:31:53 PM
Not activated your account yet?

Activate it now! join in the fun!

Tom Servo

October 11, 2024, 03:35:36 PM
HAHAHAHAHAHA
 

|iR|Focalor

October 10, 2024, 12:19:41 PM
I don't worship the devil. Jesus is Lord, friend. He died for your sins. He will forgive you if you just ask.
 

rikwad

October 09, 2024, 07:57:21 PM
Sorry, I couldn't resist my inner asshole.

Show 50 latest
Welcome, Guest. Please login or register.
November 14, 2024, 08:50:35 AM

Login with username, password and session length