<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>pi on Christian Knedel</title>
    <link>https://www.christian-knedel.de/zh/tags/pi/</link>
    <description>Recent content in pi on Christian Knedel</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-cn</language>
    <lastBuildDate>Fri, 25 Jun 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.christian-knedel.de/zh/tags/pi/index.xml" rel="self" type="application/rss+xml" />
    <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>PIFM：104.6全球调频电台</title>
      <link>https://www.christian-knedel.de/zh/post/2019/july/20190717-rpi-pifm/</link>
      <pubDate>Wed, 17 Jul 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/zh/post/2019/july/20190717-rpi-pifm/</guid>
      <description>如果你是104.6 RTL的粉丝，不想一天都没有柏林的热门电台，那么你就来对地方了。你需要一台名为树莓的单板计算机，以及GPIO端口4上的一根电缆作为天线。
需要以下软件包 x  &amp;ndash;  +   Terminal   $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get install sox libsox-fmt-all   我创建一个下载文件夹并下载PIFM脚本。 x  &amp;ndash;  +   Terminal   $ mkdir /home/pi/installs $ cd /home/pi/installs/ $ wget http://omattos.com/pifm.tar.gz $ tar vfzx pifm.tar.gz  
pifm脚本 我创建了一个新文件&amp;quot;$vim /home/pi/radio-streamer.sh&amp;quot;，内容如下。
#!/bin/bash pkill sox pkill pifm sleep 1 sox -v .9 -t mp3 http://stream.</description>
    </item>
    
  </channel>
</rss>
