- burn raspbian image to SD card with etcher
- enable ssh connection by creating a file named ssh on boot partition (
touch ssh
) - set the [name] of your pi by editing
/etc/hosts
(only 127.0.1.1 line) and/etc/hostname
on rootfs partition - in case of wifi connection, edit the
/etc/wpa_supplicant/wpa_supplicant.conf
file to add your AP and PSK. see here - unmount SD card, put it in raspberry, power up and let it a few minutes to boot.
- add your local ssh public key to your pi with the command
ssh-copy-id pi@[name].local
- access the pi with
ssh pi@[name].local
. ([name].local is working as avahi is setup by default on raspbian, otherwise find and use th raspberry IP adress) - the default password is still
raspberry
, don't forget to change it with commandpasswd
. Eventualy disable ssh password authentication by setting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo loaded %0 | |
## reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun /t REG_EXPAND_SZ /d "%"USERPROFILE"%\init.cmd" /f | |
DOSKEY ls=dir $* | |
DOSKEY f=gulp | |
DOSKEY b=mvnw -Pcc | |
DOSKEY bcc=mvnw -Pcc scala:cc | |
DOSKEY np="C:\Program Files\Notepad++\notepad++.exe" $* |
prerequisite : have a functionnal raspberry with ssh access configured see here
- install dependencies
sudo apt install hostapd hostap-utils iw bridge-utils rfkill
- set file
/etc/hostapd/hostapd.conf
as in this gist. Don't forget to set the SSID, channel, country and passphrase following your requirement - set file
/etc/network/interfaces
as in this gist - set file
/etc/default/hostapd
as in this gist - reboot
sudo reboot
- Have Fun
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo cat /sys/firmware/acpi/tables/MSDM | tail -c 32 | xargs -0 echo |
sudo chmod a+rw /dev/ttyUSB0
source : http://www.janosgyerik.com/adding-udev-rules-for-usb-debugging-android-devices/
$ adb devices
List of devices attached
???????????? no permissions
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
OlderNewer