Run .jar on startup
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
-
- White ninja
- Posts: 5
- Joined: 13 Nov 2015, 08:46
- Distribution: porteus kiosk
- Location: hong kong
Run .jar on startup
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
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
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Run .jar on startup
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).
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.
-
- White ninja
- Posts: 5
- Joined: 13 Nov 2015, 08:46
- Distribution: porteus kiosk
- Location: hong kong
Re: Run .jar on startup
Thx for replying
I am not sure what do you mean by "install the full bash package"
Is it related to the java module?
I am not sure what do you mean by "install the full bash package"
Is it related to the java module?
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Run .jar on startup
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?
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.
-
- White ninja
- Posts: 5
- Joined: 13 Nov 2015, 08:46
- Distribution: porteus kiosk
- Location: hong kong
Re: Run .jar on startup
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?
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?
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Run .jar on startup
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.
-
- White ninja
- Posts: 5
- Joined: 13 Nov 2015, 08:46
- Distribution: porteus kiosk
- Location: hong kong
Re: Run .jar on startup
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
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Run .jar on startup
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.
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.
-
- White ninja
- Posts: 5
- Joined: 13 Nov 2015, 08:46
- Distribution: porteus kiosk
- Location: hong kong
Re: Run .jar on startup
So the RSA key is not needed?
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Run .jar on startup
Only password is required.
Please add [Solved] to your thread title if the solution was found.