route -n list interfaces with metric value. linux uses in priority interface with lower metric value
use ifmetric to modify metric value : sudo ifmetric eth0 50 will set eth0 metric value to 50
To mount an e-TOKEN / CCID usb device on a vmware virtual machine with linux host / windows guest, | |
one should add the following line to the .vmx file of its vm : | |
usb.generic.allowCCID = "TRUE" | |
https://communities.vmware.com/thread/560151 |
route -n list interfaces with metric value. linux uses in priority interface with lower metric value
use ifmetric to modify metric value : sudo ifmetric eth0 50 will set eth0 metric value to 50
source : http://www.janosgyerik.com/adding-udev-rules-for-usb-debugging-android-devices/
$ adb devices
List of devices attached
???????????? no permissions
sudo chmod a+rw /dev/ttyUSB0
sudo cat /sys/firmware/acpi/tables/MSDM | tail -c 32 | xargs -0 echo |
https://medium.com/redbubble/running-a-docker-container-as-a-non-root-user-7d2e00f8ee15
docker run -u
for compose, run the following with CURRENT_UID=$(id -u):$(id -g) docker-compose up
:
version: '3.3'
services:
rspec:
image: my-docker/my-build-environment:latest
# add the docker group | |
sudo groupadd docker | |
# add the group to your user | |
sudo gpasswd -a ${USER} docker | |
# restart the docker daemon | |
sudo service docker restart # Or docker.io for older versions | |
# 18.04+ with snap: | |
sudo systemctl restart snap.docker.dockerd | |
# log off and log on |
M104 S0 ;chauffage de l'extrudeuse éteint | |
M140 S0 ;chauffe-lit chauffant éteint | |
G91 ;positionnement relatif | |
G1 E-1 F300 ;rétracter un peu le filament avant de soulever la buse, pour libérer une partie de la pression | |
G1 Z+0.5 E-5 X-20 Y-20 F9000 ;déplacez Z un peu et retirez le filament encore plus | |
G28 X0 Y0 ;déplacez X / Y jusqu'à la butée min, de sorte que la tête soit à l'écart | |
G90 ;positionnement absolu | |
G1 Y190 F9000 ;le lit se déplace vers l'avant | |
M84 ;steppers off |
prerequisite : have a functionnal raspberry with ssh access configured see here
sudo apt install hostapd hostap-utils iw bridge-utils rfkill
/etc/hostapd/hostapd.conf
as in this gist. Don't forget to set the SSID, channel, country and passphrase following your requirement/etc/network/interfaces
as in this gist/etc/default/hostapd
as in this gistsudo reboot
touch ssh
)/etc/hosts
(only 127.0.1.1 line) and /etc/hostname
on rootfs partition/etc/wpa_supplicant/wpa_supplicant.conf
file to add your AP and PSK. see heressh-copy-id pi@[name].local
ssh pi@[name].local
. ([name].local is working as avahi is setup by default on raspbian, otherwise find and use th raspberry IP adress)raspberry
, don't forget to change it with command passwd
. Eventualy disable ssh password authentication by setting