In order to run Xorg apps on macOS you will need to install xquartz:
brew install --cask --no-quarantine xquartzAnd then configure it
| #!/bin/bash | |
| set -e | |
| WINEPREFIX="$HOME/.wine-mp" | |
| DESKTOP_FILE="$HOME/.local/share/applications/mission-planner.desktop" | |
| ICON_PATH="$HOME/.local/share/icons/mission-planner.png" | |
| export WINEPREFIX | |
| export WINEARCH=win64 |
mkdir -p ~/.config/autostart
cp /usr/share/applications/vino-server.desktop ~/.config/autostart/.
For all other Jetson developer kits (running GNOME)
cd /usr/lib/systemd/user/graphical-session.target.wants
| apt-get install gawk bison gcc make wget tar -y | |
| wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.35.tar.gz | |
| tar -zxvf glibc-2.35.tar.gz && cd glibc-2.35 | |
| mkdir glibc-build && cd glibc-build | |
| ../configure --prefix=/opt/glibc | |
| make | |
| make install |
xhost + ${hostname} to allow connections to the macOS host *export HOSTNAME=`hostname`* environment:
| 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 install curl # if you haven't already installed curl | |
| curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - | |
| sudo apt update | |
| sudo apt install ros-melodic-desktop-full | |
| ## building dependencies | |
| sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential | |
| sudo apt install python-rosdep | |
| sudo rosdep init |
| # Install mavros | |
| # chmod -x ... | |
| sudo apt-get install python3-pip | |
| sudo apt-get install ros-noetic-mavros ros-noetic-mavros-extras ros-noetic-mavros-msgs | |
| sudo pip install -U catkin_tools | |
| sudo pip install -U rosinstall-generator | |
| wget https://raw.githubusercontent.com/mavlink/mavros/master/mavros/scripts/install_geographiclib_datasets.sh | |
| sudo bash ./install_geographiclib_datasets.sh |
| # Install ROS 1 | |
| # chmod -x | |
| 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 | |
| sudo apt update | |
| sudo apt install ros-noetic-desktop-full | |
| source /opt/ros/noetic/setup.bash | |
| echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc | |
| source ~/.bashrc | |
| printenv | grep ROS |
| # Tested with Mac OS X 10.11.2 El Capitan & MAMP 3.5 | |
| # Jan 17, 2016 | |
| # original gist: https://gist.github.com/kkirsche/5710272 | |
| ########################################### | |
| # Composer & MAMP's installation of PHP 7 # | |
| ########################################### | |
| echo "alias phpmamp='/Applications/MAMP/bin/php/php7.0.0/bin/php'" >> ~/.bash_profile | |
| source ~/.bash_profile |