Thursday, December 31, 2015

How to Uninstall Built-in System Applications on a Mac: Everything You Need to Know

Mac OS X offers no “Uninstall a program” interface like the one available in Windows. You have to uninstall applications by dragging their icons around — but what about applications that don’t have shortcuts, built-in system apps, and other corner cases?
Uninstalling most Mac applications is a simple process. But, for some applications, uninstalling them is much harder than it is on Windows. 


Mac OS X 10.11 El Capitan protects system files and processes with a new feature named System Integrity Protection. SIP is a kernel-level feature that limits what the “root” account can do.

What is System Integrity Protection?
On Mac OS X and other UNIX-like operating systems, including Linux, there’s a “root” account that traditionally has full access to the entire operating system. Becoming the root user — or gaining root permissions — gives you access to the entire operating system and the ability to modify and delete any file. Malware that gains root permissions could use those permissions to damage and infect the low-level operating system files.

Type your password into a security dialog and you’ve given the application root permissions. This traditionally allows it to do anything to your operating system, although many Mac users may not have realized this.

System Integrity Protection — also known as “rootless” — functions by restricting the root account. The operating system kernel itself puts checks on the root user’s access and won’t allow it to do certain things, such as modify protected locations or inject code into protected system processes. All kernel extensions must be signed, and you can’t disable System Integrity Protection from within Mac OS X itself. Applications with elevated root permissions can no longer tamper with system files.

How to Disable System Integrity Protection?

The System Integrity Protection setting isn’t stored in Mac OS X itself. Instead, it’s stored in NVRAM on each individual Mac. It can only be modified from the recovery environment.

  • To boot into recovery mode, restart your Mac and Hold “Command+R” as it boots. you’ll enter the recovery environment.
  • Click the “Utilities” menu and select “Terminal” to open a terminal window.
  • Type the following command into the terminal and press enter to check the status:
  •  "csrutil status" (you’ll see whether system Integrity protection is enabled or not).
  • To disable system Integrity protection, run the following command:        “ csrutil disable “
  • To enable system Integrity protection, run the following command:        “ csrutil enable “

Restart your Mac and your new System Integrity Protection setting will take effect. The root user will now have its full, unrestricted access to the entire operating system and every file..

Remove Built-in System Apps.

Macs also have no way to uninstall or install operating system features, so there’s no way to easily remove the many applications Apple included with your Mac.

On OS X 10.10 Yosemite and earlier, it was possible to open a terminal window and issue commands to delete these system apps, which are located in the /Applications folder. For example, running the following command in a terminal window would delete the built-in Chess app. Be very careful when typing the following command:

sudo rm -rf /Applications/app name.app

eg: sudo rm -rf /Applications/chess.app

or

Select the application you want to delete from the Application folder right click.
  • click on Get info.
  • application info window will open.
  • under sharing & Permissions (unlock the lock icon).
  • make > you have custom access everyone to "Read & write".
  • close the info window.
  • Now you will be able to delete the application.


                                                                                                                    please do it at your own risk.

Thursday, December 24, 2015

How to Completely Disable Notification Center in Mac OS X

Follow the following steps:

 First, launch the Terminal app from /Applications/Utilities
    Enter the following command, and press Return: 

    To Disable:
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist

To restore Notification Center:
    launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist

try this at your own risk. 

Thursday, July 30, 2015

How To Create Bootable Windows 10 USB Flash Drive

Step 1: Download Windows 10 media creation tool for 32-bit machines | 64-bit machines.
Step 2: Once downloaded, run the tool. When asked “What do you want to do?“, select the “Create installation media for another PC” and click “Next“.
Step 3: Select the relevant language and Windows 1o version from the selection field. There’s also an option to select 32-bit or 64-bit variant of Windows. Select your desired choices and Click “Next“.
Step 4: Insert the necessary USB flash drive into a free USB port on the computer. Make sure the drive is formatted correctly and has at least 4GB of available storage space. It’s best to actually use an entirely empty drive for this process as all the existing content will be overwritten.
Step 5: Make sure that “USB flash drive” is selected, and click “Next“.
Step 6: Point the tool at the relevant USB drive when prompted.
Step 7: The tool will then download the relevant files and create a USB bootable version of Windows 10. Hit the “Finish” button when done to end the process.

You can now use this USB flash drive during initial boot of your PC and do a fresh clean install of Windows 10.
Alternatively, in case of the need to perform an upgrade to a PC that is already running Windows 7 SP1, Windows 8.1 Update, or technical previews of Windows 10, simply accessing the flash drive within Windows and running setup.exeshould begin the upgrade process.
This should be enough to create an extremely handy bootable version of Windows 10 via USB for those instances where an upgrade or fresh installation is required.

http://www.redmondpie.com/how-to-create-bootable-windows-10-usb-flash-drive-guide/

Friday, July 17, 2015

How to control automatic downloads for music, books, and apps...

How to control automatic downloads for music, books, and apps.

If you have an iPhone and iPad, or a Mac, iCloud can automatically download any music, books, or apps you buy on one device onto any or all of the others. For example, if you downloaded a hot new game on your iPad, you can have it automatically appear on your iPhone (assuming the game is also iPhone-compatible). Purchase a classic song while out and about on your iPhone? You can make sure it's on your Mac when you get home.
It's incredibly convenient if you want everything anywhere and like living on automatic. If you use your devices differently and prefer to keep the distinct, however, you may want to set things to manual.
Luckily, the choice is yours—all you have to do is flick a few switches in Settings.

Automatic download details

iOS offers several types of automatic downloads:
  • Music: If you purchase a song from iTunes, it'll automatically be available on any compatible iPhone, iPad, iPod, or Mac that supports iCloud and is authorized to use your iTunes account.
  • Apps: Apps downloaded on one device are automatically downloaded to any other compatible device that has an active connection to the internet. Some iOS apps are universal and will download to both iPhone and iPad. Mac and iOS apps, on the other hand, aren't cross-compatible and will never automatically download to both.
  • Books: If you download a book in iBooks, it should automatically appear in your other instances of iBooks on iOS and OS X.
  • Updates: Updates are a little different, and will only apply on a per-device basis. Turn updates on if you want App Store updates to install automatically, without you having to first approve them via the App Store app. 

How to turn on automatic downloads for music, books, and apps on your iPhone and iPad

  1. Launch the Settings app on your iPhone or iPad. 
  2. Tap on iTunes & App Store.
  3. Under the Automatic Downloads section, turn On the options for the types of content you'd like to download automatically.

To disable Automatic Downloads, follow the same steps, but turn the appropriate switch Off.

How to turn off automatic downloads over cellular data

Having your automatic downloads happen no matter where you are, even off Wi-Fi and out and about on LTE or 3G can be incredibly convenient, but it can also eat away at your data plan. If that's something you want to avoid, you can easily turn off automatic downloads over cellular.
  1. Launch the Settings app on your iPhone or iPad. 
  2. Tap on iTunes & App Store.
  3. Under the Automatic Downloads section, turn Off the option for Use Cellular Data
Automatic downloads will still happen, but only when you're on Wi-Fi.

How to downgrade from OS X El Capitan back to OS X Yosemite

How to downgrade from OS X El Capitan back to OS X Yosemite

If you decide the OS X El Capitan public beta just isn't for you, you can downgrade to OS X Yosemite.
The OS X El Capitan public beta is a way to test the next generation of Mac software. If it turns out you don't enjoy the process, or would prefer to wait and try again later, you can go back to OS X Yosemite. Downgrading is a simple process, but it's also a bit of a chore. Don't worry, though, we'll walk you through it!
Note: If you're reading this article on the Mac you want to revert, either print it out first, or open it on iPhone, iPad, or another Mac so you can read along as you go.
If you made a bootable OS X Yosemite install drive before you went on the El Capitan beta, then simply plug it in, reboot, hold down the Option key, and you'll be on your way.
If not, you'll need to erase OS X El Capitan first, and then re-install.
  • How to erase OS X El Capitan
  • How to reinstall OS X Yosemite
  • How to restore your data from Time Machine

How to erase OS X El Capitan

  1. Make sure your Mac is connected to the internet over W-Fi or Ethernet.
  2. Go to the  menu and select Restart....
  3. Hold down Command+R while your Mac reboots.
  4. Click on Disk Utility in the OS X Utilities selector.
  5. Click Continue.

  6. Select your Startup Disk.
  7. Click on the Erase tap.
  8. Type in Macintosh HD for the name (or whatever you like.)
  9. Select Mac OS Extended (Journaled)* from the **Format list, if it isn't selected already.
  10. Click Erase.

Once it's done, quit Disk Utility and get ready to reinstall.

How to reinstall OS X Yosemite

  1. Click on Reinstall OS X in the OS X Utilities selector.
  2. Click Continue on the OS X Yosemite Installer.

    </br />
