<?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>Bernie Yu &#187; 安装</title>
	<atom:link href="http://bernieyu.com/tag/%e5%ae%89%e8%a3%85/feed/" rel="self" type="application/rss+xml" />
	<link>http://bernieyu.com</link>
	<description>复刻生活</description>
	<lastBuildDate>Tue, 17 May 2016 09:03:15 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>在群晖Nas上搭建Git服务器</title>
		<link>http://bernieyu.com/2015/06/built-git-server-on-synology-nas/</link>
		<comments>http://bernieyu.com/2015/06/built-git-server-on-synology-nas/#comments</comments>
		<pubDate>Fri, 26 Jun 2015 07:53:57 +0000</pubDate>
		<dc:creator><![CDATA[Bernie Yu]]></dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[IT技术]]></category>
		<category><![CDATA[Synology]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[黑群晖]]></category>

		<guid isPermaLink="false">http://bernieyu.com/?p=244</guid>
		<description><![CDATA[开启DSM的SSH远程功能 在“控制面板” →“终端机和SNMP”→“启动SSH功能” 建立Git用户 在“控 ... <a class="more-link" href="http://bernieyu.com/2015/06/built-git-server-on-synology-nas/">　　>>阅读全文&#60;&#60;</a>]]></description>
				<content:encoded><![CDATA[<ol>
<li>开启DSM的SSH远程功能<br />
在“控制面板” →“终端机和SNMP”→“启动SSH功能”<br />
<img class="size-full wp-image-245" src="http://bernieyu.com/wp-content/uploads/2015/06/20150626141436.png" alt="20150626141436" width="501" height="220" /></li>
<li>建立Git用户<br />
在“控制面板” →“用户账号”中添加Git专用用户。此处设置为git，用户组为users。权限为禁止访问任何共享文件夹<br />
<img class="alignnone size-full wp-image-246" src="http://bernieyu.com/wp-content/uploads/2015/06/20150626141852.png" alt="20150626141852" width="560" height="226" /></li>
<li>安装Git<br />
进入“套件中心”，找到Git Server，安装<br />
<img class="alignnone size-large wp-image-247" src="http://bernieyu.com/wp-content/uploads/2015/06/20150626142125-1024x517.png" alt="20150626142125" width="640" height="323" />安装完成后，打开Git设置界面，将之前添加的git用户设置为允许访问<img class="alignnone size-full wp-image-248" src="http://bernieyu.com/wp-content/uploads/2015/06/20150626142342.png" alt="20150626142342" width="599" height="351" /></li>
<li>创建Git库文件夹并设置权限<br />
以root用户SSH登录到DSM，在目标盘下创建git库目录</p>
<pre>cd /volume1
mkdir git</pre>
<p>创建测试项目</p>
<pre>cd git
mkdir test</pre>
<p>初始化git</p>
<pre>cd test
git init --bare</pre>
<p>设置目录权限</p>
<pre>chown -R git:users /volume1/git</pre>
</li>
<li>客户端：<br />
Windows：<br />
下载并安装  <a href="http://msysgit.github.io/">http://msysgit.github.io/</a><br />
Linux：</p>
<pre>yum install git-core</pre>
<p>或</p>
<pre>apt-get install git-core</pre>
<p>安装完成后，进入git-bash，测试</p>
<pre>git clone ssh://git@192.168.1.5/volume1/git/test</pre>
<p>测试添加文件并提交到本地库</p>
<pre>echo "t1.txt" &gt;t1.txt

git add t1.txt

git commit -m "add t1.txt"</pre>
<p>推送到远程库</p>
<pre>git push origin master</pre>
</li>
<li>设置SSH Key<br />
现在所有与远程库的交互都需要输入密码，除了不方便，还有不安全，不过可以使用SSH公钥来进行授权。<br />
在msysgit安装好后，已经生成了公钥和密钥。在git-bash中查看：</p>
<pre>$ ls ~/.ssh
id_rsa  id_rsa.pub  known_hosts</pre>
<p>其中，id_rsa就是私钥，id_rsa.pub则是公钥。把公钥复制到远程服务器：</p>
<pre>$ scp -P 9822 ~/.ssh/id_rsa.pub  root@192.168.1.5:/volume1/homes/git/.</pre>
<p>这里用的不是SSH标准的22端口，而是9822。如果是标准端口，则不用输入-P参数<br />
把公钥内容追加到authorized_keys</p>
<pre>mkdir /volume1/homes/git/.ssh
cat /volume1/homes/git/id_rsa.john.pub &gt;&gt; /volume1/homes/git/.ssh/authorized_keys</pre>
<p>更改权限</p>
<pre>chown -R git:users /volume1/homes/git/.ssh
chmod 644 /volume1/homes/git/.ssh/authorized_keys</pre>
<p>再与远程库交互就不会再要求输入密码了。</li>
<li>配置SourceTree的SSH Key<br />
使用SourceTree做客户端的话，SSH Key的配置有一些不同。<br />
首先需要在“工具”→“选项”→“一般”中，将SSH客户端设置为“PuTTY/Plink”<br />
<img class="alignnone size-full wp-image-249" src="http://bernieyu.com/wp-content/uploads/2015/06/20150626154646.png" alt="20150626154646" width="542" height="338" /><br />
然后进入“工具”→“创建或导入SSH密钥”<br />
<img class="alignnone size-full wp-image-250" src="http://bernieyu.com/wp-content/uploads/2015/06/20150626154946.png" alt="20150626154946" width="492" height="476" /><br />
其中“Generate”是生成新的密钥对，“Load”则是读取已经存在的私钥（比如上面git-bash里已经生成的私钥。<br />
生成或读取后，分别保存公钥和私钥。私钥由客户端使用，公钥则需要添加到服务上的authorized_keys文件里。<br />
在服务器端添加成功后，就可以不用再输入密码了。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://bernieyu.com/2015/06/built-git-server-on-synology-nas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VPS搭建LNMP过程全记录</title>
		<link>http://bernieyu.com/2015/06/build-nginx-mysql-php-full-record/</link>
		<comments>http://bernieyu.com/2015/06/build-nginx-mysql-php-full-record/#comments</comments>
		<pubDate>Tue, 09 Jun 2015 08:56:47 +0000</pubDate>
		<dc:creator><![CDATA[Bernie Yu]]></dc:creator>
				<category><![CDATA[IT技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[安装]]></category>

		<guid isPermaLink="false">http://bernieyu.com/?p=227</guid>
		<description><![CDATA[最近有朋友新买一个VPS，让帮忙搭建服务器（Linux + Nginx + MySQL + PHP）。 本来觉 ... <a class="more-link" href="http://bernieyu.com/2015/06/build-nginx-mysql-php-full-record/">　　>>阅读全文&#60;&#60;</a>]]></description>
				<content:encoded><![CDATA[<p>最近有朋友新买一个VPS，让帮忙搭建服务器（Linux + Nginx + MySQL + PHP）。<br />
本来觉得手到擒来的事，可操作起来却发现有些东西记忆已经模糊了。帮朋友弄好后，赶紧把过程记下来，以备后查。</p>
<ol>
<li>更新系统
<ul>
<li>
<pre>apt-get update
apt-get upgrade</pre>
</li>
</ul>
</li>
<li>安装MySQL
<ul>
<li>
<pre>apt-get install mysql-server mysql-client</pre>
<p>MySQL 安全设置</p>
<pre>mysql_secure_installation</pre>
<p>过程中会询问是否更改 root密码，是否移除匿名用户，是否禁止root远程登录等。</li>
</ul>
</li>
<li>安装Nginx
<ul>
<li>
<pre>apt-get install nginx
service nginx start</pre>
<p>如果没有service命令，则使用</p>
<pre>/etc/init.d/nginx start</pre>
<p>直接访问IP地址，验证nginx安装是否成功<br />
<img class="alignnone size-full wp-image-229" src="http://bernieyu.com/wp-content/uploads/2015/06/20150609154658.png" alt="20150609154658" width="390" height="181" /></li>
</ul>
</li>
<li>安装PHP
<ul>
<li>
<pre>apt-get install php5-fpm php5-gd php5-mysql php5-curl</pre>
<p>安装完毕之后，查看PHP的版本，验证安装是否成功 ：</p>
<pre>root@vultr:/www# php5-fpm -v
PHP 5.3.10-1ubuntu3.18 (fpm-fcgi) (built: Apr 17 2015 15:08:33)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies</pre>
</li>
</ul>
</li>
<li>配置PHP-FPM
<ul>
<li>编辑/etc/php5/fpm/php.ini
<pre>vi /etc/php5/fpm/php.ini</pre>
<pre>cgi.fix_pathinfo=0

error_reporting =E_ALL | E_STRICT

display_errors = On

log_errors = On
error_log = /var/log/php_error.log</pre>
</li>
<li>编辑 /etc/php5/fpm/pool.d/www.conf
<pre>vi /etc/php5/fpm/pool.d/www.conf</pre>
<pre>user = www-data
group = www-data

;listen = 127.0.0.1:9000
listen = /var/run/php5-fpm.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0660

pm.status_path = /fpm_status</pre>
</li>
<li>重启php5-fpm
<pre>service php5-fpm restart</pre>
</li>
</ul>
</li>
<li>配置Nginx
<ul>
<li>编辑/etc/nginx/nginx.conf
<pre>user  www-data;
worker_processes  4;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    server_tokens off;

    gzip  on;
    gzip_disable "msie6";
    gzip_buffers 4 16K;
    gzip_comp_level 5;
    gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png application/javascript;
    gzip_vary on;
    include /etc/nginx/sites-available/*.conf;
}</pre>
</li>
</ul>
</li>
<li>配置网站
<ul>
<li>新建/www/test目录
<pre>mkdir /www
mkdir /www/test</pre>
</li>
<li>新建index.php
<pre>vi /www/test/index.php</pre>
<pre>&lt;?php

phpinfo();

?&gt;</pre>
</li>
<li>更改目录权限
<pre>chown -R www-data:www-data /www/test</pre>
</li>
<li>新建网站配置
<pre>vi /etc/nginx/conf.d/www.test.com.conf</pre>
<pre>server {
    listen       80;
    server_name  www.test.com;

    access_log /var/log/nginx/www.test.com.access.log main;
    error_log  /var/log/nginx/www.test.com.error.log warn;

    error_page  404              /404.html;
    error_page  500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    location / {
        root /www/test;
        index  index.html index.htm index.php;
        #WordPress伪静态,不需要可以删除
        if (-f $request_filename/index.html){
                rewrite (.*) $1/index.html break;
        }
        if (-f $request_filename/index.php){
                rewrite (.*) $1/index.php;
        }
        if (!-f $request_filename){
                rewrite (.*) /index.php;
        }
    }

    #fpm_status,可通过www.test.com/fpm_status查看fpm状态，添加?full参数可查看详细状态。
    #正式上线时需要注释掉此段
    location ~ ^/(fpm_status)$ {
     access_log off;
     include fastcgi_params;
     fastcgi_pass unix:/var/run/php5-fpm.sock;
     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }

    location ~ \.php$ {
        proxy_buffers 8 16k;
        proxy_buffer_size 32k;
        root   /www/test;
        # With php5-fpm:
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}
</pre>
</li>
<li>链接到sites-available
<pre>ln -s /etc/nginx/conf.d/www.test.com.conf /etc/nginx/sites-available/www.test.com.conf</pre>
</li>
<li>测试nginx配置
<pre>nginx -t</pre>
<p>如果配置文件正常，则显示：</p>
<pre>nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful</pre>
<p>如果报错，则检查配置文件</li>
<li>待一切正常后，重启nginx
<pre>service nginx restart</pre>
</li>
<li>此时访问www.test.com，会出现PHP运行信息<br />
<img class="alignnone size-medium wp-image-230" src="http://bernieyu.com/wp-content/uploads/2015/06/20150609164645-300x236.png" alt="20150609164645" width="300" height="236" /></li>
<li>访问 www.test.com/fpm_status 或者 www.test.com/fpm_status?full 可以查看fpm状态</li>
</ul>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://bernieyu.com/2015/06/build-nginx-mysql-php-full-record/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在N54L上安装ESXi并在ESXi上安装黑群晖（二）</title>
		<link>http://bernieyu.com/2015/04/install-esxi-on-n54l-and-xpenology-on-esxi-part-2/</link>
		<comments>http://bernieyu.com/2015/04/install-esxi-on-n54l-and-xpenology-on-esxi-part-2/#comments</comments>
		<pubDate>Fri, 10 Apr 2015 03:35:22 +0000</pubDate>
		<dc:creator><![CDATA[Bernie Yu]]></dc:creator>
				<category><![CDATA[IT技术]]></category>
		<category><![CDATA[Synology]]></category>
		<category><![CDATA[EXSi]]></category>
		<category><![CDATA[N54l]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[黑群晖]]></category>

		<guid isPermaLink="false">http://bernieyu.com/?p=96</guid>
		<description><![CDATA[快速链接： 在N54L上安装ESXi并在ESXi上安装黑群晖（一） &#8212;&#8212;&#8212; ... <a class="more-link" href="http://bernieyu.com/2015/04/install-esxi-on-n54l-and-xpenology-on-esxi-part-2/">　　>>阅读全文&#60;&#60;</a>]]></description>
				<content:encoded><![CDATA[<p>快速链接：</p>
<ul>
<li><a title="在N54L上安装ESXi并在ESXi上安装黑群晖（一）" href="http://bernieyu.com/2015/04/install-esxi-on-n54l-and-xpenology-on-esxi-part-1/">在N54L上安装ESXi并在ESXi上安装黑群晖（一）</a></li>
</ul>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>接下来,我们需要添加存储器,选择“配置”&gt;“存储器”&gt;“添加存储器”（ &#8220;Configuration&#8221; &gt; &#8220;Storage&#8221; &gt; &#8220;Add Storage&#8221;）</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-8.png"><img class="alignnone size-full wp-image-97" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-8.png" alt="PC-Part-8" width="752" height="588" /></a></p>
<p>按照屏幕上的说明选择一个硬盘作为数据存储（data-store）。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-9.png"><img class="alignnone size-full wp-image-98" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-9.png" alt="PC-Part-9" width="752" height="588" /></a></p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-10.png"><img class="alignnone size-full wp-image-99" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-10.png" alt="PC-Part-10" width="752" height="588" /></a></p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-11.png"><img class="alignnone size-full wp-image-100" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-11.png" alt="PC-Part-11" width="752" height="588" /></a></p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-12.png"><img class="alignnone size-full wp-image-101" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-12.png" alt="PC-Part-12" width="752" height="588" /></a></p>
<p>现在数据存储已经创建好了。我们继续在数据存储内创建一个文件夹。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-13.png"><img class="alignnone size-large wp-image-102" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-13-1024x568.png" alt="PC-Part-13" width="640" height="355" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-14.png"><img class="alignnone size-large wp-image-103" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-14.png" alt="PC-Part-14" width="640" height="290" /></a></p>
<p>我们现在的数据存储中有了一个叫“RDM”的文件夹。</p>
<p>现在我们需要SSH到之前已安装的EXSi。我在Windows下使用的是PuTTY。Linux/Mac用户可以使用终端的SSH。</p>
<p>我们连接到与之前使用相同的IP地址。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-15.png"><img class="alignnone size-large wp-image-104" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-15-1024x327.png" alt="PC-Part-15" width="640" height="204" /></a></p>
<p>&nbsp;</p>
<pre>ls /dev/disks/</pre>
<p>这里显示的硬盘列表。我将使用上图中高亮标出的2TB希捷硬盘。接下来输入：</p>
<pre>vmkfstools -z /vmfs/devices/disks/DISKID /vmfs/volumes/250GB_DataStore/RDM/FILENAME.vmdk</pre>
<p>我将使用下面的命令：</p>
<pre>vmkfstools -z /vmfs/devices/disks/t10.ATA_____ST2000DM0012D1E6164__________________________________Z1E4TERF /vmfs/volumes/250GB_DataStore/RDM/2TBDrive1.vmdk</pre>
<p>如下所示：</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-16.png"><img class="alignnone size-large wp-image-105" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-16-1024x260.png" alt="PC-Part-16" width="640" height="163" /></a></p>
<p>OK，接下来我们可以创建黑群晖的虚拟机了。点击“入门”&gt;“创建新虚拟机”（&#8221;Getting Started&#8221; &gt; &#8220;Create a new virtual machine&#8221;）并选择“自定义” （&#8221;Custom&#8221;）</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-17.png"><img class="alignnone size-large wp-image-106" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-17-1024x470.png" alt="PC-Part-17" width="640" height="294" /></a></p>
<p>接下来按如下图片所示的步骤操作：</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-18.png"><img class="alignnone size-full wp-image-107" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-18.png" alt="PC-Part-18" width="728" height="692" /></a></p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-19.png"><img class="alignnone size-large wp-image-108" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-19.png" alt="PC-Part-19" width="640" height="608" /></a></p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-20.png"><img class="alignnone size-large wp-image-109" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-20.png" alt="PC-Part-20" width="640" height="608" /></a></p>
<p>现在我们需要上传gnoboot文件到数据存储，点击“配置” &gt; “存储器”（&#8221;Configuration&#8221; &gt; &#8220;Storage&#8221;），在之前创建的数据存储上右击，选择“浏览数据存储”，再选择黑群晖的文件夹（虚拟机名称）</p>
<p>按下图所示，选择从下载的gnoboot文件中解压出来的两个文件并上传</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-21.png"><img class="alignnone size-large wp-image-110" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-21-1024x588.png" alt="PC-Part-21" width="640" height="368" /></a></p>
<p>完成后，回到虚拟机页面，点击“编辑虚拟机设置” &gt; “添加” （&#8221;Edit Settings&#8221; and &#8220;Add..&#8221;）</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-22.png"><img class="alignnone size-large wp-image-111" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-22-1024x610.png" alt="PC-Part-22" width="640" height="381" /></a></p>
<p>我们将添加一个硬盘。选择“硬盘”，然后按下图步骤操作：</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-23.png"><img class="alignnone size-full wp-image-112" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-23.png" alt="PC-Part-23" width="652" height="516" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-24.png"><img class="alignnone size-large wp-image-113" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-24.png" alt="PC-Part-24" width="640" height="507" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-25.png"><img class="alignnone size-large wp-image-114" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-25.png" alt="PC-Part-25" width="640" height="507" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-26.png"><img class="alignnone size-large wp-image-115" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-26.png" alt="PC-Part-26" width="640" height="507" /></a></p>
<p>现在，我们将再添加一个虚拟磁盘，这次是<strong>新建</strong>而不是使用现有的镜像。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-27.png"><img class="alignnone size-large wp-image-116" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-27-1024x610.png" alt="PC-Part-27" width="640" height="381" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-28.png"><img class="alignnone size-full wp-image-117" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-28.png" alt="PC-Part-28" width="652" height="516" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-29.png"><img class="alignnone size-full wp-image-118" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-29.png" alt="PC-Part-29" width="652" height="516" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-30.png"><img class="alignnone size-large wp-image-119" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-30.png" alt="PC-Part-30" width="640" height="507" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-31.png"><img class="alignnone size-large wp-image-120" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-31.png" alt="PC-Part-31" width="640" height="507" /></a></p>
<p>如果你愿意，你可以移除CD/DVD驱动器和软盘驱动器。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-32.png"><img class="alignnone size-full wp-image-121" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-32.png" alt="PC-Part-32" width="708" height="632" /></a></p>
<p>让我们启动虚拟机，选择“打开电源”（Play）按钮,打开一个虚拟机控制台窗口（ &#8220;monitor&#8221;）,确保首次启动时选择的是gnoboot.me而不是gnoboot-alpha。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-34.png"><img class="alignnone size-full wp-image-122" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-34.png" alt="PC-Part-34" width="738" height="517" /></a></p>
<p>选择 &#8220;5.0-4458&#8243; （Synology DSM 5.0）</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-35.png"><img class="alignnone size-full wp-image-123" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-35.png" alt="PC-Part-35" width="738" height="517" /></a></p>
<p>等到看到“DiskStation”提示符后，打开Synology Assistant并搜索设备，发现设备后双击该设备。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-36.png"><img class="alignnone size-full wp-image-124" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-36.png" alt="PC-Part-36" width="753" height="597" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-37.png"><img class="alignnone size-large wp-image-125" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-37.png" alt="PC-Part-37" width="640" height="553" /></a></p>
<p>你的默认浏览器会加载一个页面。我这里是Chrome。按屏幕上的指令选择“从我的电脑安装DSM”（&#8221;install DSM from my computer&#8221;），并选择之前下载的&#8221;DSM_DS3612xs_4458.pat&#8221; 文件。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-39.png"><img class="alignnone size-full wp-image-126" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-39.png" alt="PC-Part-39" width="817" height="728" /></a></p>
<p>设置管理员密码并点击“现在安装”。如下图所示：</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-40.png"><img class="alignnone size-full wp-image-127" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-40.png" alt="PC-Part-40" width="818" height="739" /></a></p>
<p>安装开始，大概10分钟后安装完成。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-41.png"><img class="alignnone size-full wp-image-128" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-41.png" alt="PC-Part-41" width="818" height="727" /></a></p>
<p>待虚拟机控制台回到“DiskStation ”提示符画面，以root用户和之前设置的admin密码登录</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-42.png"><img class="alignnone size-full wp-image-129" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-42.png" alt="PC-Part-42" width="738" height="597" /></a></p>
<p>输入“poweroff”并等待系统关机，然后回到“编辑虚拟机设置” &gt; “添加&#8230;”</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-45.png"><img class="alignnone size-large wp-image-130" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-45-1024x610.png" alt="PC-Part-45" width="640" height="381" /></a></p>
<p>再次选择“硬盘”，然后按下图步骤添加RDM映像到虚拟机。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-46.png"><img class="alignnone size-full wp-image-131" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-46.png" alt="PC-Part-46" width="652" height="516" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-47.png"><img class="alignnone size-large wp-image-132" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-47.png" alt="PC-Part-47" width="640" height="507" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-48.png"><img class="alignnone size-large wp-image-133" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-48.png" alt="PC-Part-48" width="640" height="570" /></a> <a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-49.png"><img class="alignnone size-large wp-image-134" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-49.png" alt="PC-Part-49" width="640" height="507" /></a></p>
<p>再次启动虚拟机：</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-50.png"><img class="alignnone size-full wp-image-135" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-50.png" alt="PC-Part-50" width="745" height="597" /></a></p>
<p>稍候，系统进入提示符画面，你现在可以通过之前安装时的IP地址来访问了（或者通过Synology Assistant重新搜索）。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-51.png"><img class="alignnone size-full wp-image-136" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-51.png" alt="PC-Part-51" width="958" height="390" /></a></p>
<p>如上图，你可以同时看到虚拟硬盘和2T的物理硬盘了。</p>
<p>大功告成！</p>
<p>&nbsp;</p>
<h2><span style="text-decoration: underline;">附加内容</span></h2>
<h3><span style="text-decoration: underline;">更新到 “Update 1”</span></h3>
<p>打开控制面板，“更新和还原”，选择“手动更新DSM”，并使用 <a href="http://ukdl.synology.com/download/criticalupdate/update_pack/4458-2/synology_bromolow_3612xs.pat">synology_bromolow_3612xs.pat</a></p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/12.png"><img class="alignnone size-full wp-image-137" src="http://bernieyu.com/wp-content/uploads/2015/04/12.png" alt="12" width="994" height="571" /></a></p>
<p>启用SSH</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/13.png"><img class="alignnone size-full wp-image-138" src="http://bernieyu.com/wp-content/uploads/2015/04/13.png" alt="13" width="596" height="367" /></a></p>
<p>使用PuTTY连接到Synology DSM</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/3.png"><img class="alignnone size-full wp-image-139" src="http://bernieyu.com/wp-content/uploads/2015/04/3.png" alt="3" width="465" height="449" /></a></p>
<p>登录后输入以下命令：</p>
<pre>sed 's/flashupdateDeb/flashupdateDeb1/' /autoupd@te.info &gt; /autoupd@te.info1
mv /autoupd@te.info1 /autoupd@te.info</pre>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/4.png"><img class="alignnone size-full wp-image-140" src="http://bernieyu.com/wp-content/uploads/2015/04/4.png" alt="4" width="608" height="283" /></a></p>
<p>最后，点击“立即更新”</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/5.png"><img class="alignnone size-full wp-image-141" src="http://bernieyu.com/wp-content/uploads/2015/04/5.png" alt="5" width="660" height="376" /></a></p>
<p>几分钟后更新完成。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/62.jpg"><img class="alignnone size-full wp-image-143" src="http://bernieyu.com/wp-content/uploads/2015/04/62.jpg" alt="6" width="614" height="440" /></a></p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/71.jpg"><img class="alignnone size-full wp-image-145" src="http://bernieyu.com/wp-content/uploads/2015/04/71.jpg" alt="7" width="598" height="408" /></a></p>
<p>系统重启后就是最新的更新版本了。</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://bernieyu.com/2015/04/install-esxi-on-n54l-and-xpenology-on-esxi-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在N54L上安装ESXi并在ESXi上安装黑群晖（一）</title>
		<link>http://bernieyu.com/2015/04/install-esxi-on-n54l-and-xpenology-on-esxi-part-1/</link>
		<comments>http://bernieyu.com/2015/04/install-esxi-on-n54l-and-xpenology-on-esxi-part-1/#comments</comments>
		<pubDate>Thu, 09 Apr 2015 09:21:39 +0000</pubDate>
		<dc:creator><![CDATA[Bernie Yu]]></dc:creator>
				<category><![CDATA[IT技术]]></category>
		<category><![CDATA[Synology]]></category>
		<category><![CDATA[EXSi]]></category>
		<category><![CDATA[N54l]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[黑群晖]]></category>

		<guid isPermaLink="false">http://bernieyu.com/?p=63</guid>
		<description><![CDATA[到手N54L后，想在上面安装ESXi作为host，再在上面安装黑群晖以及其他操作系统。经过一番对谷哥和度娘的蹂 ... <a class="more-link" href="http://bernieyu.com/2015/04/install-esxi-on-n54l-and-xpenology-on-esxi-part-1/">　　>>阅读全文&#60;&#60;</a>]]></description>
				<content:encoded><![CDATA[<p>到手N54L后，想在上面安装ESXi作为host，再在上面安装黑群晖以及其他操作系统。经过一番对谷哥和度娘的蹂躏后，终于找到一篇完整的安装指南。由于是E文的，为了以后查找方便，做了简单的翻译。</p>
<p>原文地址：<a href="http://cyanlabs.net/Thread-Install-ESXi-on-N54L-XPEnology-on-ESXi">http://cyanlabs.net/Thread-Install-ESXi-on-N54L-XPEnology-on-ESXi</a></p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/11.jpg"><img class="alignnone size-full wp-image-64" src="http://bernieyu.com/wp-content/uploads/2015/04/11.jpg" alt="1" width="620" height="360" /></a></p>
<p>嘿，伙计们，这是一个在HP N54L上安装ESXi以及在ESXi上安装黑群晖(Synology DSM 5.0)为虚拟机的指南，包括视频指南和文本指南。</p>
<h2><span style="text-decoration: underline;">前提条件</span></h2>
<ul>
<li><span id="tran_0" class="copied" data-aligning="#tran_0,#src_0">大量的业余时间；</span></li>
<li><span id="tran_1" class="copied" data-aligning="#tran_1,#src_1">2 个USB闪存设备。</span></li>
<li><span id="tran_2" class="copied" data-aligning="#tran_2,#src_2">另一个已经准备好ESXi安装程序的USB设备，或ESXi的安装光盘；</span></li>
<li><span id="tran_3" class="copied" data-aligning="#tran_3,#src_3">HP N54L(其他硬件也可能可以)；</span></li>
<li><span id="tran_4" class="copied" data-aligning="#tran_4,#src_4">连接到服务器的显示器和键盘；</span></li>
<li><span id="tran_5" class="copied" data-aligning="#tran_5,#src_5">一个硬盘驱动器以用作ESXi的DataStore；</span></li>
<li><span id="tran_6" class="copied inactive" data-aligning="#tran_6,#src_6">额外的硬盘驱动器，用于做RDM映射以及DSM使用。</span></li>
</ul>
<h2><span style="text-decoration: underline;">准备工作</span></h2>
<ol>
<li>下载以下文件：
<ul>
<li><a href="http://global.download.synology.com/download/DSM/5.0/4458/DSM_DS3612xs_4458.pat">DSM_DS3612xs_4458.pat</a></li>
<li><a href="http://thedarkcloud.net/downloads-5/gnoboot/">gnoboot-alpha10.3-custom-vfat-ESXi</a></li>
<li><a href="http://global.download.synology.com/download/Tools/SynologyAssistant/4418/Windows/SynologyAssistantSetup-5.0-4418.exe">SynologyAssistantSetup-5.0-4418.exe</a></li>
<li><a href="https://my.vmware.com/web/vmware/details?downloadGroup=HP-ESXI-5.1.0U2-GA-JAN2014&amp;productId=285">HP ESXi 5.1 Update 2 Image</a></li>
<li><a href="http://heanet.dl.sourceforge.net/project/unetbootin/UNetbootin/585/unetbootin-windows-585.exe">UNetbootin</a></li>
</ul>
</li>
<li>运行UNetbootin，确保选择正确的USB驱动器盘符。(如果你使用一个CD/DVD，则跳过这一步)</li>
<li><a href="http://bernieyu.com/wp-content/uploads/2015/04/2.png"><img class="alignnone size-full wp-image-66" src="http://bernieyu.com/wp-content/uploads/2015/04/2.png" alt="2" width="540" height="399" /></a></li>
<li>好，现在我们已经下载了所有的文件，USB也准备好了，我们可以开始了。</li>
</ol>
<h2><span style="text-decoration: underline;">安装指南 － 视频版</span></h2>
<p>（原文的视频是发布在youtube上的，看不了的同学自己去找梯子）</p>
<p><iframe width="640" height="360" src="https://www.youtube.com/embed/YGkzehhUsd0?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<h2><span style="text-decoration: underline;">安装指南 － 图文版</span></h2>
<p>首先我们需要做的是确保BIOS设置为U盘启动（CD/DVD安装的话则要设置为光盘启动），在启动时按F10，进入BIOS设置，进入“Boot”选项，确保设置为和下图一样，当然，显示的将是你U盘的名字。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/31.jpg"><img class="alignnone size-full wp-image-67" src="http://bernieyu.com/wp-content/uploads/2015/04/31.jpg" alt="3" width="760" height="277" /></a></p>
<p>现在，我们将引导U盘（光盘），过一会儿就会看到下面的屏幕：</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/41.jpg"><img class="alignnone size-full wp-image-68" src="http://bernieyu.com/wp-content/uploads/2015/04/41.jpg" alt="4" width="528" height="242" /></a></p>
<p>如果你的内存不到4G，你需要做一个小hack以绕过系统需求，按“ALT+F1”</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/51.jpg"><img class="alignnone size-full wp-image-69" src="http://bernieyu.com/wp-content/uploads/2015/04/51.jpg" alt="5" width="799" height="321" /></a></p>
<p>现在你需要在上面所显示的控制台窗口输入一些命令</p>
<pre>cd /usr/lib/vmware/weasel/util
rm upgrade_precheck.pyc
mv upgrade_precheck.py upgrade_precheck.py.old
cp upgrade_precheck.py.old upgrade_precheck.py
vi upgrader_precheck.py
press "esc" and type "/MEM_MIN"
now press "i" and replace the 4 with a 1 and press "esc" then ":w!" and ":q"
ps -c | grep weasel
kill -9 'PID' (replace 'PID' with the PID of the weasel process e.g: "kill -9 35795"</pre>
<p>现在你应该回到了欢迎屏幕，现在我们可以开始安装，基本上按照屏幕上的步骤安装到你的第二个U盘上。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/42.jpg"><img class="alignnone size-full wp-image-70" src="http://bernieyu.com/wp-content/uploads/2015/04/42.jpg" alt="4" width="976" height="358" /></a></p>
<p>一段时间之后，你将看到下面的屏幕：</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/52.jpg"><img class="alignnone size-full wp-image-71" src="http://bernieyu.com/wp-content/uploads/2015/04/52.jpg" alt="5" width="733" height="439" /></a></p>
<p>重启机器并移除安装媒体（U盘或光盘）。如果系统尝试从网络启动而不是从新安装的U盘启动，则按步骤1所示，进入BIOS检查设置。</p>
<p>一旦屏幕上以橙色部分显示你的IP，按“F2”</p>
<p>然后进入“Troubleshooting Options” （故障排除选项）。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/61.jpg"><img class="alignnone size-full wp-image-72" src="http://bernieyu.com/wp-content/uploads/2015/04/61.jpg" alt="6" width="520" height="390" /></a></p>
<p>以选中并按回车的方式启用“ESXi Shell”和SSH，然后按ESC回到显示IP的画面</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/7.jpg"><img class="alignnone size-full wp-image-73" src="http://bernieyu.com/wp-content/uploads/2015/04/7.jpg" alt="7" width="986" height="191" /></a></p>
<p>当这些完成后，我们需要下载vSphere Client，以远程管理ESXi主机。主机IP如下图所示：</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/8.jpg"><img class="alignnone size-full wp-image-74" src="http://bernieyu.com/wp-content/uploads/2015/04/8.jpg" alt="8" width="917" height="158" /></a></p>
<p>从其他系统访问屏幕所显示的IP，例如我的是&#8221;192.168.1.5”，接受如下所示的安全警告</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-1.png"><img class="alignnone size-large wp-image-75" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-1-1024x321.png" alt="PC-Part-1" width="640" height="201" /></a></p>
<p>点击下面所示的链接</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-2.png"><img class="alignnone size-full wp-image-76" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-2.png" alt="PC-Part-2" width="454" height="427" /></a></p>
<p>待软件下载并安装完成，运行，输入IP、用户名、密码后登录</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-4.png"><img class="alignnone size-full wp-image-77" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-4.png" alt="PC-Part-4" width="420" height="526" /></a></p>
<p>忽略证书警告和许可警告</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-5.png"><img class="alignnone size-full wp-image-78" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-5.png" alt="PC-Part-5" width="367" height="247" /></a></p>
<p>然后进入&#8221;Configuration&#8221;（配置） &gt;&#8221;Licensed Features&#8221;（已获许可的功能） &gt;  &#8220;Edit（编辑）&#8230;&#8221;（原文为&#8221;Licensed Features&#8221; &gt; &#8220;Configuration&#8221; &gt; &#8220;Edit&#8230;&#8221;.，这个顺序有误）</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-6.png"><img class="alignnone size-large wp-image-79" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-6-1024x475.png" alt="PC-Part-6" width="640" height="297" /></a></p>
<p>“分配新的许可 ”并点击“输入密钥”。你可以到<a href="https://my.vmware.com/group/vmware/evalcenter?lp=default&amp;amp;p=free-esxi5">https://my.vmware.com/group/vmware/evalcenter?lp=default&amp;amp;p=free-esxi5</a> 获得免费的密钥。</p>
<p><a href="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-7.png"><img class="alignnone size-full wp-image-80" src="http://bernieyu.com/wp-content/uploads/2015/04/PC-Part-7.png" alt="PC-Part-7" width="479" height="467" /></a></p>
<p>（未完待续）</p>
<p>快速链接：<a title="在N54L上安装ESXi并在ESXi上安装黑群晖（二）" href="http://bernieyu.com/2015/04/install-esxi-on-n54l-and-xpenology-on-esxi-part-2/">在N54L上安装ESXi并在ESXi上安装黑群晖（二）</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://bernieyu.com/2015/04/install-esxi-on-n54l-and-xpenology-on-esxi-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
