Tiny Core Linux
		Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: Yuri on August 23, 2020, 12:49:53 PM
		
			
			- 
				Hello.
 
 Could you add to Apps: https://ugs.jfrog.io/ugs/UGS/nightly/ugs-platform-app-2.0-SNAPSHOT-linux.tar.gz
 I am a complete zero in Linux, so it is difficult to add to the system myself.
 But I really want to use tinycorelinux for homemade CNC because of its lightness.
 
 Thank you in advance!
 Yuri.
- 
				Which architecture - x86, x86_64?
			
- 
				x86_64
			
- 
				Hi, guys!
 
 Seems, that snapshot includes both versions:
 
 tc@box:/tmp$ ls -l ugsplatform-linux/bin
 total 524
 -rwxrwxr-x    1 tc       staff         3795 Aug 10 06:28 ugsplatform
 -rwxrwxr-x    1 tc       staff       256512 Aug 10 06:28 ugsplatform.exe
 -rwxrwxr-x    1 tc       staff       273920 Aug 10 06:28 ugsplatform64.exe
 
 As I can understand from bin/ugsplatform script, this snapshot don't need to be installed as an extension. I am not sure, but probably it can be unpacked to any directory, and started using bin/ugsplatform script, possibly envoked using link. The script requires bash, so before running Yuri needs to
 tce-load -wil bash
 
- 
				I have installed bash, what should I do next?
 It may be useful: ugs-platform requires Java 8 which is in the archive.
