<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>raspberry on Christian Knedel</title>
    <link>https://www.christian-knedel.de/zh/tags/raspberry/</link>
    <description>Recent content in raspberry on Christian Knedel</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-cn</language>
    <lastBuildDate>Sat, 26 Jun 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.christian-knedel.de/zh/tags/raspberry/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>容器的伟大之处：Kubernetes仪表板</title>
      <link>https://www.christian-knedel.de/zh/post/2021/june/20210726-kubernetes-board/</link>
      <pubDate>Sat, 26 Jun 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/zh/post/2021/june/20210726-kubernetes-board/</guid>
      <description>在容器的伟大之处：Kubenetes集群和NFS存储教程中创建了一个Kubernetes集群后，我想安装一个Kubernetes仪表板。    这个命令包含我的项目所需要的一切。 x  &amp;ndash;  +   Terminal   $ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml   由于相关服务不能从外部访问，&amp;quot;.spec.type &amp;ldquo;节点仍然必须被改变。 x  &amp;ndash;  +   Terminal   $ kubectl -n kube-system edit service kubernetes-dashboard --namespace=kubernetes-dashboard   节点&amp;rdquo;.spec.type &amp;ldquo;必须是 &amp;ldquo;NodePort&amp;rdquo;。    之后，仪表盘已经可以访问。      为了获得访问令牌，人们必须搜索部署控制器的密钥。 x  &amp;ndash;  +   Terminal   $ kubectl -n kube-system get secret | grep deployment-controller-token   然后你就可以显示和复制该令牌。 x  &amp;ndash;  +   Terminal   $ kubectl -n kube-system describe secret deployment-controller-token-g7qdm</description>
    </item>
    
    <item>
      <title>用Ansible远程控制PIs</title>
      <link>https://www.christian-knedel.de/zh/post/2021/june/20210725-ansible/</link>
      <pubDate>Fri, 25 Jun 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/zh/post/2021/june/20210725-ansible/</guid>
      <description>在容器的伟大之处：Kubenetes集群和NFS存储教程中创建了一个Kubernetes集群后，我现在希望能够通过Ansible解决这些计算机。    为此需要一个新的钥匙。 x  &amp;ndash;  +   Terminal   $ ssh-keygen -b 4096   在所有服务器（服务器1、服务器2和服务器3）的&amp;quot;/home/pi/.ssh/authorised_keys &amp;ldquo;文件中添加了新的公钥。此外，Ansible必须安装这个包。 x  &amp;ndash;  +   Terminal   $ sudo apt-get install -y ansible   之后，必须在&amp;rdquo;/etc/ansible/hosts &amp;ldquo;文件中输入Raspberrys。
[raspi-kube.clust] ip-server-1:ssh-port ansible_ssh_user=username ip-server-2:ssh-port ansible_ssh_user=username ip-server-3:ssh-port ansible_ssh_user=username 现在可以按以下方式检查配置。 x  &amp;ndash;  +   Terminal   $ ansible all -m ping --ssh-common-args=&amp;#39;-o StrictHostKeyChecking=no&amp;#39;   见。      现在你可以执行playbooks或命令，例如重新启动所有服务器。 x  &amp;ndash;  +   Terminal   $ ansible raspi -m shell -a &amp;#39;sudo /sbin/reboot&amp;#39;</description>
    </item>
    
    <item>
      <title>容器的伟大之处：Kubenetes集群和NFS存储</title>
      <link>https://www.christian-knedel.de/zh/post/2021/june/20210620-pi-kubenetes-cloud/</link>
      <pubDate>Sun, 20 Jun 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/zh/post/2021/june/20210620-pi-kubenetes-cloud/</guid>
      <description>今天我正在安装一个新的Kubenetes集群，有很多事情要做。    我已经为它订购了这些部件。
 1x WDBU6Y0050BBK WD Elements portable 5TB: https://www.reichelt.de/wd-elements-portable-5tb-wdbu6y0050bbk-p270625.html? 3x风扇，双：https://www.reichelt.de/raspberry-pi-luefter-dual-rpi-fan-dual-p223618.html? 1x Raspberry 4 / 4GB Ram: https://www.reichelt.de/raspberry-pi-4-b-4x-1-5-ghz-4-gb-ram-wlan-bt-rasp-pi-4-b-4gb-p259920.html? 2xRaspberry 4 / 8GB Ram: https://www.reichelt.de/raspberry-pi-4-b-4x-1-5-ghz-8-gb-ram-wlan-bt-rasp-pi-4-b-8gb-p276923.html? 3个电源单元: https://www.reichelt.de/raspberry-pi-netzteil-5-1-v-3-0-a-usb-type-c-eu-stecker-s-rpi-ps-15w-bk-eu-p260010.html 1x 机架式：https://amzn.to/3H8vOg7 1x 600件杜邦插头套件：https://amzn.to/3kcfYqQ 1x绿色LED，带串联电阻：https://amzn.to/3EQgXVp 1x蓝色LED，带串联电阻：https://amzn.to/31ChYSO 10x Marquardt 203.007.013 Blanking piece 黑色: https://www.voelkner.de/products/215024/Marquardt-203.007.013-Blindstueck-Schwarz.html 1个灯座：https://amzn.to/3H0UZkG  我们走吧!    我在Raspian Lite安装的基础上创建了自己的安装镜像。我的用户/公钥已经存储在这个镜像中，&amp;quot;/boot/config.txt &amp;ldquo;文件已经为我的LED做了调整。
