Mod:Hunt Research Group/mac remote
Appearance
Back to the main wiki-page
set-up system preferences on your office mac
- This only works without a firewall
- System Preferences -> Sharing -> Remote Management.
- Allow access for "only these users" and set appropriate limits
- You can then access the remote mac through the Finder on the sidebar under the Shared browser.
- This will show you all the machines on your local network that have sharing on. Click on the mac you want to connect to, don't worry that is "connects" you only as guest when you use the share screen button this will connect you as a particular user and not guest.
screen sharing through a firewall
- you need a VNC viewer on your home mac
- common client is chicken of the VNC (free) http://sourceforge.net/projects/cotvnc/
- start up a VNC client (and thats all you need to do!)
- in Applications "Chicken of the VNC.app"
- you may need the IP address of your office mac
- in which case ssh into the machine
- type "/sbin/ifconfig"
- in the list that follows you want the number after "inet"
- so you went to fullscreen and cannot recover supposedly (none of these worked for me)
- ctrl+alt+cmd+'
- or ctrl+alt+cmd+shift+'
- or ctrl+alt+cmd+§
- so the remote screen is much larger than your current screen, use window zoom and then try to resize
- the green dot in the mac window will resize any window to the whole screen if you loose the edges (if its not working as in iTunes, hold the option key and then the green button)
to start an application remotely using ssh
- use the terminal application
- ssh in, ie user@mac.ch.ic.ac.uk
- enter password
- then cd to Applications and type "open application"
- the application will then run on the remote mac
screen sharing without setting up system pref beforehand
- CAREFUL! only do this if you know about using terminal commands
- ssh into the remote (office) mac with an admin login
- enable the remote management via the kickstart utility
- for help
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -help
- options (uninstall/install, deactivate/activate, configure, stop/restart)
- these then have sub-options
- use "-restart -agent" to restart
- "-agent" restarts the ARD agent and helper
- "-console" restarts the console application
- "-menu" restarts the menu extra
- use "-restart -agent" to restart
- to set the configure options
- use "-configure -access -on" to enable access for all users
- use "-configure -access -off" to disable access for all users
- access privlages (delete files, control and observe, open and quit applications etc)
- use "-users admin -privs -all" to enable all access privileges for all admin users
- use "-users guest -privs -none" to disable all access privileges for specified user=guest
- access options
- use "-allowAccessFor -specifiedUsers" grant access to users with privileges
- use "-clientopts -setvnclegacy -vnclegacy yes" allow VNC legacy password mode
- use "-clientopts -setvncpw -vncpw mypasswd" set VNC legacy password, this should be a new password not your login one.
- Activate Remote Desktop Sharing, enable access privileges for all users, restart ARD Agent
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -privs -all -restart -agent
- Activate Remote Desktop Sharing, enable access privileges for the users "admin", grant full privileges for the users "admin", restart ARD Agent and Menu extra
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users admin -privs -all -restart -agent -menu
- turn on the screen sharing
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users admin -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -privs -all -restart -agent
- when you are done turn off the screen sharing
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off