Wednesday, February 19, 2014

Mac OS X - Enable Screen Sharing (VNC) via the command line

The following command should be typed as one line of text.
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw VNCPASSWORD -restart -agent -privs -all

Thursday, January 30, 2014

PowerShell - Change Computer Name

Execute the command below and restart the computer.

$computerName = Get-WmiObject Win32_ComputerSystem
$name = "New Computer Name"
$computername.rename("$name")

Thursday, January 23, 2014

Mac OS X - Install wget via the command line


curl -O http://rudix.googlecode.com/files/wget-1.12-0.dmg
hdiutil mount wget-1.12-0.dmg
sudo installer -package /Volumes/wget.pkg/wget.pkg -target "/Volumes/Macintosh HD"
hdiutil unmount "/Volumes/wget.pkg/"

Wednesday, January 8, 2014

Enable VNC Remote Controll Macbook Pro


1. Go to System Preferences -> Sharing -> Remote Management
2. Check "Allow access for All Users"
3. Click on "Computer Settings"
4. Check "Anyone may request permission to control screen"
5. Check "VNC viewers may control screen with password" (Enter your own password)
6. Hit "OK" and done.


Tuesday, January 7, 2014

PowerShell - How to Enable-PSRemoting on Windows XP

1. Use Command Prompt and run "Secpol.msc" to bring up Local Security Settings.
2. Go to Local Policies -> Security Options
3. Double click on "Network access: Sharing and security model for local accounts"
4. Change to "Classic - local users authenticate as themselves" and hit OK.
5. Enter PowerShell and execute the following commands:
Enable-PSRemoting -Force
Set-Item wsman:\localhost\client\trustedhosts *
Restart-Service WinRM

Done!


Saturday, January 4, 2014

iPhone/iOS - Change Mac Addres


Supported version: All iOS version (3,4,5, 6, 7)

Change mac address:
nvram wifiaddr=XX:XX:XX:XX:XX

Restore to the original mac address:
nvram -d wifiaddr

Restart iPhone after executing change/restore command above to finish the process:
reboot

Friday, November 15, 2013

Powershell - Enable Firewall Rules


netsh advfirewall firewall set rule group="Remote Administration" new Enable=yes
netsh advfirewall firewall set rule group="Remote Desktop" new Enable=yes
netsh advfirewall firewall set rule group="Remote Event Log Management" new Enable=yes
netsh advfirewall firewall set rule group="Remote Service Management" new Enable=yes
netsh advfirewall firewall set rule group="Remote Scheduled Tasks Management" new Enable=yes
netsh advfirewall firewall set rule group="Remote Volume Management" new Enable=yes
netsh advfirewall firewall set rule group="Windows Firewall Remote Management" new Enable=yes
netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new Enable=yes
netsh advfirewall firewall set rule group="File and Printer Sharing" new Enable=yes
netsh advfirewall firewall set rule group="Performance Logs and Alerts" new Enable=yes