Skip to content

Blog

Autostart Synergy before logging in (LightDM)

Add this line in /etc/lightdm/lightdm.conf: greeter-setup-script=/usr/bin/synergyc <OPTIONS> <SERVER HOSTNAME> session-setup-script=/usr/bin/killall -w synergyc ession-cleanup-script=/usr/bin/killall -w synergy display-stopped-script=/usr/bin/killall -w synergyc

mysql_backup.sh

#!/bin/bash prefixe=backup suffixe=$(date +%Y%m%d) filename=$prefixe$suffixe.sql host=host database=database user=user characterSet=UTF8 mysqldump –skip-comments \ –complete-insert \ –default-character-set=$characterSet \ –no-create-info \ –skip-add-locks \ –skip-opt \ –host $host \… Read More »mysql_backup.sh

Prompt linux

PS1=“\[\e[30;1m\](\[\e[34;1m\]\A\e[30;1m\])-(\[\e[34;1m\]\u@\h\[\e[30;1m\]\[\e[30;1m\]:\[\[\e[32;1m\]\w\[\e[30;1m\])> \[\e[0m\]“