<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Raspberry-Pi on Time Friend</title><link>https://time-friend.com/en/tags/raspberry-pi/</link><description>Recent content in Raspberry-Pi on Time Friend</description><generator>Hugo</generator><language>en-GB</language><lastBuildDate>Wed, 29 Jul 2026 15:15:07 +0800</lastBuildDate><atom:link href="https://time-friend.com/en/tags/raspberry-pi/index.xml" rel="self" type="application/rss+xml"/><item><title>Raspberry Auto Time Calibration</title><link>https://time-friend.com/en/archive/raspberry-auto-time-calibration/</link><pubDate>Fri, 20 Jan 2017 22:30:05 +0000</pubDate><guid>https://time-friend.com/en/archive/raspberry-auto-time-calibration/</guid><description>&lt;p&gt;Should be Raspberry Pi system version issue, many methods online to enable Network Time Protocol (auto time calibration) have failed. For a beginner like me, tried many methods, none succeeded.&lt;/p&gt;
&lt;p&gt;Today let&amp;rsquo;s talk about the correct way to enable;&lt;/p&gt;
&lt;p&gt;Raspberry Pi doesn&amp;rsquo;t enable auto time calibration by default. Need to enable NTP (Network Time Protocol) to ensure time accuracy as much as possible.&lt;/p&gt;
&lt;h3 id="enable-ntp"&gt;Enable NTP:&lt;/h3&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;sudo timedatectl set-ntp true
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Next let&amp;rsquo;s see if time is correct:&lt;/p&gt;</description></item><item><title>Raspberry Startup pm2</title><link>https://time-friend.com/en/archive/raspberry-startup-pm2/</link><pubDate>Thu, 12 Jan 2017 20:32:05 +0000</pubDate><guid>https://time-friend.com/en/archive/raspberry-startup-pm2/</guid><description>&lt;p&gt;My Raspberry Pi journey can be described as bumpy, researched for over ten hours before installing Node.js.&lt;/p&gt;
&lt;p&gt;Next wanted to do startup pm2, struggled for another ten hours. Methods online because couldn&amp;rsquo;t keep up with version iterations updated, causing various failures.&lt;/p&gt;
&lt;p&gt;Next, introduce method to make pm2 startup on Raspberry Pi&lt;/p&gt;
&lt;p&gt;First download pm2&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;cnpm install pm2 -g
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Run code that needs to run&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;pm2 start app.js
&lt;/code&gt;&lt;/pre&gt;&lt;!-- more --&gt;
&lt;p&gt;Save pm2 running state at this time, so after startup, pm2 can rerun app.js&lt;/p&gt;</description></item><item><title>Raspberry Install Node.js</title><link>https://time-friend.com/en/archive/raspberry-install-nodejs/</link><pubDate>Wed, 11 Jan 2017 22:30:05 +0000</pubDate><guid>https://time-friend.com/en/archive/raspberry-install-nodejs/</guid><description>&lt;p&gt;My installed Raspberry Pi system comes with Node.js, but version is very low. And no npm.
To install new version nodejs, I struggled for over ten hours, various methods online failed.&lt;/p&gt;
&lt;p&gt;Finally installed successfully, next I&amp;rsquo;ll introduce my installation method.&lt;/p&gt;
&lt;h3 id="download-nodejs"&gt;Download Node.js&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://nodejs.org/en/download/"&gt;Node.js Download Page&lt;/a&gt;&lt;/p&gt;
&lt;!-- more --&gt;
&lt;p&gt;We choose Linux Binaries (ARM) ARMv7 version, copy download link&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;wget https://nodejs.org/dist/v6.9.5/node-v6.9.5-linux-armv7l.tar.xz
tar -xzf node-v6.9.5-linux-armv7l.tar.xz // Extract installation package
sudo mv node-v6.9.5-linux-armv7l /usr/local/bin/node/
sudo ln /usr/local/bin/node/bin/node /usr/local/bin/node
sudo ln -s /usr/local/bin/node/lib/node_modules/npm/bin/npm /usr/local/bin/npm
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Alright, at this time we enter in any directory:&lt;/p&gt;</description></item><item><title>Raspberry External Network Access</title><link>https://time-friend.com/en/archive/raspberry-external-network-access/</link><pubDate>Tue, 10 Jan 2017 20:53:05 +0000</pubDate><guid>https://time-friend.com/en/archive/raspberry-external-network-access/</guid><description>&lt;p&gt;I want to operate my home Raspberry Pi when at company.
But home ip address is dynamic, what should I do?&lt;/p&gt;
&lt;p&gt;After various online searches, using router port forwarding or DMZ, can achieve external network access to internal network.&lt;/p&gt;
&lt;p&gt;But after I set it up, didn&amp;rsquo;t succeed. Struggled for a long time, didn&amp;rsquo;t find the reason. Finally ended in failure. (I suspect I bought a fake router).&lt;/p&gt;
&lt;p&gt;After trying various solutions, using Peanut Shell can achieve external network access to internal network, Peanut Shell&amp;rsquo;s term is:&lt;/p&gt;</description></item><item><title>Raspberry Operate via SSH</title><link>https://time-friend.com/en/archive/raspberry-operate-via-ssh/</link><pubDate>Tue, 10 Jan 2017 17:53:05 +0000</pubDate><guid>https://time-friend.com/en/archive/raspberry-operate-via-ssh/</guid><description>&lt;p&gt;After various searches, various struggles, finally installed operating system for my little Raspberry Pi.
But, this PIXEL OS graphical interface, various inexplicable bugs that won&amp;rsquo;t respond.
After struggling for several hours, made me very frustrated.&lt;/p&gt;
&lt;p&gt;Because just started with Linux, many problems need online searches, switching back and forth between PC and Raspberry Pi is really uncomfortable.&lt;/p&gt;
&lt;p&gt;Below introduces method to control Raspberry Pi via SSH from another computer. To solve the above frustrating problems.&lt;/p&gt;</description></item><item><title>Raspberry System Installation</title><link>https://time-friend.com/en/archive/raspberry-system-installation/</link><pubDate>Tue, 10 Jan 2017 12:43:05 +0000</pubDate><guid>https://time-friend.com/en/archive/raspberry-system-installation/</guid><description>&lt;p&gt;New Year passed, Taobao merchants finally started working and shipping.
Before New Year, wanted to buy a Raspberry Pi to play with. But my luck was bad, merchants were already preparing to go home for New Year.&lt;/p&gt;
&lt;p&gt;Yesterday ordered on Taobao. Got it today. I bought Raspberry-Pi3 Modle B.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://static.alili.tech/images/pi-2.jpg" alt=""&gt;&lt;/p&gt;
&lt;!-- more --&gt;
&lt;p&gt;Raspberry Pi doesn&amp;rsquo;t come with hard drive, so if you want to install system, need to prepare TF card or USB drive yourself.&lt;/p&gt;</description></item></channel></rss>