Script remote desktop

From
Revision as of 10:32, 1 November 2019 by Daniel (talk | contribs) (Created page with "#!/bin/bash # Loop without an end while : do # For details see man of rdesktop rdesktop -f -z -a 24 -x broadband -k de -r sound:local -u "UUSER" -p "PASSWORD" 172.17.112.17 #...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  1. !/bin/bash
  2. Loop without an end

while : do

  1. For details see man of rdesktop

rdesktop -f -z -a 24 -x broadband -k de -r sound:local -u "UUSER" -p "PASSWORD" 172.17.112.17

  1. After disconnect check for xsession

lxalive=$(ps -ae|grep lxsession);

  1. Do $lxalive exists?

if [ ! -n "$lxalive" ]; then

  1. You have to do init 0 with sudo, because you are logged in as user pi

sudo init 0 fi #EndIf done

  1. End Loop