Skip to content

Instantly share code, notes, and snippets.

Todd Stellanova tstellanova

Block or report user

Report or block tstellanova

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tstellanova
tstellanova / p52_ubuntu_18_setup.md
Created Oct 8, 2019
setup lenovo thinkpad p52 with ubuntu 18
View p52_ubuntu_18_setup.md

For UEFI boot, press e when it says “Start Linux/Ubuntu”. Find the line that says quiet splash Right after that, add nomodeset and then press F10 to boot (or whatever key it instructs you to press). It should boot Linux now with no graphics drivers, which appears to be the problem.

@tstellanova
tstellanova / ubuntu_px4_dev_setup.sh
Last active Oct 1, 2019
Script for setting up ubuntu development environment for PX4
View ubuntu_px4_dev_setup.sh
#!/bin/bash
# allow ssh to this box
sudo apt-get install openssh-server
# Gazebo simulator
sudo apt-get install protobuf-compiler libeigen3-dev libopencv-dev -y
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
## Setup keys
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
@tstellanova
tstellanova / mac_px4_homebrew_notes.txt
Created Sep 29, 2019
notes from Mac px4 homebrew installation
View mac_px4_homebrew_notes.txt
Warning: osrf/simulation/gazebo9 dependency gcc was built with a different C++ standard
library (libstdc++ from clang). This may cause problems at runtime.
🍺 /usr/local/Cellar/gazebo9/9.11.0: 1,260 files, 126.5MB
==> Installing px4/px4/px4-sim
==> Downloading https://raw.githubusercontent.com/PX4/Firmware/master/Tools/px4.py
Already downloaded: /Users/todd/Library/Caches/Homebrew/downloads/7be7daca52fab83c40ed326bdcf732c0060cdc0b9d97e0d94f1e71856982d00b--px4.py
==> PX4 Simulation Installed
🍺 /usr/local/Cellar/px4-sim/1.6.5.0: 3 files, 10.1KB, built in 5 seconds
==> Caveats
@tstellanova
tstellanova / lrzsz_install_mac.md
Created Sep 3, 2019
Install command line tools `sz` and `rz` on Mac OSX
View lrzsz_install_mac.md
brew install lrzsz
View install_zeroconf_debian.sh
apt-get install avahi-daemon avahi-discover libnss-mdns
@tstellanova
tstellanova / docker_container_gui_osx.md
Last active Sep 25, 2019
Access linux docker container gui from OSX
View docker_container_gui_osx.md

How to display a gui from a linux container on a host Mac OSX machine:

  • Ensure that xquartz is installed, using homebrew:
brew install xquartz socat

You may need to log out and log back in if xquartz was not already installed

  • Open xquartz:
@tstellanova
tstellanova / gzserver_armv8.md
Last active Aug 26, 2019
Setup gazebo gzserver on arm64 / armv8
View gzserver_armv8.md
  • Install docker
  • Note that the gzserver listens on port 11345 by default.
  • Install the gzserver image and built into a customized image:
docker pull gazebo:gzserver9
mkdir gaztest
cd gaztest
cat <<-EOF > Dockerfile
@tstellanova
tstellanova / disable_visual_vim.md
Last active Aug 26, 2019
Disable visual mode on mouse in vi / vim
View disable_visual_vim.md
  • Edit the following:

    • vi ~/.vimrc
    • sudo vi ~root/.vimrc
  • Add the line: set mouse-=a

@tstellanova
tstellanova / panfrost_build_rockpi4b.md
Last active Aug 13, 2019
Building panfrost natively on armv8 (rockpi4b / RK3399) on Debian "buster"
View panfrost_build_rockpi4b.md
  • sudo apt install python3-pip
  • Install python3 packages:
pip3 install  setuptools mako
  • Install many, many packages not included with armbian "buster":
@tstellanova
tstellanova / check_gpu_opengl_render.md
Created Aug 9, 2019
Check to see whether OpenGL rendering is GPU-accelerated on your linux or OSX host
View check_gpu_opengl_render.md

Note that on some headless linux platforms you may need to install xfvb

On Debian/Armbian with no GPU acceleration:

$ glxinfo |grep renderer
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, 
Extended renderer info (GLX_MESA_query_renderer):
You can’t perform that action at this time.