18 lines
548 B
Bash
18 lines
548 B
Bash
|
#!/bin/bash
|
||
|
SSH_HOST=strangeplace.net
|
||
|
SSH_PORT=2200
|
||
|
SSH_USER=karin
|
||
|
gsettings set org.gnome.Vino enabled true
|
||
|
gsettings set org.gnome.Vino prompt-enabled false
|
||
|
/usr/lib/vino/vino-server 2>/dev/null &
|
||
|
vino_pid="$!"
|
||
|
#echo $! > /tmp/open_door_vino.pid
|
||
|
ssh -C -N -R 5900:localhost:5900 -p $SSH_PORT $SSH_USER@$SSH_HOST &
|
||
|
ssh_pid="$!"
|
||
|
#echo $! > /tmp/open_door_ssh.pid
|
||
|
zenity --info --text "Fernzugriff aktiv!" --ok-label="Beenden"
|
||
|
kill $vino_pid
|
||
|
kill $ssh_pid
|
||
|
gsettings set org.gnome.Vino enabled false
|
||
|
gsettings set org.gnome.Vino prompt-enabled true
|