# meine Server brauchen kein HDMI, WLAN und Bluetooth dtoverlay=disable-bt dtoverlay=disable-wifi disable_splash=1 hdmi_blanking=1 hdmi_ignore_hotplug=1 hdmi_ignore_composite=1 # Status-LEDs an GPIO weiterleiten dtoverlay=act-led,gpio=21 dtparam=act_led_trigger=cpu0 服务器1 - 安装磁盘 首先，我在 &amp;ldquo;服务器1 &amp;ldquo;上安装一个NFS服务。这个存储以后可以用于我的容器集群。我将USB硬盘连接到 &amp;ldquo;服务器1&amp;rdquo;，并在这些说明的帮助下格式化了EXT4：https://homecircuits.</description>
    </item>
    
    <item>
      <title>树莓派：PI CPU的无热性</title>
      <link>https://www.christian-knedel.de/zh/post/2020/february/20200214-rpi-cpu-temp/</link>
      <pubDate>Fri, 14 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/zh/post/2020/february/20200214-rpi-cpu-temp/</guid>
      <description>如果你想在某个温度下关闭树莓，那么你就来对地方了。我有一个脚本，通过Crontab检查CPU温度。
#!/bin/sh # This script reads the Broadcom SoC temperature value and shuts down if it # exceeds a particular value. # 80ºC is the maximum allowed for a Raspberry Pi. # Get the reading from the sensor and strip the non-number parts SENSOR=&amp;quot;`/opt/vc/bin/vcgencmd measure_temp | cut -d &amp;quot;=&amp;quot; -f2 | cut -d &amp;quot;&#39;&amp;quot; -f1`&amp;quot; # -gt only deals with whole numbers, so round it. TEMP=&amp;quot;`/usr/bin/printf &amp;quot;%.</description>
    </item>
    
    <item>
      <title>使用RaspberryPiZeroW和LibreElec的智能电视</title>
      <link>https://www.christian-knedel.de/zh/post/2019/july/20190717-libreelec/</link>
      <pubDate>Wed, 17 Jul 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/zh/post/2019/july/20190717-libreelec/</guid>
      <description>智能电视可能是定时炸弹。通常情况下，电视操作系统含有严重的漏洞，或者没有保持最新状态。一个好的解决方案可以是一个独立的MediaPC操作系统。LibreElec在最弱的树莓上运行，可以用电视的遥控器控制。LibreElec比SmartTv操作系统更容易定制，并提供各种应用/模块。你只需要一个RaspberryZeroW和一张空白SD卡。
步骤1。 从https://www.raspberrypi.org/downloads/noobs/ 下载Noobs安装程序。
第2步。 在空的SD卡上解压这个压缩文件。 &amp;ldquo;    &amp;rdquo; 完成了!现在你可以把RaspberryPiZero连接到电视上。然后你会看到安装菜单。 &amp;ldquo;    &amp;rdquo; 现在请选择 &amp;ldquo;LibreElec RPI &amp;ldquo;并点击 &amp;ldquo;安装&amp;rdquo;。 &amp;ldquo;    &amp;rdquo; 在这之后，安装完成并可启动 &amp;ldquo;    &amp;rdquo; 现在你可以将这个MediaPc连接到外部资源，如NAS或安装Youtube等应用程序。玩得开心!
&amp;ldquo;    &amp;rdquo; 正如已经写过的，你也可以通过CEC控制器使用你的电视遥控器。</description>
    </item>
    
    <item>
      <title>阿特拉斯公司的酷事：为我的竹子监视器做宣传</title>
      <link>https://www.christian-knedel.de/zh/post/2021/april/20210402-bamboo-monitor/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/zh/post/2021/april/20210402-bamboo-monitor/</guid>
      <description>如何为Bamboo、Jenkins或Gitlab创建一个构建监视器？我今晚就能想出办法来!我已经写过一个类似的Gitlab问题板教程。    本教程的基础是Raspberry Imager和 &amp;ldquo;Raspberry Pi OS Lite &amp;ldquo;操作系统。安装完操作系统后，可以将SD卡插入树莓中。在我的例子中，这是一个Raspberry Pi Zero。          第1步：安装火柴盒/窗口管理器 要在信息亭模式下操作树莓，需要一个窗口管理器和一个浏览器。这些都是用以下命令安装的。 x  &amp;ndash;  +   Terminal   $ sudo apt-get install xorg nodm matchbox-window-manager uzbl xinit unclutter vim  
第2步：我创建一个仪表板用户 通过以下命令，我创建了一个名为 &amp;ldquo;dashboard &amp;ldquo;的新用户。 x  &amp;ndash;  +   Terminal   $ sudo adduser dashboard  
第3步：配置xServer和窗口管理器 以下所有步骤必须在 &amp;ldquo;仪表板 &amp;ldquo;用户会话中进行。我改用 &amp;ldquo;su &amp;ldquo;的会话。 x  &amp;ndash;  +   Terminal   $ sudo su dashboard</description>
    </item>
    
  </channel>
</rss>
