Категория: Raspberry Pi
Команда за рестартиране на samba сървър в Raspberry OS:
sudo systemctl restart smbd.service
sudo systemctl restart smbd
sudo crontab -e
@reboot sudo iw wlan0 set power_save off
ctrl + x
y
sudo apt-key del B188E2B695BD4743 sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
Изключване на HDMI
Raspberry Pi Zero W / Raspberry Pi A+
/usr/bin/tvservice -o
Изключване на PWR LED и ACT LED
Raspberry Pi A+
echo 0 | sudo tee /sys/class/leds/led0/brightness echo 0 | sudo tee /sys/class/leds/led1/brightness
led0 - зелен ACT LED led1 - червен PWR LED
Raspberry Pi Zero W
echo none | sudo tee /sys/class/leds/led0/trigger
echo 1 | sudo tee /sys/class/leds/led0/brightness
За постоянно изключване, добавете в /boot/config.txt
следния текст:
Raspberry Pi A+
# Disable the ACT LED
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
# Disable the PWR LED
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off
Raspberry Pi Zero W
# Disable the ACT LED on the Pi Zero
dtparam=act_led_trigger=none
dtparam=act_led_activelow=on
Categories
Сваляне на видео от YouTube
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo nano /etc/youtube-dl.conf
# Lines starting with # are comments
# Always extract audio
#-x
# Do not copy the mtime
--no-mtime
# Use this proxy
#--proxy 127.0.0.1:3128
# Save all videos under YouTube directory in your external hdd mount directory
-o ~/mnt/library/youtube/%(title)s.%(ext)s
ctrl-x
y
youtube-dl https://www.youtube.com/watch?v=kc_9RT4q8YA