#664
https://modern.ie/en-us/virtualization-tools
Just another Code Snippet site
#664
https://modern.ie/en-us/virtualization-tools
#2322
Unsecure app must be allowed on Gmail : https://myaccount.google.com/lesssecureapps
Install SSMTP and Mpack
sudo apt-get update sudo apt-get install -y ssmtp mpack
edit: /etc/ssmtp/ssmtp.conf
root=rpi3abc@gmail.com mailhub=smtp.gmail.com:465 FromLineOverride=YES AuthUser=rpi3abc@gmail.com AuthPass=testing123 UseTLS=YES
Send mail :
mpack -s subject picture.png mail.address@example.com
sudo apt-get update sudo apt-get install -y ffmpeg
ffmpeg -y -i rtsp://admin:admin@192.168.10.113:554/live -vframes 1 do.jpg
#!/bin/bash ## ------------------- ## ## Vars ## ------------------- ## timestamp=`date +%Y%m%d-%H%M%S` humanReadableDate=`date "+%d/%m/%Y %H:%M"` recipient=aaa@blogger.com liveStreamUrl="rtsp://192.168.100.233:554/user=admin_password=OmvItLOM_channel=1_stream=0.sdp?real_stream" ## ------------------- ## ## Capture live stream ## ------------------- ## #ffmpeg -y -i $liveStreamUrl -vframes 1 "/tmp/${timestamp}.jpg" #ffmpeg -rtsp_transport tcp -y -i $liveStreamUrl -f image2 -vframes 1 "/tmp/${timestamp}.jpg" ffmpeg -rtsp_transport tcp -y -i $liveStreamUrl -vframes 1 "/tmp/${timestamp}.jpg" ## ------------------- ## ## Send Mail ## ------------------- ## mpack -s "${humanReadableDate}" "/tmp/${timestamp}.jpg" $recipient ## ------------------- ## ## Remove Picture ## ------------------- ## rm -Rf "/tmp/${timestamp}.jpg"
0 9,14 * * * /bin/bash /home/pi/sendImage.sh
Picture at 9:00 and 14:00 everyday
sudo service cron reload
#196
%0 is the program name as it was called
%1 is the first command line parameter
%2 is the second command line parameter
(until %9)
#434
Command :
net use <drive_letter>: \\computer_name\share_name
Example :
net use t: \\computerA\tmpFolder
#2364
Fix copy/paste issue in RDP :
http://woshub.com/cant-copy-paste-via-remote-desktop-rdp-clipboard/#:~:text=Using%20the%20Task%20Manager%2C%20you,working%20in%20the%20RDP%20session.