mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Added all users to dialout group; updated installer scripts to include installers for udev, gps and Navit
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Updated : 1 October 2024
|
||||
# Purpose : Configure users
|
||||
set -e
|
||||
|
||||
@@ -9,3 +10,6 @@ et-log "Configuring users"
|
||||
|
||||
cp -r ../overlay/etc/skel /etc/
|
||||
[ ! -e /etc/skel/Desktop ] && mkdir /etc/skel/Desktop
|
||||
|
||||
et-log "Add all users to dialout group"
|
||||
cp -v -r ../overlay/etc/adduser.conf /etc/
|
||||
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 1 October 2022
|
||||
# Purpose : Configure GPS
|
||||
set -e
|
||||
|
||||
et-log "Installing GPS packages and dependencies..."
|
||||
apt install gpsd gpsd-clients at -y
|
||||
|
||||
et-log "Installing gpsd config..."
|
||||
cp ../overlay/etc/default/gpsd /etc/default/
|
||||
|
||||
et-log "Updating gpsd systemd script..."
|
||||
cp ../overlay/lib/systemd/system/gpsd.service /lib/systemd/system/
|
||||
systemctl daemon-reload
|
||||
systemctl enable gpsd
|
||||
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 1 October 2024
|
||||
# Purpose : Navit installer for EmComm Tools
|
||||
#
|
||||
# The Navit package is broken in the Ubuntu repository. The following installation is based
|
||||
# on a fixed reported in https://github.com/navit-gps/navit/issues/1228
|
||||
|
||||
apt install \
|
||||
navit \
|
||||
navit-gui-gtk \
|
||||
navit-graphics-gtk-drawing-area \
|
||||
maptool \
|
||||
espeak-ng \
|
||||
-y
|
||||
|
||||
missing_layout_files=(
|
||||
"navit_layout_bike_shipped.xml"
|
||||
"navit_layout_car_android_shipped.xml"
|
||||
"navit_layout_car_dark_shipped.xml"
|
||||
"navit_layout_car_generatedarkxml.sh"
|
||||
"navit_layout_car_shipped.xml"
|
||||
"navit_layout_car_simple_shipped.xml"
|
||||
"navit_layout_th_shipped.xml"
|
||||
)
|
||||
|
||||
echo "Patching broken Navit apt installation..."
|
||||
TARGET_DIR=/usr/share/navit
|
||||
for file in "${missing_layout_files[@]}"
|
||||
do
|
||||
curl -s -f -L -O https://raw.githubusercontent.com/navit-gps/navit/trunk/navit/${file}
|
||||
mv -v ${file} "${TARGET_DIR}/${file}"
|
||||
done
|
||||
|
||||
# Delete types that have errors
|
||||
sed -i -e '/item_types="cliff,embankment"/,+7d' ${TARGET_DIR}/navit_layout_car_shipped.xml
|
||||
|
||||
# Copy arizona.bin to ~/.navit/maps
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 1 October 2024
|
||||
# Purpose : Install udev rules for CAT, GPS and audio PnP support
|
||||
set -e
|
||||
|
||||
et-log "Installing udev rules..."
|
||||
cp -v ../overlay/etc/udev/rules.d/*.rules /etc/udev/rules.d/
|
||||
udevadm control --reload
|
||||
|
||||
et-log "Disable brltty.."
|
||||
systemctl mask brltty-udev.service
|
||||
systemctl stop brltty-udev.service
|
||||
+5
-1
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 16 March 2024
|
||||
# Updated : 19 May 2024
|
||||
# Updated : 1 October 2024
|
||||
# Purpose : Main installer for EmComm Tools OS Community
|
||||
|
||||
. ./env.sh
|
||||
@@ -26,3 +26,7 @@ exitIfNotRoot
|
||||
|
||||
./install-hamlib.sh
|
||||
./install-js8call.sh
|
||||
|
||||
./install-udev.sh
|
||||
./install-gps.sh
|
||||
./install-navit.sh
|
||||
|
||||
Reference in New Issue
Block a user