jAReC Linux

Here we will discuss any subject related to the Android Pocket Transceiver which is available for free download in Google Play Store
User avatar
yo3ggx
Site Admin
Posts: 835
Joined: Wed Aug 15, 2012 8:30 pm
Location: Bucharest, România
Contact:

Re: jAReC Linux

Post by yo3ggx »

Hello.
arttuli wrote: Tue Feb 07, 2023 10:19 am I installed the linux mint program. I haven't used linux before, so it's completely unknown to me, so I don't know how to use it. I have tried to install jarec but I have not been successful. What kind of instructions could be given so that a beginner can do it. Or is it better to stay on Windows until I learn how to use Linux.
To automatically install jAReC on any Linux distribution based on Debian (including Raspberry Pi 32 or 64 bit), use the script from here:
https://www.yo3ggx.ro/jAReC/v4/jarec_installer.sh

No need to download or run anything manually.
Any previous saved config is not affected when updating (or even installung again).
Run the script from the Linux console.
To install:
sh jarec_installer.sh -i
To update(without loosing any configuration):
sh jarec_installer.sh -u

To run jarec v4:
./jarec.sh

This installer works on Chromebooks too (tested) and on Windows in WSL (not yet tested).

73 Dan YO3GGX
arttuli
Posts: 42
Joined: Tue Nov 24, 2020 5:17 pm

Re: jAReC Linux

Post by arttuli »

Hey. I'm trying to install jarec on linux, everything goes well at first, but finally it says that it can't download the latest version from the central repository, try again later
User avatar
yo3ggx
Site Admin
Posts: 835
Joined: Wed Aug 15, 2012 8:30 pm
Location: Bucharest, România
Contact:

Re: jAReC Linux

Post by yo3ggx »

Please check again. It may be an issue with the DNS resolution for my domain (yo3ggx.ro).
73 Dan YO3GGX
arttuli
Posts: 42
Joined: Tue Nov 24, 2020 5:17 pm

Re: jAReC Linux

Post by arttuli »

I have now tried both linux on Ubuntu and raspberry pi4 devices. I have been helped via email by a friend who has managed to install jarec on linux. We have installed everything correctly, but the installation is not successful.
User avatar
yo3ggx
Site Admin
Posts: 835
Joined: Wed Aug 15, 2012 8:30 pm
Location: Bucharest, România
Contact:

Re: jAReC Linux

Post by yo3ggx »

Are you using the latest installer script from here?
https://www.yo3ggx.ro/jAReC/v4/jarec_installer.sh

Was tested successfully on Ubuntu (20.04), latest Raspberry Pi OS (both 32 and 64 bit versions) and on Chrome OS (in Linux subsystem).

73 Dan YO3GGX
arttuli
Posts: 42
Joined: Tue Nov 24, 2020 5:17 pm

Re: jAReC Linux

Post by arttuli »

Yes, I use it. At first it seems to install the program, finally it says can't download the latest version from the central repository, try again later. I have tried to install about 100 times, but always the same result.
User avatar
yo3ggx
Site Admin
Posts: 835
Joined: Wed Aug 15, 2012 8:30 pm
Location: Bucharest, România
Contact:

Re: jAReC Linux

Post by yo3ggx »

Try the following in the linux console:
wget https://www.yo3ggx.ro/jAReC/v4/jarec64.jar
Is the file downloaded?
If yes, then you are good to go, just run it with
./jarec.sh
If not, you have an issue with the name resolution for my web site (maybe because of some cached info).
Try:
ping www.yo3ggx.ro
Does my site answer to ping?

73 Dan YO3GGX
arttuli
Posts: 42
Joined: Tue Nov 24, 2020 5:17 pm

Re: jAReC Linux

Post by arttuli »

Hey. When I try to download jarec for linux it opens as a text file for me. Sometimes it is downloaded as a .sh file

#!/bin/sh

