Results 1 to 17 of 17

Thread: Linux noob install problems

  1. #1
    New Member
    Registered
    Jan 2007
    Posts
    18

    Linux noob install problems

    Hi

    I installed UT2004 DVD on Ubuntu Edgy using the 'sh' linux installer. However i did not do this as root so my UT2004 folder is in my home directory. However UT2004 is now fully patched and works fine.


    However when it comes to AlienSwarm i downloaded the file, unzipped it and then copied it into my UT220 dir as described above - however i can't get ti to run and get these messages in the terminal:

    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$ ./Alien-Swarm-Linux
    bash: ./Alien-Swarm-Linux: Permission denied
    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$ sudo ./Alien-Swarm-Linux
    Password:
    sudo: ./Alien-Swarm-Linux: command not found
    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$

    it doesn't appear as a mod in the Community menu either - i assume this is a permission problem but it won't even run using sudo

    what am i doing wrong here?

    many thanks

  2. #2
    Member
    Registered
    Jan 2003
    Location
    .nl
    Posts
    2,813
    Does your regular user own the file and is the file set to executable?

    You can find out by rightclicking on the file and selecting properties or by running the command;
    Code:
    ls -l Alien-Swarm-Linux
    If it's not set to executable, just check the "executable" checkbox in the properties menu or type the following command in the directory where the file is located.
    Code:
    chmod +x Alien-Swarm-Linux
    You can also try running this command to start the mod;
    (in ~/ut2004/System)
    Code:
    ./ut2004 -mod="AlienSwarm"

  3. #3
    New Member
    Registered
    Jan 2007
    Posts
    18
    thanks for the quick reply Omega - i have tried what you suggested but no luck - here's the terminal output:

    =====================================

    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$ ls -l Alien-Swarm-Linux
    -rw-r--r-- 1 voteslave voteslave 46 2004-05-23 14:50 Alien-Swarm-Linux

    ** i changed the file to be executable here **

    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$ ./Alien-Swarm-Linux
    ./Alien-Swarm-Linux: line 2: exec: ut2004: not found

    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$ cd ..

    voteslave@voteslave-desktop:~/ut2004$ ./Alien-Swarm-Linux
    bash: ./Alien-Swarm-Linux: No such file or directory

    voteslave@voteslave-desktop:~/ut2004$ cd system
    bash: cd: system: No such file or directory

    voteslave@voteslave-desktop:~/ut2004$ cd System

    voteslave@voteslave-desktop:~/ut2004/System$ ./ut2004 -mod="AlienSwarm"
    bash: ./ut2004: No such file or directory

    voteslave@voteslave-desktop:~/ut2004/System$

    ======================================

    going back ot the instructions in the readme it says:
    "To play Alien Swarm, run UT2004\AlienSwarm\AlienSwarm.exe
    Linux users can run ./Alien-Swarm-Linux in the same directory."

    but it doesn't seem to find the UT2004 file??


    any other ideas - or have i done something wrong here?

    many thanks

    Slacca

    edit - i haven't rebooted - is that necessary?

  4. #4
    New Member
    Registered
    Jan 2007
    Posts
    18
    does the Alien-Swarm-Linux script need changing to let it 'find' UT2004?

    is the fact that UT wasn't insatlled in usr/local messing things up?


    Slacca

  5. #5
    Member Felix's Avatar
    Registered
    Apr 2006
    Location
    Frankfurt a.M., Germany
    Posts
    986
    just to make sure that it has nothing to do with permissions, try to run it as root or do chmod -r 777 on the UT2004 dir.

  6. #6
    New Member
    Registered
    Jan 2007
    Posts
    18
    how do i chmod a directory and all its sub-directories? (which dir do i need to be in to do it?)

    thanks


    i tried this:
    voteslave@voteslave-desktop:~$ sudo chmod -r 777 ut2004
    Password:
    chmod: cannot access `777': No such file or directory

  7. #7
    New Member
    Registered
    Jan 2007
    Posts
    18
    ok - i tried this which seemed to do something:

    teslave@voteslave-desktop:~/ut2004$ chmod -R 777 /home/voteslave/ut2004
    voteslave@voteslave-desktop:~/ut2004$

    but i still get this:

    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$ ./Alien-Swarm-Linux
    ./Alien-Swarm-Linux: line 2: exec: ut2004: not found
    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$ sudo ./Alien-Swarm-Linux
    Password:
    ./Alien-Swarm-Linux: line 2: exec: ut2004: not found
    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$


    it looks like it just can't find UT2004 - is it some sort of PATH problem?

  8. #8
    Member Butters's Avatar
    Registered
    Jun 2004
    Location
    >:D-/-<
    Posts
    593
    Yes.. the executable ut2004 (which is just a shell script calling ut2004-bin iirc) is not in your path (that and it not being executable are the causes of your problem). You can edit the Alien-Swarm-Linux launcher - it's just a shell script - and write in the full path to ut2004 - eg. '~/ut2004/ut2004' instead of 'ut2004'. Else, you can add the ut2004 directory to your PATH environment variable so that it is found by the shell automatically eg.

    $ export PATH=$PATH:~/ut2004/

    (Normally you want to set the PATH in your startup files.. - see for instance some documentation on bash or whatever shell you use)

    You don't need to change all the files' permission to 777 - that's a rather bad practice..
    --

  9. #9
    Member Felix's Avatar
    Registered
    Apr 2006
    Location
    Frankfurt a.M., Germany
    Posts
    986
    Quote Originally Posted by Butters View Post
    You don't need to change all the files' permission to 777 - that's a rather bad practice..
    Sure it is a bad practice. I only suggested that, so that he can be sure that it has nothing to do with permissions, which is very often the case. Once everything is running fine you can go back and set it to 760 or whatever.

    By the way Butters: awesome wireframes for the EFR campaign

  10. #10
    Member
    Registered
    Jan 2003
    Location
    .nl
    Posts
    2,813
    Please let us know if your problem has been resolved, Slacca. That way we can keep it for future reference.

  11. #11
    New Member
    Registered
    Jan 2007
    Posts
    18
    sorry for delay in getting back to you - still no luck but i am probably editing the file wrong - what i have done so far (from Butters post) is to edit the Alien-Swarm-Linux file as follows - none of them worked when i tried to then 'run' the same file by double clicking on it

    exec '/home/voteslave/ut2004 "$@" -mod=AlienSwarm

    exec /home/voteslave/ut2004 "$@" -mod=AlienSwarm

    exec ~/ut2004/ut2004 "$@" -mod=AlienSwarm

    what am i doing wrong?

    am just off to try what omega suggested

    Slacca

  12. #12
    New Member
    Registered
    Jan 2007
    Posts
    18
    Quote Originally Posted by Omega View Post
    Does your regular user own the file and is the file set to executable?

    You can find out by rightclicking on the file and selecting properties or by running the command;
    Code:
    ls -l Alien-Swarm-Linux
    If it's not set to executable, just check the "executable" checkbox in the properties menu or type the following command in the directory where the file is located.
    Code:
    chmod +x Alien-Swarm-Linux
    You can also try running this command to start the mod;
    (in ~/ut2004/System)
    Code:
    ./ut2004 -mod="AlienSwarm"
    no luck with this either

    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$ ls -l Alien-Swarm-Linux
    -rwxrwxrwx 1 voteslave voteslave 55 2007-02-03 11:02 Alien-Swarm-Linux

    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$ chmod +x Alien-Swarm-Linux

    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$ ./ut2004 -mod="AlienSwarm"
    bash: ./ut2004: No such file or directory
    voteslave@voteslave-desktop:~/ut2004/AlienSwarm$

  13. #13
    New Member
    Registered
    Jan 2007
    Posts
    18
    maybe the mod part of the script isn't working because i have stuff in different directories?

    i tried the path command

    export PATH=$PATH:~/ut2004/

    with this

    #!/bin/bash
    exec ~/ut2004/ut2004 "$@" -mod=AlienSwarm

    no luck

  14. #14
    Member
    Registered
    Jan 2003
    Location
    .nl
    Posts
    2,813
    How do you start UT2004?

    Are there any desktop icons for it?
    If so, does clicking on that work?
    If it works, you can try copying it and add the prefix -mod="AlienSwarm" to the executable line in the copy's properties.

  15. #15
    New Member
    Registered
    Jan 2007
    Posts
    18
    thanks Omega

    that worked

    would still like to understand why other stuff didn't but at least its working now

    cheers

    slacca

  16. #16
    Member
    Registered
    Jan 2003
    Location
    .nl
    Posts
    2,813
    Command lines and scripts can be intimidating.

    Good to hear that your problem is solved. Have fun playing Alien Swarm.

  17. #17

    AlienSwarm Linux startup script

    Attached is a small script that will launch AlienSwarm for Linux.
    Save it as ``AlienSwarm'' under the directory where ut2004-bin is (in my case /home/games/ut2004/System) and make it executable (``chmod u+x AlienSwarm'').
    Hopefully, if it doesn't work, it'll tell you what's wrong with it.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New Linux Install
    By Herr 9mm in forum Alien Swarm 2K4 Tech Help
    Replies: 3
    Last Post: 5th May 2005, 08:14 AM
  2. AS1.2 linux server problems
    By sourcexx in forum Alien Swarm 2K4 Tech Help
    Replies: 15
    Last Post: 19th Sep 2004, 08:27 PM
  3. I can not install on Linux
    By 3lood_Blade in forum Alien Swarm 2K4 Tech Help
    Replies: 5
    Last Post: 19th Sep 2004, 03:54 PM
  4. 2 problems in linux: joining a server and loading-screen
    By booiiing in forum Alien Swarm 2K4 Tech Help
    Replies: 3
    Last Post: 19th Sep 2004, 03:47 PM
  5. Linux install script
    By Naib in forum Alien Swarm 2K4 Tech Help
    Replies: 4
    Last Post: 19th Sep 2004, 05:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •