个人工具
登录
查看“UbuntuHelp:Ww2dhowto”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Ww2dhowto”的源代码
来自Ubuntu中文
←
UbuntuHelp:Ww2dhowto
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/ww2dhowto}} {{Languages|UbuntuHelp:ww2dhowto}} === About === WW2D is an application like Google Earth. Here is the WW2D main site [http://ww2d.csoft.net/index.php?title=Download WW2D] Here are the instructions for installing it on Ubuntu 5.10 (Breezy) and Ubuntu 6.06 (Dapper) on the x86 platform. For this I will be installing everything to Desktop - you can choose where you would like to do this and change Desktop to the directory you want to use. Before we get started here are a few things you need to do. === Installing Sun Java 1.5 === To install java enable the multiverse repository. You can find instructions [https://help.ubuntu.com/ubuntu/desktopguide/C/extra-repositories.html Here] on how to enable extra repositories. <pre><nowiki> sudo apt-get update sudo apt-get install sun-java5-bin sudo update-alternatives --config java </nowiki></pre> You can find more options for installing java [[UbuntuHelp:Java|Java]]. After you run the last command type your password than you will see a list of 3 or so, pick the one you just installed. After you do that run <pre><nowiki> java --version </nowiki></pre> To make sure you have right one being used. Once that is done you need to go to the site listed above or if you are still there download the next file: '''JOGL-inst.jar'''. When the download is done you need to "cd" to where you saved it. Run this command "cd Desktop" now you should be in the directory where it is installed. Now you need to execute the .jar do this by typing <pre><nowiki> sudo java -jar JOGL-Inst-1.10.jar </nowiki></pre> It will than have a pop up asking what platform you are on - I used x86 because that is my platform. === Installing WW2D === The main file that you want to grab is on the same page. Click the link for WW2d it will be in zip format. After it is done downloading you want to unzip the file type this in terminal: <pre><nowiki> unzip ww2d-0.99.87.zip </nowiki></pre> You will see a lot of things scrolling in the terminal; this is normal because those are the packages that it contains. Now you will want to test your installation. Type: <pre><nowiki> cd ww2d-0.99.87 java -jar WW2D-0.99.87 </nowiki></pre> Make sure they are capital letters just as shown here. Now it should start up fine. === Running WW2d === ==== 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: <pre><nowiki> #!/bin/sh #This is going to run ww2d #I used Desktop because that is where mine is saved. #Written by John Vivirito #gnomefreak@ubuntu.com cd Desktop cd ww2d-0.99.87 java -jar WW2D.jar </nowiki></pre> You will want to use the path to your WW2D.jar file. If you saved the file to home instead of Desktop you would take Desktop out and put <pre><nowiki> cd /home/username </nowiki></pre> When you cd into Desktop the D has to be capitalized. Now that you saved the script into home folder (if thats where you saved it) you will want to issue these commands: <pre><nowiki> chmod +rx ww2d </nowiki></pre> Test it by running: <pre><nowiki> ./ww2d </nowiki></pre> If everything was done right you should see ww2d start up. Close WW2d and type in the terminal: <pre><nowiki> cp ~/ww2d /usr/local/bin </nowiki></pre> Once that is done you can run it in terminal by typing the file name. In this case it's ''ww2d''. ==== Adding a Panel Launcher ==== After you have done the above, you can add a launcher to Gnome's panel: <ol><li>Right-click the Gnome panel (or whatever panel you use) and choose Add To Panel. </li><li>choose "Custom Launcher". </li><li>For the Name slot, put WW2d or something similar. </li><li>You can skip the rest if you like until you get to "Command" </li><li>In the Command space, put ''ww2d''. </li><li>Choose an icon that you would like to use (if you want one). </li><li>Than click OK.</li></ol> Now that you have the launcher made all you have to do is click it to start WW2d. ---- [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Ww2dhowto
。