RASPBIAN
To allow fullscreen remote with VNC, comment line with dtoverlay=vc4-kms-v3d,composite:
sudo vi /boot/config.txt
# Enable DRM VC4 V3D driver
#dtoverlay=vc4-kms-v3d,composite
max_framebuffers=2
login par default ID: pi PW:raspberry ! clavier gb
Première configuration: sudo raspi-config
Mettre à jour: apt-get update, apt-get dist-upgrade, apt-get rpi-update
VIM:
Disable vim automatic visual mode on mouse select
add to ~/.vimrc
set mouse-=a
Wifi:
To find SSID: sudo iwlist wlan0 scan
sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="nomDeLaBox"
psk="cléDeSécurité"
key_mgmt=WPA-PSK
id_str="Config Name"
priority=n 1is most
}
sudo iwlist wlan0 scan
wlan0 Interface doesn't support scanning : Network is down
Check: sudo rfkill list all
Enable: sudo rfkill unblock wifi
Mine had the following output
0: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
Which was causing the error Interface doesn't support scanning
To remove the block simply run the following command
sudo rfkill unblock wifi
To show the SSID: iwgetid
NETWORK:
Stretch version:
Disable IPv6: sudo vi /etc/sysctl.conf, add net.ipv6.conf.all.disable_ipv6 = 1 ; sudo sysctl -p #Verify that IPv6 address does not show up in ifconfig.
Restore original name of I/F: add "net.ifnames=0" at the end of the line in /boot/cmdline.txt
sudo systemctl enable wpa_supplicant.service
sudo service dhcpcd restart
Before stretch:
sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Change /etc/dhcpcp.conf to static address
Bluetooth:
apt-get install pi-bluetooth
bluetoothctl --help
power on
scan on
trust <mac add>
connect <mac add>
Keyboard:
sudo vi /etc/default/keyboard, XKBLAYOUT=”fr"
Voir le boot: dmesg
erreur: "files list for package <package> is missing final newline" the file /var/lib/dpkg/info/<packadge>.list was corrupted
solution: delete or rename <packadge>.list
apt-get remove <packadge> --purge and install it again (apt-get install <packadge>)
Services:
enable / disable service: update-rc.d <service> [dis][e]nable
To enable ssh on first boot, create an empty file named ssh in the boot partition witch is the smallest on: touch <SDRAM>/boot/ssh
CentOS
dd if=CentOS-Userland-7-armv7hl-Minimal-RaspberryPi3.img of=/dev/mmcblk0 bs=8192; sync