VNC OS X – przydało się :)

How to Remotely Turn On (and off) OS X Screen Sharing

This procedure keeps security in mind.  The idea is to turn on screen sharing while you need it, and then turn it off when you’re done.  Also, the write-ups of Tim Boland and Chris Brewer were very helpful in figuring this out.

1)  SSH into your remote OS X machine with an administrator’s log in and password.

2) Enable Remote Desktop (a.k.a. Screen Sharing, a.k.a. VNC) with this command:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/
Resources/kickstart -activate
-configure -access -on -clientopts -setvnclegacy -vnclegacy
yes -clientopts -setvncpw -vncpw mypasswd
-restart -agent -privs -all

3) Login using a VNC client. As I mentioned, TightVNC worked for me; for some reason, RealVNC and UltraVNC didn’t.  Your password is “mypasswd” (see the -vncpw flag in the above command;  you can — and should — change this).

4) When you are done, turn of screen sharing using your SSH session:

sudo /System/Library/CoreServices/RemoteManagement/
ARDAgent.app/Contents/Resources/kickstart
-deactivate -configure -access -off

źródło:

http://technotes.twosmallcoins.com/?p=279

Jak zmienić lub wyczyścić nadmiarowe profile sieci w Windows 7?

Wszystko ładnie opisane:

To merge, delete, rename or change the icon for network locations in Windows 7….

1) Open the „Control Panel”

2) Select and open „Network and Sharing Center”

3)Click on the „Icon”(a house icon for me) under „View your active networks”. This will open the „Set Network Properties” dialogue. Here you can rename a network connection or change the icon for that network connection.

4)Click on „Merge or Delete Network Locations” to see a list of stored network connections. You can merge or delete connections here as well as see if a network connection is in use and managed or unmanaged.

I found the need for this myself as I had my current internet connection being called out as „Network 4”. I wanted to find out what happened to Networks 1,2 & 3. I deleted all but my active Network as this is a Desktop system with one internet connection. I renamed it From Network 4 to my ISP’s name.

źródło

acl i flag pod macintoshem

Gdy po zastosowaniu
chmod -R 777 folder – plików nie można kasować przenosić
rozwiązanie:
ls -le (wyświetlenie z acl)
usunięcie złośliwej acl
chmod -a# 0 <nazwa_pliku> (usunięcie pierwszej acl)
sudo chmod g+rwx "Copy of index.php" 

chmod: Unable to change file mode on Copy of index.php: Operation not permitted
rozwiązanie:
SetFile (and Dev tools) not needed.

chflags nouchg
/path/to/item

will do that trick as well (and chflags comes on all OSX Macs).

Probably the most important command for users to learn is ls

ls -lOe
/path/to/item

źródło: