Skip to main content

Posts

Showing posts with the label MacOS

How to show hidden folders in Mac OS in Finder

  To show hidden files and folders on a Mac,  open Finder and press the Command (⌘) + Shift + Period (.) keys simultaneously .  The hidden files will appear with a faded or semi-transparent look.  To hide them again, press the same keyboard shortcut.   Using the Keyboard Shortcut Open any Finder window.   Navigate to the folder where you want to view hidden files, such as your Macintosh HD folder.   Press and hold the Command, Shift, and Period keys all at the same time.   Hidden files and folders will appear.   To hide them again, repeat the same key combination.   Using Terminal (Alternative Method) Open Terminal by searching for it in Spotlight (magnifying glass icon).   Enter the following command and press Return:  defaults write com.apple.finder AppleShowAllFiles YES .   Hold down the Option key, right-click the Finder icon in the Dock, and select Relaunch to apply the changes.   To hide all files again, you can...

"Passwords" button stuck in the desktop in mac OS

There is an annoying "passwords" button stuck on the Mac OS desktop. Check this link out for a detailed description & probable workarounds. Pressing cmd+ left click helped me get rid of it in my case.   https://discussions.apple.com/thread/252109550?answerId=254260694022&sortBy=rank#254260694022

Run windows apps through Wine emulator on Mac OS Apple Silicon

  https://macappstore.org/whiskey/   About the App App name : Whiskey App description : whiskey (App: Whiskey.app) App website :  http://usewhiskey.com/ Install the App Press  Command+Space  and type  Terminal  and press  enter/return  key. Copy and paste the following command in Terminal app: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"  and press  enter/return  key. Wait for the command to finish. If you are prompted to enter a password, please type your Mac user's login password and press ENTER. Mind you, as you type your password, it won't be visible on your Terminal (for security reasons), but rest assured it will work. Now, copy/paste and run this command to make  brew  command available inside the Terminal:  echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile Copy and paste the following command: brew install --cask whiskey Done! You can ...

Prevent a Macbook from sleeping when the lid is closed when power is not connected

The external monitor gets turned off by default when the Macbook monitor lid is closed. Here is how you can override this behavior.   Open terminal & execute the  sudo pmset -a disablesleep 1 You can reverse this setting by running the below command in the terminal sudo pmset -a disablesleep 0 The other regular way for the external monitor to remain ON is as below: Connect to power. Connect to external monitor. Close lid.

[MacOS BigSur 11.4] Issue with Pulse Secure client on Apple Silicon based macbook M1 laptop

 If you happen to buy or get your hands on the Apple Macbook Pro M1 or Macbook Air M1 based on the Apple M1 silicon chip there are a few things that might be helpful if you need to connect to your corporate VPN network using Pulse Secure application. In my case, I did have my initial doubts if the pulse secure app will work successfully or not. My doubt turned out to be true and it did not work correctly out of the box. If you download the Intel-based Pulse Secure version 9.1.9  application from Pulse secure website or from your company website, the application will not be able to successfully connect to your corporate network. It will time out with a network error!! Googled out a bit & to my luck found this community post from Pulse Secure community website  https://community.pulsesecure.net/t5/Pulse-Connect-Secure/PSAL-failed-to-Launch-Java-Applet-MacOS-Catalina-10-15-4/m-p/45177/highlight/true#M28690   It turned out that you will need to install Oracle Java 25...

Installing pip with get-pip.py in a Python virtual environment on Windows MacOS & Linux

To create a Python virtual environment type below commands on the required console prompt: On Windows     python -m venv ./venv     .\venv\Scripts\activate On Ubuntu     python3 -m venv ./venv      source ./venv/bin/activate There are some exceptional cases where vent creation might fail. Here are some workarounds - https://askubuntu.com/questions/1268833/error-command-path-to-env-bin-python3-7-im-ensurepip-upgrade Exiting a Python Virtual Environment 1 2 3 To exit a Python virtual environment, you can use the  deactivate  command. This command is available in most Unix-like systems and Windows. Example $ deactivate Steps to Exit Virtual Environment 1. Using deactivate Command The most common way to exit a virtual environment is by using the  deactivate  command 1 . Example: $ deactivate 2. Using source deactivate In some cases, especially with certain virtual environment management tools like  virt...