Adding ssh agent
This commit is contained in:
@ -30,6 +30,8 @@ xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorVirtual1/workspace3/la
|
||||
echo "Installation des logiciels tierces"
|
||||
sudo apt install keepassxc -y
|
||||
|
||||
# Configuration de keepass
|
||||
|
||||
DIR=$(dirname "$0")
|
||||
cd $DIR
|
||||
folder=$(find $HOME/.mozilla/firefox -type d -name "*.default-release")
|
||||
@ -47,3 +49,7 @@ EOF
|
||||
|
||||
sudo bash -c 'echo "vm.swappiness=1" >> /etc/sysctl.conf'
|
||||
|
||||
ln -sf $(pwd)/systemd/ssh-agent.service $HOME/.config/systemd/user/ssh-agent.service
|
||||
systemctl enable --user ssh-agent
|
||||
|
||||
# Configuration de l'écran de vérouillage
|
||||
|
8
scripts/maintenance.sh
Normal file
8
scripts/maintenance.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
sudo apt update -y
|
||||
sudo apt upgrade -y
|
||||
sudo apt autoclean -y
|
||||
sudo apt clean -y
|
||||
sudo apt autoremove -y
|
||||
sudo apt purge ~c -y
|
||||
|
13
systemd/ssh-agent.service
Normal file
13
systemd/ssh-agent.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=SSH key agent
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
||||
# DISPLAY required for ssh-askpass to work
|
||||
Environment=DISPLAY=:0
|
||||
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
Reference in New Issue
Block a user