<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.2">Jekyll</generator><link href="https://koude.github.io/atom.xml" rel="self" type="application/atom+xml" /><link href="https://koude.github.io/" rel="alternate" type="text/html" /><updated>2022-08-31T02:51:39+00:00</updated><id>https://koude.github.io/atom.xml</id><title type="html">此心安处是吾乡</title><entry><title type="html">NUC8i5BEH 黑苹果过程全记录（未完待续）</title><link href="https://koude.github.io/%E6%95%99%E7%A8%8B/2020/05/06/nuc8-hackintosh/" rel="alternate" type="text/html" title="NUC8i5BEH 黑苹果过程全记录（未完待续）" /><published>2020-05-06T00:00:00+00:00</published><updated>2020-05-06T00:00:00+00:00</updated><id>https://koude.github.io/%E6%95%99%E7%A8%8B/2020/05/06/nuc8-hackintosh</id><content type="html" xml:base="https://koude.github.io/%E6%95%99%E7%A8%8B/2020/05/06/nuc8-hackintosh/">&lt;!-- more --&gt;

&lt;p&gt;##&lt;/p&gt;
&lt;h1 id=&quot;硬件准备&quot;&gt;硬件准备&lt;/h1&gt;

&lt;h4 id=&quot;采购硬件如下&quot;&gt;采购硬件如下：&lt;/h4&gt;

&lt;p&gt;NUC8i5BEH一台&lt;a href=&quot;https://item.jd.com/56753694658.html&quot;&gt;英特尔（Intel）NUC8i5BEH NUC迷你电脑主机 豆子峡谷 准系统不含内存和硬盘&lt;/a&gt; ，实际成交价格为2408.84元，评价晒单后返50京东e卡&lt;/p&gt;

&lt;p&gt;SATA接口固态硬盘 &lt;a href=&quot;https://item.jd.com/6164595.html&quot;&gt;英睿达(Crucial) 500G SSD固态硬盘 SATA3.0接口 MX500系列&lt;/a&gt;，498.98元&lt;/p&gt;

&lt;p&gt;笔记本内存条&lt;a href=&quot;https://item.jd.com/8179330.html&quot;&gt;金士顿(Kingston) DDR4 2666 16GB(8G×2)套装 笔记本内存条 骇客神条 Impact系列&lt;/a&gt;，568.73元&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;NUC8i5BEH 支持内存频率最高2400，购买2666的原因是它的价格与2400一样，可自动降频到2400。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;白苹果拆机无线网卡，BCM943602CS，闲鱼淘来，180元。&lt;/p&gt;

&lt;p&gt;NVME转白苹果网卡转接卡，淘宝购买，46.56元。&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;NUC8不直接支持白苹果网卡接口，需使用上述转接卡，会占用NUC唯一的nvme接口，因此无法使用nvme固态硬盘。网上已有读卡器接口硬改网卡服务，鉴于会失去保修，不予考虑。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4 id=&quot;已有硬件如下&quot;&gt;已有硬件如下：&lt;/h4&gt;

&lt;p&gt;16GB U盘一个，速度越快越好；&lt;/p&gt;

&lt;p&gt;MacOS系统电脑一台，黑白都行。&lt;/p&gt;

&lt;h4 id=&quot;硬件安装&quot;&gt;硬件安装：&lt;/h4&gt;

&lt;ol&gt;
  &lt;li&gt;后背螺丝拧开，取下后盖，注意后盖与主机之间有SATA线、电源线连接；&lt;/li&gt;
  &lt;li&gt;断开自带网卡天线接头，拧下主板上两颗螺丝，从后背USB接口处开始取下主板，调整黑色天线走向，以免长度不够，然后装回主板；&lt;/li&gt;
  &lt;li&gt;白苹果网卡固定到转接卡上，转接卡固定到nvme接口上，USB供电线接在主板供电口合适位置。黑白色两条天线接到网卡中间和一侧的两处接口上。（后续采购过第三条天线，但贴片位置不好安装，作罢）；&lt;/li&gt;
  &lt;li&gt;插内存条；&lt;/li&gt;
  &lt;li&gt;插硬盘，接好线；&lt;/li&gt;
  &lt;li&gt;后盖螺丝拧好。&lt;/li&gt;
&lt;/ol&gt;

&lt;h1 id=&quot;软件准备&quot;&gt;软件准备&lt;/h1&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;intel官网下载最新版本BIOS，按照说明更新NUC的BIOS，并进入BIOS按照以下说明进行相关设置。&lt;/p&gt;

    &lt;blockquote&gt;
      &lt;p&gt;1、为了避免之前有其他不合适的改动，建议先按 F9 重置 BIOS 默认设置。
2、Boot-&amp;gt;Boot Priority-&amp;gt;Legacy Boot Priority-&amp;gt; « Legacy Boot » ：禁用
3、Boot-&amp;gt;Boot Configuration-&amp;gt;
  UEFI Boot-&amp;gt;« Fast Boot »： 禁用
  UEFI Boot-&amp;gt;« Boot USB Devices First » ： 启用
  UEFI Boot-&amp;gt;« Boot Network Devices Last » ：启用
  Boot Devices-&amp;gt;«Network Boot» ：设置为 « Disable »
