Skip to content

Instantly share code, notes, and snippets.

@ahoarau
ahoarau / gist:cdbda9b95cd62438a335
Created February 16, 2015 10:11
Rebuild all dkms modules
ls /var/lib/initramfs-tools | sudo xargs -n1 /usr/lib/dkms/dkms_autoinstaller start
@ahoarau
ahoarau / .bashrc
Last active November 24, 2015 09:33
Bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
@ahoarau
ahoarau / super_install.sh
Last active September 8, 2015 17:08
Everything from scratch
#!/usr/bin sh
echo 'Upgrades'
sudo apt-get update
sudo apt-get -y upgrade
#sudo apt-get -y dist-upgrade
echo 'Git'
sudo apt-get install -y git
echo 'OpenSSH'
@ahoarau
ahoarau / rtnet_connection
Last active September 20, 2015 14:22
Kuka RTNET connection
#!/bin/bash
### BEGIN INIT INFO
# Provides: rtnet_kuka
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
# Short-Description: Starts RTNet components for the Kuka LWR
# Description: Start/stop RTNet components for the Kuka LWR 4+ at ISIR
@ahoarau
ahoarau / .config
Created February 25, 2015 13:33
Kuka Xenomai 3 config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.16.0 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@ahoarau
ahoarau / downgrade_gazebo_2.2-1.9.sh
Last active September 8, 2015 17:17
Downgrade gazebo2.2->1.9 on 12.04+Hydro
sudo apt-get remove gazebo-current libsdformat-dev libsdformat1 ros-hydro-gazebo-msgs-current ros-hydro-gazebo-plugins-current ros-hydro-gazebo-ros-current ros-hydro-gazebo-ros-pkgs-current
sudo apt-get install gazebo ros-hydro-desktop-full ros-hydro-gazebo-msgs ros-hydro-gazebo-plugins ros-hydro-gazebo-ros ros-hydro-gazebo-ros-control ros-hydro-gazebo-ros-pkgs ros-hydro-simulators sdformat
@ahoarau
ahoarau / lwr_create_pkg
Created March 23, 2015 10:32
lwr create pkg
#!/bin/bash
if (( $# < 1 ))
then
echo "Usage: ... lwr_create_pkg {NAME} {ADDITIONAL-DEPS}"
exit 1
fi
catkin_create_pkg "$@" rtt rtt_ros rtt_roscomm rtt_rosparam rtt_rosclock kuka_lwr_fri rtt_lwr_gazebo rtt_lwr_sim std_msgs diagnostic_msgs geometry_msgs message_generation orocos_kdl kdl_conversions kdl_typekit eigen_typekit
@ahoarau
ahoarau / reinstall_openni
Created June 8, 2015 13:09
reinstall openni
sudo apt-get install --reinstall libopenni-dev \
libopenni-nite-dev \
libopenni-sensor-primesense-dev \
libopenni-sensor-primesense0 \
libopenni0 \
libopenni2-0 \
libopenni2-dev \
openni-utils
@ahoarau
ahoarau / non-root-rtnet
Created June 17, 2015 13:54
Allow non-root RTNet Users
Add the user to the xenomai group :
```bash
user -a -G xenomai student
```
Remove sudo passwd for rtnet operations :
```
sudo visudo
```
@ahoarau
ahoarau / wireshark_install.sh
Last active December 4, 2017 10:51
Install wireshark on Ubuntu 12.04 - 14.04 - 16.04 (fix non root users)
sudo apt-get install -y wireshark
sudo dpkg-reconfigure wireshark-common # answer yes
sudo groupadd wireshark
sudo usermod -a -G wireshark $USER
sudo chgrp wireshark /usr/bin/dumpcap
sudo chmod 750 /usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
sudo getcap /usr/bin/dumpcap
sudo reboot