Run .jar on startup

Here you can post about the issues related to modifications performed manually (not through the kiosk wizard). Example: swapped kernel, added 3rd party modules or files.
Please describe in detail what has been changed and hopefully other kiosk user will be able to help.
Porteus team wont resolve bugs posted in this category as we support only modifications made by the kiosk wizard.
Post Reply
froz
White ninja
White ninja
Posts: 5
Joined: 13 Nov 2015, 08:46
Distribution: porteus kiosk
Location: hong kong

Run .jar on startup

Post#1 by froz » 13 Nov 2015, 08:55

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

User avatar
fanthom
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Run .jar on startup

Post#2 by fanthom » 13 Nov 2015, 17:53

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).
Please add [Solved] to your thread title if the solution was found.

froz
White ninja
White ninja
Posts: 5
Joined: 13 Nov 2015, 08:46
Distribution: porteus kiosk
Location: hong kong

Re: Run .jar on startup

Post#3 by froz » 14 Nov 2015, 06:39

Thx for replying
I am not sure what do you mean by "install the full bash package"
Is it related to the java module?

User avatar
fanthom
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Run .jar on startup

Post#4 by fanthom » 16 Nov 2015, 15:20

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?
Please add [Solved] to your thread title if the solution was found.

froz
White ninja
White ninja
Posts: 5
Joined: 13 Nov 2015, 08:46
Distribution: porteus kiosk
Location: hong kong

Re: Run .jar on startup

Post#5 by froz » 24 Nov 2015, 06:30

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?

User avatar
fanthom
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Run .jar on startup

Post#6 by fanthom » 24 Nov 2015, 08:55

You need to upgrade Putty to latest version as it uses outdated ciphers.
Please add [Solved] to your thread title if the solution was found.

froz
White ninja
White ninja
Posts: 5
Joined: 13 Nov 2015, 08:46
Distribution: porteus kiosk
Location: hong kong

Re: Run .jar on startup

Post#7 by froz » 24 Nov 2015, 13:55

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

User avatar
fanthom
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Run .jar on startup

Post#8 by fanthom » 24 Nov 2015, 22:33

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.
Please add [Solved] to your thread title if the solution was found.

froz
White ninja
White ninja
Posts: 5
Joined: 13 Nov 2015, 08:46
Distribution: porteus kiosk
Location: hong kong

Re: Run .jar on startup

Post#9 by froz » 25 Nov 2015, 03:09

So the RSA key is not needed?

User avatar
fanthom
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Run .jar on startup

Post#10 by fanthom » 25 Nov 2015, 13:10

Only password is required.
Please add [Solved] to your thread title if the solution was found.

Post Reply