Page 1 of 1

New to Forge and Ubuntu. Need help installing.

PostPosted: 19 Oct 2013, 17:51
by classiccars
Having troubles running/installing forge 1.5.3 in ubuntu 13.04. I installed Java 1.7045(newest update) through the terminal. I cant run the .jar file.

I got it running on windows 7 but cant get it to work on ubuntu. Please give me all the terminal inputs so that I cant screw it up again.

Thanks everyone. I cant wait to play.

Re: New to Forge and Ubuntu. Need help installing.

PostPosted: 02 Nov 2013, 06:11
by demonnic
There should be a forge.sh file which you can use to run Forge. If it doesn't work, trying opening a terminal and using cd to navigate to where forge.sh is kept on your filesystem, then typing

./forge.sh

Re: New to Forge and Ubuntu. Need help installing.

PostPosted: 02 Nov 2013, 14:17
by demonnic
For a better solution, what I did was this:

I extract the tarball into $HOME/forge-<version> (so for the most recent beta it was /home/demonnic/forge-1.5.4 ).

Then I create a symlink called 'forge' in my home directory to the latest version of the program:

Code: Select all
rm $HOME/forge
ln -s $HOME/forge-1.5.4 $HOME/forge
I also made a modified version of their launcher script and placed it in my home directory, called forge.sh

Code: Select all
#!/bin/sh
cd $HOME/forge
java -Xmx1024m -jar `ls forge-*-jar-with-dependencies.jar`
If your java 7 executable is in a different place, just specify it on the third line instead of using just 'java'. For example, my actual line looks like this:

Code: Select all
 $HOME/jdk1.7.0_40/bin/java -Xmx1024m -jar `ls forge-*-jar-with-dependencies.jar`
since I keep both java6 and java7 installed and my system defaults to 6.

make the script executable

Code: Select all
chmod +x $HOME/forge.sh
And finally, create a launcher on your desktop by right-clicking on the desktop and choosing "Create Launcher" I believe it is, but their should be something similar in the right click menu of that's not correct. I'm not using unity for my window manager any more, as I'm not a huge fan.

Regardless, in the dialog for creating the launcher there'll be a section to fill out for the command to run. Use this:

Code: Select all
$HOME/forge.sh
Once you save the launcher, you should be able to just double click it to launch forge. When a new version comes out, just extract it to $HOME/forge-<version> and do the linking step above with the new directory, and the launcher will start launching the new version.

It's not the most elegant solution (I've considered writing a short 'installer' script which would handle most of this for you), but in the long run I find it makes updating my version of forge easy and with a minimal amount of maintenance or fussing around to start it.

I'll be happy to answer any questions you have about the process.

Re: New to Forge and Ubuntu. Need help installing.

PostPosted: 02 Nov 2013, 17:29
by Zirbert
Kind of splitting the complexity difference, here's my process:

-Put the new version's .tar.bz file in your Home folder.

-Right-click it, and choose Extract Here. A new folder with the name of the newest version is created.

-Go into that folder, double-click Forge.sh, and choose Run in terminal.

As cleanup, at this point I usually put the .tar.bz file into the new folder, and delete the folder for the previous version once I've playtested the new version a little bit.