How to execute a game in Linux

Discussion in 'Operating Systems' started by inklimited, May 3, 2010.

  1. inklimited

    inklimited Ancient Guru

    Messages:
    6,118
    Likes Received:
    0
    GPU:
    Gigabyte 6850 900MHz
    I downloaded and extracted Paintball2 to my home folder, but the game just won't run. If I double click the exe, it does nothing. If I try to run it through a terminal, it says "command not found". If I try to run it with Linux32, it says "No such file or directory".

    Basically, this is how far I have gotten:

    Code:
    root@ubuntu:~/Gamezorz/paintball2# paintball2
    paintball2: command not found
    root@ubuntu:~/Gamezorz/paintball2# linux32 paintball2
    linux32: paintball2: No such file or directory
    root@ubuntu:~/Gamezorz/paintball2# 
    
    Derp? :bang:
     
  2. Moustacha

    Moustacha Member

    Messages:
    34
    Likes Received:
    0
    GPU:
    Sapphire 5770
    If it's a windows application you'll need to use WINE. YMMV with how well it runs, if at all.
     
  3. PuddingWagon

    PuddingWagon Maha Guru

    Messages:
    1,087
    Likes Received:
    0
    GPU:
    Gigabyte GTX 670
    Isn't it
    Code:
    ./paintball2
    Typing 'paintball2' would look for a command 'paintball2'.
     
  4. inklimited

    inklimited Ancient Guru

    Messages:
    6,118
    Likes Received:
    0
    GPU:
    Gigabyte 6850 900MHz
    Thanks heaps, mate :D

    No, it's the Linux x86 version. I have Linux x86_64, that's why I used the linux32 command.

    On the webpage, it says I need the libraries:

    libgcrypt, libgpg-error, libjpeg, libpng12, libstdc++, libpthread, libgcc_s, libXxf86vm, libXau, libXdmcp, libXext, libXdamage, libXfixes, libdrm, libX11, libGL, libxcb, libz, libdl, librt, libm, libc

    I should already have these, right? I checked /lib and some are there and some are not. The first one I have found not there is libjpeg, I've downloaded and extracted it, now I'm just trying to figure out how to put it in the /lib

    Yeh, I kinda figured that. :p
     

  5. SnooSnoo

    SnooSnoo Maha Guru

    Messages:
    1,178
    Likes Received:
    0
    GPU:
    Intel HD510
    Installing stuff using a package manager is the way to go for new users. That solves all the dependancies you might have (ie missing libraries will get installed). You can also install the libs using a package manager yourself with said method...

    Anyway, what distro are you using?
     
  6. inklimited

    inklimited Ancient Guru

    Messages:
    6,118
    Likes Received:
    0
    GPU:
    Gigabyte 6850 900MHz
    That new Ubuntu LTS 10.04, Gnome version, in x64.
     
  7. SnooSnoo

    SnooSnoo Maha Guru

    Messages:
    1,178
    Likes Received:
    0
    GPU:
    Intel HD510
    Okay, then try using synaptic. Its a gui package manager. You just type the name (or parts of) of wanted software and let it search for it. If it cant find it, then most likley its not in the repository synaptic is searching in. If you got the developers page for me I could perhaps help more... Goggling for it doesent yield much sucess.
     
  8. inklimited

    inklimited Ancient Guru

    Messages:
    6,118
    Likes Received:
    0
    GPU:
    Gigabyte 6850 900MHz
    http://www.ubuntu.com/

    Sorry for the confusion. It's just Ubuntu, the Gnome reference wasn't necessary.

    Trying synaptic now.
     
  9. SnooSnoo

    SnooSnoo Maha Guru

    Messages:
    1,178
    Likes Received:
    0
    GPU:
    Intel HD510
    Think I found their homepage, no info on linux install notes tho :(. Maybe you can ask in their forums. Seems it should just run with the command given earlier.

    But, if you would like to see what linux can do, try Nexuiz. Also, QuakeLive, OpenArena and UrbanTerror are just some of the cool First person games that you can play.

    Oh, maybe this can help? Or this.

    ^Thats all crap. Best to ask on their forum if synaptic doesent have it.

    Well, the game is not in the "universe" repository. Check in "multiverse", you need to enable it tho.
     
    Last edited: May 3, 2010
  10. SnooSnoo

    SnooSnoo Maha Guru

    Messages:
    1,178
    Likes Received:
    0
    GPU:
    Intel HD510
    Have you been able to solve your dependancies? Have you tried the games I proposed?
     

  11. inklimited

    inklimited Ancient Guru

    Messages:
    6,118
    Likes Received:
    0
    GPU:
    Gigabyte 6850 900MHz
    I still can't get Paintball to work. All I get is "No such file".

    Urban Terror works. All I had to do with that was give it permission to execute.
     
  12. SnooSnoo

    SnooSnoo Maha Guru

    Messages:
    1,178
    Likes Received:
    0
    GPU:
    Intel HD510
    Wierd stuff. Like the binary is missing. Re-downloaded and unpacked again?
     
  13. deltatux

    deltatux Ancient Guru

    Messages:
    19,051
    Likes Received:
    13
    GPU:
    GIGABYTE Radeon R9 280
    How did you install the game? Using apt-get? If you used apt-get it will be in the command search. Thus, that means you can just type paintball2.

    To find where paintball2 is I'd issue this command:
    Code:
    find / | grep "paintball2"
    
    Then launch paintball2 by issuing the full path. For example, if it was in your /usr/local/games/paintball folder, type:
    Code:
    /usr/local/games/paintball/paintball2
    
    This will tell BASH to execute the binary in that folder.

    If it still doesn't launch, try giving it execute permissions:
    Code:
    chmod +x /usr/local/games/paintball/paintball2
    
    ^ this command might require you to have root privileges, in this case use sudo.

    Also, NEVER EVER RUN YOURSELF AS ROOT UNLESS YOU ABSOLUTELY NEED TO it's REALLY REALLY STUPID I can't stress this enough. You can very easily nuke your machine if you issue the wrong commands and unlike Windows, many times the BASH shell will execute the commands without verification since you're root. In the UNIX world, nothing questions the root user.

    EDIT: You don't need to issue any linux32 commands, in fact I've never heard of such command. The Linux kernel and the BASH shell will still be able to launch 32-bit binaries in a 64-bit environment without issues like you do on Windows. You don't need any special wrappers.

    Cheers,
    deltatux
     
    Last edited: May 5, 2010
  14. inklimited

    inklimited Ancient Guru

    Messages:
    6,118
    Likes Received:
    0
    GPU:
    Gigabyte 6850 900MHz
    Cheer, delta, I'll give it a go. All I did was unzip the package into my home folder, then Synaptic the missing libs.

    Yeah, I know about root. I like to live dangerously.

    The hierarchy and file system confuses the hell out of me, so I just root everything. If it dies, I reinstall. :/
     
  15. Finchwizard

    Finchwizard Don Apple

    Messages:
    16,439
    Likes Received:
    7
    GPU:
    -
    I just installed Ubuntu into a VM.

    Grabbed the .tar.gz off their website, extracted under my Download section.

    Opened a terminal and changed to the directory, and ran it with ./paintball2

    No issues.
     

  16. inklimited

    inklimited Ancient Guru

    Messages:
    6,118
    Likes Received:
    0
    GPU:
    Gigabyte 6850 900MHz
    Redownloaded, reextracted: "No such file or directory"

    ...and Finch didn't even need the libs it sounds like.
     
  17. SnooSnoo

    SnooSnoo Maha Guru

    Messages:
    1,178
    Likes Received:
    0
    GPU:
    Intel HD510
    There is a saying I use that might not be as funny in english, goes like this: "You would even make a hammer break down." ;)
     
  18. Finchwizard

    Finchwizard Don Apple

    Messages:
    16,439
    Likes Received:
    7
    GPU:
    -
    Open a Terminal.

    Code:
    cd Downloads && wget http://transact.dl.sourceforge.net/project/paintball2/Paintball%202/Paintball%202.0%20Alpha%20build029/paintball2_build029_linux_full.tar.gz
    
    Wait till it downloads then.

    Code:
    
    tar -xzvf paintball2_build029_linux_full.tar.gz
    
    cd paintball2 && ./paintball2
    
    
     
  19. Finchwizard

    Finchwizard Don Apple

    Messages:
    16,439
    Likes Received:
    7
    GPU:
    -
    Actually I tried with just the normal interface as well.

    Double clicked the tar.gz package, dragged the folder out into my home area, went into it and double clicked the paintball2 and it loaded up fine.

    Actually the Ubuntu I got is 32bit.

    So those Libs that's required, make sure you have the 32bit versions installed as well.
     
  20. SnooSnoo

    SnooSnoo Maha Guru

    Messages:
    1,178
    Likes Received:
    0
    GPU:
    Intel HD510
    Tried to run the 64 bit version in Vbox here. I get the same stuff as inklimited. Obviously needs the 32 bit libs.
     

Share This Page