-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·28 lines (21 loc) · 986 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# enable all Ubuntu packages:
sudo apt-add-repository universe
sudo apt-add-repository multiverse
sudo apt-add-repository restricted
# add ROS repository to apt sources
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
# install ROS
sudo apt update
sudo apt install -y ros-melodic-ros-base ros-melodic-tf ros-melodic-usb-cam
sudo apt install -y ros-melodic-nmea-navsat-driver ros-melodic-diagnostic-updater
# add ROS paths to environment
sudo sh -c 'echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc'
# install additional dependencies
sudo apt install -y tmux ntpdate
# install the service
sudo cp /home/jetbot/jetcam/jetcam.service /etc/systemd/system/jetcam.service
# enable the script to run at boot
sudo systemctl enable jetcam
# run the start script now
sudo systemctl start jetcam