Monday, January 19, 2015

Bye bye Ubuntu Linux - Hello MacBook Air

Today I unpacked a MacBook Air. I have used Ubuntu Linux happily for a long time, but it seems to be time to migrate.

Favourite software on ubuntu:

mutt for mail
mgp (magicpoint) for presentations

I'll record my progress on this blog-post.

Kind friends made excellent recommendations.


I installed MacPort and it provides a functionality very similar to apt (apt-get install blah). And I found that many packages are supported by Port, some of which I had never expected to see again! xcode had to be installed for port to be able to do its thing.
sudo port selfupdate
     sudo xcodebuild -license
     sudo port install gnuplot
     sudo port select --set python python27
     sudo port install ghostview 
     sudo port install gv
     sudo port install make
     sudo port install convert
     sudo port install imagemagick
     sudo port install magicpoint
     sudo port install mutt
     sudo port install unison
     sudo port install xv
     sudo port install xephem
     sudo port install ruby
     sudo port install tcl
     sudo port install xeyes
 sudo port install tk
 sudo port install rails
 sudo port install wget
 sudo port install mercurial git 
 sudo port install ffmpeg figlet lynx mysql ncftp stunnel unrar tcsh csh sh git-core  signing-party  ntop tcping bash bash-completion file xdu tree 
 sudo port install acroread
 sudo port install xpdf
 sudo port install dasher

To get "locate" to work, I did this:
     sudo launchctl load -w /System/Library/LaunchDaemons/
Tom taught me about caffeinate -i to stop the machine from going to sleep. It is already installed.
To get focus to follow mouse (into terminals at least) I tried this, but it didn't seem to work.
  defaults write FocusFollowsMouse -bool true
  defaults write wm_ffm -bool true
  defaults write FocusFollowsMouse -string YES


I installed Quartz because xdvi said it needed X11 in order to run. It says I need to log out and in to get X11 to work. Not sure what that means.


I used system preferences to crank up the key-repeat speed to the maximum. I switched off most of the audible notifications; to switch off the "outgoing mail sounds like a jet engine" nonsense, I had to go into mail preferences.


I need to figure out whether going with MacTeX is a good idea or should I find a version in Port and stick with that? Instructions for MacTeX
cd /Volumes/packages/MacTeX/
installer  -pkg MacTeX-2011.mpkg -target /

/usr/local/texlive/2014/bin/x86_64-darwin/tlmgr update --self
/usr/local/texlive/2014/bin/x86_64-darwin/tlmgr update --all


I want shift-3 to give # not £ so I went into keyboard preferences, selected "show keyboard options in menu bar" and then added US as well as UK to the list of available keyboards, and switched to US.

Things I still need

Keyboard shortcuts in Apple's Mail programme - can I get it to feel like mutt? Why doesn't "mark as junk" come up as an option? How to move mail's focus between the message and the list of messages? What is the keyboard shortcut to close just one terminal window? (not all terminals! which is what cmd-Q does) Why does
emacs filename & 
not work? How can I get the command line completion feature that I had in tcsh? (e.g. ls !$TAB)

Tim's recommendations

Some of my productivity choices:

Although it comes with an emacs, I use Aquamacs :

Flip windows around with keypresses:

After you have got used to the mac a bit, Quicksilver :

And a key macro (e.g. for inserting dates and times):

Tom's recommendations

My biggest tip is that, if in doubt about how to do something, try dragging and dropping.

My second biggest tip is to make use of Time Machine. Hassle free overnight recovery from a lost or stolen machine.

As for software:

* A better terminal:
* A package manager:
* Like Divvy:
* Like emacs: ;-)
* For all those random notes: (not been updated in ages but works really well for me)
* Offsite backup: 
* A forgetful programmers friend:
* Like Word: 

And some important command line tricks:

* Drag a file or folder onto the terminal
* Drag the little icon at the top of a document window onto the terminal
* Copy, then type pbpaste in a terminal  (e.g. pbpaste | wc)
* ls | pbcopy  — then paste
* caffeinate -s (for when your computer is too sleepy)
* open index.html
* open random-word-doc.docx

Seb's recommendations

Using search is usually quicker than navigating to find stuff. Cmd-space (Spotlight) to find apps (including switching to open ones), files, emails, etc. Or use the search box in ‘file open/save’ dialogs. (Quicksilver is a fancier search/launcher system, which I don’t use)
Cmd-Tab switches applications, but use Cmd-~ to switch windows within each application.
Delete is Fn-backspace  (both for text and things like files in Finder).
If you download an app from the internet which hasn’t got Apple approval, the first time you launch it, override the fact that Apple “protects” you from it by “right clicking” (two-finger-click or ctrl-click) and ‘Open’. Thereafter it will open normally. You can turn off this security feature completely if you want.

