ww2dhowto

Differences between revisions 6 and 7
Revision 6 as of 2006-03-26 15:53:05
Size: 4681
Editor: adsl-221-54-210
Comment: changed typing errors
Revision 7 as of 2006-03-27 10:14:35
Size: 4684
Editor: adsl-221-44-89
Comment: added codes to codeboxes
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
    "sudo update-alternatives --config java"     {{{sudo update-alternatives --config java}}}
Line 12: Line 12:
    "java --version"     {{{java --version}}}
Line 16: Line 16:
    "sudo java -jar JOGL-Inst-1.10.jar"     {{{sudo java -jar JOGL-Inst-1.10.jar}}}
Line 22: Line 22:
    "unzip ww2d-0.99.87.zip"     {{{unzip ww2d-0.99.87.zip}}}
Line 26: Line 26:
     "cd ww2d-0.99.87"      {{{cd ww2d-0.99.87}}}
Line 30: Line 30:
     "java -jar WW2D-0.99.87"      {{{java -jar WW2D-0.99.87}}}
Line 45: Line 45:
    #!/bin/sh

#This is going to run ww2d

#I used Desktop because that is where mine is saved.

#Wrote by John Vivirito aka gnomefreak

#gnomefreak@gmail.com

cd Desktop

cd ww2d-0.99.87

java -jar WW2D.jar
   {{{#!/bin/sh
   #This is going to run ww2d
   #I used Desktop because that is where mine is saved.
   #Wrote by John Vivirito aka gnomefreak
   #gnomefreak@gmail.com
    cd Desktop
    cd ww2d-0.99.87
    java -jar WW2D.jar}}}
Line 67: Line 60:
    "cd /home/username"     {{{cd /home/username}}}
Line 72: Line 65:
    * chmod +rx ww2d  "that will give everyone access to it"      {{{chmod +rx ww2d}}} "that will give everyone access to it"
Line 75: Line 68:
    * Close it out "stay in terminal"
   * run this command without the (")
    * Close it out "stay in terminal"
Line 78: Line 70:
         "mv /home/username/ww2d /usr/local/bin"          {{{cp /home/username/ww2d /usr/local/bin}}}

HowTO Install WW2d

  • WW2d is an application like Google Earth here are the instructions for installing it. For this I will be installing everything to Desktop you can choose where you would like to do this and change Desktop to the dir. you want to use. These instructions are for Ubuntu linux X86 platform.
  • First go to http://ww2d.csoft.net/index.php?title=Download and download java 1.5 or you can get java where ever you like make sure it is 1.4 or above. If you need help getting java let me know either email me or find me on IRC #ubuntu my nick is gnomefreak. Once you have java installed you need to run this command in terminal

    • sudo update-alternatives --config java

  • After you run that type your password than you will see a list of 3 or so, pick the one you just installed. After you do that run
    • java --version

    To make sure you have right one being used. Now once that is done you need to go to the site listed above or if you are still there download the next file its the JOGL-inst.jar. When the download is done you need to "cd" to where you saved it "like i said before i will be doing everything from desktop. Run this command "cd Desktop" now you should be in the dir. where it is installed. Now you need to execute the .jar do this by typing
    • sudo java -jar JOGL-Inst-1.10.jar

    It will than have a pop up asking what platform you are on i used X86 because that is my platform. Ok here is the main file that you want to grab its on the same page you have been on this whole time. Click the link for WW2d itself it will be in zip format. After it is done downloading (you should still have term open and cd'ed into where you have been downloading the files) Now you want to unzip the file type this in terminal
    • unzip ww2d-0.99.87.zip

    You will see alot of things scrolling in the terminal this is normal those are the packages that it contains. Now you will want to test your installation heres how type
    • cd ww2d-0.99.87

    Once in the newly created file you want to test it now by typing
    • java -jar WW2D-0.99.87

    Make sure they are capital letters just as shown here. Now it should start up fine.

Now To Run It

Follow These Instructions for easy access to running it

  • Now that you have the program working as you would like here is a few steps to make the program easier to run. Take this script save it in your favorite text editor (i used anjuta for ease) and save it as ww2d you dont want to use a .sh or .anything. I will explain later. Here is the script:
  • {{{#!/bin/sh
    • #This is going to run ww2d #I used Desktop because that is where mine is saved. #Wrote by John Vivirito aka gnomefreak

      #gnomefreak@gmail.com

      • cd Desktop cd ww2d-0.99.87 java -jar WW2D.jar}}}
  • You will want to use the path that your WW2D.jar file is.

What i mean is that if you saved the file to home instead of desktop you would take Desktop out and put

  • cd /home/username

  • Instead of "cd Desktop". When you cd into Desktop the D has to be capitol. Ok now that you saved the script into home folder "if thats where you saved it" I DID :).
    • You will want to issue these commands.
      • chmod +rx ww2d "that will give everyone access to it"

    • test it by running ./ww2d
    • If everything was done right you should see ww2d start up. If it does continue. If it doesnt you can find me at #ubuntu-offtopic or #ubuntu on IRC or email me at the address in the script.
    • Close it out "stay in terminal"
      • cp /home/username/ww2d  /usr/local/bin

        • In the above please replace username with your username.
    • Now once that is done you can run it in terminal by typing the file name in this case its ww2d. Ok now for another way after you have done the above.
    • right click the gnome panel (or whatever panel you use) and click add to panel
    • You want to choose custom launcher
    • The first part is the name you can name this anything you would like (i named it ww2d)
    • you can skip the rest if you like until you get to "command"
    • Command is going to be ww2d if you followed everything til now.
    • choose an icon that you would like to use (if you want one)
    • Than click OK. Now you should see the icon on the panel
    • Just click the icon to run it Funny :))

    • you are done now. how does it feel?

      If you have any problems with this please email me at gnomefreak@gmail.com and let me know.

ww2dhowto (last edited 2008-08-06 16:30:51 by localhost)