Announcement

Collapse
No announcement yet.

[SOLVED] How to Remove America's Army - Kubuntu 10.04

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] How to Remove America's Army - Kubuntu 10.04

    Ok so I'm super new to Linux and was trying my skills at installing America's Army 2.5 from a .run file. Got it installed but couldn't figure out how to run it. Learned there is a "shortcut" in the usr/local/bin folder called armyops. Tried running that through the terminal but was unsuccessful. Next I found the source directory to be in usr/local/games/armyops and there is an uninstall script in there but I have no idea how to run it. I get to that directory in the terminal and type uninstall or sudo uninstall and get a message saying no uninstall script found. Using Dolphin I try to right click and delete or highlight and delete but no option to do so. I check permissions and they are all greyed out. Folder takes up 2 gigs and I need it gone. Can anyone point me in the right direction please

    #2
    Re: How to Remove America's Army - Kubuntu 10.04

    I have no idea what kind of program this is, but for new installs that don't have an icon, I type the name of the program on the command line or hit Alt-F2 and type it there. If that doesn't work, perhaps the program is broken or lacks dependencies. Is there a README?

    Edit:
    It just occurred to me that you could need to set permissions to executable by doing chmod + x filename.


    Comment


      #3
      Re: How to Remove America's Army - Kubuntu 10.04

      America's Army is a game that I guess from what I have read post-install is no longer supported with Linux. This excerpt is straight from the readme but I dont know what to do with it.
      There is
      a script in the game's directory called "uninstall"
      for this purpose. Alternately, you can delete the
      game's directory and (as the user who installed the
      game) ~/.loki/installed/armyops.xml ...
      This is what is in the unistall script:

      Code:
      #! /bin/sh
      #### UNINSTALL SCRIPT - Generated by SetupDB 1.6 #####
      DetectARCH()
      {
          status=1
          case `uname -m` in
            amd64 | x86_64) echo "amd64"
               status=0;;
            i?86 | i86*) echo "x86"
               status=0;;
            90*/*)
      		  echo "hppa"
      		  status=0;;
      	  *)
      		case `uname -s` in
      		  IRIX*)
      			echo "mips"
      			status=0;;
            AIX*)
            echo "ppc"
            status=0;;
      		  *)
      			arch=`uname -p 2>/dev/null || uname -m`
                  if test "$arch" = powerpc; then
                   echo "ppc"
                  else
                   echo $arch
                  fi
      			status=0;;
      		esac
          esac
          return $status
      }
      
      DetectOS()
      {
       os=`uname -s`
       if test "$os" = OpenUNIX; then
         echo SCO_SV
       else
         echo $os
       fi
       return 0
      }
      
      if which loki-uninstall 2> /dev/null > /dev/null || type -p loki-uninstall 2> /dev/null > /dev/null; then
        UNINSTALL=loki-uninstall
      else
        UNINSTALL="$HOME/.loki/installed/bin/`DetectOS`/`DetectARCH`/uninstall"
        if test ! -x "$UNINSTALL" ; then
          echo Could not find a usable uninstall program. Aborting.
          exit 1
        fi
      fi
      "$UNINSTALL" "/usr/local/games/armyops/.manifest/armyops.xml" "$1"
      That give any clues on how to uninstall?

      Comment


        #4
        Re: How to Remove America's Army - Kubuntu 10.04

        From a terminal:
        Code:
        sudo sh /usr/local/games/armyops/uninstall.sh
        In linux just typing in a command assumes the file being run is in a certain set of paths, like /bin and /usr/bin.

        /usr/local/bin is not one of those $PATH's, so you have to run it with the 'sh' command

        Or , as the readme says, you can simply delete the armyops folder in /usr/local/games

        Comment


          #5
          Re: How to Remove America's Army - Kubuntu 10.04

          I tried to delete the folder graphically with no luck. Still learning the terminal commands for such. I did what you mentioned above and this is what happens.

          Code:
          matt@oliver:~$ sudo sh /usr/local/games/armyops/uninstall.sh
          [sudo] password for matt: 
          sh: Can't open /usr/local/games/armyops/uninstall.sh
          matt@oliver:~$
          Permissions issue?

          Comment


            #6
            Re: How to Remove America's Army - Kubuntu 10.04

            Not having the game installed, I may have mistyped the actual file name - it may just be 'uninstall' and not 'uninstall.sh'

            actually I forget how old the game is, I don't think it is 'sudo aware', among other things

            Code:
            sudo sh
            enter your sudo password
            Code:
            su
            Code:
            cd /usr/local/games/armyops
            this will move you to the armyops directory
            Code:
            ./uninstall


            http://ubuntuforums.org/showpost.php...0&postcount=19

            Comment


              #7
              Re: How to Remove America's Army - Kubuntu 10.04

              Sweet!!! I think that did it. Now from my reading there is no registry to worry about, correct? Also the folder was 2 gigs yet when I executed the command the hard drive barely even did anything. Do I need to clear a trash folder or temp folder? This goes in general, what kind of maintenance needs to be done to keep a system healthy?

              Thank you very much for your help.

              Comment


                #8
                Re: [SOLVED] How to Remove America's Army - Kubuntu 10.04

                No registry in Linux, and any configuration files for that game will be in a hidden folder in your home dir, as mentioned in the readme for armyops

                the game is 100% self contained so all it really did to uninstall is to delete the game folder

                you can check your trash from within Dolphin, and if you want you can add a trash plasmoid to your panel or desktop. You usually don't need to mess with the /tmp dir.

                Comment

                Working...
                X