Mac Settings
Table of Contents
Software that HEP poeple need on mac
…
- Zoom
- Download Mac
self service
from CERN: link. This will be download in background once you enroll and install proper certificates. Then from self-service one can install following software:- xquartz (needed for visulations, as Mac OSX does not come with an X11 server installed.)
- cernbox app
- Mattermost app
- Joplin (note taking software)
- Latex and others
- Apple app store
- xcode
- Numbers
- Keynote
- Pages
- Todoist: To-Do List & Task
- Sublime text
- package control
- sftp
- AllAutocomplete: Autocomplete word from all open files.
- Terminal : Launch terminal from current file folder
- A File Icon: Sublime text file-specific icons for improved visual grepping
- BracketHighligher
- Expand selection to quotes: plugin to expand selection to surrounding quotes
- AutoDocstring Plugin for inserting / updating docstrings in Python after analyzing function parameters and the like
- Anaconda This turns your Sublime Text into a full featured Python IDE.
-
Visual Studio:
Some details about problems faced and how to resolve is summarised here: link
-
Download Homebrew (https://brew.sh).
Just paste below command in mac terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- For efficiently organising literature: https://www.jabref.org
-
One can install it using below command:
brew install esolitos/ipa/sshpass
-
Youtube video downloader: youtube-dl
brew install youtube-dl brew install ffmpeg
for downloading a youtube video, go on terminal then:
youtube-dl <youtube video sharing link>
Best way to download the playlist is to use the playlist ID. For example, if the youtube link is
https://www.youtube.com/watch?v=JdsXVrq5pVQ&list=PL5A5QJkW7MkttflM0JOGJsnxDSY32s092
then use the command to download:
youtube-dl -i PL5A5QJkW7MkttflM0JOGJsnxDSY32s092
A script to download many youtube videos in one go is placed here: link
- Antivirus for mac: https://devices.docs.cern.ch/pss/eset/
Some other settings
Mattermost setting
-
How to browse: https://mattermost.web.cern.ch
-
How to download: https://about.mattermost.com/download/
-
Settings to connect the app:
Server display name: CERN
Server URL:
https://mattermost.web.cern.ch
HOW TO MAKE A BOOTABLE USB STICK FROM AN ISO FILE ON AN APPLE MAC OS X
Reference: https://www.lewan.com/blog/2012/02/10/making-a-bootable-usb-stick-on-an-apple-mac-os-x-from-an-iso
ROOT installation using homebrew
brew install root
Reference: https://root.cern/install/#macos-package-managers
Also, root can be installed using conda. Check here
Old instructions
brew install root
brew info root6
. $(brew --prefix root6)/libexec/thisroot.sh
Reference: https://alexpearce.me/2016/02/root-on-os-x-el-capitan/
kerberos setup for lxplus
- Install “kerberos config file new” from Mac Self-Service. It can be found in the category “Configuration” of the Mac Self-Service.
- Create a kerberos token using command:
kinit yourCernAccountName
-
In file
~/.ssh/config
(if it does not exists create it) add following line:# Host lxplus.cern.ch aiadm.cern.ch mylinuxbox.cern.ch pcmydepmygroup*.cern.ch GSSAPIAuthentication yes GSSAPIDelegateCredentials yes
- Then login as usual using ssh. It should login without any password.
Reference: https://devices.docs.cern.ch/devices/mac/AboutKerberosAndSsh/
Some common issues and solutions
Prevent SSH from disconnecting
Because of firewall or load-balancer the ssh session drops after being in ideal state for some time. To prevent this, one can configure the session to keepalive, which will prevent the the network device to consider it as ideal.
There are two methods. First method:
ssh -o "ServerAliveInterval 60" <SERVER_ADDRESS>
Second method: If one wants to keep all the ssh session alive then the keepalive information can be passed to the .ssh/config
file. For this add
ServerAliveInterval 60
this line in file /etc/ssh/ssh_config
or ~/.ssh/config
.
Mac not recognizing the charger
For me this is fixed after SMC reset. To reset SMC follow below steps:
- Shut down the Mac.
- Remove any peripherals connected to the Mac.
- Press the right Shift key, the left Option key, and the left Control key for 7 seconds. Then press and hold the power button for another 7 seconds, along with the other three keys.
- Keep holding down all four keys for another 7 seconds, then release them.
- After some time, press the power button to turn on the Mac.
Reference: https://www.avg.com/en/signal/reset-mac-pram-nvram-smc
Enjoy Reading This Article?
Here are some more articles you might like to read next: