Posts tagged Mac
January 20th, 2011
Installing RVM on a Mac
Topics: Ruby, Mac, HowtoJust a quick post, here are the commands I ran to get RVM working on my new Macbook:
sudo mkdir /usr/local/lib sudo bash < <( curl -L http://bit.ly/rvm-install-system-wide ) sudo dseditgroup -o edit -a YOURUSERNAME -t user rvm echo '[[ -s "/usr/local/lib/rvm" ]] && . "/usr/local/lib/rvm"' >> ~/.bash_profile source ~/.bash_profile rvm install 1.9.2 rvm --default use 1.9.2 rvm 1.9.2 ruby --version
August 02th, 2009
Mac emacs control option keybindings
Topics: Howto, Mac, EmacsIf you recently upgraded to Emacs 23 from Carbon Emacs on your Mac you might have found all the control keys are bound wrong. Anyway it’s easy to fix, add these lines to your .emacs and restart Emacs.
; Setup the Mac keys (setq mac-option-key-is-meta nil) (setq mac-command-key-is-meta t) (setq mac-option-modifier nil) (setq mac-command-modifier 'meta) (global-set-key (kbd "<kp-delete>") 'delete-char)
July 04th, 2009
Tramp ssh constant login problem
Topics: Emacs, Mac, HowtoI was having a problem on my macbook that I had to login every time I wanted to save or open a new file through Tramp. The weird thing was that tab completion only required me to login once.
Anyway I got to the bottom of it, just add this to your .emacs:
(setq tramp-default-method "ssh")
June 23th, 2009
Meld darwinport problem
Topics: Mac, HowtoIf you are having problem getting the darwinport of meld running on your mac try these two commands before running the program again.
sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
The error I was getting before was this:
Xlib: extension "RANDR" missing on display "/tmp/launch-RsRIqw/:0". Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Traceback (most recent call last): File "/opt/local/bin/meld", line 109, in <module> meldapp.main() File "/opt/local/lib/meld/meldapp.py", line 855, in main app = MeldApp() File "/opt/local/lib/meld/meldapp.py", line 528, in __init__ self.prefs = MeldPreferences() File "/opt/local/lib/meld/meldapp.py", line 465, in __init__ prefs.Preferences.__init__(self, "/apps/meld", self.defaults) File "/opt/local/lib/meld/prefs.py", line 91, in __init__ self._gconf.add_dir(rootkey, gconf.CLIENT_PRELOAD_NONE) glib.GError: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Not enough memory) </module>