Time Machine is indeed excellent for backup - and as the name suggests you can go back to older version of files if you need to. You either plug in an external drive, or configure it to use a device on your home network (Apple Time Capsule or non-Apple equivalent NAS device, just check it offers Time Machine support).

Personally I would be wary of iPhoto - it has some nice features but I don’t trust it either to look after my photos or give them back to me when I want to stop using a Mac.

I don’t know if ti’s still the case, but to get backspace to work properly in Terminal when ssh’d to a Linux box, in Terminal Prefs, I had to select rxvt as terminal type, uncheck 'Delete sends Ctrl+H', (

Everything below this point is third party stuff you need to install (mostly free):

nvALT is an updated version of notational velocity (which Tom mentioned) - for keeping text-based notes. Works well for me too, and you can store the notes in Dropbox so you can access them on your smartphone too.

pwSafe - password safe (not Mac-specific, but there’s a mac version) (syncs to phone etc too)

Making disk images - Carbon Copy Cloner. Good as an extra backup, and also if you lose you Mac or, heaven forbid, it dies, you can plug the disk into a friend’s Mac and boot up your system straight off it.

An alternative online backup: Arq (looks nice, haven’t got round to trying it yet).

Ripping DVDs: makemkv


David said...

Just finished reading your book Sustainable Energy without the hot air. Best (Maybe better) work on this subject since Penner, S.S. and L. Icerman, Energy Vol I, II, and III published in 1974. I have been working with Will Happer at Princeton for a few years now on climate change and I have developed a model on CO2 and climate that appears to actually work. Since this relates to the work you have done I wondered if you might want to talk?

Mr. Z said...

Focus follows mouse cannot be made to work on a Mac. Here's the best summary as to why I've found so far;

Ajay Kumar Kalva said...

Welcome to Mac OsX man, now you become a true professional, just kidding,
Now you have to pay for everything, Linux The Most Free OS,

pheobe22 said...

The stuff in the blogs blows out my mind. San Diego iPhone repair

Unknown said...

I'm 55-year-old from paris, I was diagnosed with second-stage liver cancer following a scheduled examination to monitor liver cirrhosis. I had lost a lot of weight. A CT scan revealed three tumors; one in the center of my liver in damaged tissue and two in healthy portions of my liver. No chemotherapy or radiotherapy treatment was prescribed due to my age, the number of liver tumors. One month following my diagnosis I began taking 12 (350 point) Salvestrol supplements per day, commensurate with my body weight. This comprised six Salvestrol Shield (350 point) capsules and six Salvestrol Gold (350 point) capsules, spread through the day by taking two of each capsule after each main meal. This level of Salvestrol supplementation (4,000 points per day) was maintained for four months. In addition, I began a program of breathing exercises, chi exercises, meditation, stretching and stress avoidance. Due to the variety of conditions that I suffered from, I received ongoing medical examinations. Eleven months after commencing Salvestrol supplementation But all invalid so I keep searching for a herbal cure online that how I came across a testimony appreciating Dr Itua on how he cured her HIV/Herpes, I contacted him through email he listed above, Dr Itua sent me his herbal medicine for cancer to drink for two weeks to cure I paid him for the delivering then I received my herbal medicine and drank it for two weeks and I was cured until now I'm all clear of cancer, I will advise you to contact Dr Itua Herbal Center On WhatsApps Number...+2348149277967. If you are suffering from Diseases listed below, Cancer, HIV/Aids, Herpes Virus,Bladder cancer,Brain cancer,Colon-Rectal Cancer,Breast Cancer,Prostate Cancer,
?Esophageal cancer,?Gallbladder cancer,Gestational trophoblastic disease,Head and neck cancer,?Hodgkin lymphoma
?Intestinal cancer,Kidney cancer,Leukemia,Liver cancer,Lung cancer,Melanoma,Mesothelioma,?Multiple myeloma,?Neuroendocrine tumors,Non-Hodgkin lymphoma,?Oral cancer,Ovarian cancer,?Sinus cancer,Skin cancer,Soft tissue sarcoma,Spinal cancer,Stomach cancer,Testicular cancer,Throat cancer,Thyroid Cancer,?Uterine cancer,Vaginal cancer,?Vulvar cancer,Hepatitis, Chronic Illness. Lupus,Fibromyalgia.