Skip to content

Instantly share code, notes, and snippets.

@mayataka
mayataka / install_pinocchio.sh
Last active March 28, 2024 07:47
Install Pinocchio
sudo apt install -qqy lsb-release gnupg2 curl
echo "deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg" | sudo tee /etc/apt/sources.list.d/robotpkg.list
curl http://robotpkg.openrobots.org/packages/debian/robotpkg.key | sudo apt-key add -
sudo apt update -y
sudo apt install -qqy robotpkg-py27-pinocchio
export PATH=/opt/openrobots/bin:$PATH
export PKG_CONFIG_PATH=/opt/openrobots/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/opt/openrobots/lib:$LD_LIBRARY_PATH
export PYTHONPATH=/opt/openrobots/lib/python2.7/site-packages:$PYTHONPATH
export CMAKE_PREFIX_PATH=/opt/openrobots:$CMAKE_PREFIX_PATH
@mayataka
mayataka / get_driver.sh
Last active April 8, 2020 11:24
Wi-fi driver for Thinkpad X1 gen7 Ubuntu 18.04 LTS
sudo apt update
sudo apt install git build-essential
cd
git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git
cd backport-iwlwifi/
make defconfig-iwlwifi-public
sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config
make -j$(nproc)
sudo make install
sudo modprobe iwlwifi
@mayataka
mayataka / install_ros2.sh
Last active April 11, 2020 23:27
install-ros2
cd
# Add ROS2 repository
sudo apt update -y
sudo apt install curl gnupg2 lsb-release -y
curl http://repo.ros2.org/repos.key | sudo apt-key add -
sudo sh -c 'echo "deb http://packages.ros.org/ros2/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list'
# Specify the distribution of ROS2
export CHOOSE_ROS_DISTRO=dashing
# Install ROS2
sudo apt update -y
@mayataka
mayataka / set-my-ubuntu.sh
Last active June 11, 2022 12:44
Setup Ubuntu 20.04
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"
sudo apt update -y
sudo apt upgrade -y
sudo apt autoremove -y
sudo apt install build-essential cmake git libeigen3-dev vim tmux doxygen graphviz ffmpeg libglpk-dev -y
sudo apt install python3-sphinx -y
# install docker
sudo apt install lsb-release -y
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -