<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5456352199821258260</id><updated>2012-02-15T23:19:59.185-08:00</updated><category term='command line'/><title type='text'>Tips and Tricks on Mac</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tipsonmac.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5456352199821258260/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tipsonmac.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Nirnimesh .</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-w8-xXZ7kEvY/AAAAAAAAAAI/AAAAAAAANhk/vNEvgAjQnfM/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5456352199821258260.post-4895849527574691154</id><published>2009-02-19T17:35:00.000-08:00</published><updated>2009-02-19T17:45:22.057-08:00</updated><title type='text'>Display X windows on X11.app from another linux box</title><content type='html'>Sometimes you might want to ssh to a linux box and be able to fire up X applications and see the X windows on your Mac running X11. However, there are some customizations you need to do before everything works.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Fire up X11.app (It's located in /Applications/Utilities/X11.app)&lt;/li&gt;&lt;li&gt;On Mac box: go to X11 preferences and enable "Allow connections from network clients" (Make sure it looks like below)&lt;/li&gt;&lt;li&gt;Restart X11.app&lt;/li&gt;&lt;li&gt;Open a terminal in X11 and do: &lt;span style="font-weight: bold;"&gt;xhost +&lt;/span&gt;&lt;/li&gt;&lt;li&gt;ssh to your linux box and do: &lt;span style="font-weight: bold;font-family:courier new;" &gt;export DISPLAY=IP_OF_MAC_BOX:0.0&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_s2hm9F0kvdU/SZ4LEoDn7_I/AAAAAAAAIdE/4P2g9BZ9agY/s1600-h/Picture+2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_s2hm9F0kvdU/SZ4LEoDn7_I/AAAAAAAAIdE/4P2g9BZ9agY/s320/Picture+2.png" alt="" id="BLOGGER_PHOTO_ID_5304689585189023730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Bingo! On the linux box, you can now run any X app, say &lt;span style="font-weight: bold;font-family:courier new;" &gt;xterm&lt;/span&gt; and the X window will pop up on your Mac box.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5456352199821258260-4895849527574691154?l=tipsonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsonmac.blogspot.com/feeds/4895849527574691154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5456352199821258260&amp;postID=4895849527574691154' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5456352199821258260/posts/default/4895849527574691154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5456352199821258260/posts/default/4895849527574691154'/><link rel='alternate' type='text/html' href='http://tipsonmac.blogspot.com/2009/02/display-x-windows-on-x11app-from.html' title='Display X windows on X11.app from another linux box'/><author><name>Nirnimesh .</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-w8-xXZ7kEvY/AAAAAAAAAAI/AAAAAAAANhk/vNEvgAjQnfM/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_s2hm9F0kvdU/SZ4LEoDn7_I/AAAAAAAAIdE/4P2g9BZ9agY/s72-c/Picture+2.png' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5456352199821258260.post-2654872325431423074</id><published>2009-01-26T16:02:00.001-08:00</published><updated>2009-01-26T17:05:00.397-08:00</updated><title type='text'>Compiling Valgrind for Mac OS X</title><content type='html'>I was trying to compile Valgrind (version 3.3.1 r8180, VEX r1854) for Mac OS X as per Greg Parker's &lt;a href="http://www.sealiesoftware.com/valgrind/"&gt;instructions&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The make step failed with something like:&lt;br /&gt;&lt;span style=";font-family:courier new,monospace;font-size:78%;"  &gt;gcc  -arch i386 -O2 -gstabs -Wmissing-prototypes -Wall -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -fno-strict-aliasing -O2 -mmacosx-version-min=10.5 -gstabs -fno-stack-protector -O2 -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement -nodefaultlibs -nostartfiles -Wl,-u,__start -Wl,-e,__start -Wl,-bind_at_load /usr/lib/dyld -arch i386 -mdynamic-no-pic -Wl,-seg1addr,0xf0080000 -Wl,-stack_addr,0xf0080000 -Wl,-stack_size,0x80000 -Wl,-pagezero_size,0xf0000000  -o memcheck-x86-darwin memcheck_x86_darwin-mc_leakcheck.o memcheck_x86_darwin-mc_malloc_wrappers.o memcheck_x86_darwin-mc_main.o memcheck_x86_darwin-mc_translate.o memcheck_x86_darwin-mc_machine.o memcheck_x86_darwin-mc_errors.o ../coregrind/libcoregrind_x86_darwin.a ../VEX/libvex_x86_darwin.a -lgcc &lt;/span&gt;  &lt;span style=";font-family:courier new,monospace;font-size:78%;"  &gt;ld: in ../VEX/libvex_x86_darwin.a, archive has no table of contents&lt;/span&gt;&lt;span style="font-size:78%;"&gt; &lt;/span&gt;&lt;span style=";font-family:courier new,monospace;font-size:78%;"  &gt;collect2: ld returned 1 exit status&lt;/span&gt;&lt;span style="font-size:78%;"&gt;  &lt;/span&gt;&lt;span style=";font-family:courier new,monospace;font-size:78%;"  &gt;make[3]: *** [memcheck-x86-darwin] Error 1&lt;/span&gt;&lt;span style="font-size:78%;"&gt; &lt;/span&gt;&lt;span style=";font-family:courier new,monospace;font-size:78%;"  &gt;make[2]: *** [all-recursive] Error 1&lt;/span&gt;&lt;span style="font-size:78%;"&gt;  &lt;/span&gt;&lt;span style=";font-family:courier new,monospace;font-size:78%;"  &gt;make[1]: *** [all-recursive] Error 1&lt;/span&gt;&lt;span style="font-size:78%;"&gt; &lt;/span&gt;&lt;span style=";font-family:courier new,monospace;font-size:78%;"  &gt;make: *** [all] Error 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I was able to fix this with:&lt;br /&gt;$ &lt;span style="font-family:courier new,monospace;"&gt;ranlib VEX/libvex_x86_darwin.a&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This needs to be repeated with &lt;span style="font-family:courier new;"&gt;VEX/libvex_amd64_darwin.a&lt;/span&gt; which'll fail the same way. Continuing with make built valgrind successfully for me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5456352199821258260-2654872325431423074?l=tipsonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsonmac.blogspot.com/feeds/2654872325431423074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5456352199821258260&amp;postID=2654872325431423074' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5456352199821258260/posts/default/2654872325431423074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5456352199821258260/posts/default/2654872325431423074'/><link rel='alternate' type='text/html' href='http://tipsonmac.blogspot.com/2009/01/compiling-valgrind-for-mac-os-x.html' title='Compiling Valgrind for Mac OS X'/><author><name>Nirnimesh .</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-w8-xXZ7kEvY/AAAAAAAAAAI/AAAAAAAANhk/vNEvgAjQnfM/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5456352199821258260.post-6949005925554122587</id><published>2008-03-01T05:44:00.000-08:00</published><updated>2008-03-01T05:47:29.905-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='command line'/><title type='text'>Select Startup Disk</title><content type='html'>The most common way to select the startup disk is using the "Startup Disk" preference pane. However, there are times when you want to do this using the command line.&lt;br /&gt;&lt;br /&gt;$ &lt;span style="font-family: courier new;"&gt;sudo bless -mount /Volumes/MY_PARTITION -setBoot&lt;/span&gt;   &lt;br /&gt;&lt;br /&gt;Replace &lt;span style="font-family: courier new;"&gt;MY_PARTITION&lt;/span&gt; with the appropriate volume name, and reboot&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5456352199821258260-6949005925554122587?l=tipsonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsonmac.blogspot.com/feeds/6949005925554122587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5456352199821258260&amp;postID=6949005925554122587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5456352199821258260/posts/default/6949005925554122587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5456352199821258260/posts/default/6949005925554122587'/><link rel='alternate' type='text/html' href='http://tipsonmac.blogspot.com/2008/03/select-startup-disk.html' title='Select Startup Disk'/><author><name>Nirnimesh .</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-w8-xXZ7kEvY/AAAAAAAAAAI/AAAAAAAANhk/vNEvgAjQnfM/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5456352199821258260.post-4081229906000522515</id><published>2008-02-28T02:40:00.000-08:00</published><updated>2008-03-01T05:48:11.154-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='command line'/><title type='text'>Reformat a disk partition</title><content type='html'>To reformat a disk partition:&lt;br /&gt;&lt;br /&gt;$&lt;span style="font-family:courier new;"&gt; diskutil reformat /path/to/device&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;$&lt;span style="font-family:courier new;"&gt; diskutil reformat /Volumes/[mount point]&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5456352199821258260-4081229906000522515?l=tipsonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsonmac.blogspot.com/feeds/4081229906000522515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5456352199821258260&amp;postID=4081229906000522515' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5456352199821258260/posts/default/4081229906000522515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5456352199821258260/posts/default/4081229906000522515'/><link rel='alternate' type='text/html' href='http://tipsonmac.blogspot.com/2008/02/reformat-disk-partition.html' title='Reformat a disk partition'/><author><name>Nirnimesh .</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-w8-xXZ7kEvY/AAAAAAAAAAI/AAAAAAAANhk/vNEvgAjQnfM/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5456352199821258260.post-5612933291395441120</id><published>2007-08-31T15:39:00.000-07:00</published><updated>2008-02-28T02:44:14.155-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='command line'/><title type='text'>Which Mac Version?</title><content type='html'>Here's a quick command to figure out the version of Mac.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;font-family:lucida grande;" &gt;sw_vers -productVersion&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5456352199821258260-5612933291395441120?l=tipsonmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsonmac.blogspot.com/feeds/5612933291395441120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5456352199821258260&amp;postID=5612933291395441120' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5456352199821258260/posts/default/5612933291395441120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5456352199821258260/posts/default/5612933291395441120'/><link rel='alternate' type='text/html' href='http://tipsonmac.blogspot.com/2007/08/which-mac-version.html' title='Which Mac Version?'/><author><name>Nirnimesh .</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-w8-xXZ7kEvY/AAAAAAAAAAI/AAAAAAAANhk/vNEvgAjQnfM/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
