{"id":167,"date":"2006-03-07T07:00:01","date_gmt":"2006-03-07T12:00:01","guid":{"rendered":"http:\/\/blog.elharo.com\/blog\/?p=167"},"modified":"2008-05-28T15:34:47","modified_gmt":"2008-05-28T20:34:47","slug":"converting-the-mini-to-a-server-preliminaries","status":"publish","type":"post","link":"https:\/\/www.elharo.com\/blog\/mac\/2006\/03\/07\/converting-the-mini-to-a-server-preliminaries\/","title":{"rendered":"Converting the Mini to a Server: Preliminaries"},"content":{"rendered":"<p>The Mac Mini ships with both Apache, PHP, and MySQL preinstalled. However they&#8217;re relatively old versions, and I want something a little more up-to-date for this site. So the first step to migrating is to get the latest versions of those installed. Annoyingly, <a href=\"http:\/\/fink.sourceforge.net\/\">fink<\/a> is not yet ready for Intel Macs; so that&#8217;s going to make everything quite a bit more complex.<br \/>\n<!--more--><\/p>\n<p>The Mac Mini doesn&#8217;t ship with gcc, so before I can compile those, I&#8217;ll need to install the developer tools.  Looks like XCode 2.2.1 is on Mac OS X Install Disc 1. Simple enough. Looks like it includes gcc 3.3 and 4.0. That&#8217;s nice. I&#8217;ll have more to say about gcc 4.1 on <a href=\"http:\/\/cafe.elharo.com\/\">The Cafes<\/a> soon. <\/p>\n<p>Next up. Download, compile, and install Apache 2.0.55. (1.3 is too old and missing too many features. I thought about 2.2, but it&#8217;s too new and too many extensions don&#8217;t work with it yet.) First I should find the Apache config options I used on the old server. I know I wrote them down somewhere. Oh damn. Looks like they&#8217;re on the Mac whose  <acronym title=\"Display Keyboard Mouse\">DKM<\/acronym> I borrowed to work on the Mini. I knew I should have bought that <a href=\"http:\/\/www.amazon.com\/exec\/obidos\/redirect?link_code=ur2&amp;tag=cafeaulait&amp;camp=1789&amp;creative=9325&amp;path=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2FB000CLILVW%2Fref%3Dreg_hu-wl_item-added%3F%255Fencoding%3DUTF8%26v%3Dglance%26n%3D172282\">Belkin Flip KVM<\/a> already. Hmm, maybe not. Looks like it only has a VGA port even though pretty much every Mac made in the last three years including the Mini use DVI. Newegg has a <a href=\"http:\/\/www.newegg.com\/Product\/Product.asp?Item=N82E16817107220\">Linkskey USB DVI KVM<\/a> for about $140.<\/p>\n<p>In the meantime, let&#8217;s see if I can least set this up as a <a href=\"http:\/\/www.macworld.com\/2005\/01\/news\/macminifaq\/index.php\">headless server<\/a>. Then I can use the monitor on my main Mac, while using <a href=\"http:\/\/sourceforge.net\/projects\/cotvnc\/\">Chicken of the VNC<\/a> and ssh to manage the Mini. OK. That&#8217;s set up. What happens now? Big surprise. It doesn&#8217;t work! I can&#8217;t seem to connect using ssh, VNC, or FTP.  I&#8217;ll spare you the half hour of cursing and muttering and jump straight to the answer. &#8220;Have you tried turning it off and on again?&#8221; More specifically, have I tried turning ssh, ftp, and <abbr>VNC<\/abbr> off an on again? It seems sshd and other daemons failed to launch at system startup like they were supposed to. Instead the console generated these error messages:<\/p>\n<div><samp>Mar  6 19:07:17 elliotte-rusty-harolds-computer sshd[192]: error: setsockopt SO_KEEPALIVE: Socket operation on non-socket<br \/>\nMar  6 19:07:17 elliotte-rusty-harolds-computer sshd[192]: warning: can&#8217;t get client address: Socket operation on non-socket<\/samp><\/div>\n<p>Turning those services off and on again after the computer had booted allows me to connect. Hypothesis: the wireless network is started after sshd, ftpd, and VNC in the boot process. Hopefully once I connect the Ethernet cable, this will take care of itself. <\/p>\n<p>OK, with that little digression out of the way, let&#8217;s get back to compiling Apache. More on that in Part 2 of this series.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing gcc and setting up for headless operation<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[410],"class_list":["post-167","post","type-post","status-publish","format-standard","hentry","category-mac","tag-flash"],"_links":{"self":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":0,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}