Sunday 5 August 2018

How to make our Mac into a WiFi Hotspot

Our Mac can function as a wireless hotspot, which allows us to connect other devices to it and share its Internet connection.
This is most useful feature by Mac if our Mac is connected to a wired network via Ethernet. We can connect any wireless devices to Mac and share the wired Internet connection with any wireless device and almost as our Mac works a wireless router.
Below are the steps to achieve this:

Enable Internet Sharing and Configure Your Hotspot

The Wi-Fi hotspot option is part of the “Internet Sharing” feature in macOS. You’ll find it in the System Preferences window. Click the Apple menu, select System Preferences, and click the Sharing icon.

Select the “Internet Sharing” option in the list. You’ll now need to select the Internet connection you want to share with the devices.
The one big limitation is that you can’t both be connected to a Wi-Fi network and host a Wi-Fi network at the same time.
For example, let’s say your Mac is connected to the Internet through an Ethernet adapter. You’d select Ethernet in the list at the top of the window and share that wired connection over Wi-Fi. If you’re connected via Bluetooth or tethered to an iPhone via a USB cable, you could also select those.
In the “To computers using” box, enable the Wi-Fi option. This will create a Wi-Fi hotspot, and the Internet connection you selected at the top of the window will be shared with devices that connect to the Wi-Fi network.
Click the “Wi-Fi Options” button at the bottom of the window to configure your Wi-Fi hotspot. Select your preferred network name and the best Wi-Fi channel.
Be sure to click the “Security” box and select “WPA2-Personal” and provide a password. By default, the hotspot will be configured without a password and anyone will be able to connect.
When you’re done setting things up, click the checkbox to the left of Internet Sharing and click Start to activate your Wi-Fi hotspot.

Monday 23 July 2018

How to Install Java in macOS

The best approach to install Java on the Mac is to get the latest version of Java JRE directly from Oracle. This is fairly straight forward and you can either initiate the process from the terminal application in macOS or by going directly to the Java download page on Oracles website.
Open the Terminal app and type the following:
java
Click on the “More Info” button to jump to the Java downloads page in a web browser
Start installing Java on MacOS
Start installing Java on MacOSThis will allow you to download and install the newest most recent version of Java available for the Mac, which is currently JRE8.

Remove Oracle Java cache on Mac

Below are the steps to clear Java cache from any Mac machine:

  1. Click on the Finder icon located in your dock
  2. Click on Go in the Finder menu
  3. Click on Utilities
  4. Double-click on the Terminal icon
  5. In the Terminal window Copy and Paste the commands below:
    rm -r ~/"Library/Application Support/Oracle/Java"

Uninstall Oracle Java using the terminal from any Mac machine

Note: To uninstall Java, you must have Administrator privileges and execute the remove command either as root or by using the sudo tool.

Remove one directory and one file (a symlink), as follows:
  1. Click on the Finder icon located in your dock
  2. Click on Go in the Finder menu
  3. Click on Utilities
  4. Double-click on the Terminal icon
  5. In the Terminal window Copy and Paste the commands below:
    sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
    sudo rm -fr ~/Library/Application\ Support/Oracle/Java
Do not attempt to uninstall Java by removing the Java tools from /usr/bin. This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the OS.