From this point on it's the same as a standard update, simply continue on and agree to the licensing terms as you go. When you're done, your Mac will reboot into OS X Yosemite.
Note: Depending how old your Mac is, you may get an older version of the installer—typically the one that originally shipped on your Mac (That's especially true if you end up in Internet Recovery mode).
If that happens, complete the installation of Lion, Mountain Lion, Mavericks, or whichever version you're offered, and when you're done and rebooted, go to the Mac App Store and re-run the OS X Yosemite update.

How to restore your data from Time Machine

You should be asked if you want to restore from Time Machine as part of the reinstallation process. If not, or if you choose not to, you can restore at any time.
  1. Power up or restart your Mac.
  2. Hold down Command+R while your Mac boots.
  3. Click Restore from Time Machine Backup from the OS X Utilities menu.
  4. Click Continue.
  5. Read the  Restore Your System page and click Continue.
  6. Select your Time Machine backup
  7. Click Continue.
  8. Select the most recent backup of your drive and click Continue
Your Mac will then restore from Time Machine and reboot. The process can take a while so, depending on network speeds and the amount of data, so be patient.
If you run into any trouble or have any questions, ask away in the comments!

Swift - Interactive playgrounds

Swift. A modern programming language that is safe, fast, and interactive.


Interactive Playgrounds

Playgrounds make writing Swift code incredibly simple and fun. Type a line of code and the result appears immediately. You can then Quick Look the result from the side of your code, or pin that result directly below. The result view can display graphics, lists of results, or graphs of a value over time. You can open the Timeline Assistant to watch a complex view evolve and animate, great for experimenting with new UI code, or to play an animated SpriteKit scene as you code it. When you’ve perfected your code in the playground, simply move that code into your project.
And new in Xcode 7, playgrounds can contain comments that use rich text with bold, italic, and bullet lists in addition to embedded images and links. You can even embed resources and supporting Swift source code in the playground to make the experience incredibly powerful and engaging, while the visible code remains simple. Playgrounds let you:
  • Share curriculum to teach programming with beautiful text and interactive code.
  • Design a new algorithm and watch its results every step of the way.
  • Create new tests and verify they work before promoting into your test suite.
  • Experiment with new APIs to hone your Swift coding skills.
  • Turn your experiments into documentation with example code that runs within the playground.
Read-Eval-Print-Loop (REPL). The LLDB debugging console in Xcode includes an interactive version of the Swift language built right in. Use Swift syntax to evaluate and interact with your running app, or write new code to see how it works in a script-like environment. Available from within the Xcode console or in Terminal.

Learn More: https://developer.apple.com/swift/#playgrounds

Manage Apple Music Membership

Join on your Mac or PC

  1. Open iTunes. Make sure that you have the latest version.
  2. In the upper-left corner, click the Music   icon.
  3. From the top of iTunes, click For You.
  4. Click Start 3-Month Free Trial.
  5. Select Individual or Family membership, then click Next.
  6. If prompted, enter your Apple ID and password that you use with the iTunes Store. If you don't have an Apple ID, click Create Account.
  7. You might be asked to validate your billing info. After you add a payment method, click Join. You can use store credit to pay for your Apple Music membership, but you must have enough store credit for your first renewal.
  8. If prompted, agree to the terms and conditions.

More details wise.
  1. Open iTunes.
  2. Click Sign In and enter your Apple ID.
  3. Click your name, and select Account Info from the menu.
  4. Enter your password again.
  5. On the Account Information screen:
    1. Scroll to the Settings section. 
    2. To the right of Subscriptions, click Manage. If you have more than one subscription, then click Edit to the right of Your Membership (Apple Music Membership). 
    3. To the right of Automatic Renewal, select Off. When asked to confirm, click Turn Off.
    4. Click Done to return to Account Information, and then click Done to return to the iTunes Store.
On your iPhone, iPad, or iPod touch:
  1. In Settings, tap Music.
  2. Turn on Show Apple Music.
  3. Tap Join Apple Music.
  4. Tap the For You tab, and then tap Start 3-Month Free Trial. 

Visit: https://support.apple.com/en-us/HT204939

Saturday, January 10, 2015

Terminal Commands

cd

change directory

chown

change ownership

chmod

change permission modifiers

cp

copy a file or directory

sudo

DANGER! become super user root DANGER!

xargs

execute arguments

exit

exit the shell

export

export/set a new environment variable

find

find files

grep

find things inside files

apropos

find what man page is appropriate

ls

list directory

env

look at your environment

mkdir

make directory

mv

move a file or directory
                    hostname
my computer's network name

less

page through a file

popd

pop directory

echo

print some arguments

cat

print the whole file

pwd

print working directory

pushd

push directory

man

read a manual page

rmdir

remove directory