SliTaz SliTaz Forum

You are not logged in.

#1 2022-01-19 23:37:20

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Need help with ADTPro Package installation

Hello all, its been a few years since I posted but I was hoping someone could help me with installing ADTPro to Slitaz. Has anyone used this program or made a package of it yet?

This is the Github page to the source files: https://github.com/ADTPro/adtpro/releases

Offline

#2 2022-01-20 15:17:07

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

Hi, it is a standalone application. Just go into the downloaded folder and run adtpro.sh

tux@slitaz:~/downloads/ADTPro-2.1.0$ ./adtpro.sh

ADTPro versione Server 2.1.0

[attachment=50439,3160]

Offline

#3 2022-01-20 15:50:09

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

When I do that it seems like it is trying to run but then does nothing. Could it be I dont have the right Java packages installed?

I know this program is very picky about the java you have. Can you tell me whatjava packages you have installed? Like I said it looks like it tried to run but then nothing happens for me.

Offline

#4 2022-01-20 16:13:01

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

Errors are derived from the shell output.

From the terminal, post the resulting output.

Offline

#5 2022-01-20 16:30:04

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

Ok. If I run 'sh ac.sh'

I get 'ac.sh line 24: java: not found'

If I run 'sh aadtpro.sh'

I get 'adtpro.sh line 79: java: not found'

Offline

#6 2022-01-20 16:30:42

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

I had to reload my machine last night from an old image. I guess all the java work I did in the past got negated because I know I USED to have java working.

Offline

#7 2022-01-20 16:48:36

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

Test java with:

java -version

On my system get:

java version "16.0.2" 2021-07-20

Java(TM) SE Runtime Environment (build 16.0.2+7-67)

Java HotSpot(TM) 64-Bit Server VM (build 16.0.2+7-67, mixed mode, sharing)

But is not standard slitaz distro (self builded).

Offline

#8 2022-01-20 17:02:39

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

I get Java not found. I guess that would do it. I guess I imaged the machine before loading java.

What packages should I load? Do you have a build process for our non standard?

Offline

#9 2022-01-20 17:26:50

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

The whole system, as well as java, derived from the LFS process. The difference being that I kept the style and init script slitaz as boot processes (no systemd).

https://www.linuxfromscratch.org/blfs/view/11.0-systemd/general/java.html

Offline

#10 2022-01-20 17:32:37

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

Thak you gibor! I will install per that page.

Offline

#11 2022-01-27 17:34:43

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

Gibor, That worked and I can get the program to load. I am running into another issue. The usage of ADTpro is that it is a file server used to send and receive files in several different ways. I need the Serial port option of it to run. When I choose SERIAL I get a popup stating: "There are no serial ports, or the serial library RXTX is not installed or visible. Please see http://adtpro.com/install.html for details"

My machine has a built in Serial port but I have never tried using it in Slitaz. I just assumed it would work.

Offline

#12 2022-01-27 17:50:34

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

Hi, on the laptop I don't have serial ports (rs232), but if I insert an adapter (ftdi) it is detected.

[ 2044.298990] usbserial: USB Serial support registered for FTDI USB Serial Device

[ 2044.299143] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected

[ 2044.299182] usb 5-1: Detected FT232RL

[ 2044.303358] usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB

you should look in the kernel configuration if it is enabled

zcat /proc/config.gz | grep SERIAL

https://tldp.org/HOWTO/Serial-HOWTO-10.html#:~:text=Devices%20in%20Linux%20have%20major%20and%20minor%20numbers.,see%20the%20%22devices%22%20file%20in%20the%20kernel%20documentation.

[attachment=50468,3167]

Offline

#13 2022-01-27 18:18:46

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

Under my bootlog:

Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled

serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

00:0d: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

That seems like its loading?

But regardless of that no serial port shows up under System information. This is strange.

Under resources I see 03f8-03ff Serial

Offline

#14 2022-01-27 19:30:51

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

I can't tell you much. to check the ports just ls -l /dev/ttyS*

with cat /dev/ttyS0 if it is present it will standby

otherwise it gives an input/output error

For ADTpro it seems that the serial library (RXTX) go through a jar file (ADTPro-2.1.0.jar). Here I found someone who has worked on it, but I don't know to what extent it will help you.

https://github.com/ADTPro/adtpro/issues/97

Offline

#15 2022-01-27 20:19:07

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

with ls it shows:

/dev/ttyS0

/dev/ttyS1

/dev/ttyS2

/dev/ttyS3

with cat I get input/output errors on all but ttyS1

Offline

#16 2022-01-28 16:44:33

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

If I add USB serial adapters they dont work either. There is apparently more to setting up serial on Slitaz than I thought. Any help would be appreciated. Ideally I would prefer to use the onboard Serial as that was the whole point of it all.

Offline

#17 2022-01-28 18:23:21

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

Should I open a new thread about this?

Offline

#18 2022-01-28 18:55:38

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

I'd say you can continue here, I don't see the problem.

let's go step by step:

the adapter from the kernel is recognized?

dmesg -c

clear

insert the adapter then repeat

dmesg

must create the serial port

at that point if we are there the problem is of java or the program.

this in my case the messages at insertion:

root@slitaz:/home/tux$ dmesg

[ 614.536325] usb 5-1: new full-speed USB device number 2 using uhci_hcd

[ 615.304669] usbcore: registered new interface driver ftdi_sio

[615.304688] usbserial: USB Serial support registered for FTDI USB Serial Device

[ 615.304827] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected

[615.304866] usb 5-1: Detected FT232RL

[615.308541] usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB0

root@slitaz:/home/tux$

Offline

#19 2022-01-28 20:02:56

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

I will post those results but that wont work for my builton serial port (this is a laptop)

Offline

#20 2022-01-28 21:16:38

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

if it works with usb then it will look for the solution for the notebook serial (see kernel modules). Otherwise it's just a problem of jvm execution.

Or at least i think so...

Offline

#21 2022-01-28 21:51:20

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

Sorry for the Quality, its easier for me to post from phone.

I have two USB to serial adapters.. I cant seem to find my 3rd one anywhere.

Attached are the dmesg results from each one:

[attachment=50489,3179]

Offline

#22 2022-01-29 06:39:49

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

As I imagined, the kernel doesn't recognize it.

You have to look for which driver is needed. You can try with the id (lsusb) product and vendor and search on the net which chip it mounts, or make and model then linux driver (always on the net).

Offline

#23 2022-01-29 16:01:26

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

The second USB serial device on the second attached image I sent looks like it loaded though, didnt it?

Offline

#24 2022-01-29 17:12:43

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Need help with ADTPro Package installation

I didn't see that image (the first one) IMG_20220128_162506.jpg

Yes it is recognized (Prolific pl2303 > ttyUSB0) and if ADTPro doesn't show the device it's definitely a java problem.

If you use xterm you can copy the text from the terminal...

Offline

#25 2022-01-29 18:00:48

VERAULT
Member
Registered: 2011-07-29
Posts: 119

Re: Need help with ADTPro Package installation

I found my 3rd usb serial adapter. It looks nothing like the other ones I have but apparently its the same exact chipset as it comes up identical to the other. Both of these work fine on other computers so I know theywork (with adtpro in windows)

Thats funny I am trying to upload another attachment and it is saying the limit size is 100KB. When did that happen, I was able to upload yesterday fine.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.58 MiB (Peak: 1.77 MiB) ]