<?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>润物无声 &#187; Ubuntu</title>
	<atom:link href="http://blog.zhourunsheng.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zhourunsheng.com</link>
	<description>天空一朵雨做的云</description>
	<lastBuildDate>Sat, 08 May 2021 05:17:21 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Ubuntu 制作一键安装盘（四）</title>
		<link>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e5%9b%9b%ef%bc%89/</link>
		<comments>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e5%9b%9b%ef%bc%89/#comments</comments>
		<pubDate>Fri, 23 May 2014 02:13:15 +0000</pubDate>
		<dc:creator><![CDATA[润物无声]]></dc:creator>
				<category><![CDATA[程序设计]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.zhourunsheng.com/?p=1896</guid>
		<description><![CDATA[<p>本文测试原生的Kubuntu系统，基于原生Ubuntu系统，安装KDE环境后制作安装盘请参照文章《 Ubunt [&#8230;]</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e5%9b%9b%ef%bc%89/">Ubuntu 制作一键安装盘（四）</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>本文测试原生的Kubuntu系统，基于原生Ubuntu系统，安装KDE环境后制作安装盘请参照文章《 <a style="color: #69aa35;" href="http://blog.zhourunsheng.com/2014/05/ubuntu-%E5%88%B6%E4%BD%9C%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E7%9B%98%EF%BC%88%E4%B8%89%EF%BC%89/">Ubuntu 制作一键安装盘（三）</a>》。</p>
<p>版本：Kubuntu 12.04<br />
下载地址：<a href="http://www.kubuntu.org/getkubuntu/download-lts">http://www.kubuntu.org/getkubuntu/download-lts</a></p>
<p>【更新源(主要是下载速度的因素)】<br />
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse<br />
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse<br />
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse<br />
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse<br />
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse<br />
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse<br />
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse<br />
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse<br />
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse<br />
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse</p>
<p><span style="color: #3665ee;"># Remastersys Precise</span><br />
<span style="color: #3665ee;">deb http://www.remastersys.com/ubuntu precise main</span></p>
<p>【添加公钥】<br />
wget -O - http://www.remastersys.com/ubuntu/remastersys.gpg.key | sudo apt-key add -</p>
<p>【安装 remastersys】<br />
sudo apt-get update; sudo apt-get install remastersys</p>
<p>【测试文件 (careytest/test.test)】</p>
<ul>
<li>/home 目录，存放用户相关配置信息</li>
<li>/etc 目录，存放全局配置信息</li>
<li>/usr/bin/ 目录，存放安装文件</li>
<li>/usr/lib/ 目录，存放库文件</li>
<li>/var/spool/ 目录，存放运行相关文件</li>
</ul>
<p>【采用 backup 方式备份全盘资料】<br />
sudo remastersys backup</p>
<p>【ISO 镜像文件测试】</p>
<ul>
<li>live 模式测试，文件全部存在，内容一致</li>
<li>install 安装测试，文件全部都在，内容一致，</li>
</ul>
<blockquote><p><span style="color: #ff0000;">注：在安装过程中自己创建的用户被丢弃</span></p></blockquote>
<p>【ISC* 镜像文件测试】</p>
<ul>
<li><b><span style="color: #41ad1c;">测试通过</span></b></li>
</ul>
<p>【总结】</p>
<ul>
<li>如果是GNOME的主题，采用原生Ubuntu系统</li>
<li>如果是KDE的主题，采用原生KUbuntu系统</li>
</ul>
<p>【参考资料】</p>
<ul>
<li>Creating Custom Kubuntu Using Remastersys:<a href="http://www.youtube.com/watch?v=wAvZr5z6Y-Q">http://www.youtube.com/watch?v=wAvZr5z6Y-Q</a></li>
<li><a href="http://www.psychocats.net/ubuntu/remastersys">http://www.psychocats.net/ubuntu/remastersys</a></li>
<li>《 <a style="color: #69aa35;" href="https://app.yinxiang.com/shard/s1/nl/113357/1ddcc9aa-7154-4d99-ab46-ddfb036586cc">Remaster your system with Remastersys – tobrunet.ch Techblog</a>》</li>
<li>《 <a style="color: #69aa35;" href="https://app.yinxiang.com/shard/s1/nl/113357/39c45340-8a46-41ce-bbb8-52ed84d53775">Free Imaging software - CloneZilla &amp; PartImage - Tutorial</a>》</li>
</ul>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e5%9b%9b%ef%bc%89/">Ubuntu 制作一键安装盘（四）</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e5%9b%9b%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 制作一键安装盘（三）</title>
		<link>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%b8%89%ef%bc%89/</link>
		<comments>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%b8%89%ef%bc%89/#comments</comments>
		<pubDate>Fri, 23 May 2014 02:07:06 +0000</pubDate>
		<dc:creator><![CDATA[润物无声]]></dc:creator>
				<category><![CDATA[程序设计]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.zhourunsheng.com/?p=1892</guid>
		<description><![CDATA[<p>Ubuntu gnome主题的安装光盘制作请参照文章《Ubuntu 制作一键安装盘（二）》，本文进行KDE桌面 [&#8230;]</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%b8%89%ef%bc%89/">Ubuntu 制作一键安装盘（三）</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>Ubuntu gnome主题的安装光盘制作请参照文章《<a style="color: #69aa35;" href="http://blog.zhourunsheng.com/2014/05/ubuntu-%E5%88%B6%E4%BD%9C%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E7%9B%98%EF%BC%88%E4%BA%8C%EF%BC%89/">Ubuntu 制作一键安装盘（二）</a>》，本文进行KDE桌面环境的安装测试。</p>
<p><b><span style="color: #ff0000;">注意：经过测试 remastersys 不能很好的支持GNOME发行版安装的KDE的桌面环境。</span></b></p>
<p>【安装KDE桌面环境】</p>
<ol>
<li>sudo apt-get install kubuntu-desktop kde-standard</li>
<li>简体中文支持：sudo apt-get install language-pack-kde-zh-hans language-pack-kde-zh-hant</li>
</ol>
<p>【步骤】</p>
<ul>
<li>制作发布安装盘 sudo remastersys dist</li>
<li>live 模式测试, 版本 Ubuntu 12.04 KDE 32位</li>
</ul>
<blockquote><p>结果：进入KDE登录界面，因为custom账户没有密码，无法登录进去系统。</p></blockquote>
<ul>
<li>live 模式测试, 版本 Ubuntu 12.04 KDE 64位</li>
</ul>
<blockquote><p>结果：可以进入GNOME主题系统，但是因为缺少/var/spool/isc* 工作目录，后台测试程序不完整。</p></blockquote>
<p>考虑解决方案(isc* 为测试程序，工作目录在/var/spool/isc*)：<br />
1. 修改 /usr/bin/remastersys 脚本文件，加入自己的处理，例如拷贝必要的文件<br />
<code><br />
log_msg "Copying iscxxx files"<br />
service iscxxx stop &amp;&gt; /dev/null<br />
cp -rf /var/spool/isc* $WORKDIR/dummysys/var/spool/ &amp;&gt; /dev/null<br />
</code></p>
<p><img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/remastersys_update_pro.png" alt="" width="1233" height="204" /></p>
<p>2. sudo remastersys dist</p>
<blockquote><p><span style="color: #3665ee;">结果2：可以进入GNOME主题系统，前后台程序运行正常。</span></p></blockquote>
<ul>
<li>install 模式测试，无法进行系统的安装，没有安装过程，直接进入live模式</li>
</ul>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%b8%89%ef%bc%89/">Ubuntu 制作一键安装盘（三）</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%b8%89%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu 制作一键安装盘（二）</title>
		<link>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%ba%8c%ef%bc%89/</link>
		<comments>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%ba%8c%ef%bc%89/#comments</comments>
		<pubDate>Thu, 22 May 2014 02:11:55 +0000</pubDate>
		<dc:creator><![CDATA[润物无声]]></dc:creator>
				<category><![CDATA[程序设计]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.zhourunsheng.com/?p=1888</guid>
		<description><![CDATA[<p>本文采用 Remastersys 制作安装盘，使用relinux制作安装盘，请参照上一篇文章 《Ubuntu  [&#8230;]</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%ba%8c%ef%bc%89/">Ubuntu 制作一键安装盘（二）</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>本文采用 Remastersys 制作安装盘，使用relinux制作安装盘，请参照上一篇文章 《<a style="color: #69aa35;" href="http://blog.zhourunsheng.com/2014/05/ubuntu-%E5%88%B6%E4%BD%9C%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E7%9B%98%EF%BC%88%E4%B8%80%EF%BC%89/">Ubuntu 制作一键安装盘（一）</a>》。<br />
<span id="more-1888"></span></p>
<p>【步骤】</p>
<ul>
<li>修改源 /etc/apt/sources.list ，加入</li>
</ul>
<p><code># Remastersys Precise<br />
deb http://www.remastersys.com/ubuntu precise main</code></p>
<ul>
<li>安装RemasterSys，sudo apt-get update; sudo apt-get install remastersys，</li>
</ul>
<p><code>如果出现GPG错误，请参照文章最后[错误解决]。<br />
错误解决的另一种方法, Add repository key:<br />
wget -O - http://www.remastersys.com/ubuntu/remastersys.gpg.key | sudo apt-key add -</code></p>
<ul>
<li>进行备份</li>
<li>
<ul>
<li>sudo remastersys dist cdfs</li>
</ul>
</li>
</ul>
<p><img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/remastersys_distcdfs.png" alt="" width="1366" height="744" /></p>
<ul>
<li>
<ul>
<li>sudo remastersys dist iso custom.iso，生成 iso文件，大约 1.2GB</li>
</ul>
</li>
</ul>
<p><img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/remastersys_distiso.png" alt="" width="1366" height="744" /></p>
<ul>
<li>
<ul>
<li>拷贝出来 sudo cp /home/remastersys/remastersys/custom.iso /media/sf_vmshare/</li>
</ul>
</li>
<li>新建虚拟机进行测试，运行 live 模式，guest账户登录，测试程序可以正常运行，测试通过</li>
</ul>
<p><img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/remastersys_ubuntu_live.png" alt="" /></p>
<ul>
<li>系统安装测试，测试通过</li>
</ul>
<p><img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/remastersys_ubuntu_install.png" alt="" /><br />
<img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/remastersys_ubuntu_run.png" alt="" /></p>
<ul>
<li>可选："sudo remastersys dist" 方式 live 光盘测试,测试通过</li>
</ul>
<p><b><span style="color: #ff0000;">注：</span></b><br />
<b><span style="color: #ff0000;">更简便的方法可以采用 sudo remastersys backup，它可以同时备份用户账号信息。</span></b><br />
<b><span style="color: #ff0000;">采用 sudo remastersys dist，上面两步的合集。</span></b></p>
<p>【使用帮助】<br />
<img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/remastersys_help.png" alt="" /></p>
<p>【参考资料】</p>
<ul>
<li>官网：<a href="http://www.remastersys.com/">http://www.remastersys.com/</a></li>
<li>百科Remastersys: <a href="http://baike.baidu.com/view/3051607.htm">http://baike.baidu.com/view/3051607.htm</a></li>
<li><a href="http://wiki.ubuntu.org.cn/Remastersys">http://wiki.ubuntu.org.cn/Remastersys</a></li>
</ul>
<p>【错误解决】</p>
<p>在安装更新时，运行命令行sudo apt-get update 或者运行更新管理器的时候，出现:</p>
<p>W: GPG 错误：http://ppa.launchpad.net precise Release: 由于没有公钥，无法验证下列签名： NO_PUBKEY <span style="text-decoration: underline;"><span style="color: #7600d8;">EAA903E3A2F4C039</span></span>错误，</p>
<p>解决方法：</p>
<p>在终端中运行：sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <span style="text-decoration: underline;"><span style="color: #7600d8;">EAA903E3A2F4C039</span></span> 即可。</p>
<p>示例：<br />
<img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/remastersys_no_pubkey_error.png" alt="" width="1350" height="245" /></p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%ba%8c%ef%bc%89/">Ubuntu 制作一键安装盘（二）</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%ba%8c%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu 制作一键安装盘（一）</title>
		<link>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%b8%80%ef%bc%89/</link>
		<comments>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%b8%80%ef%bc%89/#comments</comments>
		<pubDate>Thu, 22 May 2014 01:50:19 +0000</pubDate>
		<dc:creator><![CDATA[润物无声]]></dc:creator>
				<category><![CDATA[程序设计]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.zhourunsheng.com/?p=1884</guid>
		<description><![CDATA[<p>基于 Ubuntu系统开发了一套系统，为了方便装机的便利性，制作一键安装盘。 注意：利用如下方法可以正常做出安 [&#8230;]</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%b8%80%ef%bc%89/">Ubuntu 制作一键安装盘（一）</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>基于 Ubuntu系统开发了一套系统，为了方便装机的便利性，制作一键安装盘。</p>
<p><span style="color: #ff0000;"><b>注意：利用如下方法可以正常做出安装盘，但是安装过程中会出现错误，另外运行live cd的时候也会出现如下low graphic的问题，暂时无解，第一次尝试失败。</b></span><br />
<img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/system_running_lowgf.png" alt="" /><br />
<span id="more-1884"></span></p>
<p>【步骤】</p>
<ul>
<li>下载软件 relinux，<a href="https://launchpad.net/relinux">https://launchpad.net/relinux</a>，例如 relinux_0.4a1-5_i386.deb</li>
<li>安装 sudo dpkg -i relinux_0.4a1-5_i386.deb</li>
<li>依赖错误修复 sudo apt-get install -f</li>
<li>语言环境（简体中文）设定 echo $LANG; export LANG='zh_CN.UTF-8'; echo $LANG</li>
<li>制作镜像 sudo relinux, 暂时保留默认设定</li>
</ul>
<p><img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/relinux_welcome.png" alt="" /><br />
<img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/relinux_configuration.png" alt="" /><br />
<img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/relinux_osweaver.png" alt="" /><br />
<img src="http://blog.zhourunsheng.com/wp-content/uploads/2014/05/relinux_end.png" alt="" /></p>
<ul>
<li>查看 iso 文件，大小 2.0GB</li>
</ul>
<p><code>zhours@zhours-VirtualBox:~/relinux$ ll /home/relinux/<br />
总用量 1923372<br />
drwxr-xr-x  4 root root       4096  5月 12 15:09 ./<br />
drwxr-xr-x  4 root root       4096  5月 12 14:31 ../<br />
-rw-r--r--  1 root root 1969508352  5月 12 15:09 custom.iso<br />
-rw-r--r--  1 root root         47  5月 12 15:11 custom.iso.md5<br />
drwxr-xr-x  6 root root       4096  5月 12 15:05 .ISO_STRUCTURE/<br />
drwxr-xr-x 12 root root       4096  5月 12 14:31 .TMPSYS/<br />
zhours@zhours-VirtualBox:~/relinux$</code><br />
【参考资料】</p>
<ul>
<li>官方：<a href="https://launchpad.net/relinux">https://launchpad.net/relinux</a></li>
<li>视频：<a href="http://www.youtube.com/watch?v=3q6mibDs4Fo">http://www.youtube.com/watch?v=3q6mibDs4Fo</a></li>
<li>制作发布包《 <a style="color: #69aa35;" href="https://app.yinxiang.com/shard/s1/nl/113357/db2011d1-36ab-4135-bfe9-fabbf9bdafe5">Creating Your Own Distributable Ubuntu DVD (Relinux) | HowtoForge - Linux Howtos and Tutorials</a>》</li>
</ul>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%b8%80%ef%bc%89/">Ubuntu 制作一键安装盘（一）</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zhourunsheng.com/2014/05/ubuntu-%e5%88%b6%e4%bd%9c%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e7%9b%98%ef%bc%88%e4%b8%80%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>体验物联网</title>
		<link>http://blog.zhourunsheng.com/2013/09/%e4%bd%93%e9%aa%8c%e7%89%a9%e8%81%94%e7%bd%91/</link>
		<comments>http://blog.zhourunsheng.com/2013/09/%e4%bd%93%e9%aa%8c%e7%89%a9%e8%81%94%e7%bd%91/#comments</comments>
		<pubDate>Mon, 16 Sep 2013 01:47:15 +0000</pubDate>
		<dc:creator><![CDATA[润物无声]]></dc:creator>
				<category><![CDATA[云计算]]></category>
		<category><![CDATA[OpenSCADA]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Weixin]]></category>
		<category><![CDATA[物联网]]></category>

		<guid isPermaLink="false">http://blog.zhourunsheng.com/?p=1847</guid>
		<description><![CDATA[<p>上个星期初步接触了物联网，正好工作手头有这些基本的器件，可以打造一个最简单的物联网环境，体验一下。本文的目的是 [&#8230;]</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2013/09/%e4%bd%93%e9%aa%8c%e7%89%a9%e8%81%94%e7%bd%91/">体验物联网</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>上个星期初步接触了物联网，正好工作手头有这些基本的器件，可以打造一个最简单的物联网环境，体验一下。本文的目的是展示一个基于温湿度数据采集的报警系统，当温度或者湿度达到一定的临界值，自动打开报警器，并且微信通知系统管理员，系统管理员也可以通过微信查询当前环境的实时温湿度数据。</p>
<p>【系统整体架构】</p>
<p><img class="alignnone" alt="" src="http://farm8.staticflickr.com/7443/9766709544_5761c66bd3_o.png" width="542" height="442" /><br />
1. PC端本地通过OpenScada系统采集温湿度的数据<br />
2. PC端本地将采集到的温湿度数据定时上报到云端，供PAD查询<br />
3. PC端本地检测温湿度的阀值，启动或者关闭报警设备<br />
4. PC端本地检测到报警信息，及时给云端报告告警信息，云端通过微信系统推送到系统管理员账号上<br />
5. 系统管理员通道PAD微信系统，查询当前环境的数据<span id="more-1847"></span></p>
<p>【硬件环境】<br />
1. 工作PC，ubuntu系统，运行openscada数据采集系统<br />
2. PAD一台，手机也可以，模拟器也行，能跑微信就行<br />
3. USB-485 转接器，PC上没有485端口，需要转换成USB通信协议<br />
3. FT-02RL开关量输入输出模块(MODBUS-RTU协议)，软件控制继电器开关<br />
4. 温湿度传感器，基于485 modbus的数据传输协议</p>
<p>【硬件布线】<br />
1. 注意一下电源的正负极，不要接反了<br />
2. 注意485的A B数据端口，不要接反了<br />
3. 其他的没啥问题了</p>
<p><img class="alignnone" alt="" src="http://farm4.staticflickr.com/3771/9766710004_edcff96ea4_z.jpg" width="480" height="640" /></p>
<p><img class="alignnone" alt="" src="http://farm4.staticflickr.com/3674/9766812174_e66c67d61c_z.jpg" width="640" height="480" /><br />
【软件环境】<br />
1. 本地PC运行Ubuntu 12.04 OS<br />
2. 本地实现OpenScada数据采集系统，可以采集Modbus协议的数据，和基于Modbus协议控制外设<br />
3. 远端的PHP服务器，采用的我博客（http://blog.zhourunsheng.com）的后台，基于wordpress + 插件<br />
4. 微信公众号的接入，像我下面的微信号是专门为博客服务的</p>
<p>【演示数据查询】<br />
1. 加入公众微信号，查询关键字“zhou_runsheng”，或者扫描如下的二维码，添加</p>
<p><img class="alignnone" alt="" src="http://blog.zhourunsheng.com/wp-content/uploads/2013/04/qrcode_runsheng_blog.jpg" width="430" height="430" /><br />
2. 发送查询指令，例如“查询温湿度”，返回当前环境温湿度数据<br />
&lt;&lt;&lt; 查询温湿度<br />
&gt;&gt;&gt; 温湿度数据：<br />
温度：33.5 度<br />
湿度：88.7%<br />
露点：18.7 度</p>
<p>3. 其他的指令还没有加入，如果输入其他的查询信息，默认会按照该关键词来搜索相关的博文展示</p>
<p><img class="alignnone" alt="" src="http://farm3.staticflickr.com/2809/9766669722_bb9fb18613_z.jpg" width="640" height="480" /></p>
<p>【演示报警】<br />
1. 加热温湿度采集器（O(∩_∩)O，用火烤烤，甭烧毁仪器就行）<br />
2. 加湿温湿度采集器（最简单的办法，对着仪器哈口气，湿度立马上升到99.99%）<br />
3. 当温湿度达到管理员配置的临界阀值（比如温度超过33摄氏度），产生报警<br />
4. 报警产生，报警器响铃，微信推送通知系统管理员</p>
<p><img class="alignnone" alt="" src="http://farm3.staticflickr.com/2814/9766609931_e7046c61bb_z.jpg" width="640" height="480" /></p>
<p>5. 湿度报警, 继电器开关打开,左数第一个亮起来的红灯</p>
<p><img class="alignnone" alt="" src="http://farm3.staticflickr.com/2870/9766709664_e8c524555d_z.jpg" width="640" height="480" /></p>
<p>【未来】<br />
目前仅仅实现了简单的数据采集+报警应急处理，推广到其他地方，比如智能家居，智能农田灌溉，智能监控系统等等，O(∩_∩)O哈哈~，先想想怎么样打造一套智能的家居吧~~~，把家里联网的东西全控制了。</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2013/09/%e4%bd%93%e9%aa%8c%e7%89%a9%e8%81%94%e7%bd%91/">体验物联网</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zhourunsheng.com/2013/09/%e4%bd%93%e9%aa%8c%e7%89%a9%e8%81%94%e7%bd%91/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ubuntu升级源备忘</title>
		<link>http://blog.zhourunsheng.com/2013/08/ubuntu%e5%8d%87%e7%ba%a7%e6%ba%90%e5%a4%87%e5%bf%98/</link>
		<comments>http://blog.zhourunsheng.com/2013/08/ubuntu%e5%8d%87%e7%ba%a7%e6%ba%90%e5%a4%87%e5%bf%98/#comments</comments>
		<pubDate>Fri, 30 Aug 2013 06:29:10 +0000</pubDate>
		<dc:creator><![CDATA[润物无声]]></dc:creator>
				<category><![CDATA[程序设计]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.zhourunsheng.com/?p=1826</guid>
		<description><![CDATA[<p>ubuntu的版本支持的时间都有限, 如果过了支持的时间，更新源会被停用，那么只能采取old-releases [&#8230;]</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2013/08/ubuntu%e5%8d%87%e7%ba%a7%e6%ba%90%e5%a4%87%e5%bf%98/">Ubuntu升级源备忘</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>ubuntu的版本支持的时间都有限, 如果过了支持的时间，更新源会被停用，那么只能采取old-releases源了。</p>
<p>查看当前系统的版本信息</p>
<pre>chs@chs-VirtualBox:~/project/openscada$ sudo lsb_release -a
[sudo] password for chs:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty</pre>
<p>可以发现当前的系统版本是11.04，代号为natty。</p>
<p>old-releases源信息如下</p>
<pre>deb http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse</pre>
<p>修改更新源，替换成上面的源信息</p>
<pre>chs@chs-VirtualBox:~/project/openscada$sudo vim /etc/apt/sources.list</pre>
<p>源更新</p>
<pre>chs@chs-VirtualBox:~/project/openscada$sudo apt-get update</pre>
<p>其他过期版本的old-releases源信息只需替换如上代号（natty）部分即可。</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2013/08/ubuntu%e5%8d%87%e7%ba%a7%e6%ba%90%e5%a4%87%e5%bf%98/">Ubuntu升级源备忘</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zhourunsheng.com/2013/08/ubuntu%e5%8d%87%e7%ba%a7%e6%ba%90%e5%a4%87%e5%bf%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu SVN客户端连接windows VisualSVN SSL证书问题</title>
		<link>http://blog.zhourunsheng.com/2013/08/ubuntu-svn%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bf%9e%e6%8e%a5windows-visualsvn-ssl%e8%af%81%e4%b9%a6%e9%97%ae%e9%a2%98/</link>
		<comments>http://blog.zhourunsheng.com/2013/08/ubuntu-svn%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bf%9e%e6%8e%a5windows-visualsvn-ssl%e8%af%81%e4%b9%a6%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Fri, 30 Aug 2013 02:29:50 +0000</pubDate>
		<dc:creator><![CDATA[润物无声]]></dc:creator>
				<category><![CDATA[程序设计]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.zhourunsheng.com/?p=1822</guid>
		<description><![CDATA[<p>问题 英文：svn: OPTIONS of 'https://server.domain.local/svn/ [&#8230;]</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2013/08/ubuntu-svn%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bf%9e%e6%8e%a5windows-visualsvn-ssl%e8%af%81%e4%b9%a6%e9%97%ae%e9%a2%98/">Ubuntu SVN客户端连接windows VisualSVN SSL证书问题</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></description>
				<content:encoded><![CDATA[<h2>问题</h2>
<p>英文：svn: OPTIONS of 'https://server.domain.local/svn/repo': <strong>SSL handshake failed: SSL error:</strong><br />
<strong>Key usage violation in certificate has been detected</strong>. (https://server.domain.local)</p>
<p>中文：SSL handshake failed: SSL 错误：在证书中检测到违规的密钥用法。</p>
<h2>解决方案</h2>
<h2>Symptoms</h2>
<p>Subversion clients receive the following error message when attempting to connect to VisualSVN Server:</p>
<div>svn: OPTIONS of 'https://server.domain.local/svn/repo': SSL handshake failed: SSL error:<br />
Key usage violation in certificate has been detected. (https://server.domain.local)</div>
<p>You may experience the issue if both of the following conditions are met:</p>
<ul>
<li>VisualSVN Server has a self-signed certificate applied and</li>
<li>Subversion client is built against the GnuTLS library.</li>
</ul>
<div id="ctl00_ctl00_ctl00_Content_Content_Content_BreakoutControl2">
<div><img alt="Note" src="http://www.visualsvn.com/images/note.png" /></div>
<div>NoteGnuTLS library is an alternative to OpenSSL. Most Subversion clients for Windows are built against OpenSSL and are not affected by this issue. While some Subversion packages (available mostly on Linux-based operating systems such as Ubuntu and Debian) are built against GnuTLS and are affected.</div>
</div>
<h2>Technical background</h2>
<p>During the initial setup VisualSVN Server 2.5 generates a self-signed certificate and adds it to the Trusted Root Certification Authorities store on the local machine. To avoid possible security issues, VisualSVN Server makes this self-signed certificate to be valid for server authentication only (by specifying the 'Key Usage' extension). Subversion clients built against GnuTLS don't recognize such certificate and the error occurs.</p>
<h2>Workaround</h2>
<p>It's not recommended to use a self-signed certificate in a production environment. We advise to use a certificate issued by your domain or a third-party certificate authority instead of a self-signed one.</p>
<p>If you have to use a self-signed certificate please follow the instruction to generate a cerificate without specifying 'Key Usage' extension:</p>
<ol>
<li>Add the following registry value to the Windows registry（修改注册表，添加一条dword类型的键值）:
<ul>
<li>for 32-bit system:
<pre>[HKEY_LOCAL_MACHINE\SOFTWARE\VisualSVN\VisualSVN Server]
"CreateGnuTLSCompatibleCertificate"=dword:00000001</pre>
</li>
<li>for 64-bit system:
<pre>[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VisualSVN\VisualSVN Server]
"CreateGnuTLSCompatibleCertificate"=dword:00000001</pre>
</li>
</ul>
</li>
<li>Start <b>VisualSVN Server Manager</b>.</li>
<li>Go to <b>Action | Properties | Certificate</b>.</li>
<li>Click <b>Change certificate...（重新生成新证书）</b> and follow the wizard instructions to generate a new self-signed certificate.</li>
</ol>
<p>The certificate will be generated without the 'Key Usage' extension and will be compatible both with GnuTLS and OpenSSL.</p>
<p>参考资料</p>
<p>1. <a href="http://www.visualsvn.com/support/topic/00056/" target="_blank">http://www.visualsvn.com/support/topic/00056/</a></p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2013/08/ubuntu-svn%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bf%9e%e6%8e%a5windows-visualsvn-ssl%e8%af%81%e4%b9%a6%e9%97%ae%e9%a2%98/">Ubuntu SVN客户端连接windows VisualSVN SSL证书问题</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zhourunsheng.com/2013/08/ubuntu-svn%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bf%9e%e6%8e%a5windows-visualsvn-ssl%e8%af%81%e4%b9%a6%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.10 Manual 手册</title>
		<link>http://blog.zhourunsheng.com/2011/06/ubuntu-10-10-manual-%e6%89%8b%e5%86%8c/</link>
		<comments>http://blog.zhourunsheng.com/2011/06/ubuntu-10-10-manual-%e6%89%8b%e5%86%8c/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 04:56:46 +0000</pubDate>
		<dc:creator><![CDATA[润物无声]]></dc:creator>
				<category><![CDATA[程序设计]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[在线资源]]></category>
		<category><![CDATA[读书]]></category>

		<guid isPermaLink="false">http://blog.zhourunsheng.com/?p=16</guid>
		<description><![CDATA[<p>Official Ubuntu 10.10 Manual 手册《Getting Started with Ub [&#8230;]</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2011/06/ubuntu-10-10-manual-%e6%89%8b%e5%86%8c/">Ubuntu 10.10 Manual 手册</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>Official Ubuntu 10.10 Manual 手册《Getting Started with Ubuntu 10.10》，现在已经可以免费下载了。</p>
<p>该书是一本不错的入门书籍和查询手册，对于一步一步掌握Ubuntu有很大的参考价值。</p>
<p>&nbsp;</p>
<p>下载地址：<br />
<a href="http://ubuntu-manual.org/">http://ubuntu-manual.org/</a></p>
<p>&nbsp;</p>
<p>使用命令：<br />
wget http://files.ubuntu-manual.org/manuals/getting-started-with-ubuntu/10.10/en_US/screen/Getting%20Started%20with%20Ubuntu%2010.10.pdf</p>
<p>下载链接：《<a href="http://files.ubuntu-manual.org/manuals/getting-started-with-ubuntu/10.10/en_US/screen/Getting%20Started%20with%20Ubuntu%2010.10.pdf">Getting Started with Ubuntu 10.10</a>》</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2011/06/ubuntu-10-10-manual-%e6%89%8b%e5%86%8c/">Ubuntu 10.10 Manual 手册</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zhourunsheng.com/2011/06/ubuntu-10-10-manual-%e6%89%8b%e5%86%8c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
