Linux kde kubuntu how to check ssd crucial lifetime


Run this , i have sda like dev you could have sdb etc etc

sudo smartctl -a /dev/sda

grepping for crucial : 0x0031

sudo smartctl -a /dev/sda| grep 0031

You should get this

Percent_Lifetime_Used   0x0031   096   096   000    Pre-fail  Offline- 4

means i used 4 % of CRUCIAL LIFETIME

send an email via bash terminal linux


sendemail works!
just enable when needed in this page :
https://www.google.com/settings/security/lesssecureapps

then you can do your silly stuff

 

SENDER="myaccount@gmail.com"
MAILTO="receiver@gmail.com"
PASSWORD="yoursillypassword"
TITLE="e-MAIL SENT WITH SENDMAIL"
MESSAGE="Hello this is a mail from my linux terminal"
sendemail -o tls=yes -f "$SENDER" -t "$MAILTO" -s smtp.gmail.com:587 -xu "$SENDER" -xp "$PASSWORD" -u "$TITLE" -m "$MESSAGE"

if you want add an attachment you need to do :

SENDER="myaccount@gmail.com"
MAILTO="receiver@gmail.com"
PASSWORD="yoursillypassword"
TITLE="e-MAIL SENT WITH SENDMAIL"
ATTACHMENT="/path/tofile"
MESSAGE="Hello this is a mail from my linux terminal"
sendemail -o tls=yes -f "$SENDER" -t "$MAILTO" -s smtp.gmail.com:587 -xu "$SENDER" -xp "$PASSWORD" -u "$TITLE" -m "$MESSAGE" -a "$ATTACHMENT"

How to set super key win key like shortcut for kde menu or other kubuntu launcher ONLY PLASMA5.8


Hello now that i am going to plasma5 series i am updating some articles and here it is you wanna just press the silly WIN key and get the kde menu on the screen ?!!

here it is

kate ~/.config/kwinrc

now add this shit 😀

[ModifierOnlyShortuts]
Meta=org.kde.plasmashell,/PlasmaShell,org.kde.PlasmaShell,activateLauncherMenu
Shift=
Alt=
Control=

some interesting thing you could just link shift withfor example

  org.kde.krunner,/App,,display