diff --git a/README.md b/README.md index 92321185..7bdec22c 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,44 @@ For more information please use the online help in the board editor. From here y If you have further questions or want some feedback, please sent an Email to support@ FreeRouting.net or visit our forum. + +#Use on Debian: + +need a JABA soft from oracle + +check here: + +https://wiki.debian.org/Java/ +or + +https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps + +need build deps: + +``` +apt-get isntall javahelp2 icedtea-netx-common +``` + +now clone and run + +``` +bash build.sh + +bash install.sh +``` + +and use it: +``` +/opt/freerouter/run.sh +``` +or +``` +/opt/freerouter/runp.sh file.dsn +``` + +##Kicad + + Additional steps for users of CadSoft-Eagle: ============================================ diff --git a/build.sh b/build.sh new file mode 100644 index 00000000..1e461bff --- /dev/null +++ b/build.sh @@ -0,0 +1,13 @@ +#build deps +#deb's: javahelp2 icedtea-netx-common + +ADD_JABA_CLASSPATH=/usr/share/java/jh.jar:/usr/share/icedtea-web/netx.jar + +JABA_FLIST=`find -type f -name "*.java"` + + +javac -classpath $ADD_JABA_CLASSPATH $JABA_FLIST + +PROP_LIST=`find -type f \( -name "*.class" -o -name "*.properties" \)` + +jar cfe fr.jar gui.MainApplication $PROP_LIST diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..4f3f4f64 --- /dev/null +++ b/install.sh @@ -0,0 +1,14 @@ + +TARGET_DIR=/opt/freerouter + +mkdir -p $TARGET_DIR/bin +cp fr.jar $TARGET_DIR/bin + +cp run.sh $TARGET_DIR +cp runp.sh $TARGET_DIR + +chmod o+x $TARGET_DIR/run.sh +chmod o+x $TARGET_DIR/runp.sh + + +echo "installed in" $TARGET_DIR diff --git a/run.sh b/run.sh new file mode 100644 index 00000000..52104310 --- /dev/null +++ b/run.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +java -jar /opt/freerouter/bin/fr.jar diff --git a/runp.sh b/runp.sh new file mode 100644 index 00000000..a76e5116 --- /dev/null +++ b/runp.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +PRJ_DSN=$1 + +java -jar /opt/freerouter/bin/fr.jar -de $PRJ_DSN