Page 1 of 1

Run .jar on startup

Posted: 13 Nov 2015, 08:55
by froz
I have this rc.local file in custom-built porteus kiosk iso:

chmod +x /etc/rc.d/test.jar
java -jar /etc/rc.d/test.jar

Java module is included in the build but .jar doesn't seem to run at all. Any suggestions? Thx in advance

Re: Run .jar on startup

Posted: 13 Nov 2015, 17:53
by fanthom
Hello froz,

You may have to include full bash package in kiosk as this is what i had to do in similar case (.jar file downloaded and run from the website).

Re: Run .jar on startup

Posted: 14 Nov 2015, 06:39
by froz
Thx for replying
I am not sure what do you mean by "install the full bash package"
Is it related to the java module?

Re: Run .jar on startup

Posted: 16 Nov 2015, 15:20
by fanthom
Java uses more complicated syntax in their startup scripts so full bash is needed:
https://packages.gentoo.org/packages/app-shells/bash

At lease this was the case in the custom build order i made. Maybe you could login to kiosk through ssh, try to launch the jar manually and provide any output you get from the console?

Re: Run .jar on startup

Posted: 24 Nov 2015, 06:30
by froz
I see~~
I tried to connect to the kiosk using ssh but I am not sure about the authentication part. Every time putty gave me "connection timed out".
Do I need to import the RSA key found in /etc/ssh/ into putty when trying to open a ssh session to the kiosk? I tried to upload the key to somewhere but it said access denied... And what do I need to put for hostname in putty? Is it secret@192.168.1.20?

Re: Run .jar on startup

Posted: 24 Nov 2015, 08:55
by fanthom
You need to upgrade Putty to latest version as it uses outdated ciphers.

Re: Run .jar on startup

Posted: 24 Nov 2015, 13:55
by froz
The version of putty that I used is a fresh download from latest build so I guess it's okay?! I cannot say the same for the authentication part and host name .... How can I obtain the Rsa key from the kiosk and import it into putty? And the host name .... Is it the same as the one chosen at setup wizard ? Haha I guess these are low level questions but I'm really a newbie in this kind of stuff

Re: Run .jar on startup

Posted: 24 Nov 2015, 22:33
by fanthom
You need kiosk IP not hostname:
http://internal.math.arizona.edu/servic ... hell/putty

login is "root"
port and password are the one you have set in the wizard.

Re: Run .jar on startup

Posted: 25 Nov 2015, 03:09
by froz
So the RSA key is not needed?

Re: Run .jar on startup

Posted: 25 Nov 2015, 13:10
by fanthom
Only password is required.