4、Boot-&amp;gt;Secure Boot-&amp;gt; « Secure Boot » ：禁用
5、Security-&amp;gt;Security Features-&amp;gt; « Inter VT for directed I/VO (VT-d) » ： 禁用
6、Power-&amp;gt;Secondary Power Settings-&amp;gt; « Wake on LAN from S4/S5 » ： 设置为 « Stay Off »
以下为使用白果拆机卡的用户设置：
7、Devices-&amp;gt;Onboard Devices-&amp;gt; « WLAN » 和  « Bluetooth » ：禁用&lt;/p&gt;

      &lt;p&gt;作者：weachy
链接：https://www.jianshu.com/p/78510cfa4a64
来源：简书
著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。&lt;/p&gt;
    &lt;/blockquote&gt;
  &lt;/li&gt;
  &lt;li&gt;采用OpenCore引导，EFI文件采用 &lt;a href=&quot;https://github.com/Koude/NUC8BEH-Hackintosh&quot;&gt;weachy维护的的EFI-OC-200416.zip&lt;/a&gt;(链接非官方)。&lt;/li&gt;
  &lt;li&gt;MacOS系统App Store下载 Install macOS Catalina.app&lt;/li&gt;
  &lt;li&gt;格式化U盘&lt;/li&gt;
&lt;/ol&gt;

&lt;h1 id=&quot;开始安装&quot;&gt;开始安装&lt;/h1&gt;

&lt;p&gt;重启&lt;/p&gt;

&lt;h1 id=&quot;调试完善&quot;&gt;调试完善&lt;/h1&gt;

&lt;p&gt;修改三码&lt;/p&gt;</content><author><name></name></author><category term="教程" /><category term="黑苹果" /><category term="hackintosh" /><summary type="html"></summary></entry><entry><title type="html">ss-panel搭建教程</title><link href="https://koude.github.io/%E6%95%99%E7%A8%8B/2020/03/26/ss-panel/" rel="alternate" type="text/html" title="ss-panel搭建教程" /><published>2020-03-26T00:00:00+00:00</published><updated>2020-03-26T00:00:00+00:00</updated><id>https://koude.github.io/%E6%95%99%E7%A8%8B/2020/03/26/ss-panel</id><content type="html" xml:base="https://koude.github.io/%E6%95%99%E7%A8%8B/2020/03/26/ss-panel/">&lt;h1 id=&quot;ss-panel搭建说明&quot;&gt;ss-panel搭建说明&lt;/h1&gt;

&lt;h2 id=&quot;1-安装lnmp&quot;&gt;1. 安装LNMP&lt;/h2&gt;

&lt;h3 id=&quot;11-安装-nginx&quot;&gt;1.1 安装 nginx&lt;/h3&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get update
&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;nginx
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;12-安装mysql&quot;&gt;1.2 安装mysql&lt;/h3&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;mysql-server
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;13-安装php70&quot;&gt;1.3 安装php7.0&lt;/h3&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;software-properties-common
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;添加 PPA：&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;add-apt-repository ppa:ondrej/php
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;如果有乱码，需要设置语言：&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;language-pack-en-base
&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;LC_ALL&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;en_US.UTF-8 add-apt-repository ppa:ondrej/php
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;安装&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get update
&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;php7.0 php7.0-fpm php7.0-mysql php7.0-gd php7.0-curl php7.0-mbstring php7.0-dom
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;2-部署ss-panel前端&quot;&gt;2. 部署ss-panel前端&lt;/h2&gt;

&lt;p&gt;提前安装好git&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;git
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;21-下载-ss-panel安装依赖&quot;&gt;2.1 下载 ss-panel，安装依赖&lt;/h3&gt;

&lt;p&gt;目录随意，以/home/*为例&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt;  /home/&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;
git clone &lt;span class=&quot;nt&quot;&gt;-b&lt;/span&gt; v3 https://github.com/orvice/ss-panel.git
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;进入目录，使用 composer 安装需要的依赖。&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;ss-panel
curl &lt;span class=&quot;nt&quot;&gt;-sS&lt;/span&gt; https://getcomposer.org/installer | php
&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;php composer.phar &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;安装 redis：&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;redis-server
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;22-添加-mysql-数据库&quot;&gt;2.2 添加 MySQL 数据库&lt;/h3&gt;

&lt;p&gt;查看初始用户名与密码   &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cat /etc/mysql/debian.cnf&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;登录后修改root密码&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;password &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;root@localhost &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; password&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;‘123456’&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;root用户登录mysql&lt;/p&gt;

&lt;p&gt;创建数据库&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-mysql&quot;&gt;mysql&amp;gt;create database shadowsocks;
&amp;gt; use shadowsocks;
&amp;gt; source /var/www/ss-panel/db.sql;
&amp;gt; flush privileges;
&amp;gt; exit;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;创建用户 shadow&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-mysql&quot;&gt;mysql&amp;gt;create user shadow@'localhost' identified by 'qwer1234' ;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;为用户shadow赋权&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-mysql&quot;&gt;grant all privileges on shadowsocks.* to shadow@'localhost' identified by 'qwer1234';
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;23-配置-nginx&quot;&gt;2.3 配置 NGINX&lt;/h3&gt;

&lt;p&gt;创建配置文件：&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;vi /etc/nginx/sites-enabled/default
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;修改为以下代码：&lt;/p&gt;

&lt;div class=&quot;language-nginx highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;server&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;kn&quot;&gt;listen&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;80&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;default&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kn&quot;&gt;listen&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;[::]:80&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;# SSL configuration&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;# listen 443 ssl default_server;&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;# listen [::]:443 ssl default_server;&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;# Note: You should disable gzip for SSL traffic.&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;# See: https://bugs.debian.org/773332&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;# Read up on ssl_ciphers to ensure a secure configuration.&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;# See: https://bugs.debian.org/765782&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;# Self signed certs generated by the ssl-cert package&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;# Don't use them in a production server!&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;# include snippets/snakeoil.conf;&lt;/span&gt;
    &lt;span class=&quot;kn&quot;&gt;root&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/home/*/ss-panel/public&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;# Add index.php to the list if you are using PHP&lt;/span&gt;
    &lt;span class=&quot;kn&quot;&gt;index&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;index.php&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;index.html&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;index.htm&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;index.nginx-debian.html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kn&quot;&gt;location&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
            &lt;span class=&quot;c1&quot;&gt;# First attempt to serve request as file, then&lt;/span&gt;
            &lt;span class=&quot;c1&quot;&gt;# as directory, then fall back to displaying a 404.&lt;/span&gt;
            &lt;span class=&quot;kn&quot;&gt;try_files&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$uri&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$uri&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/index.php&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$is_args$args&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;kn&quot;&gt;error_page&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;404&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/404.html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kn&quot;&gt;error_page&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;500&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;502&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;503&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;504&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/50x.html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kn&quot;&gt;location&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/50x.html&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;root&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/usr/share/nginx/html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;kn&quot;&gt;location&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;~&lt;/span&gt; &lt;span class=&quot;sr&quot;&gt;\.php$&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;try_files&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$uri&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;404&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;fastcgi_split_path_info&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;^(.+&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;.php)(/.+)&lt;/span&gt;$&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;fastcgi_pass&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;unix:/var/run/php/php7.0-fpm.sock&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;fastcgi_index&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;index.php&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;fastcgi_param&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;SCRIPT_FILENAME&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$document_root$fastcgi_script_name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;include&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;fastcgi_params&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;如需禁止ip访问，在文件开头添加代码&lt;/p&gt;

&lt;div class=&quot;language-nginx highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;server&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
   &lt;span class=&quot;kn&quot;&gt;listen&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;80&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;default&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
   &lt;span class=&quot;kn&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;并将原代码中的&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt; listen 80 default;&lt;/code&gt;  改为&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt; listen 80；&lt;/code&gt;&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;cp&lt;/span&gt; .env.example .env
vi .env
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;24-修改-ss-panel-配置文件&quot;&gt;2.4 修改 ss-panel 配置文件&lt;/h3&gt;

&lt;p&gt;进入到 ss-panel 文件夹，复制配置文件：&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;cp&lt;/span&gt; .env.example .env
vi .env
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;修改其中的信息，记得把 yourpassword 改成你自己的密码：&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# database 数据库配置&lt;/span&gt;
db_driver &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'mysql'&lt;/span&gt;
db_host &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'localhost'&lt;/span&gt;
db_port &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'3306'&lt;/span&gt;
db_database &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'shadowsocks'&lt;/span&gt;
db_username &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'shadow'&lt;/span&gt;
db_password &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'qwer1234'&lt;/span&gt;
db_charset &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'utf8'&lt;/span&gt;
db_collation &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'utf8_general_ci'&lt;/span&gt;
db_prefix &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;''&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;其他的配置项目前用不到，以后有需要可以自行修改。&lt;/p&gt;

&lt;p&gt;添加一个管理员账户：&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;php xcat createAdmin
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;开启 nginx 服务器：&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;service nginx restart
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;现在访问网站应该就可以看到 SS-Panel 界面了。前端界面到此部署完毕。&lt;/p&gt;

&lt;h2 id=&quot;3-部署后端-shadowsocks-manyuser&quot;&gt;3. 部署后端 shadowsocks-manyuser&lt;/h2&gt;

&lt;h3 id=&quot;31-下载代码&quot;&gt;3.1 下载代码&lt;/h3&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git clone &lt;span class=&quot;nt&quot;&gt;-b&lt;/span&gt; manyuser https://github.com/mengskysama/shadowsocks.git
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;32-安装-cmysql-依赖&quot;&gt;3.2 安装 cmysql 依赖&lt;/h3&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;pip &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;cymysql
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;（如果没有安装 pip，用 apt-get install python-pip 安装一遍即可）&lt;/p&gt;

&lt;h3 id=&quot;33-配置&quot;&gt;3.3 配置&lt;/h3&gt;

