<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>mac on Random Stuff from GlacJAY</title><link>https://blog.glacjay.info/tags/mac/</link><description>Recent content in mac on Random Stuff from GlacJAY</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><lastBuildDate>Sat, 17 Jan 2015 16:40:49 +0800</lastBuildDate><atom:link href="https://blog.glacjay.info/tags/mac/index.xml" rel="self" type="application/rss+xml"/><item><title>我的 MBP SSD 优化过程</title><link>https://blog.glacjay.info/post/2015-01-17/%E6%88%91%E7%9A%84-mbp-ssd-%E4%BC%98%E5%8C%96%E8%BF%87%E7%A8%8B/</link><pubDate>Sat, 17 Jan 2015 16:40:49 +0800</pubDate><guid>https://blog.glacjay.info/post/2015-01-17/%E6%88%91%E7%9A%84-mbp-ssd-%E4%BC%98%E5%8C%96%E8%BF%87%E7%A8%8B/</guid><description>&lt;p>嗯，这次的标题终于没那么长了 ;-)&lt;/p>
&lt;hr>
&lt;p>给我的 MBP 换 SSD 已经是很久之前的事了，当时就已经折腾过一次优化了，不过没有相应的记录。最近发现了新装的 Yosemite 的一些老是搞不定而且连原因都不知道的问题（其中一个可以参见&lt;a href="http://apple.stackexchange.com/questions/163500/when-i-want-to-install-teamviewer-10-why-cant-i-select-my-system-disk-as-the-d" title="AskDifferent: When I want to install TeamViewer 10, why can't I select my system disk as the distination?">我在 AskDifferent 上的提问&lt;/a>），一怒之下重装之，自然对 SSD 的优化也要重新搞一遍。搞的过程中发现有的手段能用，有的却不行，特此记录。&lt;/p>
&lt;p>优化手段的主要来源是&lt;a href="http://chenyufei.info/blog/2011-09-06/13-%E5%AF%B8-macbook-pro-%E6%8B%86%E5%85%89%E9%A9%B1%E6%9B%B4%E6%8D%A2-ssd/" title="13 寸 Macbook Pro 拆光驱更换 SSD">朋友的一篇博文&lt;/a>及其中的链接。&lt;/p>
&lt;p>&lt;strong>注意：操作有风险，动手须谨慎哟。因为我是不（lan）会（de）做太多解释的，所以你一定要在操作前搞清楚那些个命令的作用哟，特别是像 &lt;code>rm&lt;/code> 啦 &lt;code>mv&lt;/code> 啦之类的危险命令哟，可别说我没提醒你哟 -_-&lt;/strong>&lt;/p></description></item><item><title>用 Python 操作虚拟网卡</title><link>https://blog.glacjay.info/post/2010-09-18/%E7%94%A8-python-%E6%93%8D%E4%BD%9C%E8%99%9A%E6%8B%9F%E7%BD%91%E5%8D%A1/</link><pubDate>Sat, 18 Sep 2010 00:00:00 +0000</pubDate><guid>https://blog.glacjay.info/post/2010-09-18/%E7%94%A8-python-%E6%93%8D%E4%BD%9C%E8%99%9A%E6%8B%9F%E7%BD%91%E5%8D%A1/</guid><description>&lt;p>在我的 &lt;a href="https://blog.glacjay.info/post/2009-12-19/%E5%88%A9%E7%94%A8-xmpp-%E5%8D%8F%E8%AE%AE%E5%AE%9E%E7%8E%B0-vpn/">XTunnel&lt;/a> 项目中，已经用 Python 作过这种相对底层的工作了（这说明 Python 果然还是非常强大的，上下层通吃啊），不过那边目前还是只实现了 Linux 的版本。后来我又陆陆续续地把 Windows 以及 Mac 下的操作方法给搞通了，今天就来总结一下。&lt;/p>
&lt;p>在 Linux 内核中，特别是在现在的发行版中，应该都已经有了 &lt;code>TUN/TAP&lt;/code> 虚拟网卡的驱动程序，看一下有没有 &lt;code>/dev/net/tun&lt;/code> 这个文件就可以知道了。如果没有，就执行一下 &lt;code>sudo modprobe tun&lt;/code> 这个命令吧。如果还是没有，那就 Google 之吧。下面上代码：&lt;/p></description></item></channel></rss>