Tips for running DIYLC on Ubuntu 10.10

222 views
Skip to first unread message

Paul

unread,
Feb 5, 2011, 2:13:19 PM2/5/11
to diy-layout-creator
It's possible the hints below may help other users on Ubuntu.

***Create a launcher for DIYLC***

Assuming that your name is 'me' and you have installed DIYLC in a sub-
directory of your home directory called 'DIYLC3'.

Make a launcher with this in the Command box:

'/home/me/DIYLC3/run.sh'

Find the directory you have installed DIYLC into, and add this line to
the beginning of the file run.sh before the existing line:

cd '/home/me/DIYLC3'

It should now read:

cd '/home/me/DIYLC3'
java -Xms32m -Xmx128m -cp diylc.jar:lib org.diylc.DIYLCStarter

***Speed***
If you find that DIYLC runs too slowly, try switching from OpenJDK to
Sun Java.

You might need to Install Sun Java by following the instructions on
this site:

http://www.java.com/en/download/manual.jsp?locale=en&host=www.java.com

Open a terminal session and type:

java -version

If you see:

java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.4) (6b20-1.9.4-0ubuntu1)
OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)

Switch to Sun Java by typing:

sudo update-alternatives --config java

You should see a menu like this:

Selection Path Priority
Status
------------------------------------------------------------
0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061
auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061
manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java
63 manual mode

Type the number of the selection with 'sun' in the path:

2

Check that it has worked by typing:

java -version

You should see (version numbers might be higher):

java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)

Branislav Stojkovic

unread,
Feb 6, 2011, 11:05:16 AM2/6/11
to diy-layou...@googlegroups.com
Great, thanks for the info! One tip though, 32mb to start with is pretty low. If you have 1gb of ram or less I'd use at least 64mb starting ram with maximum limit of 256mb or something like that. On machines with 2gb or over I'd double those values.

I'll update the run script with -Xms128m -Xmx512m which should work great for most users.

Cheers,
Bane

chrisof...@gmail.com

unread,
Nov 6, 2013, 12:51:08 PM11/6/13
to diy-layou...@googlegroups.com
This method of installing DIYLC on a Linux system has been superseded by the normal Linux method of using a Debian package or the DIYLC Repository - see the Downloads page.
Reply all
Reply to author
Forward
0 new messages