2019-07-29

videochiamate (whatsapp e simli) su linux

Sconsigliatissimo whatdesk (via snap): non fa video né audio chiamate; fa le stesse cose di whatsappweb, solo consumando molto più spazio e memoria.

Un po' meglio Franz, anche come appimage, che però fa videochiamate solo con Skype, non con Whatsapp o Icq (anche lì: fa lo stesso delle corrispondenti pagine web).

start autokey minimized

delete -c from command:

autokey-gtk -c -> autokey-gtk

2019-07-28

programmare (schedule) un evento

Si può usare, in Linux, crontab. Così:

1. Create uno script. Ad esempio, se volete che vi sia ricordato di bere:

#!/bin/sh

kdeconnect-cli --ping-msg "ricordati di bere!" -d d30fdc9ed6e2bf56
play /mnt/musica/avviso.wav &&
zenity --info --display=:0.0 \
    --text="Time is $(date +%Hh%M)\n\nricordati di bere." \
    --title="drink time"


2. creare un evento crontab
    a. in un terminale digitale crontab -e
    b. digitare, ad esempio in nano, 30 8-11,15-18 * * * /path/to/script

Per vedere se il sistema ha salvato correttamente il proprio file di cron, digitare il seguente comando:
crontab -l
 
3. Per avere anche sullo smartphone l'avviso dovete avere kdeconnect
  Fatto!

2019-07-26

start boot service in Linux

  1. Run this command
    sudo nano /etc/systemd/system/YOUR_SERVICE_NAME.service
  2. Paste in the command below. Press ctrl + x then y to save and exit
    [Unit]
    Description=lampp
     
    [Service]
    ExecStart=/opt/lampp/lampp start
    ExecStop=/opt/lampp/lampp stop
    Type=forking
     
    [Install]
    WantedBy=multi-user.target
  3. Reload services
    sudo systemctl daemon-reload
  4. Enable the service
    sudo systemctl enable YOUR_SERVICE_NAME
  5. Start the service
    sudo systemctl start YOUR_SERVICE_NAME
  6. Check the status of your service
    systemctl status YOUR_SERVICE_NAME
  7. Reboot your device and the program/script should be running. If it crashes it will attempt to restart

mount ntfs disk as non-root user

You can use udisksctl command.
F.e.
udisksctl mount -b /dev/disk/by-uuid/40B133AC2360CFAF
or
udisksctl mount -b /dev/disk/by-label/hd.esterno
 

read text in LibreOffice

1) La soluzione  migliore non è espeak, ma pico (python -> pico). Bisogna ovviamente installare le librerie di pico (sudo apt install libttspico-utils).
2) per modificare le opzioni tootls -> add-ons-> read text
3) installare preferibilmente smplayer e settarlo per i files wav.
Cfr. qui.

condividere tags tra Digikam e Dolphin (/baloo)

Occorre avere una versione non-appimage di Digikam.
Poi andare in settings -> metadata -> baloo e selezionare la sincrinizzazione.

Blog Archive