<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>斜月三星洞</title>
  
  <subtitle>海外版</subtitle>
  <link href="/atom.xml" rel="self"/>
  
  <link href="https://www.2bmi.com/"/>
  <updated>2018-05-23T04:17:29.177Z</updated>
  <id>https://www.2bmi.com/</id>
  
  <author>
    <name>洞主</name>
    
  </author>
  
  <generator uri="http://hexo.io/">Hexo</generator>
  
  <entry>
    <title>KMS三行命令激活windows系统/office</title>
    <link href="https://www.2bmi.com/2018/45102.html"/>
    <id>https://www.2bmi.com/2018/45102.html</id>
    <published>2018-05-21T11:05:09.000Z</published>
    <updated>2018-05-23T04:17:29.177Z</updated>
    
    <content type="html"><![CDATA[<blockquote><p>参考 秋水逸冰 大大的博客</p><p><a href="https://teddysun.com/530.html" target="_blank" rel="external">https://teddysun.com/530.html</a></p></blockquote><a id="more"></a><p>不会以管理员运行的请看这篇文章：<a href="https://jingyan.baidu.com/article/ceb9fb10b53ab88cac2ba05b.html" target="_blank" rel="external">https://jingyan.baidu.com/article/ceb9fb10b53ab88cac2ba05b.html</a></p><h3 id="Windows激活"><a href="#Windows激活" class="headerlink" title="Windows激活"></a>Windows激活</h3><p>管理员权限运行 cmd </p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">wmic os get caption</div><div class="line">slmgr  /ipk XXXXX-XXXXX-XXXXX-XXXXX  #x表示密钥</div><div class="line">slmgr /skms kms.2bmi.com</div><div class="line">slmgr /ato</div></pre></td></tr></table></figure><p>由于windows系统版本太多，仅列出常见的，若是没有自己需要的请往下面看的！<br>kms密钥：</p><table><thead><tr><th>产品</th><th>GVLK</th></tr></thead><tbody><tr><td>Windows 10 专业版</td><td>W269N-WFGWX-YVC9B-4J6C9-T83GX</td></tr><tr><td>Windows 10 企业版</td><td>NPPR9-FWDCX-D2C8J-H872K-2YT43</td></tr><tr><td>Windows 10 教育版</td><td>NW6C2-QMPVW-D7KKK-3GKT6-VCFB2</td></tr><tr><td>Windows 8.1 专业版</td><td>GCRJD-8NW9H-F2CDX-CCM8D-9D6T9</td></tr><tr><td>Windows 8.1 企业版</td><td>MHF9N-XY6XB-WVXMC-BTDCT-MKKG7</td></tr><tr><td>Windows 8 专业版</td><td>NG4HW-VH26C-733KW-K6F98-J8CK4</td></tr><tr><td>Windows 8 企业版</td><td>32JNW-9KQ84-P47T8-D8GGY-CWCK7</td></tr><tr><td>Windows 7 专业版</td><td>FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4</td></tr><tr><td>Windows 7 企业版</td><td>33PXH-7Y6KF-2VJC9-XBBR8-HVTHH</td></tr></tbody></table><h3 id="Office-激活"><a href="#Office-激活" class="headerlink" title="Office 激活"></a>Office 激活</h3><font color="red"><strong>关于 Office 的激活，要求必须是 VOL 版本，否则无法激活</strong></font><p>这里提供office2016零售版转VOL的脚本！<strong><a href="https://www.2bmi.com/office-2016-vol.bat">点击下载</a></strong></p><p>若点击不能下载请将其另存为<code>office.bat</code>脚本，双击脚本即可运行！</p><p>找到你的 Office 安装目录：</p><p>32 位默认一般为 <code>C:\Program Files (x86)\Microsoft Office\Office16</code></p><p>64 位默认一般为 <code>C:\Program Files\Microsoft Office\Office16</code></p><p>Office16 是 Office 2016，Office15 就是 Office 2013，Office14 就是 Office 2010。打开以上所说的目录，应该有个 OSPP.VBS 文件。</p><p>使用管理员权限运行 cmd 进入 Office 目录，命令如下：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">cd &quot;C:\Program Files (x86)\Microsoft Office\Office16&quot;</div><div class="line">cscript ospp.vbs /sethst:kms.2bmi.com</div><div class="line">cscript ospp.vbs /act    #如果激活失败请检查是否是VOL版</div></pre></td></tr></table></figure><h3 id="Windows系统"><a href="#Windows系统" class="headerlink" title="Windows系统"></a>Windows系统</h3><table><thead><tr><th>Windows Server 版本 1709</th><th></th></tr></thead><tbody><tr><td>操作系统版本</td><td>KMS 客户端安装密钥</td></tr><tr><td>Windows Server Datacenter</td><td>6Y6KB-N82V8-D8CQV-23MJW-BWTG6</td></tr><tr><td>Windows Server Standard</td><td>DPCNP-XQFKJ-BJF7R-FRC8D-GF6G4</td></tr><tr><td>Windows Server 2016 Datacenter</td><td>CB7KF-BWN84-R7R2Y-793K2-8XDDG</td></tr><tr><td>Windows Server 2016 Standard</td><td>WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY</td></tr><tr><td>Windows Server 2016 Essentials</td><td>JCKRF-N37P4-C2D82-9YXRT-4M63B</td></tr><tr><td>Windows 10 Professional Workstation</td><td>NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J</td></tr><tr><td>Windows 10 Professional Workstation N</td><td>9FNHH-K3HBT-3W4TD-6383H-6XYWF</td></tr></tbody></table><table><thead><tr><th>Windows 10</th><th></th></tr></thead><tbody><tr><td>操作系统版本</td><td>KMS 客户端安装密钥</td></tr><tr><td>Windows 10 专业版</td><td>W269N-WFGWX-YVC9B-4J6C9-T83GX</td></tr><tr><td>Windows 10 专业版 N</td><td>MH37W-N47XK-V7XM9-C7227-GCQG9</td></tr><tr><td>Windows 10 企业版</td><td>NPPR9-FWDCX-D2C8J-H872K-2YT43</td></tr><tr><td>Windows 10 企业版 N</td><td>DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4</td></tr><tr><td>Windows 10 教育版</td><td>NW6C2-QMPVW-D7KKK-3GKT6-VCFB2</td></tr><tr><td>Windows 10 教育版 N</td><td>2WH4N-8QGBV-H22JP-CT43Q-MDWWJ</td></tr><tr><td>Windows 10 企业版 2015 长期服务</td><td>WNMTR-4C88C-JK8YV-HQ7T2-76DF9</td></tr><tr><td>Windows 10 企业版 2015 长期服务 N</td><td>2F77B-TNFGY-69QQF-B8YKP-D69TJ</td></tr><tr><td>Windows 10 企业版 2016 长期服务</td><td>DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ</td></tr><tr><td>Windows 10 企业版 2016 长期服务 N</td><td>QFFDN-GRT3P-VKWWX-X7T3R-8B639</td></tr></tbody></table><table><thead><tr><th>Windows Server 2012 R2 和 Windows 8.1</th><th></th></tr></thead><tbody><tr><td>操作系统版本</td><td>KMS 客户端安装密钥</td></tr><tr><td>Windows8.1 专业版</td><td>GCRJD-8NW9H-F2CDX-CCM8D-9D6T9</td></tr><tr><td>Windows 8.1 专业版 N</td><td>HMCNV-VVBFX-7HMBH-CTY9B-B4FXY</td></tr><tr><td>Windows 8.1 企业版</td><td>MHF9N-XY6XB-WVXMC-BTDCT-MKKG7</td></tr><tr><td>Windows 8.1 企业版 N</td><td>TT4HM-HN7YT-62K67-RGRQJ-JFFXW</td></tr><tr><td>Windows Server 2012 R2 Server Standard</td><td>D2N9P-3P6X9-2R39C-7RTCD-MDVJX</td></tr><tr><td>WindowsServer 2012 R2 Datacenter</td><td>W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9</td></tr><tr><td>WindowsServer 2012 R2 Essentials</td><td>KNC87-3J2TX-XB4WP-VCPJV-M4FWM</td></tr></tbody></table><table><thead><tr><th>Windows Server 2012 和 Windows 8</th><th></th></tr></thead><tbody><tr><td>操作系统版本</td><td>KMS 客户端安装密钥</td></tr><tr><td>Windows 8 专业版</td><td>NG4HW-VH26C-733KW-K6F98-J8CK4</td></tr><tr><td>Windows 8 专业版 N</td><td>XCVCF-2NXM9-723PB-MHCB7-2RYQQ</td></tr><tr><td>Windows 8 企业版</td><td>32JNW-9KQ84-P47T8-D8GGY-CWCK7</td></tr><tr><td>Windows 8 企业版 N</td><td>JMNMF-RHW7P-DMY6X-RF3DR-X2BQT</td></tr><tr><td>Windows Server 2012</td><td>BN3D2-R7TKB-3YPBD-8DRP2-27GG4</td></tr><tr><td>Windows Server 2012 N</td><td>8N2M2-HWPGY-7PGT9-HGDD8-GVGGY</td></tr><tr><td>Windows Server 2012 单语言版</td><td>2WN2H-YGCQR-KFX6K-CD6TF-84YXQ</td></tr><tr><td>Windows Server 2012 特定国家/地区版</td><td>4K36P-JN4VD-GDC6V-KDT89-DYFKP</td></tr><tr><td>Windows Server 2012 Server Standard</td><td>XC9B7-NBPP2-83J2H-RHMBY-92BT4</td></tr><tr><td>Windows Server 2012 MultiPoint Standard</td><td>HM7DN-YVMH3-46JC3-XYTG7-CYQJJ</td></tr><tr><td>Windows Server 2012 MultiPoint Premium</td><td>XNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G</td></tr><tr><td>Windows Server 2012 Datacenter</td><td>48HP8-DN98B-MYWDG-T2DCC-8W83P</td></tr></tbody></table><table><thead><tr><th>Windows 7 和 Windows Server 2008 R2</th><th></th></tr></thead><tbody><tr><td>操作系统版本</td><td>KMS 客户端安装密钥</td></tr><tr><td>Windows 7 专业版</td><td>FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4</td></tr><tr><td>Windows 7 专业版 N</td><td>MRPKT-YTG23-K7D7T-X2JMM-QY7MG</td></tr><tr><td>Windows 7 专业版 E</td><td>W82YF-2Q76Y-63HXB-FGJG9-GF7QX</td></tr><tr><td>Windows7 企业版</td><td>33PXH-7Y6KF-2VJC9-XBBR8-HVTHH</td></tr><tr><td>Windows 7 企业版 N</td><td>YDRBP-3D83W-TY26F-D46B2-XCKRJ</td></tr><tr><td>Windows 7 企业版 E</td><td>C29WB-22CC8-VJ326-GHFJW-H9DH4</td></tr><tr><td>Windows Server 2008 R2 Web 版</td><td>6TPJF-RBVHG-WBW2R-86QPH-6RTM4</td></tr><tr><td>Windows Server 2008 R2 HPC 版</td><td>TT8MH-CG224-D3D7Q-498W2-9QCTX</td></tr><tr><td>WindowsServer 2008 R2 Standard</td><td>YC6KT-GKW9T-YTKYR-T4X34-R7VHC</td></tr><tr><td>WindowsServer 2008 R2 企业版</td><td>489J6-VHDMP-X63PK-3K798-CPX3Y</td></tr><tr><td>WindowsServer 2008 R2 Datacenter</td><td>74YFP-3QFB3-KQT8W-PMXWJ-7M648</td></tr><tr><td>面向基于 Itanium 系统的 Windows Server 2008 R2</td><td>GT63C-RJFQ3-4GMB6-BRFB9-CB83V</td></tr><tr><td></td></tr></tbody></table><table><thead><tr><th>Windows Vista 和 Windows Server 2008</th><th></th></tr></thead><tbody><tr><td>操作系统版本</td><td>KMS 客户端安装密钥</td></tr><tr><td>Windows Vista 商用版</td><td>YFKBB-PQJJV-G996G-VWGXY-2V3X8</td></tr><tr><td>Windows Vista 商用版 N</td><td>HMBQG-8H2RH-C77VX-27R82-VMQBT</td></tr><tr><td>Windows Vista 企业版</td><td>VKK3X-68KWM-X2YGT-QR4M6-4BWMV</td></tr><tr><td>Windows Vista 企业版 N</td><td>VTC42-BM838-43QHV-84HX6-XJXKV</td></tr><tr><td>Windows Web Server 2008</td><td>WYR28-R7TFJ-3X2YQ-YCY4H-M249D</td></tr><tr><td>Windows Server 2008 Standard</td><td>TM24T-X9RMF-VWXK6-X8JC9-BFGM2</td></tr><tr><td>不带 Hyper-V 的 Windows Server 2008 Standard</td><td>W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ</td></tr><tr><td>Windows Server 2008 企业版</td><td>YQGMW-MPWTJ-34KDK-48M3W-X4Q6V</td></tr><tr><td>不带 Hyper-V 的 Windows Server 2008 企业版</td><td>39BXF-X8Q23-P2WWT-38T2F-G3FPG</td></tr><tr><td>Windows Server 2008 HPC</td><td>RCTX3-KWVHP-BR6TB-RB6DM-6X7HP</td></tr><tr><td>Windows Server 2008 Datacenter</td><td>7M67G-PC374-GR742-YH8V4-TCBY3</td></tr><tr><td>不带 Hyper-V 的 Windows Server 2008 Datacenter</td><td>22XQ2-VRXRG-P8D42-K34TD-G3QQC</td></tr><tr><td>面向基于 Itanium 系统的 Windows Server 2008</td><td>4DWFP-JF3DJ-B7DTH-78FJB-PDRHK</td></tr></tbody></table><h3 id="Office-2016"><a href="#Office-2016" class="headerlink" title="Office 2016"></a>Office 2016</h3><table><thead><tr><th>产品</th><th>GVLK</th></tr></thead><tbody><tr><td>Office Professional Plus 2016</td><td>XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99</td></tr><tr><td>Office Standard 2016</td><td>JNRGM-WHDWX-FJJG3-K47QV-DRTFM</td></tr><tr><td>Project Professional 2016</td><td>YG9NW-3K39V-2T3HJ-93F3Q-G83KT</td></tr><tr><td>Project Standard 2016</td><td>GNFHQ-F6YQM-KQDGJ-327XX-KQBVC</td></tr><tr><td>Visio Professional 2016</td><td>PD3PC-RHNGV-FXJ29-8JK7D-RJRJK</td></tr><tr><td>Visio Standard 2016</td><td>7WHWN-4T7MP-G96JF-G33KR-W8GF4</td></tr><tr><td>Access 2016</td><td>GNH9Y-D2J4T-FJHGG-QRVH7-QPFDW</td></tr><tr><td>Excel 2016</td><td>9C2PK-NWTVB-JMPW8-BFT28-7FTBF</td></tr><tr><td>OneNote 2016</td><td>DR92N-9HTF2-97XKM-XW2WJ-XW3J6</td></tr><tr><td>Outlook 2016</td><td>R69KK-NTPKF-7M3Q4-QYBHW-6MT9B</td></tr><tr><td>PowerPoint 2016</td><td>J7MQP-HNJ4Y-WJ7YM-PFYGF-BY6C6</td></tr><tr><td>Publisher 2016</td><td>F47MM-N3XJP-TQXJ9-BP99D-8837K</td></tr><tr><td>Skype for Business 2016</td><td>869NQ-FJ69K-466HW-QYCP2-DDBV6</td></tr><tr><td>Word 2016</td><td>WXY84-JN2Q9-RBCCQ-3Q3J3-3PFJ6</td></tr></tbody></table><h3 id="Office-2013"><a href="#Office-2013" class="headerlink" title="Office 2013"></a>Office 2013</h3><table><thead><tr><th>产品</th><th>GVLK</th></tr></thead><tbody><tr><td>Office 2013 Professional Plus</td><td>YC7DK-G2NP3-2QQC3-J6H88-GVGXT</td></tr><tr><td>Office 2013 Standard</td><td>KBKQT-2NMXY-JJWGP-M62JB-92CD4</td></tr><tr><td>Project 2013 Professional</td><td>FN8TT-7WMH6-2D4X9-M337T-2342K</td></tr><tr><td>Project 2013 Standard</td><td>6NTH3-CW976-3G3Y2-JK3TX-8QHTT</td></tr><tr><td>Visio 2013 Professional</td><td>C2FG9-N6J68-H8BTJ-BW3QX-RM3B3</td></tr><tr><td>Visio 2013 Standard</td><td>J484Y-4NKBF-W2HMG-DBMJC-PGWR7</td></tr><tr><td>Access 2013</td><td>NG2JY-H4JBT-HQXYP-78QH9-4JM2D</td></tr><tr><td>Excel 2013</td><td>VGPNG-Y7HQW-9RHP7-TKPV3-BG7GB</td></tr><tr><td>InfoPath 2013</td><td>DKT8B-N7VXH-D963P-Q4PHY-F8894</td></tr><tr><td>Lync 2013</td><td>2MG3G-3BNTT-3MFW9-KDQW3-TCK7R</td></tr><tr><td>OneNote 2013</td><td>TGN6P-8MMBC-37P2F-XHXXK-P34VW</td></tr><tr><td>Outlook 2013</td><td>QPN8Q-BJBTJ-334K3-93TGY-2PMBT</td></tr><tr><td>PowerPoint 2013</td><td>4NT99-8RJFH-Q2VDH-KYG2C-4RD4F</td></tr><tr><td>Publisher 2013</td><td>PN2WF-29XG2-T9HJ7-JQPJR-FCXK4</td></tr><tr><td>Word 2013</td><td>6Q7VD-NX8JD-WJ2VH-88V73-4GBJ7</td></tr></tbody></table><h3 id="Office-2010"><a href="#Office-2010" class="headerlink" title="Office 2010"></a>Office 2010</h3><table><thead><tr><th>套件</th><th>GVLK</th></tr></thead><tbody><tr><td>Office Professional Plus 2010</td><td>VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB</td></tr><tr><td>Office Standard 2010</td><td>V7QKV-4XVVR-XYV4D-F7DFM-8R6BM</td></tr><tr><td>Office Home and Business 2010</td><td>D6QFG-VBYP2-XQHM7-J97RH-VVRCK</td></tr></tbody></table><table><thead><tr><th>独立产品</th><th>GVLK</th></tr></thead><tbody><tr><td>Access 2010</td><td>V7Y44-9T38C-R2VJK-666HK-T7DDX</td></tr><tr><td>Excel 2010</td><td>H62QG-HXVKF-PP4HP-66KMR-CW9BM</td></tr><tr><td>SharePoint Workspace 2010</td><td>QYYW6-QP4CB-MBV6G-HYMCJ-4T3J4</td></tr><tr><td>InfoPath 2010</td><td>K96W8-67RPQ-62T9Y-J8FQJ-BT37T</td></tr><tr><td>OneNote 2010</td><td>Q4Y4M-RHWJM-PY37F-MTKWH-D3XHX</td></tr><tr><td>Outlook 2010</td><td>7YDC2-CWM8M-RRTJC-8MDVC-X3DWQ</td></tr><tr><td>PowerPoint 2010</td><td>RC8FX-88JRY-3PF7C-X8P67-P4VTT</td></tr><tr><td>Project Professional 2010</td><td>YGX6F-PGV49-PGW3J-9BTGG-VHKC6</td></tr><tr><td>Project Standard 2010</td><td>4HP3K-88W3F-W2K3D-6677X-F9PGB</td></tr><tr><td>Publisher 2010</td><td>BFK7F-9MYHM-V68C7-DRQ66-83YTP</td></tr><tr><td>Word 2010</td><td>HVHB3-C6FV7-KQX9W-YQG79-CRY7T</td></tr></tbody></table><p>Visio</p><p>Visio Premium 2010                D9DWC-HPYVV-JGF4P-BTWQB-WX8BJ</p><p>Visio Professional 2010            7MCW8-VRQVK-G677T-PDJCM-Q8TCP</p><p>Visio Standard 2010                767HD-QGMWX-8QTDB-9G3R2-KHFGJ</p><p>KMS密钥来源于 微软：<br>Office 2016：<a href="https://technet.microsoft.com/zh-cn/library/dn385360(v=office.16).aspx" target="_blank" rel="external">https://technet.microsoft.com/zh-cn/library/dn385360(v=office.16).aspx</a><br>Office 2013：<a href="https://technet.microsoft.com/ZH-CN/library/dn385360.aspx" target="_blank" rel="external">https://technet.microsoft.com/ZH-CN/library/dn385360.aspx</a><br>Office 2010：<a href="https://technet.microsoft.com/ZH-CN/library/ee624355(v=office.14).aspx" target="_blank" rel="external">https://technet.microsoft.com/ZH-CN/library/ee624355(v=office.14).aspx</a><br>Windows：<a href="https://docs.microsoft.com/zh-cn/windows-server/get-started/kmsclientkeys" target="_blank" rel="external">https://docs.microsoft.com/zh-cn/windows-server/get-started/kmsclientkeys</a></p>]]></content>
    
    <summary type="html">
    
      &lt;blockquote&gt;
&lt;p&gt;参考 秋水逸冰 大大的博客&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://teddysun.com/530.html&quot; target=&quot;_blank&quot; rel=&quot;external&quot;&gt;https://teddysun.com/530.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
    
    </summary>
    
    
  </entry>
  
  <entry>
    <title>Ubuntu多引导修复</title>
    <link href="https://www.2bmi.com/2018/60501.html"/>
    <id>https://www.2bmi.com/2018/60501.html</id>
    <published>2018-04-29T13:22:20.000Z</published>
    <updated>2018-05-02T14:07:20.389Z</updated>
    
    <content type="html"><![CDATA[<blockquote><p>由于某些原因（手贱）不小心删了引导文件，三个系统的引导项全删了，分别是<code>Win10</code>,<code>Ubuntu16.04</code>,<code>Deepin15.3</code> 在这之前我还因为因为我开机姿势不对，重复开了好几次机！</p></blockquote><p><img src="https://t1.aixinxi.net/o_1ccgf1qgs1a15122r1mhbn2jldba.jpg-w.jpg" alt="开机提示无系统"></p><a id="more"></a><blockquote><p>分析了解：三系统无引导项，开机直接显示硬盘无系统！</p></blockquote><h3 id="前期准备"><a href="#前期准备" class="headerlink" title="前期准备"></a>前期准备</h3><p>需要另外准备一台电脑，一个大于8G的u盘，pe刻录程序（随意），软碟通，一个ubuntu14.04往上系统镜像，一个win10（1607版本往上）镜像！</p><h3 id="动手实践"><a href="#动手实践" class="headerlink" title="动手实践"></a>动手实践</h3><p>分为两步进行：</p><h4 id="修复win10启动项"><a href="#修复win10启动项" class="headerlink" title="修复win10启动项"></a>修复win10启动项</h4><ol><li><p>将u盘制作成pe启动盘，并将原版镜像复制到u盘根目录</p></li><li><p>插上需要修复引导的电脑，快速启动项或者BIOS进入u盘的pe启动盘</p></li><li><p>将WIN10系统镜像直接双击打开，他会自动挂在变成DVD驱动器。然后双击里面的<code>setup.exe</code> 如图：</p><p><img src="https://t1.aixinxi.net/o_1ccgg03dm7j21s04ttjft4vqa.jpg-w.jpg" alt="dakia"></p><p><img src="https://t1.aixinxi.net/o_1ccgg5h6n11no3k44fm91notba.jpg-w.jpg" alt="daikaiwin10"></p></li><li><p>按下快捷键shift + F10 会弹出cmd命令行！注意核对驱动器的盘符(不一定是<code>H</code>)</p><p><img src="https://t1.aixinxi.net/o_1ccggau8n15tl1gn918nb2so1vdqa.jpg-w.jpg" alt="cmd"></p></li><li><p>输入<code>bcdboot c:\windows /l zh-cn</code> 会自动向ESP分区生成启动文件、自动向BIOS写入名为“Windows Boot Manager”的UEFI启动项</p></li><li><p>提示成功就可以拔掉u盘重启了!(当时忘了截图)</p></li><li><p>如果出现win10的引导项并且能进入那就没问题了！</p></li></ol><h4 id="修复ubuntu的grub启动项"><a href="#修复ubuntu的grub启动项" class="headerlink" title="修复ubuntu的grub启动项"></a>修复ubuntu的grub启动项</h4><ol><li><p>想要修复引导项 你需要Ubuntu的启动盘(live cd)，来进入Ubuntu系统来修复引导问题（重新将u盘制作live cd）</p></li><li><p>快速启动项或者bios选择u盘启动，选择<code>预览ubuntu系统</code>（且需要网络）。</p><p><img src="https://t1.aixinxi.net/o_1ccghbsjsn5sjqp13uqlqh1f66a.png-w.jpg" alt="live cd"></p></li><li><p>打开终端，终端快捷键是<code>Ctrl+Alt+T</code>输入命令，添加boot-repair所在的源 期间需要回车确认添加源！</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">sudo add-apt-repository ppa:yannubuntu/boot-repair</div><div class="line">sudo apt-get update #有时候很卡。。</div><div class="line">apt-get install boot-repair</div><div class="line">boot-repair</div></pre></td></tr></table></figure><p>​</p></li><li><p>出现这如下图一样，点击<code>Recommended repair</code> 过几分钟重启就行了（期间可能会提示yes/no，选择yes就行了）</p><p><img src="https://t1.aixinxi.net/o_1ccghk45i15577an4igh6vuoja.png-w.jpg" alt="repair"></p></li><li><p>几分钟后提示完成那么拿掉u盘 就可以直接重启就行了</p></li><li><p><del>重启发现进不去或者卡在grub界面那就重新来一次并跳过第…..这时我们需要选择<code>高级选项</code>（虽然官方不建议普通用户使用）</del>(应该没人走到这一步吧。。。如果有麻烦紧急邮箱联系我。邮箱：58420846@qq.com)</p></li></ol><p>重启就会发现有ubuntu引导（开心）</p><p>等等，我们不是需要grub引导其他系统的吗？</p><p>正常进ubuntu系统</p><p>命令行执行</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">sudo apt update </div><div class="line">sudo update-grub #更新grub引导</div></pre></td></tr></table></figure><p>发现win10已经成功添加在里面了！</p><p><img src="https://t1.aixinxi.net/o_1ccghu9gp1vf3s4i1ite1rc7c8qa.png-w.jpg" alt="test"></p><p>最后需要修改<code>grub.cfg</code>文件。不想引导项多出来什么乱七八糟的话，我们需要将里面的东西删掉：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line">cd /boot/grub</div><div class="line">sudo chmod u+x grub.cfg    #给予当前用户编辑权限</div><div class="line">sudo gedit grub.cfg #编辑</div><div class="line">将文中以下内容删除：</div><div class="line">### BEGIN /etc/grub.d/25_custom ###</div><div class="line">.....</div><div class="line">.....</div><div class="line">### END /etc/grub.d/25_custom ###</div><div class="line">##删除保存文件 关闭。（以后更新grub一样会出现。。目前我知道这个方法屏蔽。若有其他好的方法麻烦评论区说下，谢谢！</div><div class="line">reboot #重启电脑</div></pre></td></tr></table></figure><p>下面是我的真实修复好的引导项：</p><p>资料参考：</p><p><a href="http://bbs.pcbeta.com/forum.php?mod=viewthread&amp;ordertype=1&amp;tid=1727468" target="_blank" rel="external">http://bbs.pcbeta.com/forum.php?mod=viewthread&amp;ordertype=1&amp;tid=1727468</a>(图中部分取自这里)</p><p><a href="http://bbs.pcbeta.com/forum.php?mod=viewthread&amp;ordertype=1&amp;tid=1727468" target="_blank" rel="external">http://bbs.pcbeta.com/forum.php?mod=viewthread&amp;ordertype=1&amp;tid=1727468</a></p>]]></content>
    
    <summary type="html">
    
      &lt;blockquote&gt;
&lt;p&gt;由于某些原因（手贱）不小心删了引导文件，三个系统的引导项全删了，分别是&lt;code&gt;Win10&lt;/code&gt;,&lt;code&gt;Ubuntu16.04&lt;/code&gt;,&lt;code&gt;Deepin15.3&lt;/code&gt; 在这之前我还因为因为我开机姿势不对，重复开了好几次机！&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;img src=&quot;https://t1.aixinxi.net/o_1ccgf1qgs1a15122r1mhbn2jldba.jpg-w.jpg&quot; alt=&quot;开机提示无系统&quot;&gt;&lt;/p&gt;
    
    </summary>
    
      <category term="Ubuntu" scheme="https://www.2bmi.com/categories/Ubuntu/"/>
    
    
      <category term="Ubuntu" scheme="https://www.2bmi.com/tags/Ubuntu/"/>
    
      <category term="Linux" scheme="https://www.2bmi.com/tags/Linux/"/>
    
      <category term="常见问题" scheme="https://www.2bmi.com/tags/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/"/>
    
  </entry>
  
  <entry>
    <title>博客再次拥抱https并全站启用https+CDN加速</title>
    <link href="https://www.2bmi.com/2018/29668.html"/>
    <id>https://www.2bmi.com/2018/29668.html</id>
    <published>2018-03-07T06:17:49.000Z</published>
    <updated>2018-03-23T05:50:33.513Z</updated>
    
    <content type="html"><![CDATA[<p>昨晚参加了腾讯云的360元6年半的云主机，考虑到托管到国内coding pages服务稍微有点慢。</p><p>就有了将国内的博客站点迁移至腾讯云新购的云主机上！但是由于github pages原因不能部署https，所以在海外的游客还是一样访问http站点</p><p><img src="https://t1.aixinxi.net/o_1c7vh91e1vcq1rr31ht911houd5a.png-j.jpg" alt=""></p><a id="more"></a><p><img src="https://t1.aixinxi.net/o_1c7vgu1p11cnl3nc1e8516f12oga.png-j.jpg" alt="云主机"></p><p>360元买的六年半的1核1G看着还可以。平均每个月花4.5元，起码比虚拟空间便宜一点！</p><p><img src="https://t1.aixinxi.net/o_1c7vhd07e14ahba71ve1qnv2kua.png-j.jpg" alt="CDN"></p><p>腾讯云新用户送6个月的50G CDN流量包</p><p><img src="https://t1.aixinxi.net/o_1c7vhhr8s7njkb1is218kl1iqca.png-j.jpg" alt=""></p><p>最后当然是配置全部之后的延迟啦。</p>]]></content>
    
    <summary type="html">
    
      &lt;p&gt;昨晚参加了腾讯云的360元6年半的云主机，考虑到托管到国内coding pages服务稍微有点慢。&lt;/p&gt;
&lt;p&gt;就有了将国内的博客站点迁移至腾讯云新购的云主机上！但是由于github pages原因不能部署https，所以在海外的游客还是一样访问http站点&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://t1.aixinxi.net/o_1c7vh91e1vcq1rr31ht911houd5a.png-j.jpg&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
    
    </summary>
    
      <category term="个人杂谈" scheme="https://www.2bmi.com/categories/%E4%B8%AA%E4%BA%BA%E6%9D%82%E8%B0%88/"/>
    
    
      <category term="博客" scheme="https://www.2bmi.com/tags/%E5%8D%9A%E5%AE%A2/"/>
    
  </entry>
  
  <entry>
    <title>Ubuntu系统美化教程</title>
    <link href="https://www.2bmi.com/2018/30871.html"/>
    <id>https://www.2bmi.com/2018/30871.html</id>
    <published>2018-02-14T14:22:00.000Z</published>
    <updated>2018-03-23T05:52:33.338Z</updated>
    
    <content type="html"><![CDATA[<blockquote><p>是不是觉得Ubuntu默认的桌面太丑？没关系点进来教你如何将ubuntu系统美化！两种美化效果哦！</p></blockquote><a id="more"></a><h3 id="美化类型选择"><a href="#美化类型选择" class="headerlink" title="美化类型选择"></a>美化类型选择</h3><ol><li>第一种：<br><img src="http://t1.aixinxi.net/o_1c6aanmqc19l31aa418oprjg1r7ea.png-j.jpg" alt="tupian"><br>​</li><li>第二种：第二种就是默认启动器在左侧的。。。</li></ol><p><em>两者区别一个启动器在下面，一个在左侧！</em></p><h3 id="第一种方法"><a href="#第一种方法" class="headerlink" title="第一种方法"></a>第一种方法</h3><ol><li><p>调整 Unity 桌面环境，推荐使用Unity Tweak Tool，这是一个非常好用的 Unity 图形化管理工具，可以修改工作区数量、热区等。 </p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-get install unity-tweak-tool -y</div></pre></td></tr></table></figure></li><li><p>安装 Paper GTK主题</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">sudo add-apt-repository ppa:snwh/pulp</div><div class="line">sudo apt-get update &amp;&amp; sudo apt-get install paper-gtk-theme</div></pre></td></tr></table></figure></li><li><p>安装 Numix 图标</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">sudo apt-add-repository ppa:numix/ppa</div><div class="line">sudo apt-get update &amp;&amp; sudo apt-get install numix-icon-theme-circle</div></pre></td></tr></table></figure></li><li><p>安装 Docky 启动栏</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">sudo apt update</div><div class="line">sudo apt install docky -y</div></pre></td></tr></table></figure></li><li><p>上面没报错就继续下一步，如果报错，提示缺少依赖问题请执行<code>sudo apt install -f</code> 提示子进程错误的请参考我另外的文章</p></li><li><p>打开安装好的<code>Unity-Tweak-Tool</code> 不知道怎么打开的 按下<code>win</code>键 搜索<code>tool</code>就出来了。什么？不知道什么是<code>win</code>键？<a href="https://baike.baidu.com/item/Windows%E9%94%AE/7124478?fr=aladdin&amp;fromid=3393055&amp;fromtitle=Win%E9%94%AE" target="_blank" rel="external">请点击这里</a></p><p><img src="http://t1.aixinxi.net/o_1c6a8g2hb10le148913s1avia7a.png-j.jpg" alt="图片"></p></li><li><p>在Unity-Tweak-Tool下 <code>主题</code>下选择<code>Paper</code>  <code>图标</code>下选择<code>Numix-circle</code> 选择之后是不是有变化啦？继续来</p></li><li><p>按下<code>win</code>键 搜索<code>docky</code>打开之后，基本重启电脑都会自己打开了。下方选中<code>docky</code>图标鼠标右击，选择<code>设置</code>参考下图配置，也可自定义<br><img src="http://t1.aixinxi.net/o_1c6aa4crv1hpdp6gb73nbq96ja.png-j.jpg" alt="tupian"><br>​</p></li><li><p>下方的启动器出来了，但是左侧的启动器怎么隐藏呢？先打开你需要固定到下方启动器的软件，和固定在左侧启动器一样的方法：<code>锁定到dock</code><br>依次打开<code>系统设置</code>&gt;<code>外观</code>&gt;<code>行为</code>  先开启<code>自动隐藏启动</code>然后关闭再次开启。之后将<code>显示灵敏度</code>调到最低！<br><img src="http://t1.aixinxi.net/o_1c6aa8m201q941s2tiqp1kem1pjna.png-j.jpg" alt="tupian"></p></li></ol><p>教程完成！！</p><p>壁纸：</p><p><img src="http://t1.aixinxi.net/o_1c6aafeqiqss16o1g3a7cdikpa.jpg-j.jpg" alt="www"></p><p>题外话：</p><p>需要显示网速小插件的执行下面的命令，一样是开机自启！</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">sudo add-apt-repository ppa:fixnix/netspeed -y</div><div class="line">sudo apt update &amp;&amp; sudo apt install indicator-netspeed-unity -y</div></pre></td></tr></table></figure><h3 id="第二种方法"><a href="#第二种方法" class="headerlink" title="第二种方法"></a>第二种方法</h3><p>由于这类方法我也是按照原作者弄的，所以就不献丑了<br>原文： <a href="https://zhuanlan.zhihu.com/p/27052046" target="_blank" rel="external">Ubuntu 美化及超 NB 的 zsh 配置</a></p><p>提供插件由<a href="https://www.v2ex.com/member/ipchy" target="_blank" rel="external">ipchy</a>介绍</p>]]></content>
    
    <summary type="html">
    
      &lt;blockquote&gt;
&lt;p&gt;是不是觉得Ubuntu默认的桌面太丑？没关系点进来教你如何将ubuntu系统美化！两种美化效果哦！&lt;/p&gt;
&lt;/blockquote&gt;
    
    </summary>
    
      <category term="Ubuntu" scheme="https://www.2bmi.com/categories/Ubuntu/"/>
    
    
      <category term="美化" scheme="https://www.2bmi.com/tags/%E7%BE%8E%E5%8C%96/"/>
    
  </entry>
  
  <entry>
    <title>Ubuntu系统切换Python默认版本</title>
    <link href="https://www.2bmi.com/2018/43109.html"/>
    <id>https://www.2bmi.com/2018/43109.html</id>
    <published>2018-02-03T12:25:37.000Z</published>
    <updated>2018-03-23T05:51:50.884Z</updated>
    
    <content type="html"><![CDATA[<blockquote><p>该篇文章是转载！原文：<a href="https://www.aizheteng.net/ubuntu-python-version.html" target="_blank" rel="external">链接</a></p></blockquote><p>最近学习python，因为学习的是python3，但是目前所有的linux系统默认版本都是python2，故百度了一下，找到一个不错的方法。</p><a id="more"></a><p>此方法适用于ubuntu和debian其他发行版本没有测试。正常情况基于ubuntu与debian开发的发行版本都支持</p><p>打开终端分别输入下面两条命令：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100</div><div class="line">sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150</div></pre></td></tr></table></figure><p>然后再终端输入：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">python -V</div></pre></td></tr></table></figure><p>如果无误，此时python版本应该切换到默认的python3了。</p><p>如果需要重新切换回python只需要在终端输入：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo update-alternatives --config python</div></pre></td></tr></table></figure><p>然后选者你需要的python版本，输入序号回车即可</p><p>因为系统很多程序依赖于python2，如需要升级系统或者安装系统更新的时候，建议先切换到系统的默认版本python2否则可能出现依赖无法安装问题。</p>]]></content>
    
    <summary type="html">
    
      &lt;blockquote&gt;
&lt;p&gt;该篇文章是转载！原文：&lt;a href=&quot;https://www.aizheteng.net/ubuntu-python-version.html&quot; target=&quot;_blank&quot; rel=&quot;external&quot;&gt;链接&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;最近学习python，因为学习的是python3，但是目前所有的linux系统默认版本都是python2，故百度了一下，找到一个不错的方法。&lt;/p&gt;
    
    </summary>
    
      <category term="LInux" scheme="https://www.2bmi.com/categories/LInux/"/>
    
    
      <category term="Ubuntu" scheme="https://www.2bmi.com/tags/Ubuntu/"/>
    
      <category term="Python" scheme="https://www.2bmi.com/tags/Python/"/>
    
  </entry>
  
  <entry>
    <title>Linux更换内核</title>
    <link href="https://www.2bmi.com/2018/28595.html"/>
    <id>https://www.2bmi.com/2018/28595.html</id>
    <published>2018-01-30T12:06:37.000Z</published>
    <updated>2018-03-23T05:51:30.807Z</updated>
    
    <content type="html"><![CDATA[<blockquote><p>更换内核无非是更新内核版本&amp;以前使用的内核版本损坏。</p><p>这里仅说明ubuntu进不了桌面的方法，其他仅作为参考</p></blockquote><a id="more"></a><h3 id="问题："><a href="#问题：" class="headerlink" title="问题："></a>问题：</h3><p>以前可以正常进入桌面，最近却卡在紫色logo或者卡在登陆界面却输入不了密码！</p><h3 id="问题分析："><a href="#问题分析：" class="headerlink" title="问题分析："></a>问题分析：</h3><p>在grub引导界面的<code>高级选项</code>中的旧内核可以进去，那就是默认启动的内核有问题（或者根本和这没关系）</p><p>也有可能是显卡驱动导致，不过无论是什么，只要你能进旧内核就可以继续下一步操作！</p><h3 id="解决方法："><a href="#解决方法：" class="headerlink" title="解决方法："></a>解决方法：</h3><blockquote><p>文中以<code>linux-image-4.13.0-32-generic</code>内核损坏，更换到<code>linux-image-4.13.0-31-generic</code>内核启动过程！</p></blockquote><ol><li><p>在grub引导项选择<code>高级选项</code>然后选择较旧的内核进去 （不懂的话，选择倒数第三，第六依次测试）</p></li><li><p>登陆系统并打开终端，保持机器联网</p></li><li><p>查看当前使用的内核：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">uname -r</div></pre></td></tr></table></figure></li><li><p>查看本地内核列表并记录坏的内核版本号（默认启动最高的内核版本）：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo dpkg --get-selections |grep linux-image</div></pre></td></tr></table></figure><p><img src="http://t1.aixinxi.net/o_1c53cg4hk1ill2tftv2nhu1hha.png-j.jpg" alt=""></p></li><li><p>卸载损坏的内核：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt remove linux-image-4.13.0-32-generic</div></pre></td></tr></table></figure></li><li><p>不想麻烦可以跳过到第十步！！！</p></li><li><p>查看可获取的内核：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-cache search linux | grep linux-headers-*</div></pre></td></tr></table></figure></li><li><p>安装<code>4.13.0-31-generic</code>版本的内核</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt install linux-heasers-4.13.0-31-generic linux-image-4.13.0-31-generic</div></pre></td></tr></table></figure></li><li><p>重启然后查看是否是你需要的内核版本，如果不是你需要在grub引导界面点击<code>高级选项</code>并选择你安装的内核！重启之后你无需再次设置。（仅适于你安装的内核版本是你系统中最高的内核版本）</p></li><li><p>终端执行：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">sudo apt update</div><div class="line">sudo apt upgrade #等待更新完成</div><div class="line">sudo dpkg --get-selections |grep linux-image #查看是否有更高的版本，如果有可以重启机器！</div></pre></td></tr></table></figure><p>​</p></li></ol><p>注意：因为我这里是<code>linux-image-4.13.0-32-generic</code>降级到31,并且卸载32版本的内核情况下，重启默认是启动31版本的！但是，以后使用<code>sudo apt update , sudo apt upgrade</code>命令的话他是默认更新内核并启用的，其他内核不能用或者你只想要指定的内核请往下看！</p><h3 id="降级内核"><a href="#降级内核" class="headerlink" title="降级内核"></a>降级内核</h3><ol><li><p>显示内核的顺序</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">grep 'menuentry' /boot/grub/grub.cfg</div></pre></td></tr></table></figure><p><img src="http://t1.aixinxi.net/o_1c539itbf128ggrm7tn1ntup0qa.png-j.jpg" alt=""><br>以图为例，青蓝色画出的<code>$menuentry_id_option</code>字段复制后面单引号里面<code>gnulinux-advanced-dc69089e-d04e-4994-a193-ea4d78b3d29a</code>就是我们需要的信息，然后第二个红框画出来的是我们要启动的内核<code>menuentry &#39;Ubuntu，Linux x.x.x-x-generic&#39;</code>在这个里面同样有一个<code>$menuentry_id_option</code>字段也是一样复制后面单引号里面的内容<code>gnulinux-4.13.0-31-generic-advanced-dc69089e-d04e-4994-a193-ea4d78b3d29a</code> <font color="red">需要注意的是一个内核基本有三个差不多一样的，注意看清就能分辨，另外单引号里面的内容不是同一台机器可能不是一样的！</font></p></li><li><p>编辑/etc/default/grub文件中的<code>GRUB_DEFAULT</code> 图1</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">sudo vim /etc/default/grub</div><div class="line"><span class="meta">#</span>格式: "高级设置ID&gt;内核ID"</div></pre></td></tr></table></figure><p><img src="http://t1.aixinxi.net/o_1c53bo51un3ahmtpab2iv4hea.png-j.jpg" alt=""><br> 注意格式！将<code>0</code>改为<code>&quot;高级设置ID&gt;内核ID&quot;</code>然后保存退出</p></li><li><p>更新引导</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo update-grub</div></pre></td></tr></table></figure><p><img src="http://t1.aixinxi.net/o_1c53c8fln1ofl1l8n4mkl5c1lu0a.png-j.jpg" alt=""></p></li><li><p>重启后，使用命令uname -r查看，内核即为你想要的内核</p></li></ol><p>参考：</p><p><a href="http://blog.mtkfan.com/?p=431" target="_blank" rel="external">http://blog.mtkfan.com/?p=431</a></p><p><a href="http://blog.csdn.net/zs15yy/article/details/77188030" target="_blank" rel="external">http://blog.csdn.net/zs15yy/article/details/77188030</a></p><p><a href="http://blog.csdn.net/u011304615/article/details/70919711" target="_blank" rel="external">http://blog.csdn.net/u011304615/article/details/70919711</a></p><p><a href="http://blog.csdn.net/u011304615/article/details/70919711" target="_blank" rel="external">http://blog.csdn.net/u011304615/article/details/70919711</a></p>]]></content>
    
    <summary type="html">
    
      &lt;blockquote&gt;
&lt;p&gt;更换内核无非是更新内核版本&amp;amp;以前使用的内核版本损坏。&lt;/p&gt;
&lt;p&gt;这里仅说明ubuntu进不了桌面的方法，其他仅作为参考&lt;/p&gt;
&lt;/blockquote&gt;
    
    </summary>
    
      <category term="Linux" scheme="https://www.2bmi.com/categories/Linux/"/>
    
    
      <category term="Ubuntu" scheme="https://www.2bmi.com/tags/Ubuntu/"/>
    
      <category term="Linux" scheme="https://www.2bmi.com/tags/Linux/"/>
    
      <category term="常见问题" scheme="https://www.2bmi.com/tags/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/"/>
    
  </entry>
  
  <entry>
    <title>子进程已安装 post-installation 脚本 返回错误状态 1（2）解决办法</title>
    <link href="https://www.2bmi.com/2018/20433.html"/>
    <id>https://www.2bmi.com/2018/20433.html</id>
    <published>2018-01-29T11:25:04.000Z</published>
    <updated>2018-03-23T05:52:39.198Z</updated>
    
    <content type="html"><![CDATA[<blockquote><p>在安装或者卸载软件提示 子进程已安装 post-installation 脚本 返回错误状态 1（2）<img src="http://t1.aixinxi.net/o_1c50lkihm78f1bag1kis18ofp8sa.jpg-j.jpg" alt="子进程已安装 post-installation 脚本 返回错误状态 1"></p></blockquote><a id="more"></a><h3 id="分析原因："><a href="#分析原因：" class="headerlink" title="分析原因："></a>分析原因：</h3><p>导致出现这个无非是有三点：</p><ol><li>不正确安装软件</li><li>不正确卸载软件</li><li>未知</li></ol><h3 id="解决方法："><a href="#解决方法：" class="headerlink" title="解决方法："></a>解决方法：</h3><p>在终端执行以下语句：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old </div><div class="line">sudo mkdir /var/lib/dpkg/info </div><div class="line">sudo apt-get update</div><div class="line">sudo apt-get -f install</div><div class="line">sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old</div><div class="line">sudo rm -rf /var/lib/dpkg/info</div><div class="line">sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info</div></pre></td></tr></table></figure><p>参考：</p><p><a href="http://blog.csdn.net/u012000056/article/details/54927925" target="_blank" rel="external">mkchiny</a></p>]]></content>
    
    <summary type="html">
    
      &lt;blockquote&gt;
&lt;p&gt;在安装或者卸载软件提示 子进程已安装 post-installation 脚本 返回错误状态 1（2）&lt;img src=&quot;http://t1.aixinxi.net/o_1c50lkihm78f1bag1kis18ofp8sa.jpg-j.jpg&quot; alt=&quot;子进程已安装 post-installation 脚本 返回错误状态 1&quot;&gt;&lt;/p&gt;
&lt;/blockquote&gt;
    
    </summary>
    
      <category term="Ubuntu" scheme="https://www.2bmi.com/categories/Ubuntu/"/>
    
    
      <category term="常见问题" scheme="https://www.2bmi.com/tags/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/"/>
    
  </entry>
  
  <entry>
    <title>树莓派系列教程-内网穿透篇</title>
    <link href="https://www.2bmi.com/2017/46998.html"/>
    <id>https://www.2bmi.com/2017/46998.html</id>
    <published>2017-12-09T06:51:46.000Z</published>
    <updated>2018-05-02T14:02:59.555Z</updated>
    
    <content type="html"><![CDATA[<p>linux内网穿透都可以参考  这里只说树莓派FRP内网穿透，关于Ngrok，据说已经开始商业化，具体我也不清楚，毕竟我FRP弄成功了！注意：文中frp目录<code>frp1</code>请将此当作<code>frp</code>目录即可，请用pi用户操作！在此感谢提供免费frp服务的大神们！</p><a id="more"></a><h3 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h3><p><strong>2018-03-19 更新</strong>由于frp有两个版本 <code>9.x</code>和<code>14.x</code> </p><p>这里只说<code>14.x</code> 下文图中出现是<code>frpzj.lu8.win</code>请当作<code>frps.lu8.win</code>，原因是免费开放的作者改域名</p><p>另外我有点想免费开放一个frp服务端！</p><p>下载frp命令：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">wget https://github.com/fatedier/frp/releases/download/v0.14.1/frp_0.14.1_linux_arm.tar.gz #下载文件</div><div class="line">tar -zxvf frp_0.14.1_linux_arm.tar.gz #解压</div><div class="line">mv -f frp_0.14.1_linux_arm frp #重命名文件夹</div><div class="line">cd frp #进入frp目录</div><div class="line">sudo apt-get install screen #scree命令行终端</div></pre></td></tr></table></figure><p>基本完成了，编辑前<strong><a href="http://frps.lu8.win:7600/" target="_blank" rel="external">点击跳转</a></strong>查询隧道是否存在，查询帐号和密码均为：admin</p><p>如图所示：<img src="https://t1.aixinxi.net/o_1c0stnfk07r1cej11ugmip1f2oa.png-w.jpg" alt=""></p><p>首先查看<code>name</code>（名称）字段和<code>port</code>（端口）字段是否存在，端口范围：<code>1000-65535</code> 这里推荐用浏览器搜索功能，快捷键：<code>Ctrl</code>+<code>F</code></p><p>我这里查看到名称<code>test00</code>和端口<code>55551</code>没有存在，也就是没人使用！这里我就使用这个演示！</p><h3 id="配置"><a href="#配置" class="headerlink" title="配置"></a>配置</h3><p>完成上面的就可以继续下一步：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">nano frpc.ini #用nano 编辑frp配置文件</div></pre></td></tr></table></figure><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div></pre></td><td class="code"><pre><div class="line">#配置文件：</div><div class="line">[common] #该字段配置不需要更改</div><div class="line">server_addr = frps.lu8.win #服务器ip或者域名</div><div class="line">server_port = 7100 #服务器端口</div><div class="line">log_file = ./frpc.log #日志文件</div><div class="line">log_level = info</div><div class="line">log_max_days = 3 #日志记录为最近三天</div><div class="line">privilege_token = frp888 #特权密码</div><div class="line"></div><div class="line">[test00] #隧道名称，必改</div><div class="line">privilege_mode = true</div><div class="line">type = tcp #连接类型</div><div class="line">local_ip = 127.0.0.1 #本机ip，不需要改</div><div class="line">local_port = 22 #本地端口，不需要改</div><div class="line">remote_port = 55551 #远程端口，必改</div><div class="line">custom_domains = xxx.https://www.2bmi.com.com #绑定自定义域名,不需要建议删掉</div></pre></td></tr></table></figure><p>复制该配置文件请删除注释，否则运行会出错！</p><p>按快捷键<code>Ctrl</code>+ <code>X</code> 输入<code>Y</code>回车存盘退出！</p><p>终端执行：<code>./frpc -c ./frpc.ini</code></p><p><img src="https://t1.aixinxi.net/o_1c0su652afcoip8u51177f1fsra.png-w.jpg" alt="运行结果"></p><p>启动ssh工具：<strong>windows</strong>：putty  <strong>linux</strong>:终端或者自带的ssh工具</p><p>我的电脑是<strong>linux</strong>，所以我选择系统自带工具ssh连接</p><p>连接： <code>frps.lu8.win:xxxxx</code>其中x为你自己设置端口号</p><p><img src="https://t1.aixinxi.net/o_1c0suiomgfke14j822bn9g1ddea.png-w.jpg" alt="1"></p><p><img src="https://t1.aixinxi.net/o_1c0sul3vrd8a19c716sd140h13jma.png-w.jpg" alt="2"></p><p> 输入树莓派密码即可进入！如果设置自定义域名的，需要将域名以<code>cname</code>记录解析到frps.lu8.win，即可使用自己的域名！</p><p>关闭终端后发现又连接不上了？</p><p>进入frp目录执行命令<code>screen ./frpc -c ./frpc.ini</code>执行后，按快捷键<code>Ctrl</code>+<code>A</code>再按<code>Ctrl</code>+ <code>D</code>即可最小化，只要不将树莓派重启都可以随时连接！</p><h3 id="终极配置"><a href="#终极配置" class="headerlink" title="终极配置"></a>终极配置</h3><p>什么？家里突然断电然后又来电，这时又在外面想连接树莓派管理怎么办？</p><p>别急，这里解决这个问题:</p><p>进入frp目录执行<code>pwd</code>查看当前目录</p><p><img src="https://t1.aixinxi.net/o_1c0t0cq1u1cd28rv15n612nkll5a.png-w.jpg" alt="4"></p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">sudo apt-get update #更新</div><div class="line">sudo apt-get install -y supervisor #安装supervisor</div><div class="line">sudo nano /etc/supervisor/conf.d/frp.conf #新建frp配置文件并编辑</div></pre></td></tr></table></figure><p>配置内容：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div></pre></td><td class="code"><pre><div class="line">[program:frp]</div><div class="line">user=pi</div><div class="line">command=/home/pi/frp/frpc -c /home/pi/frp/frpc.ini</div><div class="line">startsecs=1</div><div class="line">startretries=100</div><div class="line">autorstart=true</div><div class="line">autorestart=true</div><div class="line">stderr_logfile=/tmp/err-frps.log</div><div class="line">stderr_logfile_maxbytes=50MB</div><div class="line">stderr_logfile_backups=10</div><div class="line">stdout_logfile=/tmp/out-frps.log</div><div class="line">stdout_logfile_maxbytes=50MB</div><div class="line">stdout_logfile_backups=10</div></pre></td></tr></table></figure><p><code>command</code>那一行输入frpc所在目录即可！如果是按照我的步骤做的话，无需改动！</p><p>按快捷键<code>Ctrl</code>+ <code>X</code> 输入<code>Y</code>回车存盘退出！</p><p># 重启supervisor</p><p>sudo systemctl restart supervisor</p><p># 查看supervisor运行状态</p><p>sudo supervisorctl status</p><p><img src="https://t1.aixinxi.net/o_1c0t0eimb8ua7dj16r0i7vgo8a.png-w.jpg" alt="5"></p><p><code>frp</code>后面跟着<code>RUNNING</code>就代表正在运行啦，执行<code>sudo reboot</code>完成重启</p><p>再次查看supervisor运行状态，如果在运行状态那就是完成啦！</p>]]></content>
    
    <summary type="html">
    
      &lt;p&gt;linux内网穿透都可以参考  这里只说树莓派FRP内网穿透，关于Ngrok，据说已经开始商业化，具体我也不清楚，毕竟我FRP弄成功了！注意：文中frp目录&lt;code&gt;frp1&lt;/code&gt;请将此当作&lt;code&gt;frp&lt;/code&gt;目录即可，请用pi用户操作！在此感谢提供免费frp服务的大神们！&lt;/p&gt;
    
    </summary>
    
      <category term="树莓派" scheme="https://www.2bmi.com/categories/%E6%A0%91%E8%8E%93%E6%B4%BE/"/>
    
    
      <category term="Linux" scheme="https://www.2bmi.com/tags/Linux/"/>
    
      <category term="内网穿透" scheme="https://www.2bmi.com/tags/%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F/"/>
    
  </entry>
  
  <entry>
    <title>树莓派系列教程-起步篇</title>
    <link href="https://www.2bmi.com/2017/59858.html"/>
    <id>https://www.2bmi.com/2017/59858.html</id>
    <published>2017-12-08T12:28:55.000Z</published>
    <updated>2018-03-23T05:51:57.292Z</updated>
    
    <content type="html"><![CDATA[<blockquote><p>教程环境：<br>树莓派3B和新烧录好的<code>raspbain</code>系统为准！</p></blockquote><a id="more"></a><h3 id="连接树莓派"><a href="#连接树莓派" class="headerlink" title="连接树莓派"></a>连接树莓派</h3><p><strong>准备工具</strong> ：putty 、网线、路由器、电脑</p><p>将树莓派插上电源和SD卡，并插入网线，网线的另一端连到路由器。同时，笔记本（电脑）也连到该路由器上。进入路由器后台查看树莓派IP，笔记本（电脑）打开putty，在主机名称（或IP地址）中输入树莓派IP地址。</p><p><img src="http://tu-img-1.aixinxi.net/o_1c0qt4eq3q9jv5n1hmtf42li4a.png-w.jpg" alt=""></p><p>没路由器怎么办？别急，请参考<a href="http://shumeipai.nxez.com/2013/10/15/raspberry-pi-and-a-network-cable-directly-connected-laptop.html" target="_blank" rel="external">电脑直连树莓派</a> 推荐使用笔记本电脑，毕竟这样可以让树莓派有网络！步骤执行到教程的第二大点的第三小点就可以，无需继续！</p><p><strong>SSH连接问题</strong></p><p>有些版本新烧录好的系统的<code>/boot</code>分区并没有<code>ssh</code>文件，会导致连接失败、连接被拒接等问题出现，解决办法：将内存卡放进读卡器并插入电脑，然后在根目录新建名称<code>ssh</code>的文件名！<strong>注意：</strong>文件名称没有任何后缀，否则一样也会失败！</p><p>首次连接ssh会提示警告信息，选择<code>是</code>即可，后面会出现登陆界面：</p><p>输入用户名：pi  密码：raspberry（输入密码的过程中，密码是看不到的）</p><p>回车确认，就连接上了树莓派。</p><h3 id="初始化设置"><a href="#初始化设置" class="headerlink" title="初始化设置"></a>初始化设置</h3><p>终端输入<code>sudo raspi-config</code>会出现类似下图的界面！</p><p><img src="http://tu-img-1.aixinxi.net/o_1c0qu09ho50021f160j1s6t19gja.png-w.jpg" alt="raspi-config配置"></p><p><strong>1. 时间问题：</strong>由于时区不同造成树莓派时间比北京时间慢了整整8个小时。</p><p>​    查看当前时间命令<code>date</code>  终端输入<code>sudo raspi-config</code> 进入树莓派配置页面，（回车即可选择进入）依次进入<code>Localisation Optuions</code>&gt;&gt;&gt;<code>Change Timezone</code>选择Asia – Chongqing（或shanghai）重启即可生效！</p><p><strong>2. 语言设置：</strong>系统默认是英语，这对不太懂英语的小伙伴是一个很大障碍！</p><p>​    同样终端输入<code>sudo raspi-config</code> 进入树莓派配置页面，（回车即可选择进入）依次进入<code>Localisation Optuions</code>&gt;&gt;&gt;<code>Change Locale</code> 选择en_US.UTF-8和zh_CN.UTF-8 按空格键可以选中和取消！重启生效</p><p><strong>3. 系统默认密码：</strong>通常系统默认密码是建议修改的，为了防止他人串改！</p><p>​    同样终端输入<code>sudo raspi-config</code> 进入树莓派配置页面，（回车即可选择进入）选择<code>Change User Password</code>即可设置密码，还有一个更简便的方法，终端输入<code>passwd</code>即可完成修改密码！</p><h3 id="桌面控制"><a href="#桌面控制" class="headerlink" title="桌面控制"></a>桌面控制</h3><p>字符界面不会用？来来来，教你装远程桌面客户端</p><p><strong>XRDP</strong>远程桌面（局域网必备）</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">sudo apt-get install xrdp #安装XRDP</div><div class="line">sudo systemctl enable xrdp #设置开机启动</div><div class="line">sudo reboot #重启树莓派</div><div class="line">ifconfig #查看ip</div></pre></td></tr></table></figure><p><img src="http://tu-img-1.aixinxi.net/o_1c0r06620ih1s4k1kad16h1ja2a.png-w.jpg" alt="ip"></p><p>框里面是ip，这是网线连接的，如果是无线连接，那么就是<code>wlan0</code>的</p><p>然后可以使用电脑内置的远程桌面程序连接！</p><p><strong>Teamviewer</strong>几乎支持任何设备的安装 （外网可以远程连接）</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">wget https://dl.tvcdn.de/download/linux/version_13x/teamviewer-host_13.0.5641_armhf.deb</div><div class="line">sudo dpkg -i teamviewer*.deb #第一次安装会报错，执行下面的命令之后在执行该命令即可安装成功</div><div class="line">sudo apt-get -f install</div></pre></td></tr></table></figure><p> <strong>桌面环境</strong><br>受控端直接运行TeamViewer即可，在控制端输入ID和密码。</p><p><strong>命令行终端环境</strong><br>我一般使用SSH远程登录树莓派，没有显示器。而TeamViewer支持headless模式操作。</p><p>注：在接受license的步骤存在一个坑，在安装TeamViewer的时候，认为你是以界面形式安装的，所以，会弹出一个对话框，提醒你接受license，但是，由于你用ssh登录的，所以，这个对话框你看不到，自然也不会去接受协议，从而导致在使用时连接失败。</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">sudo teamviewer --daemon stop</div><div class="line">sudo nano /opt/teamviewer/config/global.conf</div></pre></td></tr></table></figure><p>文件末尾添加：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">[int32] EulaAccepted = 1 </div><div class="line">[int32] EulaAcceptedRevision = 6</div></pre></td></tr></table></figure><p>然后<code>Ctrl</code>+ <code>X</code>输入<code>Y</code>回车即可保存，继续执行启动命令<code>sudo teamviewer --daemon start</code></p><p>*<em>开启TeamViewer服务随机启动*</em></p><p><code>sudo teamviewer --daemon enable</code></p><p><strong>查看帮助信息</strong></p><p><code>teamviewer help</code></p><p><strong>查看本机ID</strong></p><p><code>teamviewer info</code></p><p><strong>设置本机密码</strong></p><p><code>teamviewer passwd [你的密码]</code></p><h3 id="参考教材"><a href="#参考教材" class="headerlink" title="参考教材"></a>参考教材</h3><p><a href="https://www.cnblogs.com/xuanxiaochen/p/5840402.html" target="_blank" rel="external">树莓派笔记——初始化及系统设置 </a></p><p><a href="http://blog.csdn.net/qianchenglenger/article/details/51885122" target="_blank" rel="external">通过SSH在Ubuntu下安装TeamViewer软件</a></p>]]></content>
    
    <summary type="html">
    
      &lt;blockquote&gt;
&lt;p&gt;教程环境：&lt;br&gt;树莓派3B和新烧录好的&lt;code&gt;raspbain&lt;/code&gt;系统为准！&lt;/p&gt;
&lt;/blockquote&gt;
    
    </summary>
    
      <category term="树莓派" scheme="https://www.2bmi.com/categories/%E6%A0%91%E8%8E%93%E6%B4%BE/"/>
    
    
      <category term="raspbain" scheme="https://www.2bmi.com/tags/raspbain/"/>
    
  </entry>
  
  <entry>
    <title>Ubuntu系统安装php7.0以及检测环境</title>
    <link href="https://www.2bmi.com/2017/23260.html"/>
    <id>https://www.2bmi.com/2017/23260.html</id>
    <published>2017-11-28T04:11:15.000Z</published>
    <updated>2018-03-23T05:51:42.260Z</updated>
    
    <content type="html"><![CDATA[<blockquote><p>起初是为了帮朋友搭建类似电脑之家的社区网站，在选择网站程序时选择了<code>asp</code>和<code>php</code>格式的程序，前者只能在win系统才能架设，而后者需要在Linux系统下，在操作虚拟空间的时候由于手贱先将原先的PHP环境切换到ASP环境。导致测试完ASP程序之后不能更换操作系统了！要更换操作系统只能等第二天，这当然不能忍了，恰好我系统是Linux安装PHP环境也是几行命令的事</p></blockquote><a id="more"></a><p><img src="http://tu-img-1.aixinxi.net/o_1c00965e915hh1v2alsfk3lbrfa.png-w.jpg" alt="系统提示"></p><p>简单介绍php，<font color="red;">php环境配置apache2+php+mysql  系统为ubuntu16.04</font></p><p>关于php介绍我就不废话了，网上一大堆！直接进主题：</p><h3 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h3><p><strong>1. 安装 Apache2</strong><br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-get install apache2</div></pre></td></tr></table></figure></p><p><strong>2. 安装php7.0</strong></p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">sudo add-apt-repository -y ppa:ondrej/php</div><div class="line">sudo apt update</div><div class="line">sudo apt install  php7.0</div></pre></td></tr></table></figure><p><strong>3. 安装Mysql服务端和Mysql客户端</strong></p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt install -y mysql-server mysql-client</div></pre></td></tr></table></figure><p>第三步，会提示设置mysql密码并确认密码</p><p><img src="http://tu-img-1.aixinxi.net/o_1c00aej331uj16h7s6bv9v1om1a.png-w.jpg" alt="设置Mysql"></p><p><strong>4. 安装PHP和Mysql关联插件</strong></p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">sudo apt-get install libapache2-mod-php7.0</div><div class="line">sudo apt-get install php7.0-mysql</div><div class="line">sudo apt-get install php7.0-gd</div></pre></td></tr></table></figure><p><strong>5. 安装phpmyadmin</strong></p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-get install phpmyadmin</div></pre></td></tr></table></figure><p>在安装过程中会要求选择Web server：apache2或lighttpd，使用空格键选定apache2，然后确定,下面界面输入你刚才安装Mysql时设置的密码，确定。再确认一次Mysql密码，确定。</p><p><img src="http://tu-img-1.aixinxi.net/o_1c00asfs0198j1at1jhvpk135qa.png-w.jpg" alt="配置"></p><p><img src="http://tu-img-1.aixinxi.net/o_1c00auavc1rmh8cblvch8l29la.png-w.jpg" alt="选择"></p><p><img src="http://tu-img-1.aixinxi.net/o_1c00b0tro1f751b0m17j61daogila.png-w.jpg" alt="输入密码"></p><p><strong>6. 将phpmyadmin与apache2建立连接</strong></p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo ln -s /usr/share/phpmyadmin  /var/www/html</div></pre></td></tr></table></figure><p><strong>7. 修改php配置文件</strong></p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo vim /etc/php/7.0/apache/php/ini</div></pre></td></tr></table></figure><p>display_errors = On(显示错误日志，出现两次，都要改，不然无效)<br>extension=php_mbstring.dll (开启mbstring)</p><h3 id="测试"><a href="#测试" class="headerlink" title="测试"></a>测试</h3><p><strong>1. 启动apache2</strong></p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo /etc/init.d/apache2  restart</div></pre></td></tr></table></figure><p><img src="http://tu-img-1.aixinxi.net/o_1c00b8fhk1i7stb99m9j1r1duca.png-w.jpg" alt="启动Apache2"></p><p><strong>2. 在phptest目录下新建一个PHP 文件:test.php</strong></p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo gedit /var/www/html/test.php</div></pre></td></tr></table></figure><p><strong>3. 在gedit 输入下面内容</strong></p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div></pre></td><td class="code"><pre><div class="line">&lt;!DOCTYPE html&gt;</div><div class="line">&lt;html&gt;</div><div class="line">&lt;head&gt;</div><div class="line">&lt;title&gt;PHP Site&lt;/title&gt;</div><div class="line">&lt;/head&gt;</div><div class="line">&lt;body&gt;</div><div class="line">&lt;p&gt;</div><div class="line">&lt;center&gt;</div><div class="line">&lt;?php</div><div class="line">echo &quot;Hello,This is my first PHP webpage\n&quot;;phpinfo();</div><div class="line">?&gt;</div><div class="line">&lt;/center&gt;</div><div class="line">&lt;/p&gt;</div><div class="line">&lt;/body&gt;</div><div class="line">&lt;/html&gt;</div></pre></td></tr></table></figure><p>保存退出</p><p><strong>4. 浏览器打开测试</strong></p><p>在浏览器输入<code>http://localhost/test.php</code> 回车查看结果！</p><p><img src="http://tu-img-1.aixinxi.net/o_1c00bh83v1e8e13uff421gohr6ia.png-w.jpg" alt="结果"></p><p>想查看php版本直接在终端输入<code>php -v</code>即可！</p><p>浏览器输入<code>127.0.0.1</code>或者<code>localhost</code>就会看到图下一样!</p><p><img src="http://tu-img-1.aixinxi.net/o_1c00bn4151128c5kvjl1hauin1a.png-w.jpg" alt="localhost"></p><h3 id="拓展篇"><a href="#拓展篇" class="headerlink" title="拓展篇"></a>拓展篇</h3><p><strong>1. 站点目录更改</strong></p><p>Apache2默认站点是在<code>var/www/</code>下，但是有时候又想更换站点，下面这个方法可以帮助您：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo gedit /etc/apache2/apache2.conf</div></pre></td></tr></table></figure><p>找到下图的部分:</p><p>将<code>&lt;Directory /var/www/&gt;</code>改成<code>&lt;Directory “你要设置的目录”&gt;</code></p><p>更改后建议要重新建立Apache2和phpmyadmin链接</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo ln -s /usr/share/phpmyadmin  /var/www/html/phpmyadmin</div></pre></td></tr></table></figure><p>将后面的<code>/var/www/html</code>改为你对应的目录，执行<code>sudo /etc/init.d/apache2 restart</code>重启生效</p><p><img src="http://tu-img-1.aixinxi.net/o_1c00c58q31rqg56sda718fuq0ja.png-w.jpg" alt="默认站点更改"></p><p><strong>2. 服务管理命令</strong></p><p>apache2 服务管理命令</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">sudo /etc/init.d/apache2 stop/restart/start</div><div class="line">service apache2 stop/restart/start</div><div class="line">    // 两条令相同</div></pre></td></tr></table></figure><p>mysql 服务管理命令</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">sudo /etc/init.d/mysql stop/restart/start</div><div class="line">service mysql stop/restart/start</div><div class="line">    // 两条令相同</div></pre></td></tr></table></figure><font color="red">2017年12月1号：</font><p>如果浏览器打开<code>phpmyadmin</code>提示<code>The [*mbstring*](http://127.0.0.1/phpmyadmin/url.php?url=http%3A%2F%2Fphp.net%2Fmanual%2Fen%2Fbook.mbstring.php) extension is missing. Please check your PHP configuration.</code></p><p>就是缺少mbstring文件，首先确认当前php版本 <code>php -v</code>Ubuntu16.04默认安装的是php7.0</p><p>先安装php7.0的mbstring</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">sudo apt-get install php7.0-mbstring</div><div class="line">service apache2 restart #重启apache2</div></pre></td></tr></table></figure><p>没出现提示就对了，如果还出现重新执行上面的命令，并命令的<code>7.0</code>改为当前版本！</p>]]></content>
    
    <summary type="html">
    
      &lt;blockquote&gt;
&lt;p&gt;起初是为了帮朋友搭建类似电脑之家的社区网站，在选择网站程序时选择了&lt;code&gt;asp&lt;/code&gt;和&lt;code&gt;php&lt;/code&gt;格式的程序，前者只能在win系统才能架设，而后者需要在Linux系统下，在操作虚拟空间的时候由于手贱先将原先的PHP环境切换到ASP环境。导致测试完ASP程序之后不能更换操作系统了！要更换操作系统只能等第二天，这当然不能忍了，恰好我系统是Linux安装PHP环境也是几行命令的事&lt;/p&gt;
&lt;/blockquote&gt;
    
    </summary>
    
      <category term="Ubuntu 环境" scheme="https://www.2bmi.com/categories/Ubuntu-%E7%8E%AF%E5%A2%83/"/>
    
    
      <category term="开发工具" scheme="https://www.2bmi.com/tags/%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/"/>
    
      <category term="php" scheme="https://www.2bmi.com/tags/php/"/>
    
  </entry>
  
  <entry>
    <title>Ubuntu16.04安装chromium浏览器以及下载器配置</title>
    <link href="https://www.2bmi.com/2017/24648.html"/>
    <id>https://www.2bmi.com/2017/24648.html</id>
    <published>2017-11-23T13:50:35.000Z</published>
    <updated>2018-05-10T05:32:02.495Z</updated>
    
    <content type="html"><![CDATA[<p><strong>系统自带有火狐浏览器，但我喜欢用谷歌浏览器，所以只装<code>chromium</code>版的浏览器</strong><br>在这里做个解释：<code>chrome浏览器</code>和<code>chromium浏览器</code>都是出于谷歌的！<br>安装谷歌插件那部分需要v。p。n</p><p>安装只列举ubuntu16.04安装chromium浏览器</p><a id="more"></a><h3 id="安装-chromium浏览器"><a href="#安装-chromium浏览器" class="headerlink" title="安装 chromium浏览器"></a>安装 chromium浏览器</h3><p>在终端依次执行以下命令：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">sudo add-apt-repository ppa:a-v-shkop/chromium</div><div class="line"></div><div class="line">sudo apt-get update</div><div class="line"></div><div class="line">sudo apt-get install chromium-browser</div></pre></td></tr></table></figure><p>没提示错误的话，<br>按下电脑的<code>win</code>键或者左上角点击ubuntu的logo可以搜索<br><img src="http://tu-img-1.aixinxi.net/o_1bvkg6tahfo7e7h1mpm1f0j86fa.png-w.jpg" alt="查看chromium是否安装"></p><h3 id="uGet替换chromium浏览器默认下载"><a href="#uGet替换chromium浏览器默认下载" class="headerlink" title="uGet替换chromium浏览器默认下载"></a>uGet替换chromium浏览器默认下载</h3><p>不知道你们有没有发现使用<code>chrome浏览器</code>下载东西贼慢，<code>chromium浏览器</code>也不例外！<br>这时第三方的下载插件就有用了！</p><p>uGet是采用aria2作为下载后端，所以两个软件都必须同时安装。</p><ol><li>安装uGet</li></ol><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-get install uget  #Ubuntu、deepin安装</div></pre></td></tr></table></figure><ol><li>安装aria2</li></ol><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-get install aria2  #Ubuntu、deepin安装</div></pre></td></tr></table></figure><ol><li>配置uGet默认下载插件为aria2</li></ol><p><img src="http://tu-img-1.aixinxi.net/o_1bvkhf0bh1vcn7846f31j8p1smea.png-w.jpg" alt="打开uGet软件"><br>菜单栏依次打开： <code>编辑</code>》》》<code>设置</code>》》》<code>插件</code><br><img src="http://tu-img-1.aixinxi.net/o_1bvkhksuh179nthf1vnk6041p6ra.png-w.jpg" alt="配置"></p><ol><li><del>设置uGet为chromium的下载默认插件</del><br><del>安装uget-chrome-wrapper</del></li></ol><p><strong><a href="https://chrome.google.com/webstore/detail/uget-integration/efjgjleilhflffpbnkaofpmdnajdpepi?hl=zh-CN" target="_blank" rel="external">点击前往安装Chrome插件</a></strong></p><p>添加uGet扩展后，谷歌浏览器右上角即可显示uGet图标。重启谷歌浏览器，只要点击下载链接，就会自动弹出uGet下载界面、自动添加下载任务。<br>当然，如果对于某些链接，仍要使用谷歌浏览器下载，可以用鼠标右键“链接另存为”。</p><h3 id="注意！"><a href="#注意！" class="headerlink" title="注意！"></a>注意！</h3><p><font color="red">2018/5/10更新</font>2018年<code>uGet团队</code>已将<code>uget-chrome-wrapper</code>采纳官方插件并重新命名为<code>uget-integrator</code> 因此新的<a href="https://github.com/ugetdm/uget-extension" target="_blank" rel="external">uget-extension</a>插件不再支持<code>uget-chrome-wrapper</code> <strong>请卸载uget-chrome-wrapper并安装uget-integrator</strong></p><p>之前安装过<code>uget-chrome-wrapper</code>需要卸载</p><p>Ubuntu和Linux Mint卸载方法：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">sudo apt remove uget</div><div class="line">sudo apt remove uget-chrome-wrapper</div><div class="line">sudo add-apt-repository --remove ppa:slgobinath/uget-chrome-wrapper</div></pre></td></tr></table></figure><p>其他 linux 卸载方法：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">wget https://raw.githubusercontent.com/slgobinath/uget-chrome-wrapper/master/build/linux/uninstall_uget_chrome_wrapper.sh</div><div class="line">sudo sh uninstall_uget_chrome_wrapper.sh</div></pre></td></tr></table></figure><p>这时打开浏览器发现<code>uget</code>扩展程序是红色的，点开看到“Unable to connect with uget-integrator”<br><img src="http://t1.aixinxi.net/o_1cd47lr2c8631qj31t11ebc1269a.png-w.jpg" alt="jie"></p><p>原因是缺少<code>uget-integrator</code> 下面是安装教程</p><p>Ubuntu和Linux Mint</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">sudo add-apt-repository ppa:uget-team/ppa</div><div class="line">sudo apt update</div><div class="line">sudo apt install uget-integrator</div></pre></td></tr></table></figure><p>其他Linux</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">wget https://raw.githubusercontent.com/ugetdm/uget-integrator/master/install/linux/install_uget_integrator.sh</div><div class="line">chmod +x install_uget_integrator.sh</div><div class="line">./install_uget_integrator.sh</div></pre></td></tr></table></figure><p>安装完成重启浏览器或者重新开启扩展程序</p><p>如图下，就算是成功了<br><img src="http://t1.aixinxi.net/o_1cd48f1dnc683v71qns1kk1s0da.png-w.jpg" alt="w"></p><p>参考教程：</p><p><a href="http://www.cnblogs.com/EasonJim/p/7119294.html" target="_blank" rel="external">http://www.cnblogs.com/EasonJim/p/7119294.html</a></p><p><a href="https://slgobinath.github.io/uget-chrome-wrapper/#installation" target="_blank" rel="external">https://slgobinath.github.io/uget-chrome-wrapper/#installation</a></p>]]></content>
    
    <summary type="html">
    
      &lt;p&gt;&lt;strong&gt;系统自带有火狐浏览器，但我喜欢用谷歌浏览器，所以只装&lt;code&gt;chromium&lt;/code&gt;版的浏览器&lt;/strong&gt;&lt;br&gt;在这里做个解释：&lt;code&gt;chrome浏览器&lt;/code&gt;和&lt;code&gt;chromium浏览器&lt;/code&gt;都是出于谷歌的！&lt;br&gt;安装谷歌插件那部分需要v。p。n&lt;/p&gt;
&lt;p&gt;安装只列举ubuntu16.04安装chromium浏览器&lt;/p&gt;
    
    </summary>
    
      <category term="Linux" scheme="https://www.2bmi.com/categories/Linux/"/>
    
    
      <category term="chromium" scheme="https://www.2bmi.com/tags/chromium/"/>
    
      <category term="chrome" scheme="https://www.2bmi.com/tags/chrome/"/>
    
  </entry>
  
  <entry>
    <title>Ubuntu16.04出现内部错误</title>
    <link href="https://www.2bmi.com/2017/9080.html"/>
    <id>https://www.2bmi.com/2017/9080.html</id>
    <published>2017-11-20T12:44:58.000Z</published>
    <updated>2018-03-23T05:52:27.369Z</updated>
    
    <content type="html"><![CDATA[<blockquote><p>Linux出现内部错误不仅只有Ubuntu才会有，其他Linux的桌面发行版也会出现，但是我只用过centos7.x和Ubuntu16.04桌面发行版本，如有错误欢迎指正！</p></blockquote><a id="more"></a><h3 id="问题描述"><a href="#问题描述" class="headerlink" title="问题描述"></a>问题描述</h3><p>在桌面版Ubuntu中，我经常遇到一些弹窗窗口，警告我Ubuntu发生了内部错误，问我要不要发送错误报告。每次软件崩溃都要烦扰我，我如何才能关掉这个错误报告功能呢？而我再一次重装系统又出现这个问题，这次顺便写下来记录，方便以后查证！</p><p>Ubuntu桌面版预装了Apport，它是一个错误收集系统，会收集软件崩溃、未处理异常和其他，包括程序bug，并为调试目的生成崩溃报告。当一个应用程序崩溃或者出现Bug时候，Apport就会通过弹窗警告用户并且询问用户是否提交崩溃报告。你也许也看到过下面的消息。</p><ul><li>“Sorry, the application XXXX has closed unexpectedly.”</li><li>“对不起，应用程序XXXX意外关闭了。”</li><li>“Sorry, Ubuntu XX.XX has experienced an internal error.”</li><li>“对不起，Ubuntu XX.XX 发生了一个内部错误。”</li><li>“System program problem detected.”</li><li>“检测到系统程序问题。”<br><img src="http://tu-img-1.aixinxi.net/o_1bvcogglu8tltkp1dsn16bb11pka.png-w.jpg" alt="内部错误"></li></ul><p>也许因为应用一直崩溃，频繁的错误报告会使人心烦。也许你担心Apport会收集和上传你的Ubuntu系统的敏感信息。无论什么原因，你想关掉Apport的错误报告功能。</p><h3 id="临时关闭apport错误报告"><a href="#临时关闭apport错误报告" class="headerlink" title="临时关闭apport错误报告"></a>临时关闭apport错误报告</h3><p>如果你想要临时关闭Apport，使用下列命令<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo service apport stop</div></pre></td></tr></table></figure></p><p><strong>注意</strong>：重启Ubuntu系统会继续自动开启</p><h3 id="永久关闭Apport错误报告"><a href="#永久关闭Apport错误报告" class="headerlink" title="永久关闭Apport错误报告"></a>永久关闭Apport错误报告</h3><p>为了永久关闭Apport，编辑/etc/default/apport，修改下列参数<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo gedit /etc/default/apport</div></pre></td></tr></table></figure></p><p><img src="http://tu-img-1.aixinxi.net/o_1bvcp5lbq9be114qmch6ns1r8da.png-w.jpg" alt="apport"><br>将图中的<code>enabled=1</code>改为<code>enabled=0</code>这样就是关闭了<br>下次重启你的Ubuntu系统，Apport将会自动关闭</p><h3 id="永久移除apport"><a href="#永久移除apport" class="headerlink" title="永久移除apport"></a>永久移除apport</h3><p>如果你再也不会用Apport，有一种简单的方法完全移除它<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-get --purge apport</div></pre></td></tr></table></figure></p><p>此方法不建议使用，慎重！</p>]]></content>
    
    <summary type="html">
    
      &lt;blockquote&gt;
&lt;p&gt;Linux出现内部错误不仅只有Ubuntu才会有，其他Linux的桌面发行版也会出现，但是我只用过centos7.x和Ubuntu16.04桌面发行版本，如有错误欢迎指正！&lt;/p&gt;
&lt;/blockquote&gt;
    
    </summary>
    
      <category term="Ubuntu" scheme="https://www.2bmi.com/categories/Ubuntu/"/>
    
    
      <category term="Ubuntu" scheme="https://www.2bmi.com/tags/Ubuntu/"/>
    
  </entry>
  
  <entry>
    <title>Ubuntu16.04安装Nodejs和npm</title>
    <link href="https://www.2bmi.com/2017/13731.html"/>
    <id>https://www.2bmi.com/2017/13731.html</id>
    <published>2017-11-19T13:01:10.000Z</published>
    <updated>2018-03-23T05:51:38.416Z</updated>
    
    <content type="html"><![CDATA[<blockquote><p>Linux 很多软件或者开发工具是离不开Nodejs的</p></blockquote><h3 id="Nodejs-下载"><a href="#Nodejs-下载" class="headerlink" title="Nodejs 下载"></a>Nodejs 下载</h3><p><strong><a href="https://nodejs.org/zh-cn/" target="_blank" rel="external">官网</a></strong>下载64位安装包<strong><a href="https://nodejs.org/dist/v8.6.0/node-v8.6.0-linux-x64.tar.xz" target="_blank" rel="external">点击下载 node-v8.6.0-linux-x64.tar.xz</a></strong><br><a id="more"></a></p><h3 id="Node与Npm的安装"><a href="#Node与Npm的安装" class="headerlink" title="Node与Npm的安装"></a>Node与Npm的安装</h3><p>1.将安装包拷贝到虚拟机，解压安装包<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">tar -xJf node-v8.6.0-linux-x64.tar.xz</div></pre></td></tr></table></figure></p><p>2.移动解压出来的文件包到通用的软件安装目录 /opt/<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo mv node-v8.6.0-linux-x64 /opt/</div></pre></td></tr></table></figure></p><p>3.安装 npm 和 node 命令到系统命令<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">sudo ln -s /opt/node-v8.6.0-linux-x64/bin/node /usr/local/bin/node</div><div class="line">sudo ln -s /opt/node-v8.6.0-linux-x64/bin/npm /usr/local/bin/npm</div></pre></td></tr></table></figure></p><p>4.验证 Nodejs 环境安装是否成功</p><p><img src="http://images.https://www.2bmi.com.com/17-11-19/94490246.jpg" alt="版本"></p>]]></content>
    
    <summary type="html">
    
      &lt;blockquote&gt;
&lt;p&gt;Linux 很多软件或者开发工具是离不开Nodejs的&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;Nodejs-下载&quot;&gt;&lt;a href=&quot;#Nodejs-下载&quot; class=&quot;headerlink&quot; title=&quot;Nodejs 下载&quot;&gt;&lt;/a&gt;Nodejs 下载&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://nodejs.org/zh-cn/&quot; target=&quot;_blank&quot; rel=&quot;external&quot;&gt;官网&lt;/a&gt;&lt;/strong&gt;下载64位安装包&lt;strong&gt;&lt;a href=&quot;https://nodejs.org/dist/v8.6.0/node-v8.6.0-linux-x64.tar.xz&quot; target=&quot;_blank&quot; rel=&quot;external&quot;&gt;点击下载 node-v8.6.0-linux-x64.tar.xz&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;
    
    </summary>
    
      <category term="Ubuntu 环境" scheme="https://www.2bmi.com/categories/Ubuntu-%E7%8E%AF%E5%A2%83/"/>
    
    
      <category term="Ubuntu" scheme="https://www.2bmi.com/tags/Ubuntu/"/>
    
      <category term="nodejs" scheme="https://www.2bmi.com/tags/nodejs/"/>
    
  </entry>
  
  <entry>
    <title>Ubuntu安装FTP工具</title>
    <link href="https://www.2bmi.com/2017/18763.html"/>
    <id>https://www.2bmi.com/2017/18763.html</id>
    <published>2017-11-16T10:15:25.000Z</published>
    <updated>2018-03-23T05:51:20.759Z</updated>
    
    <content type="html"><![CDATA[<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><blockquote><p>FileZilla是一个免费而且开源的FTP客户端软件，共有两种版本：客户端版本、服务器版本。FileZilla有条理的界面和管理多站点的简化方式使得FileZilla Client成为一个方便高效的FTP客户端工具。本文介绍的是Ubuntu下FileZilla的安装<br><a id="more"></a><br>先放一个界面图：<br><img src="http://tu-img-1.aixinxi.net/o_1bv25fi5r19vsj68195584bjs7a.png" alt="FTP"></p></blockquote><p>FileZilla Client 非常好用，以下是安装步骤。<br>安装filezilla ：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-get install filezilla</div></pre></td></tr></table></figure></p><p>再装个语言包：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-get install filezilla-locales</div></pre></td></tr></table></figure></p><p>我装这个没成功。。。。这个是语言包的。</p><p>安装成功后，如果出现./filezilla/filezilla.xml、./filezilla/layout.xml等文件不允许些或者说不能够读，可能是权限问题。</p><p>然后，把这些文件赋予合适的权限就成功了。</p><blockquote><p>参考教程：<a href="http://blog.csdn.net/stubbornness1219/article/details/50909760" target="_blank" rel="external">点击跳转</a></p></blockquote>]]></content>
    
    <summary type="html">
    
      &lt;h2 id=&quot;前言&quot;&gt;&lt;a href=&quot;#前言&quot; class=&quot;headerlink&quot; title=&quot;前言&quot;&gt;&lt;/a&gt;前言&lt;/h2&gt;&lt;blockquote&gt;
&lt;p&gt;FileZilla是一个免费而且开源的FTP客户端软件，共有两种版本：客户端版本、服务器版本。FileZilla有条理的界面和管理多站点的简化方式使得FileZilla Client成为一个方便高效的FTP客户端工具。本文介绍的是Ubuntu下FileZilla的安装&lt;br&gt;
    
    </summary>
    
      <category term="工具" scheme="https://www.2bmi.com/categories/%E5%B7%A5%E5%85%B7/"/>
    
    
      <category term="FTP" scheme="https://www.2bmi.com/tags/FTP/"/>
    
      <category term="工具" scheme="https://www.2bmi.com/tags/%E5%B7%A5%E5%85%B7/"/>
    
  </entry>
  
  <entry>
    <title>TeamViewer</title>
    <link href="https://www.2bmi.com/2017/30971.html"/>
    <id>https://www.2bmi.com/2017/30971.html</id>
    <published>2017-11-16T08:14:17.000Z</published>
    <updated>2018-05-02T14:03:26.711Z</updated>
    
    <content type="html"><![CDATA[<h3 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h3><blockquote><p>Teamviewer 是一个远程协助软件，个人使用是免费的。如果对方的电脑也安装了 TeamViewer，那么你只需要输入对方的 TeamViewer ID号就能远程控制对方电脑了。<br>安装时若出现问题的麻烦评论反馈，方便后来的朋友参考，谢谢！<br>现在任何操作系统我都会第一时间安装上<code>TeamViewer</code>程序，几乎所有平台他都支持！<br><img src="http://tu-img-1.aixinxi.net/o_1bv1v5erp1r35drkh931saj1m7ma.png" alt="TeamViewer系统支持"><br>本篇文章只写<code>Ubuntu 16.04</code>的，理论兼容<code>Ubuntu</code>所有版本<br><a id="more"></a></p><h3 id="下载TeamViewer"><a href="#下载TeamViewer" class="headerlink" title="下载TeamViewer"></a>下载TeamViewer</h3><p>首先前往<code>TeamViewer</code>的官网下载deb包<br><a href="https://www.teamviewer.com/en/download/linux/" target="_blank" rel="external">TeamViewer国际版</a> | <a href="https://www.teamviewer.com/zhcn/download/linux/" target="_blank" rel="external">TeamViewer国内版</a><br><img src="http://tu-img-1.aixinxi.net/o_1bv1vfgnkq2h19291h4aeqtis2a.png" alt="TeamViewer"><br>这是一个32位的deb包。Debian 6/Ubuntu 10等旧发行版本可以下载64位deb包，因为它们没有Multiarch多架构功能。对于Ubuntu 16.04，我们可以下载32位deb包，因为Ubuntu 16.04具备多架构功能，即使是64位的Ubuntu 16.04系统也能安装32位的deb包。</p></blockquote><p>下载完成后 <code>CTRL</code>+<code>ALT</code>+<code>T</code>快捷键打开命令行并切换到安装的目录<br><img src="http://tu-img-1.aixinxi.net/o_1bv20i1kr1cukquh81c1jut17eba.png" alt=""></p><p>查看是否存在TeamViewer的安装包，存在则进行下一步</p><h3 id="安装依赖包"><a href="#安装依赖包" class="headerlink" title="安装依赖包"></a>安装依赖包</h3><p>有时候安装提示依赖错误或者提示缺少依赖包的可以输入下面解决：<br><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-get -f install</div></pre></td></tr></table></figure></p><p>系统是32位的可以跳过这一步，因为我们的Ubuntu系统安装是64位的，而安装是32位的所以我们需要安装32位的架构</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">sudo dpkg --add-architecture i386</div><div class="line">sudo apt-get update</div><div class="line"></div><div class="line">sudo apt-get install libdbus-1-3:i386 libasound2:i386 libexpat1:i386 libfontconfig1:i386 libfreetype6:i386 libjpeg62:i386 libpng12-0:i386 libsm6:i386 libxdamage1:i386 libxext6:i386 libxfixes3:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxtst6:i386 zlib1g:i386 libc6:i386</div></pre></td></tr></table></figure><p><img src="http://tu-img-1.aixinxi.net/o_1bv22tkd611gis0dg5h1h49o3qa.png" alt="依赖包"><br>这是执行命令之后的截图</p><p>最后执行一行命令 sudo dpkg -i 包名<br>例如我的安装包名为：teamviewer_12.0.85001_i386.deb<br>可以用<code>TAB</code>键补全包名，用法：输入<code>team</code>包名前缀然后按下<code>TAB</code>键<br><img src="http://tu-img-1.aixinxi.net/o_1bv23c5e715i0p8616sd1eo21m6ma.png" alt="安装成功"></p><h3 id="安装完成"><a href="#安装完成" class="headerlink" title="安装完成"></a>安装完成</h3><p>到这里我们安装好了！来看看效果<br>按下<code>win</code>键 输入team 就能看到<code>TeamViewer</code>啦<br><img src="http://tu-img-1.aixinxi.net/o_1bv23mqhk2er1ugr1fe01id3flpa.png" alt="查找teamviewer"></p><p>点击打开<br><img src="http://tu-img-1.aixinxi.net/o_1bv2441fq97r9fna3n4rc15rua.png" alt="最终效果"></p><blockquote><p>到这里教程结束啦！有什么建议或者文章不完整麻烦反馈给我哦！邮箱<strong>58420846@qq.com</strong> QQ<strong>58420846</strong></p></blockquote>]]></content>
    
    <summary type="html">
    
      &lt;h3 id=&quot;前言&quot;&gt;&lt;a href=&quot;#前言&quot; class=&quot;headerlink&quot; title=&quot;前言&quot;&gt;&lt;/a&gt;前言&lt;/h3&gt;&lt;blockquote&gt;
&lt;p&gt;Teamviewer 是一个远程协助软件，个人使用是免费的。如果对方的电脑也安装了 TeamViewer，那么你只需要输入对方的 TeamViewer ID号就能远程控制对方电脑了。&lt;br&gt;安装时若出现问题的麻烦评论反馈，方便后来的朋友参考，谢谢！&lt;br&gt;现在任何操作系统我都会第一时间安装上&lt;code&gt;TeamViewer&lt;/code&gt;程序，几乎所有平台他都支持！&lt;br&gt;&lt;img src=&quot;http://tu-img-1.aixinxi.net/o_1bv1v5erp1r35drkh931saj1m7ma.png&quot; alt=&quot;TeamViewer系统支持&quot;&gt;&lt;br&gt;本篇文章只写&lt;code&gt;Ubuntu 16.04&lt;/code&gt;的，理论兼容&lt;code&gt;Ubuntu&lt;/code&gt;所有版本&lt;br&gt;
    
    </summary>
    
      <category term="Ubuntu" scheme="https://www.2bmi.com/categories/Ubuntu/"/>
    
    
      <category term="Linux" scheme="https://www.2bmi.com/tags/Linux/"/>
    
      <category term="TeamViewer" scheme="https://www.2bmi.com/tags/TeamViewer/"/>
    
  </entry>
  
  <entry>
    <title>Ubuntu16.04从安装到优化Sublime系列教程 安装篇</title>
    <link href="https://www.2bmi.com/2017/40337.html"/>
    <id>https://www.2bmi.com/2017/40337.html</id>
    <published>2017-10-31T10:02:32.000Z</published>
    <updated>2018-03-23T05:52:13.029Z</updated>
    
    <content type="html"><![CDATA[<h3 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h3><p>发现文章不足之处，欢迎指正。<br>本系列教程针对对Sublime Text 不熟悉的新手</p><h3 id="Sublime-Text-介绍"><a href="#Sublime-Text-介绍" class="headerlink" title="Sublime Text 介绍"></a>Sublime Text 介绍</h3><a id="more"></a><p>开始之前，介绍一下我们接下来要安装的 Sublime Text</p><blockquote><p>Sublime Text 是一个代码编辑器（Sublime Text 2是收费软件，但可以无限期试用），<br>也是HTML和散文先进的文本编辑器。Sublime Text是由程序员Jon Skinner于2008年1月<br>份所开发出来，它最初被设计为一个具有丰富扩展功能的Vim。</p><p>Sublime Text具有漂亮的用户界面和强大的功能，例如代码缩略图，Python的插件，<br>代码段等。还可自定义键绑定，菜单和工具栏。Sublime Text 的主要功能包括：拼写<br>检查，书签，完整的 Python API ， Goto 功能，即时项目切换，多选择，多窗口等等。<br>Sublime Text 是一个跨平台的编辑器，同时支持Windows、Linux、Mac OS X等操作系统。</p></blockquote><h3 id="安装Sublime-Text-3"><a href="#安装Sublime-Text-3" class="headerlink" title="安装Sublime Text 3"></a>安装Sublime Text 3</h3><p>首先打开Ubuntu终端 快捷键：Ctrl + Alt + T<br>添加sublime text 3的仓库：</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo add-apt-repository ppa:webupd8team/sublime-text-3</div></pre></td></tr></table></figure><p>根据提示按ENTER 继续，建立信任数据库<br>更新软件库<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-get update</div></pre></td></tr></table></figure></p><p>安装Sublime Text 3<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">sudo apt-get install sublime-text-installer</div></pre></td></tr></table></figure></p><p>等待软件安装成功<br>然后在终端输入<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">subl</div></pre></td></tr></table></figure></p><p>能打开就代表安装成功！</p><p><font color="red">11月21号新增：</font>用PPA源安装的Sublime text 3基本不是最新版，所以导致有时候启动提示有新版本更新，但是你又不想更新可以通过以下方法关闭<br><strong>确定软件版本</strong><br>注册过就跳过这一步<br>首先确定软件的版本，好找到对应的注册码。<br>Sublime text 3的菜单栏的<code>Help</code>》》》<code>About Sublime text</code>即可查看到软件版本号，这是我装的软件本版<code>Build 3143</code><br><img src="http://tu-img-1.aixinxi.net/o_1bvee9et81ahe524un8m8gc98a.png-w.jpg" alt="软件版本"><br>然后百度对应的注册码。我这里附上我这个版本号的注册码：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div></pre></td><td class="code"><pre><div class="line">—– BEGIN LICENSE —–</div><div class="line">TwitterInc</div><div class="line">200 User License</div><div class="line">EA7E-890007</div><div class="line">1D77F72E 390CDD93 4DCBA022 FAF60790</div><div class="line">61AA12C0 A37081C5 D0316412 4584D136</div><div class="line">94D7F7D4 95BC8C1C 527DA828 560BB037</div><div class="line">D1EDDD8C AE7B379F 50C9D69D B35179EF</div><div class="line">2FE898C4 8E4277A8 555CE714 E1FB0E43</div><div class="line">D5D52613 C3D12E98 BC49967F 7652EED2</div><div class="line">9D2D2E61 67610860 6D338B72 5CF95C69</div><div class="line">E36B85CC 84991F19 7575D828 470A92AB</div><div class="line">—— END LICENSE ——</div></pre></td></tr></table></figure></p><p>找到对应的注册码，到Sublime的菜单栏<code>Help</code>》》》<code>Enter License</code><br><img src="http://tu-img-1.aixinxi.net/o_1bveep6tkm9pikcu0o1618gta.png-w.jpg" alt="注册码输入框"><br>粘贴进去，选择下方的<code>Use License</code>，这样注册功！接下来就是关闭更新提示！</p><p><strong>关闭更新提示</strong><br>不注册就算设置关闭还是一样提示更新<br>同样还是Sublime的菜单栏<code>Preferences</code>》》》<code>Settings-User</code><br>或者是<code>Preferences</code>》》》<code>Settings</code> 恰好我是这种<br>在最后一个花括号{}结尾前添加一句：<code>”update_check“:false，</code><br>我的配置如下：<br><img src="http://tu-img-1.aixinxi.net/o_1bveg0aa91109to3q8o1nag1s7na.png-w.jpg" alt="配置"><br>需要提醒大家的是，”update_check”:false前的最后一行的结尾有一个逗号，如果你也配置了主题等其他内容，没有那个逗号，是无法保存更改的。<br>下面是错误演示，错误原因：上一行缺少英文逗号<br><img src="http://tu-img-1.aixinxi.net/o_1bveg6jt6oug1lqlbi31nqf9eoa.png-w.jpg" alt="错误掩饰"><br>保存退出，重启发现提示更新已经没了</p><h3 id="安装-包管理器-Package-Control"><a href="#安装-包管理器-Package-Control" class="headerlink" title="安装 包管理器 Package Control"></a>安装 包管理器 Package Control</h3><p><code>Package Control</code>是为Sublime Text 安装强大的插件的包管理器，相当于苹果手机的应用商店！</p><p> 使用<code>Ctrl+</code>` 快捷键或者通过<code>View-&gt;Show Console</code>菜单</p><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">import urllib.request,os,hashlib; h = &apos;6f4c264a24d933ce70df5dedcf1dcaee&apos; + &apos;ebe013ee18cced0ef93d5f746d80ef60&apos;; pf = &apos;Package Control.sublime-package&apos;; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( &apos;http://packagecontrol.io/&apos; + pf.replace(&apos; &apos;, &apos;%20&apos;)).read(); dh = hashlib.sha256(by).hexdigest(); print(&apos;Error validating download (got %s instead of %s), please try manual install&apos; % (dh, h)) if dh != h else open(os.path.join( ipp, pf), &apos;wb&apos; ).write(by)</div></pre></td></tr></table></figure><p>将其上方的代码输入进控制台，并单击回车。<br>等待安装完成后，完全退出Sublime Text 并重新打开。</p><blockquote><p>怎么判断安装完成呢？有两个方法：<br>第一种：在控制台输入代码回车后查看Sublime Text 软件右下角有东西跑来跑去就是正在安装，否则安装完成！<br>第二种： 在控制台输入代码回车等五分钟即可，然后重启Sublime Text  </p></blockquote><p>此时就可以在<code>Preferences</code>菜单下看到<code>Package Settings</code>和<code>Package Control</code>两个菜单了。</p><blockquote><p>注意：如果安装报错，比如连接远程服务器失败之类的，请设置wbond.net的host，相关host如下：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">&gt; 50.116.33.29        sublime.wbond.net</div><div class="line">&gt;</div></pre></td></tr></table></figure></p></blockquote><p>这里就不展示手动安装<code>PCIP -Package Control</code></p><p>本次教程结束！需要继续看接下来的文章请移步到<strong>分类</strong>查看sublime 即可找到！</p><p>教程参考：<br><a href="http://www.jianshu.com/p/ecc241f22ed5" target="_blank" rel="external">作者：MR<em>LP__</em>李鹏</a></p>]]></content>
    
    <summary type="html">
    
      &lt;h3 id=&quot;前言&quot;&gt;&lt;a href=&quot;#前言&quot; class=&quot;headerlink&quot; title=&quot;前言&quot;&gt;&lt;/a&gt;前言&lt;/h3&gt;&lt;p&gt;发现文章不足之处，欢迎指正。&lt;br&gt;本系列教程针对对Sublime Text 不熟悉的新手&lt;/p&gt;
&lt;h3 id=&quot;Sublime-Text-介绍&quot;&gt;&lt;a href=&quot;#Sublime-Text-介绍&quot; class=&quot;headerlink&quot; title=&quot;Sublime Text 介绍&quot;&gt;&lt;/a&gt;Sublime Text 介绍&lt;/h3&gt;
    
    </summary>
    
      <category term="sublime" scheme="https://www.2bmi.com/categories/sublime/"/>
    
    
      <category term="Ubuntu" scheme="https://www.2bmi.com/tags/Ubuntu/"/>
    
      <category term="开发工具" scheme="https://www.2bmi.com/tags/%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/"/>
    
      <category term="sublime" scheme="https://www.2bmi.com/tags/sublime/"/>
    
  </entry>
  
  <entry>
    <title>关于博客版本区别说明</title>
    <link href="https://www.2bmi.com/2017/64403.html"/>
    <id>https://www.2bmi.com/2017/64403.html</id>
    <published>2017-10-21T12:33:25.000Z</published>
    <updated>2017-10-27T15:09:08.490Z</updated>
    
    <content type="html"><![CDATA[<blockquote><p>博客被分为两个版本，分别为国际版和国内版</p><p>下面分别说明两者的差别！</p></blockquote><a id="more"></a><hr><h3 id="国际版"><a href="#国际版" class="headerlink" title="国际版"></a>国际版</h3><h4 id="评论插件：DISQUS"><a href="#评论插件：DISQUS" class="headerlink" title="评论插件：DISQUS"></a>评论插件：<strong><a href="https://x.com/" target="_blank" rel="external">DISQUS</a></strong></h4><p><img src="https://tu-img-1.aixinxi.net/o_1btf5ti4d18mc1a23amb1g798d7a.jpg" alt="o_1btf5ti4d18mc1a23amb1g798d7a.jpg"></p><p>该插件是国外很多博客使用的评论插件，当然我也不能免俗！</p><h4 id="搭载平台：-Github-pages"><a href="#搭载平台：-Github-pages" class="headerlink" title="搭载平台： Github pages"></a>搭载平台： <strong>Github pages</strong></h4><blockquote><p>Github  平台处于美国地域，大陆用户时常有时候会出现打不开的时候。</p></blockquote><h3 id="国内版"><a href="#国内版" class="headerlink" title="国内版"></a>国内版</h3><h4 id="评论插件：-畅言"><a href="#评论插件：-畅言" class="headerlink" title="评论插件： 畅言"></a>评论插件： <strong><a href="http://changyan.kuaizhan.com" target="_blank" rel="external">畅言</a></strong></h4><p><img src="https://tu-img-1.aixinxi.net/o_1btf5va8e1arg1f9m1iu61ae5npoa.jpg" alt="o_1btf5va8e1arg1f9m1iu61ae5npoa.jpg"></p><h4 id="搭载平台：Coding-pages"><a href="#搭载平台：Coding-pages" class="headerlink" title="搭载平台：Coding pages"></a>搭载平台：<strong>Coding pages</strong></h4><blockquote><p>Coding 平台处于大陆地域，也算是Github平台的分身</p><p>如何区分国内版还是国际版？</p><p>电脑：博客左上角有写国际版，那就是国际版。否则就是国内版。<br>手机：博客首页上方写有国内版，那就是国内版。否则就是国际版。</p></blockquote><p><a href="https://blog.https://www.2bmi.com.com/" target="_blank" rel="external">点击这里</a>直达国内版博客</p><p><a href="https://www.2bmi.com">点击这里</a>直达国际版博客</p><h3 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h3><blockquote><p>无论博客是国际版还是国内版，博客内容实际还是一样的，就是评论和一些小部分不一样而已！也可以算是热备份，即使有一个网站访问不了，也可以瞬间转移到可以正常访问的网站上！尤其对以后的升级迁移网站的时候。</p></blockquote><p>PS：文案不是太好，所以各位游客、粉丝多多包容啦！我会慢慢改进的，也会坚持每个星期写一些对大家有帮助的教程以及一些美图资源！</p>]]></content>
    
    <summary type="html">
    
      &lt;blockquote&gt;
&lt;p&gt;博客被分为两个版本，分别为国际版和国内版&lt;/p&gt;
&lt;p&gt;下面分别说明两者的差别！&lt;/p&gt;
&lt;/blockquote&gt;
    
    </summary>
    
    
  </entry>
  
</feed>
