04_GRUN.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873
  1. <!DOCTYPE HTML>
  2. <html lang="" >
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  6. <title>GRUN 之路 · 代码收集</title>
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  8. <meta name="description" content="">
  9. <meta name="generator" content="GitBook 3.1.1">
  10. <link rel="stylesheet" href="../../gitbook/style.css">
  11. <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-pro/search.css">
  12. <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
  13. <meta name="HandheldFriendly" content="true"/>
  14. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  15. <meta name="apple-mobile-web-app-capable" content="yes">
  16. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  17. <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
  18. <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
  19. <link rel="next" href="05_L2TP_Client.html" />
  20. <link rel="prev" href="03_WordPress.html" />
  21. </head>
  22. <body>
  23. <div class="gb-page-wrapper">
  24. <header class="gb-page-header">
  25. <div class="container">
  26. <div id="book-search-input" role="search">
  27. <input type="text" placeholder="Type to search" />
  28. </div>
  29. <a href="../.." class="logo">
  30. <img src="../../gitbook/images/logo/128.png">
  31. <h1>代码收集</h1>
  32. </a>
  33. <a href="https://github.com/seamong/myBlogs/blob/doc/ubuntu/serves/04_GRUN.md" target="_blank" class="btn btn-link pull-right hidden-xs">
  34. <i class="octicon octicon-mark-github"></i> 在GitHub编辑本页
  35. </a>
  36. <a href="../../faq.md" class="btn btn-link pull-right hidden-xs">
  37. F.A.Q
  38. </a>
  39. <a href="https://github.com/seamong/myBlogs/README.md" target="_blank" class="btn btn-link pull-right hidden-xs">
  40. 当前版本0.0.1
  41. </a>
  42. </div>
  43. </header>
  44. <div class="gb-page-body">
  45. <div class="gb-page-inner">
  46. <div class="container">
  47. <div class="row">
  48. <div class="col-md-3">
  49. <div class="panel panel-default">
  50. <div class="panel-heading">
  51. <h3 class="panel-title">介绍</h3>
  52. </div>
  53. <div class="list-group">
  54. <a href="../../" class="list-group-item ">
  55. 关于本文档
  56. </a>
  57. </div>
  58. </div>
  59. <div class="panel panel-default">
  60. <div class="panel-heading">
  61. <h3 class="panel-title">JavaScript</h3>
  62. </div>
  63. <div class="list-group">
  64. <a href="../../JavaScript/principle/" class="list-group-item ">
  65. <i class="octicon octicon-chevron-right"></i>
  66. 原理解析
  67. </a>
  68. <a href="../../JavaScript/cases/" class="list-group-item ">
  69. <i class="octicon octicon-chevron-right"></i>
  70. 案例解析
  71. </a>
  72. </div>
  73. </div>
  74. <div class="panel panel-default">
  75. <div class="panel-heading">
  76. <h3 class="panel-title">angular</h3>
  77. </div>
  78. <div class="list-group">
  79. <a href="../../angular/study_notes/" class="list-group-item ">
  80. <i class="octicon octicon-chevron-right"></i>
  81. Study notes
  82. </a>
  83. <a href="../../angular/ng.html" class="list-group-item ">
  84. ng
  85. </a>
  86. </div>
  87. </div>
  88. <div class="panel panel-default">
  89. <div class="panel-heading">
  90. <h3 class="panel-title">css</h3>
  91. </div>
  92. <div class="list-group">
  93. <a href="../../css/principle/" class="list-group-item ">
  94. 原理解析
  95. </a>
  96. <a href="../../css/cases/" class="list-group-item ">
  97. <i class="octicon octicon-chevron-right"></i>
  98. 案例收集
  99. </a>
  100. </div>
  101. </div>
  102. <div class="panel panel-default">
  103. <div class="panel-heading">
  104. <h3 class="panel-title">vue</h3>
  105. </div>
  106. <div class="list-group">
  107. <a href="../../vue/components/" class="list-group-item ">
  108. <i class="octicon octicon-chevron-right"></i>
  109. components
  110. </a>
  111. <a href="../../vue/router/" class="list-group-item ">
  112. <i class="octicon octicon-chevron-right"></i>
  113. router
  114. </a>
  115. <a href="../../vue/vuex/" class="list-group-item ">
  116. VUE
  117. </a>
  118. </div>
  119. </div>
  120. <div class="panel panel-default">
  121. <div class="panel-heading">
  122. <h3 class="panel-title">ubuntu</h3>
  123. </div>
  124. <div class="list-group">
  125. <a href="./" class="list-group-item ">
  126. <i class="octicon octicon-chevron-down"></i>
  127. 服务器生存指南
  128. </a>
  129. <a href="0_ftp.html" class="list-group-item ">
  130. <i class="octicon octicon-chevron-down" style="opacity: 0"></i>
  131. ftp 之路
  132. </a>
  133. <a href="01_nginx/1_nginx.html" class="list-group-item ">
  134. <i class="octicon octicon-chevron-down" style="opacity: 0"></i>
  135. <i class="octicon octicon-chevron-right"></i>
  136. nginx 安装
  137. </a>
  138. <a href="02_mysql/1_mysql.html" class="list-group-item ">
  139. <i class="octicon octicon-chevron-down" style="opacity: 0"></i>
  140. <i class="octicon octicon-chevron-right"></i>
  141. mysql 安装
  142. </a>
  143. <a href="03_WordPress.html" class="list-group-item ">
  144. <i class="octicon octicon-chevron-down" style="opacity: 0"></i>
  145. WordPress 之路
  146. </a>
  147. <a href="04_GRUN.html" class="list-group-item active">
  148. <i class="octicon octicon-chevron-down" style="opacity: 0"></i>
  149. GRUN 之路
  150. </a>
  151. <a href="05_L2TP_Client.html" class="list-group-item ">
  152. <i class="octicon octicon-chevron-down" style="opacity: 0"></i>
  153. L2TP Client 之路
  154. </a>
  155. <a href="06_docker.html" class="list-group-item ">
  156. <i class="octicon octicon-chevron-down" style="opacity: 0"></i>
  157. docker之路
  158. </a>
  159. <a href="07_mongodb.html" class="list-group-item ">
  160. <i class="octicon octicon-chevron-down" style="opacity: 0"></i>
  161. mongodb之路
  162. </a>
  163. <a href="../instruction.html" class="list-group-item ">
  164. 常用指令
  165. </a>
  166. <a href="../software/" class="list-group-item ">
  167. 常用软件安装
  168. </a>
  169. </div>
  170. </div>
  171. <div class="panel panel-default">
  172. <div class="panel-heading">
  173. <h3 class="panel-title">GIT</h3>
  174. </div>
  175. <div class="list-group">
  176. <a href="../../git/git.html" class="list-group-item ">
  177. git 命令
  178. </a>
  179. <a href="../../git/push.html" class="list-group-item ">
  180. git~push
  181. </a>
  182. <a href="../../git/faq.html" class="list-group-item ">
  183. git~F.A.Q
  184. </a>
  185. </div>
  186. </div>
  187. <div class="panel panel-default">
  188. <div class="panel-heading">
  189. <h3 class="panel-title">NODE&NPM</h3>
  190. </div>
  191. <div class="list-group">
  192. <a href="../../node/0.html" class="list-group-item ">
  193. <i class="octicon octicon-chevron-right"></i>
  194. node
  195. </a>
  196. <a href="../../node/npm/0.html" class="list-group-item ">
  197. npm
  198. </a>
  199. </div>
  200. </div>
  201. <div class="panel panel-default">
  202. <div class="list-group">
  203. <a href="../../other/faq.html" class="list-group-item ">
  204. FAQ
  205. </a>
  206. <a href="../../other/examples.html" class="list-group-item ">
  207. Examples
  208. </a>
  209. </div>
  210. </div>
  211. </div>
  212. <div class="col-md-9">
  213. <div id="book-search-results">
  214. <div class="search-noresults">
  215. <div class="gb-markdown book-page-inner">
  216. <h1 id="grun&#x4E4B;&#x8DEF;">GRUN&#x4E4B;&#x8DEF;</h1>
  217. <p>&#x7F16;&#x8F91;</p>
  218. <pre><code class="lang-bash"><span class="hljs-comment">#&#x8FDB;&#x5165;GRUN</span>
  219. sudo vim /etc/default/grub
  220. <span class="hljs-comment"># &#x5728;&#x6587;&#x4EF6;&#x4E2D;&#x3002;&#x5C06;&#x76F8;&#x5173;&#x5185;&#x5BB9;&#x8BBE;&#x7F6E;&#x4E3A;&#x5982;&#x4E0B;&#x5185;&#x5BB9;</span>
  221. GRUB_CMDLINE_LINUX_DEFAULT=<span class="hljs-string">&quot;quiet splash&quot;</span>
  222. GRUB_CMDLINE_LINUX=<span class="hljs-string">&quot;acpi=off&quot;</span>
  223. </code></pre>
  224. <p>&#x4FDD;&#x5B58;&#x4FEE;&#x6539;&amp;&#x914D;&#x7F6E;&#x5230;&#x7CFB;&#x7EDF;</p>
  225. <pre><code>sudo update-grup
  226. </code></pre><p>apci=off</p>
  227. <blockquote>
  228. <p>&#x7981;&#x7528;&#x90E8;&#x5206;&#x8BBE;&#x5907;&#x786C;&#x4EF6;&#xFF0C;&#x63D0;&#x9AD8;&#x7CFB;&#x7EDF;&#x54CD;&#x5E94;&#x901F;&#x5EA6;&#x3002;&#x7279;&#x522B;&#x662F;&#x4F7F;&#x7528;HHD&#x4F5C;&#x4E3A;&#x7CFB;&#x7EDF;&#x76D8;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x3002;&#x6548;&#x679C;&#x663E;&#x8457;</p>
  229. </blockquote>
  230. <p>nomodeset</p>
  231. <blockquote>
  232. <p>&#x6700;&#x65B0;&#x7684;&#x5185;&#x6838;&#x5DF2;&#x7ECF;&#x628A;&#x89C6;&#x9891;&#x6A21;&#x5F0F;&#x8BBE;&#x7F6E;&#x5D4C;&#x5165;&#x5185;&#x6838;&#x4E2D;&#xFF0C;&#x6240;&#x4EE5;&#x6240;&#x6709;&#x663E;&#x5361;&#x786C;&#x4EF6;&#x7A0B;&#x5E8F;&#x7684;&#x6307;&#x5B9A;&#x65F6;&#x949F;&#x548C;&#x5BC4;&#x5B58;&#x5668;&#x5F53;&#x56FE;&#x5F62;&#x670D;&#x52A1;&#x5668;&#x542F;&#x52A8;&#x65F6;&#x5728;&#x5185;&#x6838;&#x8FDB;&#x884C;&#x800C;&#x4E0D;&#x662F;&#x56FE;&#x5F62;&#x8BBE;&#x5907;&#x8FD0;&#x884C;&#xFF0C;&#x8FD9;&#x4F7F;&#x5F97;&#x6211;&#x4EEC;&#x5728;&#x542F;&#x52A8;&#x65F6;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x4E0D;&#x95EA;&#x7684;&#x548C;&#x9AD8;&#x5206;&#x8FA8;&#x7387;&#x7684;&#x597D;&#x770B;&#x7684;&#x542F;&#x52A8;&#x754C;&#x9762;&#xFF0C;&#x4F46;&#x662F;&#xFF0C;&#x5728;&#x67D0;&#x4E9B;&#x89C6;&#x9891;&#x5361;&#x5B83;&#x4E0D;&#x80FD;&#x6B63;&#x5E38;&#x5DE5;&#x4F5C;&#x800C;&#x73B0;&#x5B9E;&#x9ED1;&#x5C4F;&#xFF0C;&#x589E;&#x52A0;nomodeset&#x53C2;&#x6570;&#x5219;&#x544A;&#x8BC9;&#x5185;&#x6838;&#x4E0D;&#x8981;&#x52A0;&#x8F7D;&#x663E;&#x5361;&#x800C;&#x7528;BIOS&#x6A21;&#x5F0F;&#x76F4;&#x5230;&#x56FE;&#x5F62;&#x754C;&#x9762;&#x8FD0;&#x884C;<hr>
  233. The newest kernels have moved the video mode setting into the kernel. So all the programming of the hardware specific clock rates and registers on the video card happen in the kernel rather than in the X driver when the X server starts.. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some cards this doesnt work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.</p>
  234. </blockquote>
  235. <p>quiet</p>
  236. <blockquote>
  237. <p>&#x5185;&#x6838;&#x542F;&#x52A8;&#x65F6;&#x5019;&#x7B80;&#x5316;&#x63D0;&#x793A;&#x4FE1;&#x606F;</p>
  238. </blockquote>
  239. <p>splash</p>
  240. <blockquote>
  241. <p>&#x542F;&#x52A8;&#x7684;&#x65F6;&#x5019;&#x4F7F;&#x7528;&#x56FE;&#x5F62;&#x5316;&#x7684;&#x8FDB;&#x5EA6;&#x6761;&#x4EE3;&#x66FF;init&#x7684;&#x5B57;&#x7B26;&#x8F93;&#x51FA;&#x8FC7;&#x7A0B;</p>
  242. </blockquote>
  243. <p>&#x8BE6;&#x7EC6;&#x4EE3;&#x7801;</p>
  244. <pre><code class="lang-bash"><span class="hljs-comment"># If you change this file, run &apos;update-grub&apos; afterwards to update</span>
  245. <span class="hljs-comment"># /boot/grub/grub.cfg.</span>
  246. <span class="hljs-comment"># For full documentation of the options in this file, see:</span>
  247. <span class="hljs-comment"># info -f grub -n &apos;Simple configuration&apos;</span>
  248. GRUB_DEFAULT=0
  249. GRUB_HIDDEN_TIMEOUT=0
  250. GRUB_HIDDEN_TIMEOUT_QUIET=<span class="hljs-literal">true</span>
  251. GRUB_TIMEOUT=10
  252. GRUB_DISTRIBUTOR=`lsb_release -i <span class="hljs-_">-s</span> 2&gt; /dev/null || <span class="hljs-built_in">echo</span> Debian`
  253. GRUB_CMDLINE_LINUX_DEFAULT=<span class="hljs-string">&quot;quiet&quot;</span>
  254. GRUB_CMDLINE_LINUX=<span class="hljs-string">&quot;acpi=on&quot;</span>
  255. <span class="hljs-comment"># Uncomment to enable BadRAM filtering, modify to suit your needs</span>
  256. <span class="hljs-comment"># This works with Linux (no patch required) and with any kernel that obtains</span>
  257. <span class="hljs-comment"># the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)</span>
  258. <span class="hljs-comment">#GRUB_BADRAM=&quot;0x01234567,0xfefefefe,0x89abcdef,0xefefefef&quot;</span>
  259. <span class="hljs-comment"># Uncomment to disable graphical terminal (grub-pc only)</span>
  260. <span class="hljs-comment">#GRUB_TERMINAL=console</span>
  261. <span class="hljs-comment"># The resolution used on graphical terminal</span>
  262. <span class="hljs-comment"># note that you can use only modes which your graphic card supports via VBE</span>
  263. <span class="hljs-comment"># you can see them in real GRUB with the command `vbeinfo&apos;</span>
  264. <span class="hljs-comment">#GRUB_GFXMODE=640x480</span>
  265. <span class="hljs-comment"># Uncomment if you don&apos;t want GRUB to pass &quot;root=UUID=xxx&quot; parameter to Linux</span>
  266. <span class="hljs-comment">#GRUB_DISABLE_LINUX_UUID=true</span>
  267. <span class="hljs-comment"># Uncomment to disable generation of recovery mode menu entries</span>
  268. <span class="hljs-comment">#GRUB_DISABLE_RECOVERY=&quot;true&quot;</span>
  269. <span class="hljs-comment"># Uncomment to get a beep at grub start</span>
  270. <span class="hljs-comment">#GRUB_INIT_TUNE=&quot;480 440 1&quot;</span>
  271. </code></pre>
  272. </div>
  273. <hr>
  274. <div class="btn-group btn-group-justified">
  275. <a class="btn" href="03_WordPress.html"><b>上一页:</b> WordPress 之路</a>
  276. <a class="btn" href="05_L2TP_Client.html"><b>下一页:</b> L2TP Client 之路</a>
  277. </div>
  278. </div>
  279. <div class="search-results">
  280. <div class="has-results">
  281. <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
  282. <ul class="search-results-list"></ul>
  283. </div>
  284. <div class="no-results">
  285. <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. </div>
  293. </div>
  294. <footer class="gb-page-footer">
  295. <div class="container">
  296. <ul class="menu">
  297. <li class="pull-right">
  298. <span class="service-info">Copyright GitBook 2018</span>
  299. </li>
  300. <li>
  301. <a href="#">Return to the top</a>
  302. </li>
  303. <li>
  304. <a href="#">Updated May 31st 18</a>
  305. </li>
  306. </ul>
  307. </div>
  308. </footer>
  309. </div>
  310. <script src="../../gitbook/gitbook.js"></script>
  311. <script src="../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
  312. <script src="../../gitbook/gitbook-plugin-search-pro/search.js"></script>
  313. <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
  314. <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
  315. <script>
  316. (function() {
  317. gitbook.page.hasChanged({"page":{"title":"GRUN 之路","level":"6.1.5","depth":2,"next":{"title":"L2TP Client 之路","level":"6.1.6","depth":2,"path":"ubuntu/serves/05_L2TP_Client.md","ref":"ubuntu/serves/05_L2TP_Client.md","articles":[]},"previous":{"title":"WordPress 之路","level":"6.1.4","depth":2,"path":"ubuntu/serves/03_WordPress.md","ref":"ubuntu/serves/03_WordPress.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-official@2.1.1","-sharing","-fontsettings","sitemap","-search","search-pro"],"root":"./docs/","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"sitemap":{"hostname":"https://blog.honghaitao.net/"},"search-pro":{"cutWordLib":"nodejieba","defineWord":["小需求","基础建设"]},"highlight":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"theme-official":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"version":"0.0.1"},"title":"代码收集","gitbook":"3.1.1"},"file":{"path":"ubuntu/serves/04_GRUN.md","mtime":"2018-05-31T02:38:44.729Z","type":"markdown"},"gitbook":{"version":"3.1.1","time":"2018-05-31T08:39:58.544Z"},"basePath":"../..","book":{"language":""}});
  318. })();
  319. </script>
  320. </body>
  321. </html>