Skip to content

Commit

Permalink
add fix ip address + new packages + source deployement folder
Browse files Browse the repository at this point in the history
  • Loading branch information
flochre committed Dec 20, 2022
1 parent 9815ac0 commit 30df367
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This file contains a netplan-compatible configuration which cloud-init will
# apply on first-boot (note: it will *not* update the config after the first
# boot). Please refer to the cloud-init documentation and the netplan reference
# for full details:
#
# https://cloudinit.readthedocs.io/en/latest/topics/network-config.html
# https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.html
# https://netplan.io/reference
#
# Please note that, at this time, there is no way to specify the wifi
# regulatory region in the netplan or cloud-init configuration (LP: #1951586),
# and the /etc/default/crda configuration file has been removed. If you need to
# specify a regulatory region, append the following to the line in
# "cmdline.txt" (adjusting "GB" to your own region):
#
# cfg80211.ieee80211_regdom=GB
#
# Please note that the YAML format employed by this file is sensitive to
# differences in whitespace; if you are editing this file in an editor (like
# Notepad) which uses literal tabs, take care to only use spaces for
# indentation. See the following link for more details:
#
# https://en.wikipedia.org/wiki/YAML
#
# Some additional examples are commented out below

version: 2
ethernets:
eth0:
dhcp4: true
addresses:
- 192.168.33.78/24
optional: true
#wifis:
# wlan0:
# dhcp4: true
# optional: true
# access-points:
# myhomewifi:
# password: "S3kr1t"
# myworkwifi:
# password: "correct battery horse staple"
# workssid:
# auth:
# key-management: eap
# method: peap
# identity: "[email protected]"
# password: "passw0rd"
# ca-certificate: /etc/my_ca.pem
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
if [ -f /opt/ros/humble/setup.bash ]; then
source /opt/ros/humble/setup.bash
fi
if [ -f /opt/ruediger_ws/setup.bash ]; then
source /opt/ruediger_ws/setup.bash
fi
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@

apt-get update

apt-get install -y ros-$ROS_DISTRO-xacro ros-$ROS_DISTRO-ros2-control ros-$ROS_DISTRO-ros2-controllers libwiringpi-dev
apt-get install -y ros-$ROS_DISTRO-xacro ros-$ROS_DISTRO-ros2-control ros-$ROS_DISTRO-ros2-controllers libwiringpi-dev ros-$ROS_DISTRO-navigation2 ros-$ROS_DISTRO-nav2-bringup ros-$ROS_DISTRO-robot-localization ros-$ROS_DISTRO-v4l2-camera ros-$ROS_DISTRO-image-transport-plugins ros-$ROS_DISTRO-image-tools ros-$ROS_DISTRO-image-common

# reverse the network names to eth0 instead of enx<mac-address>
# this is automatique after a apt-get update
# https://askubuntu.com/a/1025201
ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules

# add library link
ln -s /home/ruediger/deployement/serial_megapi/lib/serial_megapi/libserial_megapi.so /usr/local/lib/libserial_megapi.so
ldconfig

# clean up to reduce image size
apt-get autoremove -y && apt-get clean
rm -rf /var/lib/apt/lists/*

0 comments on commit 30df367

Please sign in to comment.