evitar desgaste sdcard no linux
começar por substituir o rsyslog pelo busybox-syslogd que funciona na ram:
apt install busybox-syslogd
apt purge rsyslog
adicionar ao sistema raiz noatime,commit=1800
começar por substituir o rsyslog pelo busybox-syslogd que funciona na ram:
apt install busybox-syslogd
apt purge rsyslog
adicionar ao sistema raiz noatime,commit=1800
<?xml version="1.0" encoding="UTF-8"?>
hipótese 1:
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=setting -sOutputFile=output.pdf input.pdf
o setting pode ser: /screen, /ebook, /printer e /prepress
https://www.techwalla.com/articles/disadvantages-to-the-pdf-format
xfce4-panel --quit;pkill xfconfd;rm -r ~/.config/xfce4;xfce4-panel
Preparation
Prepare a mount point for your data and change ownership.
# Create a mount point
sudo mkdir /media/cryptoUSB
# Set permissions for the owner
sudo chown stefan:stefan /media/cryptoUSBCreate an Encrypted Device
Encrypt the device with LUKS. Note that all data on the partition will be overwritten during this process.
# Create encrypted device
sudo cryptsetup --verify-passphrase luksFormat /dev/sdX -c aes -s 256 -h sha256
começamos por adicionar ao final do ficheiro /etc/lightdm/lightdm.conf (#nano /etc/lightdm/lightdm.conf) o texto que se segue, substituindo na 2ª linha o nome de utilizador (aldina neste caso) pelo pretendido:
[SeatDefaults]
autologin-user=aldina
autologin-user-timeout=0
autologin-session=xfce
depois de gravarmos o ficheiro (CTRL + X; S; Enter) executamos os comandos seguintes substituindo no último o nome de utilizador (aldina neste caso) pelo pretendido:
#groupadd -r autologin
#gpasswd -a aldina autologin