Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Instructions for g2_link 4.00 install on AlmaLinux (updated)
开云体育
Please find my updated notes attached (and copied below).? The following was updated
--------
--
# This is not a script, but this is the recipe VY1RG used to install g2_link
# alongside of dplus on Alma Linux. Most of this document/hard work was done
# by others, I simply tweaked a few things to make it work/install on Alma as
# described below.
#
# Thank you to everyone who has contributed before me.
###############################
## ?FREE STAR* g2_link XRF/DCS Linking Tool Installation
###############################
#?
# Pre-Requisites...
# NOTE: This is for G3 version 3.2!
# ? AlmaLinux Installation
# ? Standard ICOM G3 version 3.2 Installations ONLY
#
# ? Version G3 0.3b - ?Robert Gillis - VY1RG, fixed a few typos
# ? Version G3 0.3a - ?Robert Gillis - VY1RG, fixed a few typos
# ? Version G3 0.3 - ? Robert Gillis - VY1RG, based on the work of
# ? ? ? ? ? ? ? ? ? ? ? ? ?Terry Stader-KA8SCP, which was based on the work of
# ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Ramesh Dhami-VA3UV's v.6 for G2 release
#
# Ramesh@... / Terry - ka8scp@... / Robert - robert@...
#
# Must install all as root
################################
## Setting up the environment ##
################################
# Install Development Tools" on minimal AlmaLinux via dnf. This is required for
# compiling of one of the utilities (g2_lh), that is used to create the?
# dashboard.
dnf group install "Development Tools" -y
# also dos2unix & nmap
dnf install dos2unix nmap -y
# also postfix, if you want to use the email notification script for new user
# signups -- This is not related to g2_link, but a handy script if your gateway
# registers users for US TRUST
dnf install postfix -y
# Lets create standard directories
cd /
mkdir /root/g2_link ? ? ? ? ? ?# Dir for g2_link binaries, etc.
mkdir /root/my_scripts ? ? ? ? # Dir for scripts that interact with g2_link
mkdir /root/alma_temp ? ? ? ? ?# Temp working directory for AlmaLinux specifics
mkdir /root/g2_link_downloads ?# Temp working directory for downloads
# Download what we need to
cd /root/g2_link_downloads
wget https://ioclarity.ca/ioClarity_g2_link_alma.tgz
wget http://www.va3uv.com/hp/free_star_icom.zip
wget http://va3uv.com/hp/g2_lh.zip
wget https://github.com/OlafvdSpek/ctemplate/archive/refs/tags/ctemplate-2.4.zip
# Extract the ioClarity files provided by VY1RG
cd /root/alma_temp
tar xvf /root/g2_link_downloads/ioClarity_g2_link_alma.tgz
# Copy the scripts to the my_scripts directory
cp /root/alma_temp/my_scripts/* /root/my_scripts
# Extract the core g2_link files?
cd /root/g2_link
unzip /root/g2_link_downloads/free_star_icom.zip
## Extract - Configure - Install cTemplate?
## ?- This is required by g2_lh, which is a prereq for the g2_link dashboard
## ?- (I could not find a precompiled version fro Alma, so lets make it)
cd /root/alma_temp
unzip /root/g2_link_downloads/ctemplate-2.4.zip
cd ctemplate-ctemplate-2.4/
./autogen.sh && ./configure
make
make install
## Extract - Patch - Compile the g2_lh files?
mkdir /root/alma_temp/g2_lh
cd /root/alma_temp/g2_lh
unzip /root/g2_link_downloads/g2_lh.zip
# Apply VY1RG's 2.04a g2_lh patch
# Without this patch, on AlmaLinux with G3 version 3.2, g2_lh will segfault
# every now and then, which will then cause g2_link to crash. ?Your want to
# apply this patch g2_lh.cpp /root/alma_temp/oddsAndEnds/g2_lh_204a.patch
cp g2_lh.cpp /root/g2_link/g2_lh.cpp
# Copy an updated version of g2_link dashboard template to the right place
cp /root/alma_temp/oddsAndEnds/g2_lh.tpl /root/g2_link/g2_lh.tpl
# Compile g2_lh
cd /root/g2_link
g++ -g -o g2_lh g2_lh.cpp /usr/local/lib/libctemplate_nothreads.a
###########################
## Configuration ? ? ? ? ##
###########################
# Okay, stage is set, lets configure?
# Copy and review the scripts in /root/my_scripts
cp /root/alma_temp/my_scripts/* /root/my_scripts
# These scripts are executed by cronjobs as described below
#
# Review the above scripts for the ones you may want to use and modify
# accordingly. For example, if auto-connecting to cannet, ensure correct local?
# module is selected and appropriate remote reflector/module selected.
#
# Not related to g2_link, also included is a script to email the gateway admin
# for new US TRUST registrations on your gateway
# Change the permissions on the main g2_link.cfg configuration file?
cd /root/g2_link?
chmod +x g2_link.cfg
# use "ip addr show" to determine your system IPs
# record them
#
#
# IMPORTANT
# modify g2_link.cfg for your systems ethernet connections
# uncomment OWNER line, inset GW call
# default on G2 was eth0 for external 10.0.0.1, eth1 for RP2C 172.16.0.1
# REMOVE BXRF005B from LINK_AT_STARTUP_B
# save
#
# Install the g2_link/dtmf_reader systemd services
#
cd /root/alma_temp/services
cp *.service /etc/systemd/system
systemctl enable g2_link
systemctl enable dtmf_reader
# Build the initial gwys.txt file for g2_link. This script is also executed
# nightly by a supplied cronjob, but needs to be executed first to ensure?
# the file is there for g2_link's first launch
/root/my_scripts/get_gwy_list.sh
# Start the g2_link/dtmf_reader services
systemctl start g2_link
systemctl start dtmf_reader
# Did they start?
systemctl status g2_link
systemctl status dtmf_reader
# You can also check the logs in /var/log
#
# Install and enalbe the cron files?
#
cd /root/alma_temp/cron
cp * /etc/cron.d
# Review the copied files. ?By default, the cronjobs (except update_gwys) are
# disabled with a comment (#). ?Decide which ones you want to use, and edit?
# accordingly. To enable, simply remove the comment. ?
#
# You will also need to update the "dashboard" cronjob ?with specifics of your?
# gateway (your gateway call should be entered twice). ?For example:
*/2 * * * * root /root/g2_link/g2_lh -m "ABC" -o /var/www/html/index.html -b "GW CALL HERE" -r -t /root/g2_link/g2_lh.tpl GW CALL HERE
#
#?
# You may want to hold off enabling the dashboard cronjob until you configure it
# as described below
# There are lots of g2_link dashboard configuration options, for the purposes of
# this document I am documenting this is configured on VY1RDS' gateway. This?
# configuration uses a combination of Tomek (SQ5DCP)'s modifications and a?
# modified template file to include information found in the footer of VE7VIC's
# repeater dashboard.
# Copy over the rest of the g2_lh files to webserver directory
cd /var/www/html
mkdir g2_ircddb
cd g2_ircddb
cp /root/alma_temp/g2_lh/mm_spacer.gif mm_spacer.gif
cp /root/alma_temp/g2_lh/mm_training.css mm_training.css
dos2unix *
# Create side-by-side dashboard configuration
cd /var/www/html
mv index.html index.html.bak
cp /root/alma_temp/oddsAndEnds/index.html .
# If cron for dashboard is enabled, new g2_link dashboard at?
# https://your_ip_here/
# Finally, let's manage the logs to make sure they don't get out of control
cp /root/alma_temp/oddsAndEnds/g2_link-logrotate /etc/logrotate.d/g2_link
systemctl restart logrotate
# Clean Up
cd /root/
rm -rf alma_temp
rm -rf g2_link_downlaods
service crond restart
##############################################################
# Join other g2_link admins at /g/g2-link
##############################################################
|
开云体育
Opps, I forgot a carriage return in one spot which makes it easy to miss a command
I corrected in the attachment and below. From:[email protected] <[email protected]> on behalf of Robert Gillis via groups.io <robert@...>
Sent:?November 29, 2024 21:05 To:[email protected] <[email protected]> Subject:?[g2-link] Instructions for g2_link 4.00 install on AlmaLinux (updated) ?
Please find my updated notes attached (and copied below).? The following was updated
--------
--
# This is not a script, but this is the recipe VY1RG used to install g2_link
# alongside of dplus on Alma Linux. Most of this document/hard work was done
# by others, I simply tweaked a few things to make it work/install on Alma as
# described below.
#
# Thank you to everyone who has contributed before me.
###############################
## ?FREE STAR* g2_link XRF/DCS Linking Tool Installation
###############################
#?
# Pre-Requisites...
# NOTE: This is for G3 version 3.2!
# ? AlmaLinux Installation
# ? Standard ICOM G3 version 3.2 Installations ONLY
#
# ? Version G3 0.3b - ?Robert Gillis - VY1RG, fixed a few typos
# ? Version G3 0.3a - ?Robert Gillis - VY1RG, fixed a few typos
# ? Version G3 0.3 - ? Robert Gillis - VY1RG, based on the work of
# ? ? ? ? ? ? ? ? ? ? ? ? ?Terry Stader-KA8SCP, which was based on the work of
# ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Ramesh Dhami-VA3UV's v.6 for G2 release
#
# Ramesh@... / Terry - ka8scp@... / Robert - robert@...
#
# Must install all as root
################################
## Setting up the environment ##
################################
# Install Development Tools" on minimal AlmaLinux via dnf. This is required for
# compiling of one of the utilities (g2_lh), that is used to create the?
# dashboard.
dnf group install "Development Tools" -y
# also dos2unix & nmap
dnf install dos2unix nmap -y
# also postfix, if you want to use the email notification script for new user
# signups -- This is not related to g2_link, but a handy script if your gateway
# registers users for US TRUST
dnf install postfix -y
# Lets create standard directories
cd /
mkdir /root/g2_link ? ? ? ? ? ?# Dir for g2_link binaries, etc.
mkdir /root/my_scripts ? ? ? ? # Dir for scripts that interact with g2_link
mkdir /root/alma_temp ? ? ? ? ?# Temp working directory for AlmaLinux specifics
mkdir /root/g2_link_downloads ?# Temp working directory for downloads
# Download what we need to
cd /root/g2_link_downloads
wget https://ioclarity.ca/ioClarity_g2_link_alma.tgz
wget http://www.va3uv.com/hp/free_star_icom.zip
wget http://va3uv.com/hp/g2_lh.zip
wget https://github.com/OlafvdSpek/ctemplate/archive/refs/tags/ctemplate-2.4.zip
# Extract the ioClarity files provided by VY1RG
cd /root/alma_temp
tar xvf /root/g2_link_downloads/ioClarity_g2_link_alma.tgz
# Copy the scripts to the my_scripts directory
cp /root/alma_temp/my_scripts/* /root/my_scripts
# Extract the core g2_link files?
cd /root/g2_link
unzip /root/g2_link_downloads/free_star_icom.zip
## Extract - Configure - Install cTemplate?
## ?- This is required by g2_lh, which is a prereq for the g2_link dashboard
## ?- (I could not find a precompiled version for Alma, so lets make it)
cd /root/alma_temp
unzip /root/g2_link_downloads/ctemplate-2.4.zip
cd ctemplate-ctemplate-2.4/
./autogen.sh && ./configure
make
make install
## Extract - Patch - Compile the g2_lh files?
mkdir /root/alma_temp/g2_lh
cd /root/alma_temp/g2_lh
unzip /root/g2_link_downloads/g2_lh.zip
# Apply VY1RG's 2.04a g2_lh patch
# Without this patch, on AlmaLinux with G3 version 3.2, g2_lh will segfault
# every now and then, which will then cause g2_link to crash. ?Your want to
# apply this?
patch g2_lh.cpp /root/alma_temp/oddsAndEnds/g2_lh_204a.patch
cp g2_lh.cpp /root/g2_link/g2_lh.cpp
# Copy an updated version of g2_link dashboard template to the right place
cp /root/alma_temp/oddsAndEnds/g2_lh.tpl /root/g2_link/g2_lh.tpl
# Compile g2_lh
cd /root/g2_link
g++ -g -o g2_lh g2_lh.cpp /usr/local/lib/libctemplate_nothreads.a
###########################
## Configuration ? ? ? ? ##
###########################
# Okay, stage is set, lets configure?
# Copy and review the scripts in /root/my_scripts
cp /root/alma_temp/my_scripts/* /root/my_scripts
# These scripts are executed by cronjobs as described below
#
# Review the above scripts for the ones you may want to use and modify
# accordingly. For example, if auto-connecting to cannet, ensure correct local?
# module is selected and appropriate remote reflector/module selected.
#
# Not related to g2_link, also included is a script to email the gateway admin
# for new US TRUST registrations on your gateway
# Change the permissions on the main g2_link.cfg configuration file?
cd /root/g2_link?
chmod +x g2_link.cfg
# use "ip addr show" to determine your system IPs
# record them
#
#
# IMPORTANT
# modify g2_link.cfg for your systems ethernet connections
# uncomment OWNER line, inset GW call
# default on G2 was eth0 for external 10.0.0.1, eth1 for RP2C 172.16.0.1
# REMOVE BXRF005B from LINK_AT_STARTUP_B
# save
#
# Install the g2_link/dtmf_reader systemd services
#
cd /root/alma_temp/services
cp *.service /etc/systemd/system
systemctl enable g2_link
systemctl enable dtmf_reader
# Build the initial gwys.txt file for g2_link. This script is also executed
# nightly by a supplied cronjob, but needs to be executed first to ensure?
# the file is there for g2_link's first launch
/root/my_scripts/get_gwy_list.sh
# Start the g2_link/dtmf_reader services
systemctl start g2_link
systemctl start dtmf_reader
# Did they start?
systemctl status g2_link
systemctl status dtmf_reader
# You can also check the logs in /var/log
#
# Install and enalbe the cron files?
#
cd /root/alma_temp/cron
cp * /etc/cron.d
# Review the copied files. ?By default, the cronjobs (except update_gwys) are
# disabled with a comment (#). ?Decide which ones you want to use, and edit?
# accordingly. To enable, simply remove the comment. ?
#
# You will also need to update the "dashboard" cronjob ?with specifics of your?
# gateway (your gateway call should be entered twice). ?For example:
*/2 * * * * root /root/g2_link/g2_lh -m "ABC" -o /var/www/html/index.html -b "GW CALL HERE" -r -t /root/g2_link/g2_lh.tpl GW CALL HERE
#
#?
# You may want to hold off enabling the dashboard cronjob until you configure it
# as described below
# There are lots of g2_link dashboard configuration options, for the purposes of
# this document I am documenting this is configured on VY1RDS' gateway. This?
# configuration uses a combination of Tomek (SQ5DCP)'s modifications and a?
# modified template file to include information found in the footer of VE7VIC's
# repeater dashboard.
# Copy over the rest of the g2_lh files to webserver directory
cd /var/www/html
mkdir g2_ircddb
cd g2_ircddb
cp /root/alma_temp/g2_lh/mm_spacer.gif mm_spacer.gif
cp /root/alma_temp/g2_lh/mm_training.css mm_training.css
dos2unix *
# Create side-by-side dashboard configuration
cd /var/www/html
mv index.html index.html.bak
cp /root/alma_temp/oddsAndEnds/index.html .
# If cron for dashboard is enabled, new g2_link dashboard at?
# https://your_ip_here/
# Finally, let's manage the logs to make sure they don't get out of control
cp /root/alma_temp/oddsAndEnds/g2_link-logrotate /etc/logrotate.d/g2_link
systemctl restart logrotate
# Clean Up
cd /root/
rm -rf alma_temp
rm -rf g2_link_downlaods
service crond restart
##############################################################
# Join other g2_link admins at /g/g2-link
##############################################################
|
to navigate to use esc to dismiss