&lt;p&gt;进入 shadowsocks/shadowsocks 目录 ` vi config.json`&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;s2&quot;&gt;&quot;server&quot;&lt;/span&gt;:&lt;span class=&quot;s2&quot;&gt;&quot;0.0.0.0&quot;&lt;/span&gt;,
    &lt;span class=&quot;s2&quot;&gt;&quot;server_ipv6&quot;&lt;/span&gt;: &lt;span class=&quot;s2&quot;&gt;&quot;[::]&quot;&lt;/span&gt;,
    &lt;span class=&quot;s2&quot;&gt;&quot;server_port&quot;&lt;/span&gt;:8388,
    &lt;span class=&quot;s2&quot;&gt;&quot;local_address&quot;&lt;/span&gt;: &lt;span class=&quot;s2&quot;&gt;&quot;127.0.0.1&quot;&lt;/span&gt;,
    &lt;span class=&quot;s2&quot;&gt;&quot;local_port&quot;&lt;/span&gt;:1080,
    &lt;span class=&quot;s2&quot;&gt;&quot;password&quot;&lt;/span&gt;:&lt;span class=&quot;s2&quot;&gt;&quot;qwer1234&quot;&lt;/span&gt;,
    &lt;span class=&quot;s2&quot;&gt;&quot;timeout&quot;&lt;/span&gt;:300,
    &lt;span class=&quot;s2&quot;&gt;&quot;method&quot;&lt;/span&gt;:&lt;span class=&quot;s2&quot;&gt;&quot;rc4-md5&quot;&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;修改Config.py 文件的以下项，记得替换 yourpassword 为自己刚刚设置的密码：&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;#Config&lt;/span&gt;
