1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
5 | <meta http-equiv="Content-Style-Type" content="text/css" /> |
---|
6 | <meta name="generator" content="pandoc" /> |
---|
7 | <title>Installation of Ubuntu on Mac Mini</title> |
---|
8 | <style type="text/css">code{white-space: pre;}</style> |
---|
9 | <link href="data:text/css,%2F%2A%0A%20%20%20%20Buttondown%0A%20%20%20%20A%20Markdown%2FMultiMarkdown%2FPandoc%20HTML%20output%20CSS%20stylesheet%0A%20%20%20%20Author%3A%20Ryan%20Gray%0A%20%20%20%20Date%3A%2015%20Feb%202011%0A%20%20%20%20Revised%3A%2021%20Feb%202012%0A%20%20%20%0A%20%20%20%20General%20style%20is%20clean%2C%20with%20minimal%20re%2Ddefinition%20of%20the%20defaults%20or%20%0A%20%20%20%20overrides%20of%20user%20font%20settings%2E%20The%20body%20text%20and%20header%20styles%20are%20%0A%20%20%20%20left%20alone%20except%20title%2C%20author%20and%20date%20classes%20are%20centered%2E%20A%20Pandoc%20TOC%20%0A%20%20%20%20is%20not%20printed%2C%20URLs%20are%20printed%20after%20hyperlinks%20in%20parentheses%2E%20%0A%20%20%20%20Block%20quotes%20are%20italicized%2E%20Tables%20are%20lightly%20styled%20with%20lines%20above%20%0A%20%20%20%20and%20below%20the%20table%20and%20below%20the%20header%20with%20a%20boldface%20header%2E%20Code%20%0A%20%20%20%20blocks%20are%20line%20wrapped%2E%20%0A%20%0A%20%20%20%20All%20elements%20that%20Pandoc%20and%20MultiMarkdown%20use%20should%20be%20listed%20here%2C%20even%20%0A%20%20%20%20if%20the%20style%20is%20empty%20so%20you%20can%20easily%20add%20styling%20to%20anything%2E%0A%20%20%20%20%0A%20%20%20%20There%20are%20some%20elements%20in%20here%20for%20HTML5%20output%20of%20Pandoc%2C%20but%20I%20have%20not%20%0A%20%20%20%20gotten%20around%20to%20testing%20that%20yet%2E%0A%2A%2F%0A%20%0A%2F%2A%20NOTES%3A%0A%20%0A%20%20%20%20Stuff%20tried%20and%20failed%3A%0A%20%20%20%20%0A%20%20%20%20It%20seems%20that%20specifying%20font%2Dfamily%3Aserif%20in%20Safari%20will%20always%20use%20%0A%20%20%20%20Times%20New%20Roman%20rather%20than%20the%20user%27s%20preferences%20setting%2E%0A%20%20%20%20%0A%20%20%20%20Making%20the%20font%20size%20different%20or%20a%20fixed%20value%20for%20print%20in%20case%20the%20screen%20%0A%20%20%20%20font%20size%20is%20making%20the%20print%20font%20too%20big%3A%20Making%20font%2Dsize%20different%20for%20%0A%20%20%20%20print%20than%20for%20screen%20causes%20horizontal%20lines%20to%20disappear%20in%20math%20when%20using%20%0A%20%20%20%20MathJax%20under%20Safari%2E%0A%2A%2F%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Front%20Matter%20%2D%2D%2D%2D%20%2A%2F%0A%20%0A%2F%2A%20Pandoc%20header%20DIV%2E%20Contains%20%2Etitle%2C%20%2Eauthor%20and%20%2Edate%2E%20Comes%20before%20div%23TOC%2E%20%0A%20%20%20Only%20appears%20if%20one%20of%20those%20three%20are%20in%20the%20document%2E%0A%2A%2F%0A%20%0Adiv%23header%2C%20header%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Put%20border%20on%20bottom%2E%20Separates%20it%20from%20TOC%20or%20body%20that%20comes%20after%20it%2E%20%2A%2F%0A%20%20%20%20border%2Dbottom%3A%201px%20solid%20%23aaa%3B%0A%20%20%20%20margin%2Dbottom%3A%200%2E5em%3B%0A%20%20%20%20%7D%0A%20%0A%2Etitle%20%2F%2A%20Pandoc%20title%20header%20%28h1%2Etitle%29%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20text%2Dalign%3A%20center%3B%0A%20%20%20%20%7D%0A%20%0A%2Eauthor%2C%20%2Edate%20%2F%2A%20Pandoc%20author%28s%29%20and%20date%20headers%20%28h2%2Eauthor%20and%20h3%2Edate%29%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20text%2Dalign%3A%20center%3B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20Pandoc%20table%20of%20contents%20DIV%20when%20using%20the%20%2D%2Dtoc%20option%2E%0A%20%20%20NOTE%3A%20this%20doesn%27t%20support%20Pandoc%27s%20%2D%2Did%2Dprefix%20option%20for%20%23TOC%20and%20%23header%2E%20%0A%20%20%20Probably%20would%20need%20to%20use%20div%5Bid%24%3D%27TOC%27%5D%20and%20div%5Bid%24%3D%27header%27%5D%20as%20selectors%2E%0A%2A%2F%0A%20%0Adiv%23TOC%2C%20nav%23TOC%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Put%20border%20on%20bottom%20to%20separate%20it%20from%20body%2E%20%2A%2F%0A%20%20%20%20border%2Dbottom%3A%201px%20solid%20%23aaa%3B%0A%20%20%20%20margin%2Dbottom%3A%200%2E5em%3B%0A%20%20%20%20%7D%0A%20%0A%40media%20print%0A%20%20%20%20%7B%0A%20%20%20%20div%23TOC%2C%20nav%23TOC%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20Don%27t%20display%20TOC%20in%20print%20%2A%2F%0A%20%20%20%20%20%20%20%20display%3A%20none%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Headers%20and%20sections%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Ah1%2C%20h2%2C%20h3%2C%20h4%2C%20h5%2C%20h6%0A%7B%0A%20%20%20%20font%2Dfamily%3A%20%22Helvetica%20Neue%22%2C%20Helvetica%2C%20%22Liberation%20Sans%22%2C%20Calibri%2C%20Arial%2C%20sans%2Dserif%3B%20%2F%2A%20Sans%2Dserif%20headers%20%2A%2F%0A%20%0A%20%20%20%20%2F%2A%20font%2Dfamily%3A%20%22Liberation%20Serif%22%2C%20%22Georgia%22%2C%20%22Times%20New%20Roman%22%2C%20serif%3B%20%2F%2A%20Serif%20headers%20%2A%2F%0A%20%0A%20%20%20%20page%2Dbreak%2Dafter%3A%20avoid%3B%20%2F%2A%20Firefox%2C%20Chrome%2C%20and%20Safari%20do%20not%20support%20the%20property%20value%20%22avoid%22%20%2A%2F%0A%7D%0A%20%0A%2F%2A%20Pandoc%20with%20%2D%2Dsection%2Ddivs%20option%20%2A%2F%0A%20%0Adiv%20div%2C%20section%20section%20%2F%2A%20Nested%20sections%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20margin%2Dleft%3A%202em%3B%20%2F%2A%20This%20will%20increasingly%20indent%20nested%20header%20sections%20%2A%2F%0A%20%20%20%20%7D%0A%20%0Ap%20%7B%7D%0A%20%0Ablockquote%0A%20%20%20%20%7B%20%0A%20%20%20%20font%2Dstyle%3A%20italic%3B%0A%20%20%20%20%7D%0A%20%0Ali%20%2F%2A%20All%20list%20items%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Ali%20%3E%20p%20%2F%2A%20Loosely%20spaced%20list%20item%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20margin%2Dtop%3A%201em%3B%20%2F%2A%20IE%3A%20lack%20of%20space%20above%20a%20%3Cli%3E%20when%20the%20item%20is%20inside%20a%20%3Cp%3E%20%2A%2F%0A%20%20%20%20%7D%0A%20%0Aul%20%2F%2A%20Whole%20unordered%20list%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Aul%20li%20%2F%2A%20Unordered%20list%20item%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Aol%20%2F%2A%20Whole%20ordered%20list%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Aol%20li%20%2F%2A%20Ordered%20list%20item%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Ahr%20%7B%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Some%20span%20elements%20%2D%2D%2D%20%2A%2F%0A%20%0Asub%20%2F%2A%20Subscripts%2E%20Pandoc%3A%20H%7E2%7EO%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Asup%20%2F%2A%20Superscripts%2E%20Pandoc%3A%20The%202%5End%5E%20try%2E%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%20%20%20%0Aem%20%2F%2A%20Emphasis%2E%20Markdown%3A%20%2Aemphasis%2A%20or%20%5Femphasis%5F%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%20%20%20%0Aem%20%3E%20em%20%2F%2A%20Emphasis%20within%20emphasis%3A%20%2AThis%20is%20all%20%2Aemphasized%2A%20except%20that%2A%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20font%2Dstyle%3A%20normal%3B%0A%20%20%20%20%7D%0A%20%0Astrong%20%2F%2A%20Markdown%20%2A%2Astrong%2A%2A%20or%20%5F%5Fstrong%5F%5F%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Links%20%28anchors%29%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Aa%20%2F%2A%20All%20links%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Keep%20links%20clean%2E%20On%20screen%2C%20they%20are%20colored%3B%20in%20print%2C%20they%20do%20nothing%20anyway%2E%20%2A%2F%0A%20%20%20%20text%2Ddecoration%3A%20none%3B%0A%20%20%20%20%7D%0A%20%0A%40media%20screen%0A%20%20%20%20%7B%0A%20%20%20%20a%3Ahover%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20On%20hover%2C%20we%20indicate%20a%20bit%20more%20that%20it%20is%20a%20link%2E%20%2A%2F%0A%20%20%20%20%20%20%20%20text%2Ddecoration%3A%20underline%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%0A%40media%20print%0A%20%20%20%20%7B%0A%20%20%20%20a%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20In%20print%2C%20a%20colored%20link%20is%20useless%2C%20so%20un%2Dstyle%20it%2E%20%2A%2F%0A%20%20%20%20%20%20%20%20color%3A%20black%3B%0A%20%20%20%20%20%20%20%20background%3A%20transparent%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20a%5Bhref%5E%3D%22http%3A%2F%2F%22%5D%3Aafter%2C%20a%5Bhref%5E%3D%22https%3A%2F%2F%22%5D%3Aafter%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20However%2C%20links%20that%20go%20somewhere%20else%2C%20might%20be%20useful%20to%20the%20reader%2C%0A%20%20%20%20%20%20%20%20%20%20%20so%20for%20http%20and%20https%20links%2C%20print%20the%20URL%20after%20what%20was%20the%20link%20%0A%20%20%20%20%20%20%20%20%20%20%20text%20in%20parens%0A%20%20%20%20%20%20%20%20%2A%2F%0A%20%20%20%20%20%20%20%20content%3A%20%22%20%28%22%20attr%28href%29%20%22%29%20%22%3B%0A%20%20%20%20%20%20%20%20font%2Dsize%3A%2090%25%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Images%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Aimg%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Let%20it%20be%20inline%20left%2Fright%20where%20it%20wants%20to%20be%2C%20but%20verticality%20make%20%0A%20%20%20%20%20%20%20it%20in%20the%20middle%20to%20look%20nicer%2C%20but%20opinions%20differ%2C%20and%20if%20in%20a%20multi%2Dline%20%0A%20%20%20%20%20%20%20paragraph%2C%20it%20might%20not%20be%20so%20great%2E%20%0A%20%20%20%20%2A%2F%0A%20%20%20%20vertical%2Dalign%3A%20middle%3B%0A%20%20%20%20%7D%0A%20%0Adiv%2Efigure%20%2F%2A%20Pandoc%20figure%2Dstyle%20image%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Center%20the%20image%20and%20caption%20%2A%2F%0A%20%20%20%20margin%2Dleft%3A%20auto%3B%0A%20%20%20%20margin%2Dright%3A%20auto%3B%0A%20%20%20%20text%2Dalign%3A%20center%3B%0A%20%20%20%20font%2Dstyle%3A%20italic%3B%0A%20%20%20%20%7D%0A%20%0Ap%2Ecaption%20%2F%2A%20Pandoc%20figure%2Dstyle%20caption%20within%20div%2Efigure%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Inherits%20div%2Efigure%20props%20by%20default%20%2A%2F%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Code%20blocks%20and%20spans%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Apre%2C%20code%20%0A%20%20%20%20%7B%0A%20%20%20%20background%2Dcolor%3A%20%23fdf7ee%3B%0A%20%20%20%20%2F%2A%20BEGIN%20word%20wrap%20%2A%2F%0A%20%20%20%20%2F%2A%20Need%20all%20the%20following%20to%20word%20wrap%20instead%20of%20scroll%20box%20%2A%2F%0A%20%20%20%20%2F%2A%20This%20will%20override%20the%20overflow%3Aauto%20if%20present%20%2A%2F%0A%20%20%20%20white%2Dspace%3A%20pre%2Dwrap%3B%20%2F%2A%20css%2D3%20%2A%2F%0A%20%20%20%20white%2Dspace%3A%20%2Dmoz%2Dpre%2Dwrap%20%21important%3B%20%2F%2A%20Mozilla%2C%20since%201999%20%2A%2F%0A%20%20%20%20white%2Dspace%3A%20%2Dpre%2Dwrap%3B%20%2F%2A%20Opera%204%2D6%20%2A%2F%0A%20%20%20%20white%2Dspace%3A%20%2Do%2Dpre%2Dwrap%3B%20%2F%2A%20Opera%207%20%2A%2F%0A%20%20%20%20word%2Dwrap%3A%20break%2Dword%3B%20%2F%2A%20Internet%20Explorer%205%2E5%2B%20%2A%2F%0A%20%20%20%20%2F%2A%20END%20word%20wrap%20%2A%2F%0A%20%20%20%20%7D%0A%20%0Apre%20%2F%2A%20Code%20blocks%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Distinguish%20pre%20blocks%20from%20other%20text%20by%20more%20than%20the%20font%20with%20a%20background%20tint%2E%20%2A%2F%0A%20%20%20%20padding%3A%200%2E5em%3B%20%2F%2A%20Since%20we%20have%20a%20background%20color%20%2A%2F%0A%20%20%20%20border%2Dradius%3A%205px%3B%20%2F%2A%20Softens%20it%20%2A%2F%0A%20%20%20%20%2F%2A%20Give%20it%20a%20some%20definition%20%2A%2F%0A%20%20%20%20border%3A%201px%20solid%20%23aaa%3B%0A%20%20%20%20%2F%2A%20Set%20it%20off%20left%20and%20right%2C%20seems%20to%20look%20a%20bit%20nicer%20when%20we%20have%20a%20background%20%2A%2F%0A%20%20%20%20margin%2Dleft%3A%20%200%2E5em%3B%0A%20%20%20%20margin%2Dright%3A%200%2E5em%3B%0A%20%20%20%20%7D%0A%20%0A%40media%20screen%0A%20%20%20%20%7B%0A%20%20%20%20pre%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20On%20screen%2C%20use%20an%20auto%20scroll%20box%20for%20long%20lines%2C%20unless%20word%2Dwrap%20is%20enabled%20%2A%2F%0A%20%20%20%20%20%20%20%20white%2Dspace%3A%20pre%3B%0A%20%20%20%20%20%20%20%20overflow%3A%20auto%3B%0A%20%20%20%20%20%20%20%20%2F%2A%20Dotted%20looks%20better%20on%20screen%20and%20solid%20seems%20to%20print%20better%2E%20%2A%2F%0A%20%20%20%20%20%20%20%20border%3A%201px%20dotted%20%23777%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%0Acode%20%2F%2A%20All%20inline%20code%20spans%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Ap%20%3E%20code%2C%20li%20%3E%20code%20%2F%2A%20Code%20spans%20in%20paragraphs%20and%20tight%20lists%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Pad%20a%20little%20from%20adjacent%20text%20%2A%2F%0A%20%20%20%20padding%2Dleft%3A%20%202px%3B%0A%20%20%20%20padding%2Dright%3A%202px%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0Ali%20%3E%20p%20code%20%2F%2A%20Code%20span%20in%20a%20loose%20list%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20We%20have%20room%20for%20some%20more%20background%20color%20above%20and%20below%20%2A%2F%0A%20%20%20%20padding%3A%202px%3B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Math%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Aspan%2Emath%20%2F%2A%20Pandoc%20inline%20math%20default%20and%20%2D%2Djsmath%20inline%20math%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%2F%2A%20Tried%20font%2Dstyle%3Aitalic%20here%2C%20and%20it%20messed%20up%20MathJax%20rendering%20in%20some%20browsers%2E%20Maybe%20don%27t%20mess%20with%20at%20all%2E%20%2A%2F%0A%20%20%20%20%7D%0A%20%20%20%20%0Adiv%2Emath%20%2F%2A%20Pandoc%20%2D%2Djsmath%20display%20math%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%20%20%20%0Aspan%2ELaTeX%20%2F%2A%20Pandoc%20%2D%2Dlatexmathml%20math%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%20%0A%20%0Aeq%20%2F%2A%20Pandoc%20%2D%2Dgladtex%20math%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%20%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Tables%20%2D%2D%2D%2D%20%2A%2F%0A%20%0A%2F%2A%20%20A%20clean%20textbook%2Dlike%20style%20with%20horizontal%20lines%20above%20and%20below%20and%20under%20%0A%20%20%20%20the%20header%2E%20Rows%20highlight%20on%20hover%20to%20help%20scanning%20the%20table%20on%20screen%2E%0A%2A%2F%0A%20%0Atable%0A%20%20%20%20%7B%0A%20%20%20%20border%2Dcollapse%3A%20collapse%3B%0A%20%20%20%20border%2Dspacing%3A%200%3B%20%2F%2A%20IE%206%20%2A%2F%0A%20%0A%20%20%20%20border%2Dbottom%3A%202pt%20solid%20%23000%3B%0A%20%20%20%20border%2Dtop%3A%202pt%20solid%20%23000%3B%20%2F%2A%20The%20caption%20on%20top%20will%20not%20have%20a%20bottom%2Dborder%20%2A%2F%0A%20%0A%20%20%20%20%2F%2A%20Center%20%2A%2F%0A%20%20%20%20margin%2Dleft%3A%20auto%3B%0A%20%20%20%20margin%2Dright%3A%20auto%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0Athead%20%2F%2A%20Entire%20table%20header%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20border%2Dbottom%3A%201pt%20solid%20%23000%3B%0A%20%20%20%20background%2Dcolor%3A%20%23eee%3B%20%2F%2A%20Does%20this%20BG%20print%20well%3F%20%2A%2F%0A%20%20%20%20%7D%0A%20%0Atr%2Eheader%20%2F%2A%20Each%20header%20row%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%20%0A%20%0Atbody%20%2F%2A%20Entire%20table%20%20body%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20Table%20body%20rows%20%2A%2F%0A%20%0Atr%20%20%7B%0A%20%20%20%20%7D%0Atr%2Eodd%3Ahover%2C%20tr%2Eeven%3Ahover%20%2F%2A%20Use%20%2Eodd%20and%20%2Eeven%20classes%20to%20avoid%20styling%20rows%20in%20other%20tables%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20background%2Dcolor%3A%20%23eee%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0A%2F%2A%20Odd%20and%20even%20rows%20%2A%2F%0Atr%2Eodd%20%7B%7D%0Atr%2Eeven%20%7B%7D%0A%20%0Atd%2C%20th%20%2F%2A%20Table%20cells%20and%20table%20header%20cells%20%2A%2F%0A%20%20%20%20%7B%20%0A%20%20%20%20vertical%2Dalign%3A%20top%3B%20%2F%2A%20Word%20%2A%2F%0A%20%20%20%20vertical%2Dalign%3A%20baseline%3B%20%2F%2A%20Others%20%2A%2F%0A%20%20%20%20padding%2Dleft%3A%20%20%200%2E5em%3B%0A%20%20%20%20padding%2Dright%3A%20%200%2E5em%3B%0A%20%20%20%20padding%2Dtop%3A%20%20%20%200%2E2em%3B%0A%20%20%20%20padding%2Dbottom%3A%200%2E2em%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0A%2F%2A%20Removes%20padding%20on%20left%20and%20right%20of%20table%20for%20a%20tight%20look%2E%20Good%20if%20thead%20has%20no%20background%20color%2A%2F%0A%2F%2A%0Atr%20td%3Alast%2Dchild%2C%20tr%20th%3Alast%2Dchild%0A%20%20%20%20%7B%0A%20%20%20%20padding%2Dright%3A%200%3B%0A%20%20%20%20%7D%0Atr%20td%3Afirst%2Dchild%2C%20tr%20th%3Afirst%2Dchild%20%0A%20%20%20%20%7B%0A%20%20%20%20padding%2Dleft%3A%200%3B%0A%20%20%20%20%7D%0A%2A%2F%0A%20%0Ath%20%2F%2A%20Table%20header%20cells%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20font%2Dweight%3A%20bold%3B%20%0A%20%20%20%20%7D%0A%20%0Atfoot%20%2F%2A%20Table%20footer%20%28what%20appears%20here%20if%20caption%20is%20on%20top%3F%29%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0Acaption%20%2F%2A%20This%20is%20for%20a%20table%20caption%20tag%2C%20not%20the%20p%2Ecaption%20Pandoc%20uses%20in%20a%20div%2Efigure%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20caption%2Dside%3A%20top%3B%0A%20%20%20%20border%3A%20none%3B%0A%20%20%20%20font%2Dsize%3A%200%2E9em%3B%0A%20%20%20%20font%2Dstyle%3A%20italic%3B%0A%20%20%20%20text%2Dalign%3A%20center%3B%0A%20%20%20%20margin%2Dbottom%3A%200%2E3em%3B%20%2F%2A%20Good%20for%20when%20on%20top%20%2A%2F%0A%20%20%20%20padding%2Dbottom%3A%200%2E2em%3B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20%2D%2D%2D%2D%20Definition%20lists%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Adl%20%2F%2A%20The%20whole%20list%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20border%2Dtop%3A%202pt%20solid%20black%3B%0A%20%20%20%20padding%2Dtop%3A%200%2E5em%3B%0A%20%20%20%20border%2Dbottom%3A%202pt%20solid%20black%3B%0A%20%20%20%20%7D%0A%20%0Adt%20%2F%2A%20Definition%20term%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20font%2Dweight%3A%20bold%3B%0A%20%20%20%20%7D%0A%20%0Add%2Bdt%20%2F%2A%202nd%20or%20greater%20term%20in%20the%20list%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20border%2Dtop%3A%201pt%20solid%20black%3B%0A%20%20%20%20padding%2Dtop%3A%200%2E5em%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0Add%20%2F%2A%20A%20definition%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20margin%2Dbottom%3A%200%2E5em%3B%0A%20%20%20%20%7D%0A%20%0Add%2Bdd%20%2F%2A%202nd%20or%20greater%20definition%20of%20a%20term%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20border%2Dtop%3A%201px%20solid%20black%3B%20%2F%2A%20To%20separate%20multiple%20definitions%20%2A%2F%0A%20%20%20%20%7D%0A%20%20%20%20%0A%2F%2A%20%2D%2D%2D%2D%20Footnotes%20%2D%2D%2D%2D%20%2A%2F%0A%20%0Aa%2Efootnote%2C%20a%2EfootnoteRef%20%7B%20%2F%2A%20Pandoc%2C%20MultiMarkdown%20footnote%20links%20%2A%2F%0A%20%20%20%20font%2Dsize%3A%20small%3B%20%0A%20%20%20%20vertical%2Dalign%3A%20text%2Dtop%3B%0A%7D%0A%20%0Aa%5Bhref%5E%3D%22%23fnref%22%5D%2C%20a%2Ereversefootnote%20%2F%2A%20Pandoc%2C%20MultiMarkdown%2C%20%3F%3F%20footnote%20back%20links%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0A%40media%20print%0A%20%20%20%20%7B%0A%20%20%20%20a%5Bhref%5E%3D%22%23fnref%22%5D%2C%20a%2Ereversefootnote%20%2F%2A%20Pandoc%2C%20MultiMarkdown%20%2A%2F%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2A%20Don%27t%20display%20these%20at%20all%20in%20print%20since%20the%20arrow%20is%20only%20something%20to%20click%20on%20%2A%2F%0A%20%20%20%20%20%20%20%20display%3A%20none%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20%0Adiv%2Efootnotes%20%2F%2A%20Pandoc%20footnotes%20div%20at%20end%20of%20the%20document%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%20%20%20%0Adiv%2Efootnotes%20li%5Bid%5E%3D%22fn%22%5D%20%2F%2A%20A%20footnote%20item%20within%20that%20div%20%2A%2F%0A%20%20%20%20%7B%0A%20%20%20%20%7D%0A%20%0A%2F%2A%20You%20can%20class%20stuff%20as%20%22noprint%22%20to%20not%20print%2E%20%0A%20%20%20Useful%20since%20you%20can%27t%20set%20this%20media%20conditional%20inside%20an%20HTML%20element%27s%20%0A%20%20%20style%20attribute%20%28I%20think%29%2C%20and%20you%20don%27t%20want%20to%20make%20another%20stylesheet%20that%20%0A%20%20%20imports%20this%20one%20and%20adds%20a%20class%20just%20to%20do%20this%2E%0A%2A%2F%0A%20%0A%40media%20print%0A%20%20%20%20%7B%0A%20%20%20%20%2Enoprint%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20display%3Anone%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A" rel="stylesheet" type="text/css" /> |
---|
10 | </head> |
---|
11 | <body> |
---|
12 | <div id="header"> |
---|
13 | <h1 class="title">Installation of Ubuntu on Mac Mini</h1> |
---|
14 | </div> |
---|
15 | <div id="TOC"> |
---|
16 | <ul> |
---|
17 | <li><a href="#overview"><span class="toc-section-number">1</span> Overview</a><ul> |
---|
18 | <li><a href="#mac-mini-versions"><span class="toc-section-number">1.1</span> Mac Mini versions</a></li> |
---|
19 | <li><a href="#items-required"><span class="toc-section-number">1.2</span> Items required</a></li> |
---|
20 | </ul></li> |
---|
21 | <li><a href="#preparing-the-install-image"><span class="toc-section-number">2</span> Preparing the install image</a></li> |
---|
22 | <li><a href="#installation"><span class="toc-section-number">3</span> Installation</a></li> |
---|
23 | <li><a href="#login-after-reboot"><span class="toc-section-number">4</span> Login after reboot</a><ul> |
---|
24 | <li><a href="#add-the-second-hard-drive"><span class="toc-section-number">4.1</span> Add the second hard drive</a></li> |
---|
25 | <li><a href="#optimise-the-swap-volume"><span class="toc-section-number">4.2</span> Optimise the swap volume</a></li> |
---|
26 | <li><a href="#configure-the-internal-network-interface"><span class="toc-section-number">4.3</span> Configure the internal network interface</a></li> |
---|
27 | <li><a href="#update-all-packages"><span class="toc-section-number">4.4</span> Update all packages</a></li> |
---|
28 | <li><a href="#update-etchosts-file"><span class="toc-section-number">4.5</span> Update /etc/hosts file</a></li> |
---|
29 | </ul></li> |
---|
30 | <li><a href="#troubleshooting-post-installation-problems"><span class="toc-section-number">5</span> Troubleshooting post installation problems</a><ul> |
---|
31 | <li><a href="#your-mac-does-not-boot"><span class="toc-section-number">5.1</span> Your Mac does not boot</a></li> |
---|
32 | <li><a href="#problems-with-video"><span class="toc-section-number">5.2</span> Problems with video</a></li> |
---|
33 | <li><a href="#problems-with-ethernet"><span class="toc-section-number">5.3</span> Problems with ethernet</a></li> |
---|
34 | </ul></li> |
---|
35 | <li><a href="#installing-on-older-macminis"><span class="toc-section-number">6</span> Installing on older MacMinis</a><ul> |
---|
36 | <li><a href="#boot-using-mac-os-x-install-cd"><span class="toc-section-number">6.1</span> Boot using Mac OS X install CD</a></li> |
---|
37 | <li><a href="#wipe-out-all-partitions"><span class="toc-section-number">6.2</span> Wipe out all partitions</a></li> |
---|
38 | <li><a href="#get-the-right-ubuntu-install-cd"><span class="toc-section-number">6.3</span> Get the right Ubuntu install CD</a></li> |
---|
39 | <li><a href="#install-ubuntu"><span class="toc-section-number">6.4</span> Install Ubuntu</a></li> |
---|
40 | <li><a href="#edit-grub-defaults"><span class="toc-section-number">6.5</span> Edit grub defaults</a></li> |
---|
41 | <li><a href="#convert-into-server"><span class="toc-section-number">6.6</span> Convert into server</a></li> |
---|
42 | </ul></li> |
---|
43 | </ul> |
---|
44 | </div> |
---|
45 | <h1 id="overview"><a href="#overview"><span class="header-section-number">1</span> Overview</a></h1> |
---|
46 | <p>These notes describe the installation of Ubuntu 14.04 on a Mac Mini. This is the most powerful server we have found for its size, especially considering that the PSU is internal.</p> |
---|
47 | <h2 id="mac-mini-versions"><a href="#mac-mini-versions"><span class="header-section-number">1.1</span> Mac Mini versions</a></h2> |
---|
48 | <p>The recommended configuration of a workshop server is:</p> |
---|
49 | <ul> |
---|
50 | <li>Quad-core i7 ("server" version)</li> |
---|
51 | <li>16GB RAM</li> |
---|
52 | <li>Two 250GB SSDs (e.g. OCZ Vertex 4)</li> |
---|
53 | </ul> |
---|
54 | <p>These instructions have been tested on the following models:</p> |
---|
55 | <ul> |
---|
56 | <li>Mid 2010 Core 2 (Macmini4,1)</li> |
---|
57 | <li>Mid 2011 i7 (Macmini5,3)</li> |
---|
58 | <li>Mid 2013 i7 (Macmini6,2)</li> |
---|
59 | </ul> |
---|
60 | <p>When you have Linux running, you can determine your model using</p> |
---|
61 | <pre><code>sudo dmidecode -s system-product-name</code></pre> |
---|
62 | <p>For more information on the different models of Mac Mini see:</p> |
---|
63 | <ul> |
---|
64 | <li><a href="https://support.apple.com/kb/HT3476">https://support.apple.com/kb/HT3476</a></li> |
---|
65 | <li><a href="https://en.wikipedia.org/wiki/Mac_Mini">https://en.wikipedia.org/wiki/Mac_Mini</a></li> |
---|
66 | </ul> |
---|
67 | <h2 id="items-required"><a href="#items-required"><span class="header-section-number">1.2</span> Items required</a></h2> |
---|
68 | <p>For installation only, you will need:</p> |
---|
69 | <ul> |
---|
70 | <li>A mini-displayport to VGA adapter, or a HDMI cable</li> |
---|
71 | <li>A monitor</li> |
---|
72 | <li>A USB keyboard</li> |
---|
73 | <li>A 1GB+ USB flash drive or a USB CD-R drive</li> |
---|
74 | </ul> |
---|
75 | <p>We also recommend an Apple USB to Ethernet adapter for the external Internet connection. This leaves the internal gigabit Ethernet port available for the lab internal network and avoids having to trunk VLANs; it also helps if you have a newer Mac Mini where the internal ethernet adapter is not supported in the default kernel.</p> |
---|
76 | <h1 id="preparing-the-install-image"><a href="#preparing-the-install-image"><span class="header-section-number">2</span> Preparing the install image</a></h1> |
---|
77 | <p>First you need to choose which ISO image to use and download it. Start with the standard 64-bit server edition (ubuntu-14.04-server-amd64.iso) which should work fine with recent Mac Minis.</p> |
---|
78 | <p>If you have problems booting, then try one of the amd64+mac<sup><a href="#fn1" class="footnoteRef" id="fnref1">1</a></sup> variants from the <a href="http://www.ubuntu.com/download/alternative-downloads">alternative downloads</a> page:</p> |
---|
79 | <ul> |
---|
80 | <li>ubuntu-14.04-server-amd64+mac.iso</li> |
---|
81 | <li>ubuntu-14.04-desktop-amd64+mac.iso</li> |
---|
82 | </ul> |
---|
83 | <p>You may burn the image onto a CD-R if you have a USB CD-ROM drive to boot from, such as the Apple Superdrive.</p> |
---|
84 | <p>To write the image to a USB stick you can simply dd it. To do this on a Mac running OSX:</p> |
---|
85 | <pre><code>diskutil list # note the devices seen |
---|
86 | # insert flash drive |
---|
87 | diskutil list # note the new device seen, e.g. /dev/disk2 |
---|
88 | diskutil unmountDisk /dev/diskN |
---|
89 | sudo dd if=ubuntu-14.04-server-amd64.iso of=/dev/rdiskN bs=1m |
---|
90 | diskutil eject /dev/diskN |
---|
91 | # remove flash drive</code></pre> |
---|
92 | <p>To install older versions of Ubuntu you need to use a Mac which is running OSX and follow <a href="http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx">these instructions</a></p> |
---|
93 | <pre><code>hdiutil convert -format UDRW -o ubuntu-12.04.3-server-amd64.img ubuntu-12.04.3-server-amd64.iso |
---|
94 | # Note: the output filename may be .img.dmg |
---|
95 | diskutil list # note the devices seen |
---|
96 | # insert flash drive |
---|
97 | diskutil list # note the new device seen, e.g. /dev/disk2 |
---|
98 | diskutil unmountDisk /dev/diskN |
---|
99 | sudo dd if=ubuntu-12.04.3-server-amd64.img.dmg of=/dev/rdiskN bs=1m |
---|
100 | diskutil eject /dev/diskN |
---|
101 | # remove flash drive</code></pre> |
---|
102 | <h1 id="installation"><a href="#installation"><span class="header-section-number">3</span> Installation</a></h1> |
---|
103 | <p>Insert the CD-ROM or flash disk into the Mac Mini, and connect the keyboard and screen. Connect ethernet uplink - using the USB-to-ethernet adapter if you have one.</p> |
---|
104 | <p>Power on and hold the alt/option key while it is starting. You may get a choice of boot icons - the USB key will be "EFI boot".</p> |
---|
105 | <p>After this you should get a menu of Ubuntu options:</p> |
---|
106 | <pre><code>Install Ubuntu Server |
---|
107 | Install in expert mode |
---|
108 | Multiple server install with MAAS |
---|
109 | Check disc for defects |
---|
110 | Rescue a broken system</code></pre> |
---|
111 | <p>Select "Install Ubuntu Server" and proceed as normal, choosing country, language and keyboard layout.</p> |
---|
112 | <p>If you are using the USB-to-ethernet adapter for your external Internet connection, then you will be prompted for the primary network interface:</p> |
---|
113 | <pre><code>eth0: Broadcom Corporation NetXtreme BCM57765 Gigabit Ethernet PCIe |
---|
114 | eth1: Ethernet</code></pre> |
---|
115 | <p>Choose the one which is your ethernet uplink (i.e. eth1)</p> |
---|
116 | <ul> |
---|
117 | <li>When you see "Configuring network with DHCP" press ENTER to cancel. Do this quickly!</li> |
---|
118 | <li>Press "Continue" on the Network autoconfiguration failed screen.</li> |
---|
119 | <li><p>Select "Do not configure the network at this time"</p></li> |
---|
120 | <li>Hostname: <code>kit<number></code> or whatever unique identifier for this setup</li> |
---|
121 | <li>Full name for the new user: NSRC instructor</li> |
---|
122 | <li>Username: nsrc</li> |
---|
123 | <li>(Use a suitable instructor password)</li> |
---|
124 | <li>Encrypt your home directory? No</li> |
---|
125 | <li>Select timezone. If you are going to be travelling around the world you should not accept the local timezone, and instead scroll down to "UTC" at the very end of the worldwide list.</li> |
---|
126 | <li>Partition |
---|
127 | <ul> |
---|
128 | <li>If you see a screen that the install has detected a mounted partition select Yes to unmount the partition before continuing.</li> |
---|
129 | </ul></li> |
---|
130 | <li>Partitioning: |
---|
131 | <ul> |
---|
132 | <li>Guided - use entire disk and set up LVM</li> |
---|
133 | <li>"Select disk to partition" SCSI1 (0,0,0) sda</li> |
---|
134 | <li>"Write changes to disk and configure LVM?" Yes</li> |
---|
135 | <li>Amount of volume group to use for guided partitioning: 50G (This will give about 31G root and 16G swap, but these are easy to grow later if required)</li> |
---|
136 | <li><p>The partitioning generated should look something like this:</p> |
---|
137 | <pre><code>LVM VG hostname-vg, LV root as ext4 |
---|
138 | LVM VG hostname-vg, LV swap_1 as swap |
---|
139 | partition #1 of SCSI1 (0,0,0) (sda) as EFIboot |
---|
140 | partition #2 of SCSI1 (0,0,0) (sda) as ext2 |
---|
141 | |
---|
142 | Write the changes to disks?</code></pre> |
---|
143 | <p>Answer Yes.</p></li> |
---|
144 | </ul></li> |
---|
145 | <li>Use HTTP proxy? <em>Check with your instructors</em> whether there is a local cache you should use to speed up installation. If not, leave this blank, and packages will be fetched over the Internet.</li> |
---|
146 | <li>No automatic updates (you don't want changes in the middle of a workshop)</li> |
---|
147 | <li>Software to install: select only "OpenSSH server". Use the space bar to toggle selections.</li> |
---|
148 | <li><p>Installation is complete: hit Enter, then unplug CD-ROM or USB stick when the screen goes black.</p></li> |
---|
149 | </ul> |
---|
150 | <h1 id="login-after-reboot"><a href="#login-after-reboot"><span class="header-section-number">4</span> Login after reboot</a></h1> |
---|
151 | <p>Your Mac should be up and running - login as user <code>nsrc</code>.</p> |
---|
152 | <p>Use <code>ifconfig -a</code> to find its external IP address, and you should be able to ssh into it from outside. Then you no longer need the keyboard and monitor.</p> |
---|
153 | <p>Hint: also take a note of the MAC address of the USB-ethernet adapter, and label it. It helps when locating the machine without a monitor.</p> |
---|
154 | <p>Since all the following commands need to be done as root, get a root shell:</p> |
---|
155 | <pre><code>$ sudo -s |
---|
156 | #</code></pre> |
---|
157 | <h2 id="add-the-second-hard-drive"><a href="#add-the-second-hard-drive"><span class="header-section-number">4.1</span> Add the second hard drive</a></h2> |
---|
158 | <p>The second hard drive can now be made available for storing data.</p> |
---|
159 | <p>The simplest way to do this is to make the whole second drive an LVM physical volume, and add it to our volume group.</p> |
---|
160 | <p>First, check your current volume group name:</p> |
---|
161 | <pre><code># vgs</code></pre> |
---|
162 | <p>Look under the first column "VG": if it was created by the Ubuntu installer it will be something like "<hostname>-vg".</p> |
---|
163 | <p>Label your second drive as a physical volume, and add it to the volume group:</p> |
---|
164 | <pre><code># pvcreate /dev/sdb |
---|
165 | # vgextend <hostname>-vg /dev/sdb</code></pre> |
---|
166 | <p>Now check your work:</p> |
---|
167 | <pre><code># pvs # should show both /dev/sda3 and /dev/sdb as physical volumes |
---|
168 | # vgs # The "#PV" (number of physical volumes) and VSize/VFree should increase</code></pre> |
---|
169 | <blockquote> |
---|
170 | <p>Alternatively you could choose to partition it in the same way as the first drive, and it might be possible to boot off this drive if the first one fails - but you'd almost certainly have lost your OS installation anyway.</p> |
---|
171 | </blockquote> |
---|
172 | <p>Now let's create a new logical volume and mount it under <code>/data</code>. By creating a "striped" volume, half of the extents will be on each disk; this increases performance by dividing the read and write load between the disks. Choosing a large stripe size ensures that <em>smaller</em> reads and writes hit only a single disk.</p> |
---|
173 | <pre><code># lvcreate --size 300G --stripes 2 --stripesize 4096 --name data <hostname>-vg |
---|
174 | # mkfs.ext4 -m 0 /dev/<hostname>-vg/data |
---|
175 | # mkdir /data |
---|
176 | # vi /etc/fstab |
---|
177 | ... add this line ... |
---|
178 | /dev/<hostname>-vg/data /data ext4 noatime 0 2 |
---|
179 | |
---|
180 | # mount /data |
---|
181 | # df -h</code></pre> |
---|
182 | <p>To see which physical volume(s) each logical volume is using:</p> |
---|
183 | <pre><code># lvs -a -o +devices |
---|
184 | or |
---|
185 | # lvs -a -o name,lv_size,devices</code></pre> |
---|
186 | <h2 id="optimise-the-swap-volume"><a href="#optimise-the-swap-volume"><span class="header-section-number">4.2</span> Optimise the swap volume</a></h2> |
---|
187 | <p>You can move the swap volume to the second disk, which helps balance the usage slightly.</p> |
---|
188 | <pre><code># pvmove -n swap_1 /dev/sda3 /dev/sdb</code></pre> |
---|
189 | <p>Optionally, you could also reduce its size. By default a 16GB RAM system will have a 16GB swap volume. If you don't intend to use hibernate functionality you can reduce it to (say) 4GB, as you never want your machine to go this far into swap anyway.</p> |
---|
190 | <pre><code># swapoff -a |
---|
191 | # lvresize --size 4G /dev/<hostname>-vg/swap_1 |
---|
192 | WARNING: Reducing active logical volume to 4.00 GiB |
---|
193 | THIS MAY DESTROY YOUR DATA (filesystem etc.) |
---|
194 | Do you really want to reduce swap_1? [y/n]: y |
---|
195 | Reducing logical volume swap_1 to 4.00 GiB |
---|
196 | Logical volume swap_1 successfully resized |
---|
197 | # mkswap /dev/<hostname>-vg/swap_1</code></pre> |
---|
198 | <p>Finally enable the swap partitions again</p> |
---|
199 | <pre><code># swapon -a |
---|
200 | # free # should have 4GB of swap space</code></pre> |
---|
201 | <h2 id="configure-the-internal-network-interface"><a href="#configure-the-internal-network-interface"><span class="header-section-number">4.3</span> Configure the internal network interface</a></h2> |
---|
202 | <p>We purposely did not configure our network interfaces during installation so that the installation would go faster and we could configure out interfaces as we want now. You can see that neither eth0 or eth1 are configured by doing:</p> |
---|
203 | <pre><code>$ ifconfig</code></pre> |
---|
204 | <p>To fix this, as root, at the command line prompt type:</p> |
---|
205 | <pre><code># vi /etc/network/interfaces</code></pre> |
---|
206 | <p>Make sure the file looks like this:</p> |
---|
207 | <pre><code>auto lo |
---|
208 | iface lo inet loopback |
---|
209 | |
---|
210 | auto eth0 |
---|
211 | iface eth0 inet static |
---|
212 | address 10.10.0.241 |
---|
213 | netmask 255.255.255.0 |
---|
214 | |
---|
215 | auto eth1 |
---|
216 | iface eth1 inet dhcp</code></pre> |
---|
217 | <p>Now to bring up both interfaces with their new configurations do:</p> |
---|
218 | <pre><code># ifup eth0 |
---|
219 | # ifup eth1</code></pre> |
---|
220 | <p>Wait a few seconds for the script to complete then type:</p> |
---|
221 | <pre><code># ifconfig</code></pre> |
---|
222 | <p>to see that your network is now configured. Trying pinging some external sites to verify that your network is working.</p> |
---|
223 | <h2 id="update-all-packages"><a href="#update-all-packages"><span class="header-section-number">4.4</span> Update all packages</a></h2> |
---|
224 | <p>Now that our base operating system is installed we need to pull down a list of current versions of available packages and then download and install the packages.</p> |
---|
225 | <p>Let's first see what version of the Linux kernel we are running:</p> |
---|
226 | <pre><code>$ uname -a</code></pre> |
---|
227 | <p>Remember this and see if you have a newer kernel version once we are finished with this exercise. To update apt and then packages that need updating do:</p> |
---|
228 | <pre><code># apt-get update |
---|
229 | # apt-get dist-upgrade</code></pre> |
---|
230 | <p>Say "Yes" to downloading and installing the new packages.</p> |
---|
231 | <p>This could take some time as a considerable amount of information is going to be downloaded. While this is happening we will go on to the next set of configuration items for your workshop kit which includes configuring your switch and access point.</p> |
---|
232 | <p>When your machine finishes with the apt-get update and the apt-get dist-upgrade processes you will likely have a new kernel image. This is one of the few times you need to reboot Linux to see change. To do this do:</p> |
---|
233 | <pre><code># reboot</code></pre> |
---|
234 | <p>Wait for the MacMini to restart and log back in as the user nsrc, then type:</p> |
---|
235 | <pre><code>$ uname -a</code></pre> |
---|
236 | <p>To see the version of the Linux kernel that you are running. Is it different from what you had before running "apt-get update" and "apt-get dist-upgrade"?</p> |
---|
237 | <p>At this point your MacMini is ready and in its initial state. We'll be updating your MacMini environment using a tool called Ansible a bit later.</p> |
---|
238 | <p>Assuming your network interfaces are properly configured you can now remove the monitor and keyboard attached to your MacMini and connect to it using ssh instead.</p> |
---|
239 | <h2 id="update-etchosts-file"><a href="#update-etchosts-file"><span class="header-section-number">4.5</span> Update /etc/hosts file</a></h2> |
---|
240 | <p>By updating your /etc/hosts file to include the lab.nsrc.org domain your machine's public IP address will be registered on the public Internet using dynamic DNS. This will be configured using Ansible in our upcoming exercises. In addition for class exercises and infrastructure your Mac Mini is referred to as "s1" or "s1.ws.nsrc.org". We will add both these entries to your /etc/hosts file.</p> |
---|
241 | <p>The first two lines in your /etc/hosts file should look like:</p> |
---|
242 | <pre><code>127.0.0.1 localhost |
---|
243 | 127.0.1.1 kitX</code></pre> |
---|
244 | <p>The "X" is the number of your kit. We will now edit this file by doing:</p> |
---|
245 | <pre><code>$ sudo vi /etc/hosts</code></pre> |
---|
246 | <p>And change the first two lines to look like this:</p> |
---|
247 | <pre><code>127.0.0.1 localhost |
---|
248 | 10.10.0.241 kitX.lab.nsrc.org kitX s1.ws.nsrc.org s1</code></pre> |
---|
249 | <p>Be sure you substitue your kit's number for "X". Once done, save the file and exit.</p> |
---|
250 | <h1 id="troubleshooting-post-installation-problems"><a href="#troubleshooting-post-installation-problems"><span class="header-section-number">5</span> Troubleshooting post installation problems</a></h1> |
---|
251 | <h2 id="your-mac-does-not-boot"><a href="#your-mac-does-not-boot"><span class="header-section-number">5.1</span> Your Mac does not boot</a></h2> |
---|
252 | <p>If this is the first time you are installing Linux on your MacMini it's possible that the Linux installer will not set the boot order correctly. Your Mac may be set to boot Mac OS X, but this is no longer available. To correct this you need to do:</p> |
---|
253 | <ul> |
---|
254 | <li>Connect a current Ubuntu version installation media, such as an Ubuntu 14.04 LTS USB disk.</li> |
---|
255 | <li>Start your MacMini and hold down the option key until you see an option to boot as "EFI Boot"</li> |
---|
256 | <li>Select "EFI Boot" and when presented with the Ubuntu Install screen select "Rescue a broken system"</li> |
---|
257 | <li>You are now asked to run through the initial stages of the Ubuntu installation.</li> |
---|
258 | <li>Select keyboard, country, primary network interface (eth1), set hostname and time zone. Note that you can just use all defaults as none of these items will be saved.</li> |
---|
259 | <li>When you see the screen for "Device to use as root file system:" select <code>/dev/s1-vg/root</code></li> |
---|
260 | <li>When asked whether to mount the separate /boot partition, say Yes.</li> |
---|
261 | <li>Select "Execute a shell in /dev/<hostname>-vg/root" and select "Continue"</li> |
---|
262 | </ul> |
---|
263 | <p>At the bottom of your screen you will see the "#" command prompt. You are now in a rescue Linux shell where we can set some hardware options. You can type:</p> |
---|
264 | <pre><code>efibootmgr</code></pre> |
---|
265 | <p>You'll probably see MacOS X listed as the BootCurrent item (0080). We want the Ubuntu entry to become the BootCurrent item. To do this type:</p> |
---|
266 | <pre><code>efibootmgr -o 00</code></pre> |
---|
267 | <p>And, that's it.</p> |
---|
268 | <ul> |
---|
269 | <li>Type "exit" to leave the rescue shell</li> |
---|
270 | <li>Select "Reboot the system" and remove the USB key.</li> |
---|
271 | </ul> |
---|
272 | <p>Your MacMini should now boot. It may pause for a moment with the white screen, but give it a few seconds to complete booting.</p> |
---|
273 | <h2 id="problems-with-video"><a href="#problems-with-video"><span class="header-section-number">5.2</span> Problems with video</a></h2> |
---|
274 | <p>If the attached monitor displays the grub prompt but then goes blank after booting, your monitor may not support the default resolution. If this happens, try booting with parameter "nomodeset".</p> |
---|
275 | <ul> |
---|
276 | <li>Hit any key at the grub menu to stop booting</li> |
---|
277 | <li>Hit 'e' to edit</li> |
---|
278 | <li>Go to the end of the "linux ..." line, and add <code>nomodeset</code> to the end</li> |
---|
279 | <li>Ctrl-X or F10 to continue booting</li> |
---|
280 | </ul> |
---|
281 | <p>Then to make this change permanent:</p> |
---|
282 | <pre><code># vi /etc/default/grub |
---|
283 | GRUB_CMDLINE_LINUX_DEFAULT="nomodeset" |
---|
284 | |
---|
285 | # update-grub</code></pre> |
---|
286 | <h2 id="problems-with-ethernet"><a href="#problems-with-ethernet"><span class="header-section-number">5.3</span> Problems with ethernet</a></h2> |
---|
287 | <p>On the Internet there is <a href="http://www.frozenindustries.com/2012/11/04/ubuntu-12-04-lts-on-an-apple-mac-mini-late-2012/">another set of instructions</a> for installing Ubuntu 12.04 on a Mac Mini 6,2. The author describes building the tg3 network driver from source and installing with the "noapic" option. However we found we didn't have to do this.</p> |
---|
288 | <h1 id="installing-on-older-macminis"><a href="#installing-on-older-macminis"><span class="header-section-number">6</span> Installing on older MacMinis</a></h1> |
---|
289 | <p>The following instructions were from previous tests with a Macmini4,1 and are kept in case they help debugging problems on older machines.</p> |
---|
290 | <h2 id="boot-using-mac-os-x-install-cd"><a href="#boot-using-mac-os-x-install-cd"><span class="header-section-number">6.1</span> Boot using Mac OS X install CD</a></h2> |
---|
291 | <h2 id="wipe-out-all-partitions"><a href="#wipe-out-all-partitions"><span class="header-section-number">6.2</span> Wipe out all partitions</a></h2> |
---|
292 | <p>It's probably safer to wipe out the existing Mac OS X and Linux partitions, which should also get rid of rEFIt. That way we make sure that rEFIt is not changing how Linux views the system.</p> |
---|
293 | <ul> |
---|
294 | <li>Use Disk Utility to remove all partitions on both drives</li> |
---|
295 | </ul> |
---|
296 | <h2 id="get-the-right-ubuntu-install-cd"><a href="#get-the-right-ubuntu-install-cd"><span class="header-section-number">6.3</span> Get the right Ubuntu install CD</a></h2> |
---|
297 | <p>The image used successfully was the alternate-amd64+mac.iso image</p> |
---|
298 | <p>The problem is that this installs all the desktop GUI crap, which must be removed after installation.</p> |
---|
299 | <h2 id="install-ubuntu"><a href="#install-ubuntu"><span class="header-section-number">6.4</span> Install Ubuntu</a></h2> |
---|
300 | <ul> |
---|
301 | <li>Boot from CD</li> |
---|
302 | <li>Press F6 and select: |
---|
303 | <ul> |
---|
304 | <li>acpi=off</li> |
---|
305 | <li>nomodeset</li> |
---|
306 | </ul></li> |
---|
307 | <li>Continue as above, including same partitioning scheme</li> |
---|
308 | <li>Reboot</li> |
---|
309 | </ul> |
---|
310 | <h2 id="edit-grub-defaults"><a href="#edit-grub-defaults"><span class="header-section-number">6.5</span> Edit grub defaults</a></h2> |
---|
311 | <pre><code># vi /etc/default/grub |
---|
312 | |
---|
313 | GRUB_CMDLINE_LINUX_DEFAULT="quiet" |
---|
314 | GRUB_CMDLINE_LINUX=”noacpi nomodeset reboot=acpi”</code></pre> |
---|
315 | <p>Disable lightdm (replacement for gdm):</p> |
---|
316 | <pre><code>echo 'manual' | sudo tee /etc/init/lightdm.override</code></pre> |
---|
317 | <p>Then:</p> |
---|
318 | <pre><code># update-grub</code></pre> |
---|
319 | <h2 id="convert-into-server"><a href="#convert-into-server"><span class="header-section-number">6.6</span> Convert into server</a></h2> |
---|
320 | <p>Remove all the desktop-related packages:</p> |
---|
321 | <pre><code># apt-get --purge remove 'gnome-*' xerver-xorg</code></pre> |
---|
322 | <p>And install the right kernel:</p> |
---|
323 | <pre><code># apt-get install linux-headers-server linux-image-server linux-server</code></pre> |
---|
324 | <p>All set.</p> |
---|
325 | <p>Aside: there may be another way to do this <a href="http://www.darrinhodges.com/converting-ubuntu-12-04-lts-desktop-to-server/">using tasksel</a></p> |
---|
326 | <div class="footnotes"> |
---|
327 | <hr /> |
---|
328 | <ol> |
---|
329 | <li id="fn1"><p>See <a href="http://askubuntu.com/questions/37999/what-is-different-about-the-mac-iso-image">http://askubuntu.com/questions/37999/what-is-different-about-the-mac-iso-image</a><a href="#fnref1">↩</a></p></li> |
---|
330 | </ol> |
---|
331 | </div> |
---|
332 | </body> |
---|
333 | </html> |
---|