- 
				I may be wrong (I've never used Java), but I think You need to unpack the downloaded archive somewhere excepts You home dir, because its huge. In order to try You may unpack it to /tmp, for example. Expect You ave enough RAM - unpacked archive will eat 300M. Then You can try to execute from Your home dir
 /tmp/ugsplatform-linux/bin/ugsplatform
 
- 
				/mnt/sda1/tce/UGS/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java: line 1: ELF: not found
 /mnt/sda1/tce/UGS/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java: line 2: syntaxis error: unterminated quoted string
 I understand that there is something with java, but how to fix it? :(
- 
				Unfortunately I'm totally alien to java, repo has only openjdk8-jre, and it has dependencies Xorg-7.7-lib.tcz and libasound.tcz. Maybe, You need to download and install this extensions.
 By the way, are You running Xorg | Xvesa | Xfbdev ?
- 
				openjdk8-jre installed, Xorg-7.7-lib.tcz and libasound.tcz were already installed.
 The mistakes are the same  :'(
- 
				Hi Yuri
 /mnt/sda1/tce/UGS/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java: line 1: ELF: not found
 /mnt/sda1/tce/UGS/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java: line 2: syntaxis error: unterminated quoted string
 I understand that there is something with java, but how to fix it? :(
 I got the same error.
 
 I then loaded  bash.tcz  and it changed to:
 tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$ ./ugsplatform
 ./../platform/lib/nbexec: line 421: /home/tc/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java: cannot execute binary file: Exec format error
 tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$
I think it may be trying to run the Windows executables.
 
 I have installed bash, what should I do next? ...  I don't think so. What response do you get if you execute this:
 tce-load -i bash
- 
				bash.tcz: OK
 and yes, now the error is like yours :-[
- 
				If I was at Your place, I would try to run this package under the 32-bit TC.
 
 PS: I've tried but with the same error. But under Xfbdev.
 Are You running Xorg? Have You do installed Xorg-7.7-libs and libasound?
- 
				TC - Tiny Core or?
 
- 
				Hi jazzbiker
 If I was at Your place, I would try to run this package under the 32-bit TC. ...  
 The package linked to contains mostly 64 bit Linux executables (ELF64), 2 scripts (Script), and a handful Windows executables (Win):
 tc@E310:~$ for F in `find UGS/ -type f`; do ./FindMagic $F; done
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/rmid
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/jjs
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/unpack200
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/rmiregistry
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/keytool
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/jrunscript
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/jaotc
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/pack200
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/jfr
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libnet.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libjawt.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libzip.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libunpack.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libjavajpeg.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libdt_socket.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libsctp.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libjaas.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libfontmanager.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libawt_headless.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libnio.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libj2pkcs11.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libjimage.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libjli.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libawt_xawt.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libmlib_image.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libmanagement.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libextnet.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libprefs.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libjsound.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libjava.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libfreetype.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libjsig.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/jspawnhelper
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libj2gss.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/server/libjvm.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/server/libjsig.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libinstrument.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libawt.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libmanagement_ext.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/librmi.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/jexec
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libjdwp.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libj2pcsc.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libsplashscreen.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libmanagement_agent.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libsunec.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/libverify.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/lib/liblcms.so
 ELF64   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/platform/modules/lib/amd64/linux/libjnidispatch-nb.so
 Win     UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/platform/modules/lib/amd64/jnidispatch-nb.dll
 Win     UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/platform/modules/lib/x86/jnidispatch-nb.dll
 ELF32   UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/platform/modules/lib/i386/linux/libjnidispatch-nb.so
 Win     UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/platform/lib/nbexec.dll
 Win     UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/platform/lib/nbexec64.dll
 Win     UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/platform/lib/nbexec64.exe
 
 Script  UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/platform/lib/nbexec
 #!/bin/sh
 # Licensed to the Ap
 
 Win     UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/platform/lib/nbexec.exe
 
 Script  UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin/ugsplatform
 #!/bin/sh
 
 # Licensed to the A
 
 Win     UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin/ugsplatform.exe
 Win     UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin/ugsplatform64.exe
 tc@E310:~$
- 
				Hi, Rich!
 
 So Your investigation shows, that both 64 and 32-bit objects are contained. Is it possible, that such a snapshot needs multilib environment? If yes, these are bad news for Yuri.
 
- 
				Hi jazzbiker
 I don't know what to make of it. There's 1 32 bit shared object in what otherwise appears to be a 64 bit Linux package. And for some
 reason it includes a bunch of Windows executables. But if you look at the site, they have separate downloads for Linux, Pi, and Windows:
 https://ugs.jfrog.io/ugs/UGS/nightly
 
- 
				Hi jazzbiker
  ... I got the same error.
 
 I then loaded  bash.tcz  and it changed to:
 tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$ ./ugsplatform
 ./../platform/lib/nbexec: line 421: /home/tc/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java: cannot execute binary file: Exec format error
 tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$
I think it may be trying to run the Windows executables. ...
 On second thought, it's probably complaining because I'm running a 32 bit kernel and the executables are 64 bit.
 
- 
				Hi, Rich!
 
 As You see, error appears while netbeans are trying to start. Something is wrong with the environment from the netbeans' point of view. I am not able to help with netbeans. Maybe someone on our forum make use of this IDE and will be able to give an advice?
- 
				The site https://ugs.jfrog.io/ugs/UGS/nightly also contains zip archive with huge .jar file and shell script for starting this file in already persistent java environment. Maybe it is possible to try this way with TC's java environments, I expect without IDE wrapper.
 
 
- 
				Thank you for participating. I'll try the old 32-bit version in the evening.
			
- 
				Hi, Yuri!
 
 As the problems arose while starting IDE, You can try IDE-less .zip version first. This is single jar file to be started with some java environment, which are present in TC repo, for example openjdk-8-jre.tcz.
 
 I've tried to start the full IDE-equipped version on the 32-bit TC, no luck, error is the same.
- 
				Hi jazzbiker
  ... As You see, error appears while netbeans are trying to start. Something is wrong with the environment from the netbeans' point of view. ...  Yes, it's complaining because I'm running a 32 bit version of Tinycore.
 
  ... tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$ ./ugsplatform
 ./../platform/lib/nbexec: line 421: /home/tc/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java: cannot execute binary file: Exec format error
 tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$
...
 If you follow the chain of events quoted above:
 UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin/ugsplatform  is a script, no problem. It calls:
 UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/platform/lib/nbexec , another script, no problem. It calls:
 UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java , a 64 bit compiled executable, problem.
 
 You can't run 64 bit programs in a 32 bit environment.
 
- 
				Oh, yes, Rich, You are right as ususal :-) nbexec is script. Now the question is what is the system Yuri tried - 32 or 64. He got the same error, did he tried 32-bit too? If all ELFs are 64-bit everything must run clean under x86_64. Maybe he will try later.
 
 @Yuri
 Hi, before running the task again, please post the output of
 uname -a
 
- 
				Hi jazzbiker
 Oh, yes, Rich, You are right as ususal :-) ...  Don't say that. I make my fair share of mistakes.
 
  ... Now the question is what is the system Yuri tried - 32 or 64. ...  He got the same  "cannot execute binary file: Exec format error"  message so he must have been running 32 bit.
 
 I booted up TC10 Corepure64 and the error message changed to this:
 tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$ ./ugsplatform
 ./../platform/lib/nbexec: line 421: /home/tc/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java: No such file or directory
 tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$
 tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$ ls -l /home/tc/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java
 -rwxr-xr-x    1 tc       staff         8720 Oct 26  2019 /home/tc/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java
 tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$
Despite the message, the  ls  command shows the file is there.
 
 When I try to run it directly, I get the same message:
 tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$ ./home/tc/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java --help
 sh: ./home/tc/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/java: not found
 tc@E310:~/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/bin$
suggesting the message was coming from that program.
 
 I don't know it's looking for, and it's not offering any clues.
 
- 
				@Rich, this is very much like the ash misbehavior, which I hate. The same happens with Your FetchExt.sh if bash is not loaded.
 For example:
 tc@box:/tmp$ cat bbb.sh
 #!/bin/absent
 exit 0
 tc@box:/tmp$ ls -l bbb.sh
 -rwxr-xr-x    1 tc       staff           21 Aug 24 18:54 bbb.sh
 tc@box:/tmp$ ./bbb.sh
 sh: ./bbb.sh: not found
 tc@box:/tmp$
 
Total mislead.
 
 Maybe You've missed bash installing after booting CorePure64?
- 
				Hi jazzbiker
 No, first thing I did was to load bash. Besides, the message appears to come from:
 /home/tc/UGS/ugs-platform-app-2.0-SNAPSHOT-linux/ugsplatform-linux/jdk/jdk-13.0.1+9-jre/bin/javawhich is a binary, not a script. It's possible there are some command line arguments or environmental variables it's looking for.
 Maybe it expects  /bin/sh  to point to  /bin/bash,  or it needs some other program installed. The OP may need to take this up
 with whoever created this thing.
 
- 
				Hi, Rich!
 
 I'm on the 32-bit box now and have no 64-bit box to try immediately, so I tried .jar under openjdk-8-jre.tcz.
 I've installed opendjk-8-jre.tcz, then loaded and unpacked UniversalGcodeSender.zip from https://ugs.jfrog.io/ugs/UGS/nightly and executed proposed in README.txt command. At least java started and showed working GUI window. The only workaround is to execute manually before starting java
 . /etc/profile
 
because tce.installed/openjdk-8-jre modifies /etc/profile. This is on 32-bit box, I think @Yuri can try this way.
- 
				Guys, thanks a lot for your participation! I just got free, helped to revive with Win7. Too late. Today there is no more strength. Tomorrow, study your work and try it out.
 How do you like my English? I use google translator ...
 
- 
				Thank you very much for your participation.
 Forget this idea. I spent so much time on my own, plus your time. It's easier to build an old computer compatible with x64 and install 64x OS to run UGS. Thank you again!
- 
				@Rich, seems, that You can mark this topic as GIVEN UP.
			
- 
				Hi jazzbiker
 I think I stick with our current 2 choice system ;D:
 1. Marked as [Solved].
 2. Not marked as [Solved].