some script to install everything

This commit is contained in:
acki
2025-05-20 14:57:57 -04:00
parent ee90e07011
commit af53bb6ba7
2 changed files with 40 additions and 0 deletions

1
build.sh Normal file
View File

@@ -0,0 +1 @@
MAKEFLAGS="-j2" colcon build --executor sequential --parallel-workers 1 --cmake-args -DCMAKE_BUILD_TYPE=Release

39
installl.sh Normal file
View File

@@ -0,0 +1,39 @@
locale # check for UTF-8
sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
locale # verify settings
sudo apt install software-properties-common
sudo add-apt-repository universe
sudo apt update && sudo apt install curl -y
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt update && sudo apt install ros-dev-tools -y
sudo apt update
sudo apt upgrade
sudo apt install ros-jazzy-desktop -y
sudo apt install git -y
git clone https://github.com/WiringPi/WiringPi.git
# build the package
./WiringPi/build debian
mv "./WiringPi/debian-template/wiringpi-*" ./WiringPi
# install it
sudo apt install "./WiringPi/wiringpi-*.deb" -y
git submodule init
git submodule update
sudo apt-get install qt6-base-dev qt6-svg-dev libxml2-dev socat -y