# ***********************************************************
# jAReC install script for Linux OS (x86,amd64,arm32,arm64) *
# Only for Debian flavours of linux (Java 11) *
# Version 1.1 - Mar 1, 2023 *
# Š Dan Toma (YO3GGX) *
# ***********************************************************
VERSION="1.0"
TITLE='----------------------------------\njAReC v4 installer/updater version '$VERSION' for Debian based Linux distribution (including arm32 and arm64)\n----------------------------------\n'
ARCH=`dpkg --print-architecture`
TITLE=$TITLE'OS achitecture: '$ARCH'\n'
MSG=$TITLE'Usage: sh jarec_install.sh <option>\nwhere <option> can be:\n -i install\n -u update\n----------------------------------\n'

if [ $# -eq 0 ]; then
echo $MSG
exit 0
elif [ $1 = '-i' ]; then
echo $TITLE'jAReC v4 install'
JAVAV=`dpkg -s openjdk-11-jre| grep Version`
echo ' '
echo 'Check if Java 11 is installed...'
if [ `echo $JAVAV |grep -c Version` -gt 0 ]; then
echo 'Java '$JAVAV ' is already installed'
else
echo 'Installing Java Runtime...'
sudo apt-get install openjdk-11-jre
fi
# Now check if Java 11 is the default version and if not, make iyt default
if [ `update-alternatives --list java | grep -c java` -gt 1 ]; then
sudo update-alternatives --set java $(update-alternatives --list java | grep java-11)
echo 'Set Java 11 as default'
fi
echo ' '
echo 'Check if JavaFX 11 is installed...'
JAVAV=`dpkg -s openjfx| grep Version`
if [ `echo $JAVAV |grep -c Version` -gt 0 ]; then
echo 'JavaFX '$JAVAV ' is already installed'
else
echo 'Installing JavaFX Runtime...'
sudo apt-get install openjfx
fi
echo ' '
echo 'Check if wget is installed...'
JAVAV=`dpkg -s wget| grep Version`
if [ `echo $JAVAV |grep -c Version` -gt 0 ]; then
echo 'wget '$JAVAV' is already installed'
else
echo 'Installing wget...'
sudo apt-get install wget
fi
echo ' '
elif [ $1 = '-u' ]; then
echo $TITLE'jAReC v4 update'
else
echo $MSG
exit 0
fi

if test -f "jarec32.jar"; then
echo 'Remove old jar file'
rm -f jarec32.ja*
fi
if test -f "jarec64.jar"; then
echo 'Remove old jar file'
rm -f jarec64.ja*
fi
if test -f "jarec.sh"; then
echo 'Remove old run script'
rm -f jarec.sh
fi
echo '----------------------------------'
echo 'Downloading latest jAReC v4.x version ...'
FNAME='jarec64.jar'
if [ `wget https://www.yo3ggx.ro/jAReC/v4/$FNAME 2>&1 |grep -c saved` -eq "0" ]; then
echo 'Cannot download the latest jAReC version from the central repository\nPlease check again later\n'
exit 0
fi
echo '----------------------------------'
echo 'Building run script (jare
User avatar
yo3ggx
Site Admin
Posts: 835
Joined: Wed Aug 15, 2012 8:30 pm
Location: Bucharest, România
Contact:

Re: jAReC Linux

Post by yo3ggx »

This is an installer script, does not contain the application.
You must "save as" to your Linux computer and then execute it.
In Linux you can download it from the console using wget.

73 Dan YO3GGX
arttuli
Posts: 42
Joined: Tue Nov 24, 2020 5:17 pm

Re: jAReC Linux

Post by arttuli »

Hey. still desperately trying to install jarec on raspberry with bad results. Everything is correct in my opinion, I don't understand how to proceed from this. I always get the same result when I try to run sh jarec_installer17.sh -i
Last edited by arttuli on Wed Mar 08, 2023 10:55 am, edited 1 time in total.
Post Reply