MYSQL_HOST &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'localhost'&lt;/span&gt;
MYSQL_PORT &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 3306
MYSQL_USER &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'shadow'&lt;/span&gt;
MYSQL_PASS &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'yourpassword'&lt;/span&gt;
MYSQL_DB &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'shadowsocks'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;然后就完成了！python ./server.py 试试，如果没有报错就可以正常运行了。&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;/usr/bin/nohup /usr/bin/python /etc/shadowsocks/shadowsocks/servers.py
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;附注&quot;&gt;附注&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;如有问题请尝试安装 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;apt-get install python-m2crypto&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;修改 shadowsocks-manyuser 的 config.py 可以修改 SS-METHOD，推荐使用 aes-256-cfb。但是这样修改后在前端依然会显示 rc4-md5。&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;如果不能连接，检查防火墙配置。SS-Panel 的端口是递加的，也就是说如果第一个用户的端口是 1000，那么新增用户的端口会是 1001, 1002, …。也就是说防火墙只要开启一个范围段的端口即可。举例如果要开启 1000-1050 的端口，可以 sudo ufw allow 1000:1050/tcp。偷懒的做法是添加 /usr/bin/nohup /usr/bin/python /etc/shadowsocks-rm/shadowsocks/servers.py 到 rc.local 来开机自动启动。记得使用绝对路径。&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;如果出现 Slim Application Error，试试 sudo chmod -R 777 /var/www/ss-panel/storage/。&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;在Listen ip:port; 这个指令行中，有一个参数default，指定了它后，这个server段就会是这个ip的默认站点；如果没有这个参数，那么默认ip直接访问的是nginx.conf中出现的第一个server段对应的站点。&lt;/p&gt;

    &lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;server&lt;span class=&quot;o&quot;&gt;{&lt;/span&gt; 
listen: 127.0.0.1:80 default&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
server_name shuai.be&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; 
... 
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;开机启动&lt;/p&gt;

    &lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;vi /etc/rc.local
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;加入以下内容&lt;/p&gt;

    &lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; /root/shadowsocks/shadowsocks
screen &lt;span class=&quot;nt&quot;&gt;-dmS&lt;/span&gt; Shadowsocks python server.py
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;` :wq`  保存退出&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;</content><author><name></name></author><category term="教程" /><category term="BreakWall" /><category term="shadowsocks" /><category term="ss-panel" /><summary type="html">ss-panel搭建说明</summary></entry><entry><title type="html">华硕/梅林路由器修改本地Hosts设置DNS</title><link href="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/10/28/asus-merlin-local-dns/" rel="alternate" type="text/html" title="华硕/梅林路由器修改本地Hosts设置DNS" /><published>2019-10-28T00:00:00+00:00</published><updated>2019-10-28T00:00:00+00:00</updated><id>https://koude.github.io/%E6%95%99%E7%A8%8B/2019/10/28/asus-merlin-local-dns</id><content type="html" xml:base="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/10/28/asus-merlin-local-dns/">&lt;h1 id=&quot;路由器设置&quot;&gt;路由器设置&lt;/h1&gt;
&lt;p&gt;进入系统管理 - 系统设置 - SSH 连接，启用SSH连接。&lt;/p&gt;

&lt;h1 id=&quot;设置hosts&quot;&gt;设置hosts&lt;/h1&gt;
&lt;p&gt;SSH连接路由器 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ssh admin@192.168.50.1&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;进入目录 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd /jffs&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;新建文件 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dnsmasq.conf.add&lt;/code&gt; 并写入内容&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;addn-hosts=/jffs/configs/hosts
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;编辑文件&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vi /jffs/configs/hosts&lt;/code&gt; 
写入内容&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;192.168.0.1 www.example.com
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;重启-dns-服务&quot;&gt;重启 DNS 服务&lt;/h1&gt;
&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;service restart_dnsmasq&lt;/code&gt;&lt;/p&gt;</content><author><name></name></author><category term="教程" /><category term="路由器" /><category term="hosts" /><category term="DNS" /><summary type="html">路由器设置 进入系统管理 - 系统设置 - SSH 连接，启用SSH连接。</summary></entry><entry><title type="html">梅林路由器安装KMS激活Windows Office</title><link href="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/10/14/merlin-kms/" rel="alternate" type="text/html" title="梅林路由器安装KMS激活Windows Office" /><published>2019-10-14T00:00:00+00:00</published><updated>2019-10-14T00:00:00+00:00</updated><id>https://koude.github.io/%E6%95%99%E7%A8%8B/2019/10/14/merlin-kms</id><content type="html" xml:base="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/10/14/merlin-kms/">&lt;blockquote&gt;
  &lt;p&gt;在梅林koolshare版路由器固件上安装KMS激活工具，并激活Windows与Office&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1 id=&quot;安装kms工具&quot;&gt;安装KMS工具&lt;/h1&gt;
&lt;p&gt;进入路由器管理页面，最下方最后选项 软件中心-未安装-系统工具-安装，安装完毕后开启系统工具&lt;/p&gt;

&lt;h1 id=&quot;激活windows&quot;&gt;激活Windows&lt;/h1&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;slmgr /ipk MHF9N-XY6XB-WVXMC-BTDCT-MKKG7
slmgr /skms 192.168.50.1
slmgr /ato
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;激活office&quot;&gt;激活Office&lt;/h1&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cd &quot;C:\Program Files\Microsoft Office\Office16&quot;
cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99   ;（安装Office Professional 2016 vl版密钥）
cscript ospp.vbs /sethst:192.168.50.1
cscript ospp.vbs /act
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><author><name></name></author><category term="教程" /><category term="Windows" /><category term="Office" /><category term="KMS" /><summary type="html">在梅林koolshare版路由器固件上安装KMS激活工具，并激活Windows与Office</summary></entry><entry><title type="html">更新了iOS 13.1 真香</title><link href="https://koude.github.io/%E6%84%9F%E6%83%B3/2019/10/11/ios13-workflow/" rel="alternate" type="text/html" title="更新了iOS 13.1 真香" /><published>2019-10-11T00:00:00+00:00</published><updated>2019-10-11T00:00:00+00:00</updated><id>https://koude.github.io/%E6%84%9F%E6%83%B3/2019/10/11/ios13-workflow</id><content type="html" xml:base="https://koude.github.io/%E6%84%9F%E6%83%B3/2019/10/11/ios13-workflow/">&lt;blockquote&gt;
  &lt;p&gt;iPhone 7 更新了iOS 13.1.1，真香。 workflow大有潜力，值得挖掘&lt;/p&gt;
&lt;/blockquote&gt;</content><author><name></name></author><category term="感想" /><category term="iOS" /><category term="Apple" /><summary type="html">iPhone 7 更新了iOS 13.1.1，真香。 workflow大有潜力，值得挖掘</summary></entry><entry><title type="html">群晖公网访问设置</title><link href="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/06/04/synology-port-settings/" rel="alternate" type="text/html" title="群晖公网访问设置" /><published>2019-06-04T00:00:00+00:00</published><updated>2019-06-04T00:00:00+00:00</updated><id>https://koude.github.io/%E6%95%99%E7%A8%8B/2019/06/04/synology-port-settings</id><content type="html" xml:base="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/06/04/synology-port-settings/">&lt;blockquote&gt;
  &lt;p&gt;一般来说，要实现公网访问，最简单的当然是被访问设备自身有公网IP，但群晖设备基本都是连接到路由器使用，ipv4时代，IP地址资源紧缺，不可能所有设备都分配公网IP（👏马上进入ipv6时代👏）。因此，只能想办法使上级设备即路由器获取公网IP，然后通过路由器端口转发实现公网访问。（本文不涉及内网穿透内容，如需相关教程请自行搜索。）&lt;/p&gt;
&lt;/blockquote&gt;

&lt;!-- more --&gt;

&lt;h2 id=&quot;路由器获取公网ip&quot;&gt;路由器获取公网IP&lt;/h2&gt;

&lt;p&gt;目前家庭上网一般模式为 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;上网设备 - 路由器（可无） - 光猫 - 运营商&lt;/code&gt;， 其中光猫负责拨号，在这种router（路由）模式下，光猫实际上是同时完成了调制解调器和路由器的工作，获取到运营商分配的IP（不一定是公网IP）。&lt;/p&gt;

&lt;p&gt;打开 http://ip111.cn ， 最左侧显示的ip地址即为当前的公网ip，登录光猫查看与运营商分配的ip是否一致，如一致，可省略联系运营商要求公网IP的步骤。如不一致，需联系运营商要求分配公网IP。如不成功，请&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ctrl+w&lt;/code&gt; 然后搜索内网穿透等教程。&lt;/p&gt;

&lt;p&gt;光猫获取公网IP后，路由器还是内网IP。因此下一步是将光猫设置为bridge（桥接）模式，由路由器进行拨号。改桥接的步骤每种光猫大体一致，但管理员的账号密码不一样，需根据自己的设备型号自行搜索解决，也可尝试联系运营商要求改为桥接模式。&lt;/p&gt;

&lt;p&gt;改为桥接模式后，路由器填入PPPoE账号密码拨号即可获取公网IP。&lt;/p&gt;

&lt;h2 id=&quot;将路由器的地址固定下来&quot;&gt;将路由器的地址“固定”下来&lt;/h2&gt;

&lt;p&gt;为实现资源的利用最大化，运营商分配给我们的公网IP一般来说是动态变化的，我们不可能每次都通过IP进行访问，即便申请了域名解析也只能解析到一个固定IP。（DDNS）动态域名解析就是解决这个问题的。通过对设备的设置，每次IP地址变化都会通知DDNS服务器，DDNS服务器会对域名-IP地址的对应关系进行修改。通过域名访问，虽然每次IP地址不同，但访问的都是我们的路由器。&lt;/p&gt;

&lt;h4 id=&quot;注册域名&quot;&gt;注册域名&lt;/h4&gt;

&lt;p&gt;免费的域名注册商推荐 freenom，免费账号可申请最长一年期的域名，到期可免费申请延续。&lt;/p&gt;

&lt;h4 id=&quot;ddns&quot;&gt;DDNS&lt;/h4&gt;

&lt;p&gt;经测试，被腾讯收购的dnspod仍然可以免费ddns。&lt;/p&gt;

&lt;h2 id=&quot;端口转发&quot;&gt;端口转发&lt;/h2&gt;

&lt;p&gt;通过以上步骤，我们实现了理论上公网访问路由器，对于藏在路由器内的设备，通过端口转发，可以实现公网访问。&lt;/p&gt;

&lt;h4 id=&quot;群晖端口&quot;&gt;群晖端口&lt;/h4&gt;

&lt;p&gt;群晖的管理网页http默认端口为5000，https默认端口为5001，要实现外网访问，需在域名后加:5000或:5001方可。形如http://baidu.com:5000, https://baidu.com:5001 . 以上两端口可修改，但不可修改为群晖系统保留端口80、443等。修改路径为&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;控制面板 - 网络 -  DSM设置&lt;/code&gt;，如下图所示：&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/modify-nas-port.png&quot; alt=&quot;修改群晖端口&quot; /&gt;&lt;/p&gt;

&lt;h4 id=&quot;外网免端口访问&quot;&gt;外网免端口访问&lt;/h4&gt;

&lt;p&gt;群晖接路由器使用，&lt;/p&gt;

&lt;p&gt;根据个人理解， http://baidu.com 等同于 http://baidu.com:80 , https://baidu.com等同于https://baidu.com:443 .&lt;/p&gt;

&lt;h4 id=&quot;photo-station&quot;&gt;Photo Station&lt;/h4&gt;</content><author><name></name></author><category term="教程" /><category term="群晖" /><category term="NAS" /><summary type="html">一般来说，要实现公网访问，最简单的当然是被访问设备自身有公网IP，但群晖设备基本都是连接到路由器使用，ipv4时代，IP地址资源紧缺，不可能所有设备都分配公网IP（👏马上进入ipv6时代👏）。因此，只能想办法使上级设备即路由器获取公网IP，然后通过路由器端口转发实现公网访问。（本文不涉及内网穿透内容，如需相关教程请自行搜索。）</summary></entry><entry><title type="html">菜谱-烤箱版炸鸡米花</title><link href="https://koude.github.io/%E8%8F%9C%E8%B0%B1/2019/06/03/recipe-fried-chicken-by-oven/" rel="alternate" type="text/html" title="菜谱-烤箱版炸鸡米花" /><published>2019-06-03T00:00:00+00:00</published><updated>2019-06-03T00:00:00+00:00</updated><id>https://koude.github.io/%E8%8F%9C%E8%B0%B1/2019/06/03/recipe-fried-chicken-by-oven</id><content type="html" xml:base="https://koude.github.io/%E8%8F%9C%E8%B0%B1/2019/06/03/recipe-fried-chicken-by-oven/">&lt;blockquote&gt;
  &lt;p&gt;材料：鸡腿肉、鸡蛋、面包糠、盐、黑胡椒、酱油、橄榄油。&lt;/p&gt;

  &lt;p&gt;物品：烤箱、锡纸。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;!-- more --&gt;

&lt;h2 id=&quot;准备材料&quot;&gt;准备材料&lt;/h2&gt;
&lt;p&gt;鸡腿肉切丁，肯德基鸡米花大小，加入盐（多）、黑胡椒（多）、酱油（少）、橄榄油（多）腌制1小时以上。&lt;/p&gt;

&lt;h2 id=&quot;制作过程&quot;&gt;制作过程&lt;/h2&gt;
&lt;p&gt;烤箱上下管200度预热。&lt;br /&gt;
烤盘铺好锡纸。&lt;br /&gt;
腌制好的鸡腿肉打入鸡蛋，搅拌均匀。&lt;br /&gt;
鸡腿肉沾满面包糠，铺放在锡纸上。&lt;br /&gt;
入烤箱15分钟出锅。&lt;/p&gt;

&lt;h2 id=&quot;食用注意&quot;&gt;食用注意&lt;/h2&gt;
&lt;p&gt;烫 &lt;br /&gt;
蘸蕃茄酱不腻&lt;/p&gt;</content><author><name></name></author><category term="菜谱" /><summary type="html">材料：鸡腿肉、鸡蛋、面包糠、盐、黑胡椒、酱油、橄榄油。 物品：烤箱、锡纸。</summary></entry><entry><title type="html">群晖Video Station不支持eac3音频编码格式</title><link href="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/06/03/video-station-eac3-support/" rel="alternate" type="text/html" title="群晖Video Station不支持eac3音频编码格式" /><published>2019-06-03T00:00:00+00:00</published><updated>2019-06-03T00:00:00+00:00</updated><id>https://koude.github.io/%E6%95%99%E7%A8%8B/2019/06/03/video-station-eac3-support</id><content type="html" xml:base="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/06/03/video-station-eac3-support/">&lt;blockquote&gt;
  &lt;p&gt;Markdown语法&lt;/p&gt;
&lt;/blockquote&gt;

&lt;!-- more --&gt;

&lt;h2 id=&quot;卸载旧版video-station&quot;&gt;卸载旧版Video Station&lt;/h2&gt;

&lt;p&gt;注意不要勾选删除&lt;/p&gt;</content><author><name></name></author><category term="教程" /><category term="群晖" /><category term="NAS" /><summary type="html">Markdown语法</summary></entry><entry><title type="html">Mac打开软件时提示“xxx.app已损坏，打不开。你应该将它移到废纸篓”</title><link href="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/06/02/mac-app-broken/" rel="alternate" type="text/html" title="Mac打开软件时提示“xxx.app已损坏，打不开。你应该将它移到废纸篓”" /><published>2019-06-02T00:00:00+00:00</published><updated>2019-06-02T00:00:00+00:00</updated><id>https://koude.github.io/%E6%95%99%E7%A8%8B/2019/06/02/mac-app-broken</id><content type="html" xml:base="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/06/02/mac-app-broken/">&lt;blockquote&gt;
  &lt;p&gt;Mac打开软件时提示“xxx.app已损坏，打不开。你应该将它移到废纸篓” 如何解决？&lt;/p&gt;
&lt;/blockquote&gt;

&lt;!-- more --&gt;

&lt;p&gt;终端执行&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo spctl --master-disable&lt;/code&gt;，然后重新打开软件即可。&lt;/p&gt;</content><author><name></name></author><category term="教程" /><summary type="html">Mac打开软件时提示“xxx.app已损坏，打不开。你应该将它移到废纸篓” 如何解决？</summary></entry><entry><title type="html">暴风播酷云二期 黑群晖</title><link href="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/05/29/nas-j3455-test/" rel="alternate" type="text/html" title="暴风播酷云二期 黑群晖" /><published>2019-05-29T00:00:00+00:00</published><updated>2019-05-29T00:00:00+00:00</updated><id>https://koude.github.io/%E6%95%99%E7%A8%8B/2019/05/29/nas-j3455-test</id><content type="html" xml:base="https://koude.github.io/%E6%95%99%E7%A8%8B/2019/05/29/nas-j3455-test/">&lt;blockquote&gt;
  &lt;p&gt;暴风播酷云二期 安装黑群晖 全记录&lt;/p&gt;
&lt;/blockquote&gt;

&lt;!-- more --&gt;

&lt;h2 id=&quot;安装前准备&quot;&gt;安装前准备&lt;/h2&gt;
&lt;h4 id=&quot;硬件准备&quot;&gt;硬件准备&lt;/h4&gt;
&lt;p&gt;拆机，主板扣掉电池后，用螺丝刀或其他导体连接主板上放置纽扣电池的正负极造成短路放电。&lt;/p&gt;

&lt;h4 id=&quot;软件准备&quot;&gt;软件准备&lt;/h4&gt;
&lt;p&gt;下载群晖引导文件，本文中采用1.04b；
下载群晖系统文件，群晖官网即可下载，本文采用918+ 6.2.1系统文件；
准备U盘启动工具；
文本编辑工具；
有PE U盘更好。&lt;/p&gt;

&lt;h2 id=&quot;安装过程&quot;&gt;安装过程&lt;/h2&gt;
&lt;h4 id=&quot;bios设置&quot;&gt;BIOS设置&lt;/h4&gt;
&lt;p&gt;接显示器、键盘、引导U盘，开机按del进入BIOS，设置好引导顺序。关闭cpu节能选项，改为SPORT模式。风扇速度可调节。&lt;/p&gt;

&lt;p&gt;保存BIOS设置，重启&lt;/p&gt;

&lt;h4 id=&quot;安装dsmdiskstation-manager即群晖系统&quot;&gt;安装DSM（diskstation manager）即群晖系统&lt;/h4&gt;
&lt;p&gt;去掉键盘、显示器，接好路由器。
同一局域网下的电脑安装群晖助手，打开后搜索。（开机极慢，请耐心等待）
右键安装系统。安装完成后自动重启（1.04b引导文件有BUG，可能无法自动重启，可手动重启）&lt;/p&gt;

&lt;h2 id=&quot;安装-ddsm替换序列号&quot;&gt;安装 DDSM，替换序列号&lt;/h2&gt;
&lt;p&gt;PE查看主板mac地址，替换mac地址&lt;/p&gt;

&lt;h2 id=&quot;设置&quot;&gt;设置&lt;/h2&gt;
&lt;p&gt;用户组管理
用户管理
文件管理
常用套件&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://simpleyyt.github.io/jekyll-theme-next/&quot;&gt;Live Preview&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;screenshots&quot;&gt;Screenshots&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Desktop
&lt;img src=&quot;https://iissnan.com/nexus/next/desktop-preview.png&quot; alt=&quot;Desktop Preview&quot; /&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Sidebar&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;https://iissnan.com/nexus/next/desktop-sidebar-preview.png&quot; alt=&quot;Desktop Sidebar Preview&quot; /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Sidebar (Post details page)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;https://iissnan.com/nexus/next/desktop-sidebar-toc.png&quot; alt=&quot;Desktop Sidebar Preview&quot; /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Mobile&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;https://iissnan.com/nexus/next/mobile.png&quot; alt=&quot;Mobile Preview&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;installation&quot;&gt;Installation&lt;/h2&gt;

&lt;p&gt;Check whether you have &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ruby 2.1.0&lt;/code&gt; or higher installed:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ruby &lt;span class=&quot;nt&quot;&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Install &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Bundler&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;gem &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;bundler
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Clone Jacman theme:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git clone https://github.com/Simpleyyt/jekyll-theme-next.git
&lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;jekyll-theme-next
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Install Jekyll and other dependencies from the GitHub Pages gem:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;bundle &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Run your Jekyll site locally:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;jekyll server
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;More Details：&lt;a href=&quot;https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/&quot;&gt;Setting up your GitHub Pages site locally with Jekyll&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;features&quot;&gt;Features&lt;/h2&gt;

&lt;h3 id=&quot;multiple-languages-support-including-english--russian--french--german--simplified-chinese--traditional-chinese&quot;&gt;Multiple languages support, including: English / Russian / French / German / Simplified Chinese / Traditional Chinese.&lt;/h3&gt;

&lt;p&gt;Default language is English.&lt;/p&gt;

&lt;div class=&quot;language-yml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;language&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;en&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# language: zh-Hans&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# language: fr-FR&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# language: zh-hk&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# language: zh-tw&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# language: ru&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# language: de&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Set &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;language&lt;/code&gt; field as following in site &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_config.yml&lt;/code&gt; to change to Chinese.&lt;/p&gt;

&lt;div class=&quot;language-yml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;language&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;zh-Hans&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;comment-support&quot;&gt;Comment support.&lt;/h3&gt;

&lt;p&gt;NexT has native support for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DuoShuo&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Disqus&lt;/code&gt; comment systems.&lt;/p&gt;

&lt;p&gt;Add the following snippets to your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_config.yml&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-yml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;duoshuo&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;enable&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;true&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;shortname&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;your-duoshuo-shortname&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;OR&lt;/p&gt;

&lt;div class=&quot;language-yml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;disqus_shortname&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;your-disqus-shortname&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;social-media&quot;&gt;Social Media&lt;/h3&gt;

&lt;p&gt;NexT can automatically add links to your Social Media accounts:&lt;/p&gt;

&lt;div class=&quot;language-yml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;social&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;GitHub&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;your-github-url&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;Twitter&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;your-twitter-url&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;Weibo&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;your-weibo-url&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;DouBan&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;your-douban-url&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;ZhiHu&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;your-zhihu-url&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;feed-link&quot;&gt;Feed link.&lt;/h3&gt;

&lt;blockquote&gt;
  &lt;p&gt;Show a feed link.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Set &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rss&lt;/code&gt; field in theme’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_config.yml&lt;/code&gt;, as the following value:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rss: false&lt;/code&gt; will totally disable feed link.&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rss:&lt;/code&gt; use sites’ feed link. This is the default option.&lt;/p&gt;

    &lt;p&gt;Follow the installation instruction in the plugin’s README. After the configuration is done for this plugin, the feed link is ready too.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rss: https://your-feed-url&lt;/code&gt; set specific feed link.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;up-to-5-code-highlight-themes-built-in&quot;&gt;Up to 5 code highlight themes built-in.&lt;/h3&gt;

&lt;p&gt;NexT uses &lt;a href=&quot;https://github.com/chriskempson/tomorrow-theme&quot;&gt;Tomorrow Theme&lt;/a&gt; with 5 themes for you to choose from.
Next use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;normal&lt;/code&gt; by default. Have a preview about &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;normal&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;night&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://iissnan.com/nexus/next/tomorrow-normal.png&quot; alt=&quot;Tomorrow Normal Preview&quot; /&gt;
&lt;img src=&quot;https://iissnan.com/nexus/next/tomorrow-night.png&quot; alt=&quot;Tomorrow Night Preview&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Head over to &lt;a href=&quot;https://github.com/chriskempson/tomorrow-theme&quot;&gt;Tomorrow Theme&lt;/a&gt; for more details.&lt;/p&gt;

&lt;h2 id=&quot;configuration&quot;&gt;Configuration&lt;/h2&gt;

&lt;p&gt;NexT comes with few configurations.&lt;/p&gt;

&lt;div class=&quot;language-yml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
&lt;span class=&quot;c1&quot;&gt;# Menu configuration.&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;menu&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;home&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;/&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;archives&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;/archives&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Favicon&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;favicon&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;/favicon.ico&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Avatar (put the image into next/source/images/)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# can be any image format supported by web browsers (JPEG,PNG,GIF,SVG,..)&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;avatar&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;/default_avatar.png&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Code highlight theme&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# available: normal | night | night eighties | night blue | night bright&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;highlight_theme&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;normal&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Fancybox for image gallery&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;fancybox&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;true&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Specify the date when the site was setup&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;since&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;2013&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;browser-support&quot;&gt;Browser support&lt;/h2&gt;

&lt;p&gt;&lt;img src=&quot;https://iissnan.com/nexus/next/browser-support.png&quot; alt=&quot;Browser support&quot; /&gt;&lt;/p&gt;</content><author><name></name></author><category term="教程" /><category term="群晖 NAS" /><summary type="html">暴风播酷云二期 安装黑群晖 全记录</summary></entry></feed>