You are not logged in.
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
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
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
Errors are derived from the shell output.
From the terminal, post the resulting output.
Offline
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
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
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
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
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
Thak you gibor! I will install per that page.
Offline
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
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
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
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
with ls it shows:
/dev/ttyS0
/dev/ttyS1
/dev/ttyS2
/dev/ttyS3
with cat I get input/output errors on all but ttyS1
Offline
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
Should I open a new thread about this?
Offline
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
I will post those results but that wont work for my builton serial port (this is a laptop)
Offline
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
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
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
The second USB serial device on the second attached image I sent looks like it loaded though, didnt it?
Offline
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
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
[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.58 MiB (Peak: 1.77 MiB) ]