ARDOverSshForwardScriptExample: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Script Source == | |||
#!/bin/tcsh | #!/bin/tcsh | ||
# | # | ||
Line 10: | Line 9: | ||
# | # | ||
# Notes: | # Notes: | ||
# Does not need be run as root | # Does not need be run as root or administrator. :-) | ||
# | |||
# After starting/loggin in (ssh), connect Remote Desktop to 127.0.0.1. Done. | |||
# | |||
# ARD Ports: | |||
# 5900 TCP: <nowiki>Observe/Control</nowiki> | # 5900 TCP: <nowiki>Observe/Control</nowiki> | ||
# 5900 UDP: Send Screen | # 5900 UDP: Send Screen | ||
Line 16: | Line 19: | ||
# 3283 UDP: Everything else | # 3283 UDP: Everything else | ||
# 5988 TCP: WBEM if enabled | # 5988 TCP: WBEM if enabled | ||
open <nowiki>/Applications/Remote\ Desktop.app</nowiki> & | |||
sleep 10 | |||
kill -1 `ps -wwwaux | grep <nowiki>ARDAgent.app</nowiki> | grep -v grep | awk '{printf $2}'` | |||
kill -1 `ps -wwwaux | grep <nowiki>AppleVNCServer.bundle</nowiki> | grep -v grep | awk '{printf $2}'` | |||
sleep 2 | |||
ssh -L 3283:remotehostethernetip:3283 -L 5900:remotehostethernetip:5900 user@remotehost | |||
== Script File == | |||
You may download my script here: [[Media:Heikodoardforward.zip]] | |||
: | [[Category:Development]] | ||
: | [[Category:Shell]] | ||
Latest revision as of 01:21, 17 June 2011
Script Source
#!/bin/tcsh # # Filename: doardforward.command # Author: Heiko, as usual. # History: # 2005-10-10, 09:21: ARD forward! # 2006-01-27, 21:00: Hmm, doesn't work anymore. (Thanks Brian for pointing out) # # Notes: # Does not need be run as root or administrator. :-) # # After starting/loggin in (ssh), connect Remote Desktop to 127.0.0.1. Done. # # ARD Ports: # 5900 TCP: Observe/Control # 5900 UDP: Send Screen # 3283 TCP: Reporting # 3283 UDP: Everything else # 5988 TCP: WBEM if enabled open /Applications/Remote\ Desktop.app & sleep 10 kill -1 `ps -wwwaux | grep ARDAgent.app | grep -v grep | awk '{printf $2}'` kill -1 `ps -wwwaux | grep AppleVNCServer.bundle | grep -v grep | awk '{printf $2}'` sleep 2 ssh -L 3283:remotehostethernetip:3283 -L 5900:remotehostethernetip:5900 user@remotehost
Script File
You may download my script here: Media:Heikodoardforward.zip