<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Soul Of Free Loop &#187; HDMI</title>
	<atom:link href="https://zohead.com/archives/tag/hdmi/feed/" rel="self" type="application/rss+xml" />
	<link>https://zohead.com</link>
	<description>Uranus Zhou&#039;s Blog</description>
	<lastBuildDate>Sat, 19 Jul 2025 15:42:46 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8</generator>
	<item>
		<title>在XOLO X900上实现Ubuntu for Android</title>
		<link>https://zohead.com/archives/ubuntu-for-xolo-x900/</link>
		<comments>https://zohead.com/archives/ubuntu-for-xolo-x900/#comments</comments>
		<pubDate>Sun, 06 Jan 2013 19:19:49 +0000</pubDate>
		<dc:creator><![CDATA[Uranus Zhou]]></dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[手机]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[12.04]]></category>
		<category><![CDATA[Atom]]></category>
		<category><![CDATA[DisplayLink]]></category>
		<category><![CDATA[HDMI]]></category>
		<category><![CDATA[Intel]]></category>
		<category><![CDATA[LapDock]]></category>
		<category><![CDATA[Lava]]></category>
		<category><![CDATA[Motorola]]></category>
		<category><![CDATA[OTG]]></category>
		<category><![CDATA[Ubuntu for Android]]></category>
		<category><![CDATA[udlfb]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[X11]]></category>
		<category><![CDATA[x86]]></category>
		<category><![CDATA[X900]]></category>
		<category><![CDATA[XOLO]]></category>
		<category><![CDATA[Xorg]]></category>
		<category><![CDATA[显卡]]></category>

		<guid isPermaLink="false">http://zohead.com/?p=378</guid>
		<description><![CDATA[本文同步自（最佳显示效果请点击）：https://zohead.com/archives/ubuntu-for-xolo-x900/ 由于 Lava XOLO X900 使用的 Intel Atom Z2460 这一 x86 的 CPU，我们就可以做一些改动，让其实现初步的 Ubuntu for Android 效果，而且运行的是 x86 版本的 Ubuntu，相对于 ARM 版本（不能运行私有软件，没有源代码的话啥都干不了）来说实用性要好很多的。 先看看实际的效果图： 现在我在这个 Android 手机里的 Ubuntu 上已经开始正常运行 Skype、Ubuntu One、sopcast  [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>本文同步自（最佳显示效果请点击）：<a href="https://zohead.com/archives/ubuntu-for-xolo-x900/" target="_blank">https://zohead.com/archives/ubuntu-for-xolo-x900/</a></p>
<p>由于 Lava XOLO X900 使用的 Intel Atom Z2460 这一 x86 的 CPU，我们就可以做一些改动，让其实现初步的 Ubuntu for Android 效果，而且运行的是 x86 版本的 Ubuntu，相对于 ARM 版本（不能运行私有软件，没有源代码的话啥都干不了）来说实用性要好很多的。</p>
<p>先看看实际的效果图：</p>
<p><a href="http://zohead.com/wp-content/uploads/ubuntu-android-x900.jpg" target="_blank"><img class="alignnone" title="Ubuntu for Android on XOLO X900" src="http://zohead.com/wp-content/uploads/ubuntu-android-x900.jpg" alt="Ubuntu for Android on XOLO X900" width="690" height="523" /></a></p>
<p>现在我在这个 Android 手机里的 Ubuntu 上已经开始正常运行 Skype、Ubuntu One、sopcast 等应用，而且 Ubuntu 和 Android 系统是共存同时运行的，Ubuntu 是运行在外部屏幕上的，对 Android 完全没有影响，不需要 VNC 登录之类的。</p>
<p>Canonical 公司提出的 Ubuntu for Android 请参考这里：</p>
<p><a href="http://www.ubuntu.com/devices/android" target="_blank">http://www.ubuntu.com/devices/android</a></p>
<p>这里提到的 Canonical 的 Ubuntu for Android 的要求有：</p>
<ul>
<li>双核手机，内存最少 512MB；</li>
<li>支持 secondary frame buffer；</li>
<li>支持 USB OTG</li>
</ul>
<p>对于 XOLO X900 来说，第二点要求 secondary frame buffer 暂时无法满足，因为官方的 kernel 只注册了 <strong>/dev/graphics/fb0</strong> 一个 frame buffer 设备。但由于支持 USB OTG，我们这里暂时用支持 Linux frame buffer 的外置 USB 显卡来实现。</p>
<p>需要的设备及配件：</p>
<ul>
<li>Motorola LapDock 100（做显示器及键盘鼠标输入，同时接 USB 外置显卡，你完全可以用自己的显示器）</li>
<li>DisplayLink USB 显卡</li>
<li>USB OTG 线</li>
<li>HDMI 线</li>
</ul>
<p><strong><span style="color: #0000ff;">1、准备 x86 Ubuntu 环境：</span></strong></p>
<p>由于 XOLO X900 只有 16GB 的 ROM 空间，为了速度和扩展考虑，最好可以将 Ubuntu 安装在隐藏未启用的 microSD 插槽上，最好使用 Class 10 的 microSD，这样不会对 Ubuntu 的性能造成影响。</p>
<p>你可以参考这个视频（只有 Youtube 哈）查看如果启用隐藏的 microSD 插槽：</p>
<p><a href="http://www.youtube.com/watch?v=6-FkK7Htohs" target="_blank">http://www.youtube.com/watch?v=6-FkK7Htohs</a></p>
<p>下面是找一个合适的 Ubuntu 系统，如果你有时间的话，完全可以用 VMware 安装一个虚拟机到 SD 卡上。如果你像我一样不想浪费时间安装，可以到网上下载现成的 VMware vmdk 映像并直接拷贝到 SD 卡上。</p>
<p>我选择的是下面这个 Lubuntu 12.04 系统，因为使用 LXDE 桌面，速度比较快，这个网站也有完整的 Unity 桌面环境的 Ubuntu 12.04 系统哦：</p>
<p><a href="http://www.trendsigma.net/vmware/lubuntu1204.html" target="_blank">http://www.trendsigma.net/vmware/lubuntu1204.html</a></p>
<p>你可能需要另一个 Linux 虚拟机来将 Lubuntu 映像里的所有文件拷贝到 SD 卡里（最好能对 SD 卡进行分区，我是建立了一个 ext4 的分区）。</p>
<p><strong><span style="color: #0000ff;">2、准备需要的 DisplayLink USB 显卡驱动：</span></strong></p>
<p>由于 XOLO X900 官方 kernel 对 frame buffer 支持并不完整（缺少 defio 等支持），官方 3.0.8 kernel 源代码里的 DisplayLink USB 显卡驱动 udlfb 无法正常编译。</p>
<p>我基于下面的 udlfb 项目的 0.4 版本修改了一个新的可直接用于 XOLO X900 官方 kernel 的 udlfb 驱动（默认代码加载之后无法正常显示图像）：</p>
<p><a href="http://git.plugable.com/gitphp/index.php?p=udlfb" target="_blank">http://git.plugable.com/gitphp/index.php?p=udlfb</a></p>
<p>我修改过的 udlfb 0.4 驱动的下载地址：</p>
<p><a href="http://miseal.googlecode.com/files/udlfb-v0.4.tar.bz2" target="_blank">http://miseal.googlecode.com/files/udlfb-v0.4.tar.bz2</a></p>
<p>相对默认 0.4 版本的主要改进为：</p>
<ul>
<li>解决在 Linux 3.0.8 中无法正常编译的问题；</li>
<li>解决 kzalloc 分配内存失败的问题，以 vmalloc 替代；</li>
<li>增加卸载驱动时的释放内存处理；</li>
<li>自动根据 EDID 判断显示器分辨率，默认使用 EDID 得到的分辨率；</li>
<li>如果 EDID 无法得到合适的分辨率，使用默认 1280x1024 分辨率；</li>
<li>增加模块参数，加载模块时可以指定初始分辨率</li>
</ul>
<p>编译方法请参考之前写的编译 XOLO X900 自定义 kernel 的文章：</p>
<p><a href="https://zohead.com/archives/xolo-x900-kernel/" target="_blank">https://zohead.com/archives/xolo-x900-kernel/</a></p>
<p>如果你想直接用我编译好的，请访问此链接下载：</p>
<p><a href="http://miseal.googlecode.com/files/x900-kernel-config-modules.7z" target="_blank">http://miseal.googlecode.com/files/x900-kernel-config-modules.7z</a></p>
<p>编译好的 <strong>udlfb.ko</strong> 在解压缩出来的 <strong>modules</strong> 目录中，建议将 <strong>modules</strong> 目录拷贝到 <strong>/system/lib</strong> 目录中。</p>
<p><strong><span style="color: #0000ff;">3、测试 udlfb 驱动是否可用：</span></strong></p>
<p>通过外置带电源的 USB HUB 接上 DisplayLink USB 显卡（Motorola Lapdock 就是一个带电源的 USB HUB 哈），并将显卡接到外置显示器上，root 过之后，在 shell 中运行 <strong>su</strong> 然后运行：</p>
<p><strong>insmod /system/lib/modules/udlfb.ko</strong></p>
<p>如果一切正常的话，驱动将自动判断你的显示器分辨率，并在显示器中显示绿屏。</p>
<p>然后运行下面的命令检查 frame buffer 设备是否正常，一般应有正常的设备节点信息输出：</p>
<p><strong>ls -l /dev/graphics/fb1</strong></p>
<p>如果你的显示器不支持 EDID 或者默认的 1280x1024 分辨率不支持，也可以加载驱动时手工指定分辨率，例如：</p>
<p><strong>insmod /system/lib/modules/udlfb.ko init_xres=1024 init_yres=768</strong></p>
<p>上面的命令即将初始分辨率设置为 1024x768。</p>
<p><strong><span style="color: #0000ff;">4、屏蔽 Android 本身对 USB 键盘鼠标的支持：</span></strong></p>
<p>由于 XOLO X900 默认支持 USB OTG，通过 OTG 接上 USB 键盘鼠标之后，可以直接对 Android 进行操作，而且任何对键盘和鼠标的操作都会解锁手机，这对于我们运行 Ubuntu for Android 是毫无益处的，而且会导致重复的 input event 发到 Android 界面上。因此我们需要屏蔽 Android 本身对 USB 输入设备的支持。</p>
<p>首先接上 USB 键盘和鼠标（通过 USB HUB），并确定是哪个 input 设备，同样在 root 中 su 运行：</p>
<p><strong>ls /dev/input/event*</strong></p>
<p>你会看到很多个 event 设备，一一用下面的命令（把 X 换为具体的设备名）确定到底哪个是你所插上的 USB 键盘和鼠标，cat 之后在键盘上敲键或者移动鼠标，正确的设备将会有输出：</p>
<p><strong>cat /dev/input/eventX</strong></p>
<p>假设确定好鼠标和键盘分别为：<strong>/dev/input/event10</strong> 和 <strong>/dev/input/event11</strong>。</p>
<p>然后运行 <strong>dmesg</strong> 确定 USB 键盘和鼠标的设备名，你可以看到类似这样的输出：</p>
<pre class="brush: bash; title: ; notranslate">
usb 1-1: new high speed USB device number 2 using penwell_otg
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 7 ports detected
usb 1-1.1: new full speed USB device number 3 using penwell_otg
input: Motorola Mobility Motorola HD Dock as /devices/pci0000:00/0000:00:02.3/usb1/1-1/1-1.1/1-1.1:1.0/input/input11
generic-usb 0003:22B8:0938.0003: input,hidraw0: USB HID v1.01 Keyboard [Motorola Mobility Motorola HD Dock] on usb-0000:00:02.3-1.1/input0
usb 1-1.3: new low speed USB device number 4 using penwell_otg
input: BTC USB Cordless Mouse as /devices/pci0000:00/0000:00:02.3/usb1/1-1/1-1.3/1-1.3:1.0/input/input12
generic-usb 0003:1241:0003.0004: input,hidraw1: USB HID v1.10 Keyboard [BTC USB Cordless Mouse] on usb-0000:00:02.3-1.3/input0
input: BTC USB Cordless Mouse as /devices/pci0000:00/0000:00:02.3/usb1/1-1/1-1.3/1-1.3:1.1/input/input13
generic-usb 0003:1241:0003.0005: input,hidraw2: USB HID v1.10 Mouse [BTC USB Cordless Mouse] on usb-0000:00:02.3-1.3/input1
usb 1-1.6: new high speed USB device number 5 using penwell_otg
</pre>
<p>上面的 <strong>Motorola Mobility Motorola HD Dock</strong> 和 <strong>BTC USB Cordless Mouse</strong> 即为 USB 键盘和鼠标设备的设备名，记下这些。</p>
<p>编译 <strong>/system/etc/excluded-input-devices.xml</strong> 配置文件，将上面的 USB 键盘和鼠标设备名加入进来，然后重启手机，在 USB 输入设备上的操作就不会影响 Android 系统。</p>
<p>例如我的配置文件内容如下：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;devices&gt;
&lt;device name=&quot;Unipoint HID&quot;/&gt;
&lt;device name=&quot;RMI4 Unipoint&quot;/&gt;
&lt;device name=&quot;Motorola Mobility Motorola HD Dock&quot;/&gt;
&lt;device name=&quot;BTC USB Cordless Mouse&quot;/&gt;
&lt;/devices&gt;
</pre>
<p><strong><span style="color: #0000ff;">5、在 Android 中切换到 Ubuntu 环境：</span></strong></p>
<p>首先 su 运行 shell 创建一个目录作为 Ubuntu 分区的挂载点（这里假设为 /system/sd）：</p>
<p><strong>mount -o remount,rw /dev/block/mmcblk0p2 /system</strong><br />
<strong> busybox mkdir -m 777 /system/sd</strong><br />
<strong> mount -o remount,ro /dev/block/mmcblk0p2 /system</strong></p>
<p>你可以使用我写好的这个切换到 Ubuntu 的脚本 <strong>startubuntu</strong>（我这里是挂载了 SD 卡第一个 ext4 分区，请根据需要自行修改）：</p>
<p><a href="http://pastebin.com/raw.php?i=9r21dR7L" target="_blank">http://pastebin.com/raw.php?i=9r21dR7L</a></p>
<p>我在脚本中将 Android 中的 /mnt/sdcard 目录挂载到了 Ubuntu 里的 /sdcard 目录，Android 系统的 /system 目录挂载到了 /android/system 目录，这样可以很方便的在 Ubuntu 中访问 Android 系统中的数据。</p>
<p><strong><span style="color: #0000ff;">6、准备运行 X 的环境：</span></strong></p>
<p>假设你已经切换到 Ubuntu，首先安装 DisplayLink 的 X 驱动：</p>
<p><strong>apt-get install xserver-xorg-video-displaylink</strong></p>
<p>然后安装输入模块：</p>
<p><strong>apt-get install xserver-xorg-input-evdev</strong></p>
<p>安装成功之后，修改 <strong>/etc/X11/xorg.conf</strong> X11 配置文件（Ubuntu 12.04 中没有这个配置文件，需要在 <strong>/usr/share/X11/xorg.conf.d</strong> 目录中自己增加新的配置文件，我的为：<strong>52-displaylink.conf</strong>），内容为下面的链接：</p>
<p><a href="http://pastebin.com/raw.php?i=WjcfFWc2" target="_blank">http://pastebin.com/raw.php?i=WjcfFWc2</a></p>
<p>注意请将其中的 input 设备和分辨率改为自己需要的。</p>
<p><strong><span style="color: #0000ff;">7、运行 X - 最终的 Ubuntu for Android：</span></strong></p>
<p>产生 X 的初始配置文件 <strong>/root/.xinitrc</strong>：</p>
<p><strong>#!/bin/sh</strong><br />
<strong> xrandr -o 0</strong><br />
<strong> startlubuntu</strong></p>
<p>第二行的 <strong>xrandr</strong> 命令是专门为 DisplayLink udlfb 驱动修改的，没有这个的话可能会导致 X 环境中的菜单项不能正确显示。第三行的 <strong>startlubuntu</strong> 你可以替换成你需要的 X 命令（例如：xinit lxsession）。</p>
<p>然后运行 <strong>startx</strong> 就可以启动 X 桌面环境了。</p>
<p>某些情况下如果这样运行 startx 还是有问题，可以在 <strong>startx</strong> 时增加参数：</p>
<p><strong>startx -- :0 vt1</strong></p>
<p>如果这样可以的话表示 X 使用的 VT 不正确，这时你可能需要将 <strong>/etc/X11/xinit/xserverrc</strong> 改为下面这样以强制指定 X 使用的 VT：</p>
<p><strong>#!/bin/sh</strong><br />
<strong> exec /usr/bin/X -nolisten tcp vt1 "$@"</strong></p>
<p>8、总结：</p>
<p>这样实现的 Ubuntu for Android 实际还是有一些不足的：</p>
<ul>
<li>必须要有外置的 USB 显卡太不方便，而且热插拔 USB 显卡会导致 X server 直接挂掉，最好的解决方案是启用 HDMI frame buffer；</li>
<li>暂时没有声音输出，可能可以用 USB 声卡，或者将声音输出至手机（能想象的到的丑陋）；</li>
<li>不支持通过 USB HUB 进行充电，应该是要修改 kernel 才能支持</li>
</ul>
<p>本文的内容均为我根据实际使用所写，没有考虑到通用的情况，其中有任何问题欢迎提出指正哦 ^_^</p>
]]></content:encoded>
			<wfw:commentRss>https://zohead.com/archives/ubuntu-for-xolo-x900/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Raspberry Pi初步上手</title>
		<link>https://zohead.com/archives/raspberry-pi-start/</link>
		<comments>https://zohead.com/archives/raspberry-pi-start/#comments</comments>
		<pubDate>Fri, 10 Aug 2012 18:03:04 +0000</pubDate>
		<dc:creator><![CDATA[Uranus Zhou]]></dc:creator>
				<category><![CDATA[树莓派]]></category>
		<category><![CDATA[ARM]]></category>
		<category><![CDATA[Broadcom]]></category>
		<category><![CDATA[HDMI]]></category>
		<category><![CDATA[Raspbian]]></category>
		<category><![CDATA[VGA]]></category>
		<category><![CDATA[电脑]]></category>
		<category><![CDATA[高清]]></category>

		<guid isPermaLink="false">http://zohead.com/?p=288</guid>
		<description><![CDATA[本文同步自（如浏览不正常请点击跳转）：https://zohead.com/archives/raspberry-pi-start/ 前段时间听到 Raspberry Pi 微型电脑板（中文名称：树莓派）出来的消息，这是一个只有信用卡大小的售价 35 美元的 ARM 板，运行 Linux 系统，支持高清输出和高清视频播放，适合做各种省电的小应用方案，国外现在研究这个的人也很多，不过当时都需要直接从英国订购，发货时间长而且还要扣掉有点“可观”的税费，故没有很快买。 有关 Raspberry Pi 的详细介绍参考这里： http://en.wikipedia.org/wiki/Raspberry_ [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>本文同步自（如浏览不正常请点击跳转）：<a href="https://zohead.com/archives/raspberry-pi-start/" target="_blank">https://zohead.com/archives/raspberry-pi-start/</a></p>
<p>前段时间听到 Raspberry Pi 微型电脑板（中文名称：树莓派）出来的消息，这是一个只有信用卡大小的售价 35 美元的 ARM 板，运行 Linux 系统，支持高清输出和高清视频播放，适合做各种省电的小应用方案，国外现在研究这个的人也很多，不过当时都需要直接从英国订购，发货时间长而且还要扣掉有点“可观”的税费，故没有很快买。</p>
<p>有关 Raspberry Pi 的详细介绍参考这里：</p>
<p><a href="http://en.wikipedia.org/wiki/Raspberry_pi" target="_blank">http://en.wikipedia.org/wiki/Raspberry_pi</a></p>
<p>前两天看到 e络盟 网站上已经有了中国区的 Raspberry Pi 直接网上订购服务，在 e络盟 网站上注册账户并忍受其相当不人性化的支付和下订单方式之后，昨天终于收到寄过来的 Raspberry Pi B型板（售价 + 增值税 + 运费一共 300 天朝币多一点）。包装非常简单，只有裸板。</p>
<p><a href="http://zohead.com/wp-content/uploads/raspberry-pi-board.jpg" target="_blank"><img class="alignnone" title="Raspberry Pi 裸板" src="http://zohead.com/wp-content/uploads/raspberry-pi-board.jpg" alt="Raspberry Pi 裸板" width="514" height="279" /></a></p>
<p>e络盟 上的 Raspberry Pi 订购链接在此，有兴趣的朋友也可以买来折腾试试：<a href="http://cn.element14.com/raspberry-pi/raspbrry-pcba/sbc-raspberry-pi-model-b/dp/2081185" target="_blank">http://cn.element14.com/raspberry-pi/raspbrry-pcba/sbc-raspberry-pi-model-b/dp/2081185</a></p>
<p>从图上也可以看到 Raspberry Pi 算是麻雀虽小五脏俱全滴，板子中间有树莓派的 LOGO。整板使用 Broadcom BCM2835 SoC（集成 CPU、GPU、DSP、SDRAM），处理器为 ARM1176JZF-S 700 MHz，内存 256 MB，有 HDMI 输出（标准接口）、两个 USB 2.0 接口（支持 USB HUB）、一个 SD 卡插槽、一个百兆以太网卡、音频输出、GPIO 调试接口等，而且整个板子的功率只有 3.5W，可通过 MicroUSB 或者 GPIO 供电，一般的 5V 700mA 或以上的充电器就可以给 Raspberry Pi 供电。</p>
<p>由于 Raspberry Pi 只提供裸板，不提供其它一切配件，这些都要自己来弄了。我这没有支持 HDMI 或者 DVI 的高清显示器，只有老式 VGA，故先在网上淘了一个 HDMI 转 VGA 的转接头（需要注意的是 HDMI 转 DVI 再转 VGA 的方式是行不通的哦）。HDMI 转 VGA 是由数字信号转为模拟型号，必须使用数模转换芯片，因此这种转接头经常会有兼容性问题，购买时需要注意是否兼容。我买的是淘宝上的 鑫魔王 HDMI 转 VGA 线，并且特别买了支持音频输出的转接线（免广告之嫌，不给出链接 ^_^）。</p>
<p>Raspberry Pi 只支持从 SD 卡启动，不支持从 USB 启动，但可以启动好之后将 rootfs 放到 U盘上，为最好地兼容和优化考虑，建议使用 Raspberry Pi 官方网站上的 Raspbian “wheezy” 系统（点击 [<a href="http://www.raspberrypi.org/downloads" target="_blank">这里</a>] 进入下载），为此需要 SD 卡最小得有 2G。从官方网站下载系统后可以直接拷贝到 SD 卡中（dd 或直接对拷，不需要分区）。</p>
<p>由于我使用了 HDMI 转 VGA 装置，为了能正确完美的显示，需要先修改 SD 卡启动分区（FAT16 格式）中的 config.txt 配置文件：</p>
<p><em><span style="color: #008000;">hdmi_force_hotplug=1</span></em><br />
<em><span style="color: #008000;">hdmi_drive=2</span></em><br />
<em><span style="color: #008000;">hdmi_group=2</span></em><br />
<em><span style="color: #008000;">hdmi_mode=47</span></em><br />
<em><span style="color: #008000;">disable_overscan=1</span></em></p>
<p>hdmi_force_hotplug、hdmi_drive、hdmi_group 都是为了使 HDMI 转 VGA 能正常工作，hdmi_mode 设置显示输出的分辨率（47 为我的显示器用的 1440 x 900 的分辨率，具体请参考 Raspberry Pi 上的帮助），disable_overscan 则是为了去掉显示画面四周的黑色边框。</p>
<p>有关 Raspberry Pi 配置文件的介绍请参考这里：<a href="http://elinux.org/RPi_config.txt" target="_blank">http://elinux.org/RPi_config.txt</a></p>
<p>把 Raspberry Pi 的 HDMI 通过转接线接到 VGA 显示器，接上 USB 鼠标和键盘，插上网线，安装 SD 卡，然后供电（我实际使用的就是 5V 700mA 的手机充电器，完全没有压力 ^_^），正常的话就可以看到显示器上的启动输出画面咯：</p>
<p><a href="http://zohead.com/wp-content/uploads/raspberry-pi-boot.jpg" target="_blank"><img class="alignnone" title="Raspberry Pi 启动界面" src="http://zohead.com/wp-content/uploads/raspberry-pi-boot.jpg" alt="Raspberry Pi 启动界面" width="588" height="441" /></a></p>
<p>具体的接线方式见下图（比较凌乱，哈哈）：</p>
<p><a href="http://zohead.com/wp-content/uploads/raspberry-pi-cable.jpg" target="_blank"><img class="alignnone" title="Raspberry Pi 接线" src="http://zohead.com/wp-content/uploads/raspberry-pi-cable.jpg" alt="Raspberry Pi 接线" width="588" height="441" /></a></p>
<p>稍等片刻，就会出现终端的登录界面。</p>
<p>直接敲回车登录，默认就是 raspi-config 配置界面，建议先做基本的配置，特别是语言、时区、键盘布局之类的，这些比较重要，而且从 Raspberry Pi 官方下的系统里的配置全都是适合英国的配置，我分别将语言设置和时区为中文、键盘改为美式键盘。</p>
<p>Raspbian “wheezy” 系统是基于 Debian 系统修改的，默认使用的是 DHCP 方式获得 IP，如果没有获得 IP 请手工配置。系统中的 apt 源也已经默认设置为 Raspbian 网站上的源，直接运行 apt-get 命令就可以安装需要的软件包。</p>
<p>在开启图形界面前，建议先使用 apt-get 命令在线安装下面的这些软件包，这对中文显示和输出比较重要：</p>
<p><em><span style="color: #008000;">sudo apt-get install ttf-wqy-zenhei</span></em><br />
<em><span style="color: #008000;">sudo apt-get install ttf-wqy-microhei</span></em><br />
<em><span style="color: #008000;">sudo apt-get install fcitx</span></em></p>
<p>前两个是安装中文字体（不建议安装 simsun 字体），第三个安装中文输入法。</p>
<p>全部配置好之后就可以运行 startx 命令进入图形界面（图中即为 1440 x 900 的分辨率）：</p>
<p><a href="http://zohead.com/wp-content/uploads/raspberry-pi-desktop.jpg" target="_blank"><img class="alignnone" title="Raspberry Pi 桌面" src="http://zohead.com/wp-content/uploads/raspberry-pi-desktop.jpg" alt="Raspberry Pi 桌面" width="588" height="441" /></a></p>
<p>桌面中间又是大大的树莓派 LOGO。Raspbian “wheezy” 系统没有使用 GNOME 或者 KDE 之类的桌面环境，而是使用的 LXDE 轻量级桌面，这样也比较适合 Raspberry Pi 这种小的系统环境。</p>
<p>Raspbian “wheezy” 系统默认也自带了一些编程环境、网络浏览器之类的。下面是浏览中文网页的效果，看起来还是比较完美的（不支持 Flash 之类的就无所谓了 ^_^）：</p>
<p><a href="http://zohead.com/wp-content/uploads/raspberry-pi-network.jpg" target="_blank"><img class="alignnone" title="Raspberry Pi 网络浏览器" src="http://zohead.com/wp-content/uploads/raspberry-pi-network.jpg" alt="Raspberry Pi 网络浏览器" width="588" height="441" /></a></p>
<p>从初步上手使用的效果来看，Raspberry Pi 还是比较令人满意，高清视频播放还没机会测试。下面有机会再来继续折腾了，网上用 Raspberry Pi 做的比较多的是下载机之类的，还有另类的牛人加上了温度传感器之类的东东。</p>
<p>PS：Raspberry Pi 由于只有 256 MB 的内存，因此运行大的程序还是有点卡，而且系统整体的响应速度也和使用的 SD 卡有些关系，未避免影响系统系统，建议使用 class 4 或更高速度的存储卡。</p>
]]></content:encoded>
			<wfw:commentRss>https://zohead.com/archives/raspberry-pi-start/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
