- www.linkedin.com/in/ömerfarukedemen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Loop through IP addresses 10.42.0.0 to 10.42.0.255 | |
for i in {0..255}; do | |
ip="10.42.0.$i" | |
echo "Pinging $ip..." | |
ping -c 1 -W 1 "$ip" > /dev/null 2>&1 | |
if [ $? -eq 0 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# network configuration capabilities, write a file | |
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: | |
# network: {config: disabled} | |
network: | |
# this part set a wifi access-points | |
version: 2 | |
wifis: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 149 > /sys/class/gpio/export | |
echo out > /sys/class/gpio/gpio149/direction | |
echo 0 > /sys/class/gpio/gpio149/value | |
echo 149 > /sys/class/gpio/unexport |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# these testes on jetson nano ubuntu 18.04 and L4T 4.6.2 | |
sudo apt install libpcl-dev # some packages should be installed on jetson bc of dependencies | |
sudo apt remove libpcl-* --purge | |
# Download pcl-pcl-1.10.1.tar.gz from | |
# https://github.com/PointCloudLibrary/pcl/releases/tag/pcl-1.10.1 | |
# to the jetson and move this file to ~/.local/lib/ | |
cd ~/.local/lib | |
tar xvf pcl-pcl-1.10.1.tar.gz | |
cd pcl-pcl-1.10.1 && mkdir build && cd build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this script is used to build ros2 galactic from source on jetson nano | |
# it tested on jetpack 4.6.2 | |
# before start be sure that you have correct cmake version if not please refer | |
# https://askubuntu.com/questions/355565/how-do-i-install-the-latest-version-of-cmake-from-the-command-line/865294#865294 | |
# to update cmake | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ACCESS_TOKEN=<YOUR_GITLAB_ACCESS_TOKEN> | |
GROUP_ID=<GROUP_ID> | |
DESTINATION_PATH=/path/to/clone | |
# clones where this bash script is located | |
# curl --header "PRIVATE-TOKEN: $ACCESS_TOKEN" "https://gitlab.com/api/v4/groups/$GROUP_ID/projects" | jq -r '.[].http_url_to_repo' | xargs -n 1 git clone | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
here is a service file to autostart ros2 node. you can copy this in /etc/systemd/system name by ros2_talker.service | |
[Unit] | |
Description=ros2 talker controller test | |
[Service] | |
Environment="ROS_DOMAIN_ID=6" | |
Environment="HOME=root" | |
ExecStart=/usr/bin/bash /home/omer/talker.sh |