{"id":525,"date":"2023-09-03T10:00:14","date_gmt":"2023-09-03T02:00:14","guid":{"rendered":"http:s\/\/www.stargazer.org.cn\/?p=525"},"modified":"2026-01-20T14:24:10","modified_gmt":"2026-01-20T06:24:10","slug":"%e6%b5%8b%e8%af%95","status":"publish","type":"post","link":"http:\/\/stargazer.org.cn\/blog\/?p=525","title":{"rendered":"\u6811\u8393\u6d3e\u5168\u5929\u9c7c\u773c\u76f8\u673a\u8bbe\u8ba1"},"content":{"rendered":"<p>https:\/\/www.instructables.com\/Raspberry-Pi-All-Sky-Camera\/<\/p>\n<p>https:\/\/github.com\/thomasjacquin\/allsky<\/p>\n<p><strong>1)\u00a0 \u70e7\u5f55\u955c\u50cf\uff1a<\/strong><\/p>\n<p>\u5148\u4ece\u5b98\u7f51\u4e0a\u4e0b\u8f7dlite\u7248\u672c\uff0chttps:\/\/www.raspberrypi.com\/software\/operating-systems\/#raspberry-pi-os-32-bit<\/p>\n<p>\u70e7\u5f55\u5668\uff1ahttps:\/\/www.raspberrypi.com\/software\/<\/p>\n<p><img data-dominant-color=\"d78fa2\" data-has-transparency=\"false\" style=\"--dominant-color: #d78fa2;\" loading=\"lazy\" class=\"not-transparent alignnone wp-image-1581 \" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted.png\" width=\"605\" height=\"398\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted.png 1386w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-300x197.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-1024x673.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-768x505.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-220x145.png 220w\" sizes=\"(max-width: 605px) 100vw, 605px\" \/><\/p>\n<p>\u6ce8\u610f\u5148\u8bbe\u7f6e\uff1a<\/p>\n<p><img data-dominant-color=\"f8f4f5\" data-has-transparency=\"false\" style=\"--dominant-color: #f8f4f5;\" loading=\"lazy\" class=\"not-transparent alignnone wp-image-1583 \" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-2.png\" width=\"515\" height=\"364\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-2.png 1044w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-2-300x212.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-2-1024x723.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-2-768x542.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-2-212x150.png 212w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/p>\n<p>\u8fc7\u4e00\u4f1a\u5c31\u70e7\u5f55\u6210\u529f\u3002<\/p>\n<p><img data-dominant-color=\"e0b6c1\" data-has-transparency=\"false\" style=\"--dominant-color: #e0b6c1;\" loading=\"lazy\" class=\"not-transparent alignnone wp-image-1582 \" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-1.png\" width=\"534\" height=\"351\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-1.png 1386w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-1-300x197.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-1-1024x673.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-1-768x505.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-1-220x145.png 220w\" sizes=\"(max-width: 534px) 100vw, 534px\" \/><\/p>\n<p><strong>2) \u66f4\u65b0\u7cfb\u7edf<\/strong><\/p>\n<p>sudo apt-get update --allow-releaseinfo-change<br \/>\nsudo apt update<br \/>\nsudo apt upgrade<\/p>\n<p><strong>3\uff09\u589e\u52a0\u6e05\u534e\u7684\u955c\u50cf\u5b89\u88c5\u8f6f\u4ef6<\/strong><\/p>\n<p>sudo nano \/etc\/apt\/sources.list<br \/>\ndeb [arch=armhf] http:\/\/mirrors.tuna.tsinghua.edu.cn\/raspbian\/raspbian\/ bullseye main non-free contrib rpi<br \/>\ndeb-src http:\/\/mirrors.tuna.tsinghua.edu.cn\/raspbian\/raspbian\/ bullseye main non-free contrib rpi<br \/>\nsudo apt-get update<\/p>\n<p>sudo apt update<\/p>\n<p><strong>4) \u5b89\u88c5tailscale<\/strong><\/p>\n<p>sudo apt-get install apt-transport-https<\/p>\n<p>curl -fsSL https:\/\/pkgs.tailscale.com\/stable\/raspbian\/bullseye.noarmor.gpg | sudo tee \/usr\/share\/keyrings\/tailscale-archive-keyring.gpg &gt; \/dev\/null<br \/>\ncurl -fsSL https:\/\/pkgs.tailscale.com\/stable\/raspbian\/bullseye.tailscale-keyring.list | sudo tee \/etc\/apt\/sources.list.d\/tailscale.list<\/p>\n<p>sudo apt-get update<br \/>\nsudo apt-get install tailscale<\/p>\n<p>sudo tailscale up --authkey=XXX<br \/>\nsudo tailscale up --exit-node=XXX<br \/>\n\u91c7\u7528exit node \u4e4b\u540e\u5fc5\u987b\u91c7\u7528tailscale\u7684\u5730\u5740\u8bbf\u95ee<\/p>\n<p>\u9000\u51faexit Node\uff1a<\/p>\n<p>sudo tailscale up --exit-node=<\/p>\n<p>\u505c\u6b62\u670d\u52a1<br \/>\nsudo tailscale down --accept-risk=lose-ssh<br \/>\nsudo systemctl stop tailscaled<\/p>\n<p>\u5176\u4ed6\u547d\u4ee4<br \/>\nsudo systemctl start tailscaled<br \/>\nsudo systemctl restart tailscaled<\/p>\n<p>\u4f7f\u7528\u955c\u50cf\u5b89\u88c5\u540e\uff0c\u4f1a\u51fa\u73b0Duplicate node key\uff0c<\/p>\n<p>\u5148\u5220\u9664tailscale<\/p>\n<p>sudo apt-get remove tailscale<\/p>\n<p>\u5220\u9664\u72b6\u6001\u6587\u4ef6\u83b7\u5f97\u65b0IP<\/p>\n<p>sudo rm \/var\/lib\/tailscale\/tailscaled.state<\/p>\n<p>\u91cd\u65b0\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<p>\u6ce8\u610f:<\/p>\n<p>\u5728\u540e\u53f0\u5c06\u6bcf\u4e2a\u4e3b\u673a\u8bbe\u7f6e\u4e3aExpiry disabled\uff0c\u8fd9\u6837\u4e0d\u9700\u8981\u8fc7\u6bb5\u65f6\u95f4\u8981\u66f4\u65b0\u3002<\/p>\n<p><strong>5)\u5b89\u88c5git<\/strong><\/p>\n<p>sudo apt-get install git<\/p>\n<p><strong>6) \u5b89\u88c5allsky\u8f6f\u4ef6<\/strong><\/p>\n<p>tailscale\u9700\u8981exit node\u6a21\u5f0f\uff0c\u4e0b\u8f7d\uff1a<\/p>\n<p>git clone --recursive https:\/\/github.com\/thomasjacquin\/allsky.git<\/p>\n<p>\u5e26\u5bbd\u76d1\u63a7\u8f6f\u4ef6bmon\uff1a<\/p>\n<p>sudo apt install bmon<\/p>\n<p>\u5b89\u88c5\u65f6\u9700\u8981\u9000\u51faexit node\u6a21\u5f0f\uff1a<\/p>\n<p>sudo tailscale up --exit-node=<\/p>\n<p>\u505c\u6b62\u670d\u52a1<br \/>\nsudo tailscale down --accept-risk=lose-ssh<br \/>\nsudo systemctl stop tailscaled<\/p>\n<p>\u5b89\u88c5<\/p>\n<p>cd allsky<\/p>\n<p>.\/install.sh<\/p>\n<p>\u5b89\u88c5\u5230numpy\u65f6\uff0c\u624b\u52a8ctrl+C\u7ec8\u6b62\uff0c\u624b\u52a8\u5b89\u88c5\u5bf9\u5e94\u7684\u4f9d\u8d56\u5e93<\/p>\n<p><img data-dominant-color=\"020500\" data-has-transparency=\"false\" style=\"--dominant-color: #020500;\" loading=\"lazy\" width=\"1652\" height=\"979\" class=\"not-transparent alignnone wp-image-1591 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-3.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-3.png 1652w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-3-300x178.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-3-1024x607.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-3-768x455.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-3-1536x910.png 1536w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-3-220x130.png 220w\" sizes=\"(max-width: 1652px) 100vw, 1652px\" \/><\/p>\n<p>\u5982\u679c\u5b89\u88c5\u51fa\u73b0Hash\u9519\u8bef\uff0c\u5219\u6e05\u9664\u7f13\u5b58\uff1a<\/p>\n<p>rm -rf ~\/.cache\/pip\/http<\/p>\n<p>sudo pip install numpy==1.24 -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<br \/>\nsudo pip install opencv-python==4.5.5.64 -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<br \/>\npip install Pillow<br \/>\npip install pyephem<br \/>\npip install skyfield<br \/>\npip install astral<br \/>\npip install pytz<\/p>\n<p>pip install scipy==1.8.0<br \/>\npip install scikit-image==0.19.3<br \/>\npip install paho-mqtt<br \/>\npip install astropy<br \/>\npip install photutils<\/p>\n<p>pip install suncalc<br \/>\npip install Adafruit-Blinka<br \/>\npip install vcgencmd<\/p>\n<p>\u5982\u679c\u51fa\u9519\uff0c\u5148\u6e05\u9664\u7f13\u5b58\uff0c\u7136\u540ewget\u6307\u5b9a\u7684whl\u6587\u4ef6\uff0c\u8fdb\u884c\u672c\u5730\u5b89\u88c5<\/p>\n<p>pip install xxx.whl<\/p>\n<p>\u7136\u540e\u7ee7\u7eed\u6267\u884c.\/install.sh<\/p>\n<p>\u5f00\u542f\u4e0a\u4f20\u4e4b\u524d\uff0c\u5728\u6811\u8393\u6d3e\u91c7\u7528ssh\u547d\u4ee4\u8fde\u63a5\u7f51\u9875\u670d\u52a1\u5668\uff0c\u51fa\u73b0\u63d0\u793a\u540e\uff0c\u9009\u62e9yes\uff0c\u767b\u5f55\u540e\u9000\u51fa\u5373\u53ef\u3002<\/p>\n<p>sudo ssh root@stargazer.org.cn -p 22<\/p>\n<p>\u8bbe\u7f6eftp-setting.sh<\/p>\n<p>\u8bbe\u7f6econfigure.sh<\/p>\n<p>debug\u64cd\u4f5c<br \/>\nsudo systemctl stop allsky # Stop the allsky service<br \/>\nsudo truncate -s 0 \/var\/log\/allsky.log # clears out log file<br \/>\n# Do NOT restart the service yet<br \/>\n\u67e5\u770b\u65e5\u5fd7<br \/>\nsudo cat \/var\/log\/allsky.log<\/p>\n<p>\u5f00\u5173\u811a\u672c<br \/>\n#! \/usr\/bin\/python3<\/p>\n<p>chmod +x poff.py<\/p>\n<p>\/usr\/bin\/python3^M: bad interpreter: No such file or directory<br \/>\n\u683c\u5f0f\u8f6c\u6362: dos2unix<\/p>\n<p>\u5b89\u88c5\u5176\u4ed6\u6a21\u5757\uff08\u53ef\u9009\uff09<br \/>\ngit clone --recursive https:\/\/github.com\/Alex-developer\/allsky-modules.git<\/p>\n<p>chmod +x install.sh<\/p>\n<p>.\/install.sh<\/p>\n<p>\u7528\u7a7a\u683c\u5168\u9009\u4e2d\u6a21\u5757\u5b89\u88c5<\/p>\n<p>\u91cd\u542f\u547d\u4ee4<br \/>\nsudo shutdown -r now<\/p>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u6bd4reboot\u597d\uff0c\u8f6f\u91cd\u542f\u3002<\/p>\n<p>\u5173\u673a\u547d\u4ee4<br \/>\nsudo shutdown -h now<\/p>\n<p><strong>7) \u6811\u8393\u6d3e\u8fde\u63a5\u591a\u4e2awifi, lite\u7248\u4e0d\u652f\u6301priority<\/strong><br \/>\nsudo -i<br \/>\nsudo nano \/etc\/wpa_supplicant\/wpa_supplicant.conf<\/p>\n<p>\u91cd\u542fwifi<br \/>\n<del>sudo ip link set wlan0 down<\/del><br \/>\n<del>sudo ip link set wlan0 up<\/del><\/p>\n<p>\u4e0a\u8ff0\u547d\u4ee4\u867d\u7136\u80fd\u591f\u83b7\u53d6IP\uff0c\u4f46\u662f\u65e0\u6cd5\u8fdb\u884cDNS\u89e3\u6790\uff0c\u5fc5\u987breboot\u91cd\u542f\u7cfb\u7edf\u624d\u884c\u3002<\/p>\n<p>network={<br \/>\nssid=\"PrivateNet\"<br \/>\npsk=\"19780317\"<br \/>\n}<br \/>\nnetwork={<br \/>\nssid=\"NAAA-XYW\"<br \/>\npsk=\"20151010\"<br \/>\n}<\/p>\n<p>\u4e5f\u53ef\u4ee5\u7535\u8111USB\u8fde\u63a5iphone\u624b\u673a\uff0c\u5b89\u88c5itune\u91cc\u9762\u7684AppleMobileDeviceSupport64\uff0c\u5f00\u542f\u84dd\u7259\u548cUSB\u70ed\u70b9\u5373\u53ef\u3002<\/p>\n<p>Win10\u4e0b\u9762\u5f00\u542f\u70ed\u70b9\uff0c\u628aiphone\u624b\u673a\u5171\u4eab\u4e0a\u7f51\u5373\u53ef\u3002<\/p>\n<p>\u8fd9\u6837\u7684\u597d\u5904\u662f\uff1aPC\u70ed\u70b9\u7684\u4fe1\u53f7\u6bd4\u624b\u673a\u70ed\u70b9\u597d\u5f97\u591a\uff0c\u800c\u4e14\u53ef\u4ee5\u6307\u5b9a5G\u9891\u6bb5\uff0c\u5b9e\u6d4b\u6548\u679c\u975e\u5e38\u597d\u3002\u53ef\u4ee5\u76d1\u63a7\u5230\u6811\u8393\u6d3e\u7684ip\u5730\u5740\uff0c\u5e76\u4e14\u6811\u8393\u6d3e\u4e5f\u80fd\u4e0a\u7f51\u3002<\/p>\n<p>\u591a\u4e2awifi\u8fde\u63a5dhcp\u5206\u914d\u5730\u5740\uff0c\u53ef\u4ee5\u7528allskycam1.local\u6765\u8bbf\u95ee<\/p>\n<p>ssh admin@allskycam1.local -p 22<\/p>\n<p>eth0\u56fa\u5b9aip\u5730\u5740<br \/>\nsudo nano \/etc\/dhcpcd.conf<\/p>\n<p>interface eth0<br \/>\nstatic ip_address=192.168.2.200\/24<br \/>\nstatic routers=192.168.2.1<br \/>\nstatic domain_name_servers=192.168.2.1<\/p>\n<p><strong>8) \u5907\u4efd\u6811\u8393\u6d3e<\/strong><\/p>\n<p>\u5efa\u8bae\u7cfb\u7edf\u5b89\u88c5\u572816G\u7684TF\u5361\uff0c\u5b89\u88c5\u597d\u5168\u90e8\u8f6f\u4ef6\u540e\uff0c\u5173\u673a\u3002<\/p>\n<p>\u51c6\u5907\u53e6\u5916\u4e00\u4e2aTF\u5361\u70e7\u5f55\u7cfb\u7edf\uff0c\u4e0b\u8f7dtailscale\uff0c\u5b89\u88c5git\uff0c\u548cpisafe<\/p>\n<p>wget https:\/\/raw.githubusercontent.com\/RichardMidnight\/pi-safe\/main\/pisafe -O pisafe<br \/>\nbash pisafe install<\/p>\n<p>\u5148\u7528\u53e6\u5916\u4e00\u4e2aTF\u5361\u542f\u52a8\uff0c\u5c0616G\u5361\u63d2\u5165USB\u8bfb\u5361\u5668\uff0c\u5907\u4efd\u8f93\u5165\u547d\u4ee4pisafe<\/p>\n<p>\u6709\u65f6\u4f1a\u627e\u4e0d\u5230U\u76d8\uff0c\u7528sudo lsblk\u67e5\u770bU\u76d8\u4fe1\u606f\u3002<\/p>\n<p>\u9009\u62e9\u597d\u9700\u8981\u5907\u4efd\u7684U\u76d8\uff0c\u5373\u53ef\u5907\u4efd\uff0c10\u51e0\u5206\u949f\u5373\u53ef\u5b8c\u6210\u955c\u50cf\u751f\u6210\u5e76\u538b\u7f29\uff0c16G\u51cf\u5c11\u52301.74G\uff0c\u538b\u7f29\u6548\u7387\u975e\u5e38\u9ad8\u3002<\/p>\n<p><img data-dominant-color=\"8e8db4\" data-has-transparency=\"false\" style=\"--dominant-color: #8e8db4;\" loading=\"lazy\" class=\"not-transparent alignnone wp-image-1599 \" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-4.png\" width=\"633\" height=\"405\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-4.png 2192w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-4-300x192.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-4-1024x654.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-4-768x491.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-4-1536x982.png 1536w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-4-2048x1309.png 2048w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-4-220x141.png 220w\" sizes=\"(max-width: 633px) 100vw, 633px\" \/><\/p>\n<p>\u91c7\u7528WinSCP\u8bfb\u53d6\u955c\u50cf\u5305\uff0c\u89e3\u538b\u7f29\u5230PC\u673a\u3002<\/p>\n<p><img data-dominant-color=\"eeefed\" data-has-transparency=\"false\" style=\"--dominant-color: #eeefed;\" loading=\"lazy\" class=\"not-transparent alignnone wp-image-1601 \" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-5.png\" width=\"449\" height=\"260\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-5.png 710w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-5-300x174.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-5-220x127.png 220w\" sizes=\"(max-width: 449px) 100vw, 449px\" \/><br \/>\n\u5982\u679cTF\u5361\u4e4b\u524d\u5b89\u88c5\u8fc7linux\u6216\u8005\u6811\u8393\u6d3e\uff0c\u5219\u9700\u8981\u5220\u9664\u5206\u533a\uff1a<\/p>\n<p>cmd<\/p>\n<p>diskpart<\/p>\n<p>listdisk<\/p>\n<p>select disk XXX<\/p>\n<p>clean<\/p>\n<p>\u6709\u65f6clean\u4f1a\u53d1\u751f\u9519\u8bef\uff0c\u8fd9\u65f6\u518d\u6267\u884c\u4e00\u6b21clean\u5373\u53ef\u3002<\/p>\n<p><strong>\u6062\u590d: win32diskimager<\/strong><\/p>\n<p><img data-dominant-color=\"e0e0e0\" data-has-transparency=\"false\" style=\"--dominant-color: #e0e0e0;\" loading=\"lazy\" class=\"not-transparent alignnone wp-image-1605 \" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-6.png\" width=\"576\" height=\"351\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-6.png 1022w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-6-300x183.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-6-768x468.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-6-220x134.png 220w\" sizes=\"(max-width: 576px) 100vw, 576px\" \/><\/p>\n<p>\u5982\u679c\u60f3\u91cd\u65b0\u8bbe\u7f6e\u4e3b\u673a\u540d\u79f0\u548cwifi\u5bc6\u7801\u7b49\u4fe1\u606f\uff0c\u53ef\u4ee5\u91c7\u7528\u6811\u8393\u6d3e\u5b98\u65b9\u81ea\u5e26\u7684\u7a0b\u5e8f\u70e7\u5f55\uff0c\u540c\u65f6tailscale\u4f1a\u751f\u6210\u65b0\u7684\u4e3b\u673a\u548cIP\u5730\u5740\uff0c\u65b9\u4fbf\u90e8\u7f72\u65b0\u7684\u6444\u50cf\u5934\u3002<\/p>\n<p>\u7531\u4e8e\u91c7\u752816G\u5361\uff0c\u5199\u5165\u5927\u5bb9\u91cf\u76d8\u65f6\uff0c\u4f1a\u5bfc\u81f4\u6811\u8393\u6d3e\u8ba4\u4e0d\u51fa\u7a7a\u4f59\u5bb9\u91cf\uff0c\u89e3\u51b3\u529e\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p><img data-dominant-color=\"050605\" data-has-transparency=\"false\" style=\"--dominant-color: #050605;\" loading=\"lazy\" class=\"not-transparent alignnone wp-image-1608 \" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-7.png\" width=\"633\" height=\"217\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-7.png 1180w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-7-300x103.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-7-1024x351.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-7-768x263.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-7-220x75.png 220w\" sizes=\"(max-width: 633px) 100vw, 633px\" \/><\/p>\n<p>sudo raspi-config<br \/>\nadvanced option-&gt;Expand Filesystem<\/p>\n<p>\u91cd\u542f\u4e4b\u540e\uff0c\u6269\u5927TF\u5361\u5bb9\u91cf<\/p>\n<p><img data-dominant-color=\"b5b0b1\" data-has-transparency=\"false\" style=\"--dominant-color: #b5b0b1;\" loading=\"lazy\" class=\"not-transparent alignnone wp-image-1609 \" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-8.png\" width=\"651\" height=\"144\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-8.png 2382w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-8-300x66.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-8-1024x227.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-8-768x170.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-8-1536x340.png 1536w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-8-2048x454.png 2048w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2023\/09\/Pasted-8-220x49.png 220w\" sizes=\"(max-width: 651px) 100vw, 651px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>9\uff09\u6811\u8393\u6d3e\u5b9a\u65f6\u91cd\u542f\uff1a<\/strong><\/p>\n<p>\u5b9a\u65f6\u91cd\u542f\u9996\u5148\u63d0\u9ad8\u53ef\u9760\u6027\uff0c\u53e6\u5916\u5f53wifi\u4e0d\u7a33\u5b9a\u65f6\u53ef\u4ee5\u91cd\u542f\u91cd\u8fde\u3002<\/p>\n<p>\u5982\u679c\u5b9e\u5728\u4e0d\u884c\uff0c\u5c31\u91c7\u7528\u9065\u63a7\u7535\u6e90\u5f00\u5173\u786c\u542f\u52a8\u3002<\/p>\n<p>sudo nano \/etc\/crontab<\/p>\n<p>\u57fa\u672c\u683c\u5f0f :<br \/>\n*\u3000\u3000*\u3000\u3000*\u3000\u3000*\u3000\u3000*\u3000\u3000command<br \/>\n\u5206\u3000 \u65f6\u3000 \u65e5\u3000 \u6708\u3000 \u5468\u3000 \u547d\u4ee4<br \/>\n\u89e3 \u91ca:<br \/>\n\u7b2c1\u5217\u8868\u793a\u5206\u949f1\uff5e59 \u6bcf\u5206\u949f\u7528\u6216\u8005 \/1\u8868\u793a<br \/>\n\u7b2c2\u5217\u8868\u793a\u5c0f\u65f61\uff5e23\uff080\u8868\u793a0\u70b9\uff09<br \/>\n\u7b2c3\u5217\u8868\u793a\u65e5\u671f1\uff5e31<br \/>\n\u7b2c4\u5217\u8868\u793a\u6708\u4efd1\uff5e12<br \/>\n\u7b2c5\u5217\u6807\u8bc6\u53f7\u661f\u671f0\uff5e6\uff080\u8868\u793a\u661f\u671f\u5929\uff09<br \/>\n\u7b2c6\u5217\u8981\u8fd0\u884c\u7684\u547d\u4ee4<br \/>\n\u8bbe\u7f6e\u91cd\u542f\u547d\u4ee4<br \/>\n\u6bcf\u5929\u4e2d\u534812\u70b9\u91cd\u542f\u6811\u8393\u6d3e<\/p>\n<p>00 12 * * * root \/sbin\/shutdown -r now<br \/>\n\u6811\u8393\u6d3e\u4e2dcrontab\u547d\u4ee4<br \/>\ncron start\/stop\/restart\/status<br \/>\n\u5982\u679c\u6267\u884ccron status\u62a5\u9519cron: can't lock \/var\/run\/crond.pid\u6267\u884c<\/p>\n<p>rm -rf \/var\/run\/crond.pid \/\/\u91cd\u542f\u5373\u53ef<\/p>\n<p><strong>10\uff09ASI\u76f8\u673a\u7684\u4f7f\u7528\u6280\u5de7<\/strong><\/p>\n<p>Allsky\u91cc\u9762\u53d6\u6d880.8s\u7684\u8bbe\u7f6e<\/p>\n<p>\u91c7\u7528\u81ea\u5236USB2.0\u7684\u7ebf\uff0cASI224\u76f8\u673a\u7684\u6e29\u5ea6\u5927\u5927\u964d\u4f4e\uff088\u5ea6\u5de6\u53f3\uff09\uff0c\u800c\u4e14\u66f4\u7a33\u5b9a\u3002\u4e4b\u524d\u91c7\u7528USB3.0\u7ecf\u5e38\u51fa\u73b0\u8d85\u65f6\u9519\u8bef\u5bfc\u81f4\u4e0d\u80fd\u5de5\u4f5c\u3002<\/p>\n<p>\u5b89\u88c5\u9700\u8981\u5168\u65b0\u5b89\u88c5\uff0c\u7279\u522b\u662f\u8fde\u63a5\u65b0\u786c\u4ef6\uff0callsky\u8981\u91cd\u65b0\u5b89\u88c5\uff1a<\/p>\n<p>\u5148\u505c\u6b62\u670d\u52a1\uff0c\u91cd\u65b0\u547d\u540d\u6587\u4ef6\uff0c\u5e76\u91cd\u88c5\uff1a<\/p>\n<pre>sudo systemctl stop allsky\r\ncd<\/pre>\n<pre>mv allsky allsky-SAVED<\/pre>\n<pre>sudo apt-get install git<\/pre>\n<p><strong>11\uff09\u9700\u8981\u5728\u534a\u7403\u7f69\u4e0b\u534a\u90e8\u5206\u55b7\u9ed1\uff0c\u9632\u6b62\u70ab\u5149\uff0c\u6ce8\u610f\u534a\u7403\u7f69\u4e0a\u9762\u548c\u67f1\u4f53\u7528\u7eb8\u7c98\u597d\u76d6\u4f4f\u3002<\/strong><\/p>\n<p><strong>12)sudo: unable to resolve host ignumtop: Connection timed out\u00a0<\/strong><\/p>\n<p>\u539f\u56e0\u662f\/etc\/hostname\u548c\/etc\/hosts\u540d\u79f0\u4e0d\u4e00\u81f4\u3002<\/p>\n<p>\u4fee\u6539\u6210\u4e00\u81f4\u5373\u53ef\u3002<\/p>\n<p><strong>13\uff09\u670d\u52a1\u7684\u7ba1\u7406\uff1a<\/strong><\/p>\n<p>sudo systemctl stop ros_startup.service # \u505c\u6b62launch<br \/>\nsudo systemctl start ros_startup.service # \u542f\u52a8launch<br \/>\nsudo systemctl restart ros_startup.service # \u91cd\u65b0\u542f\u52a8launch<br \/>\nsudo systemctl disable ros_startup.service # \u7981\u6b62\u670d\u52a1\u5728\u5f00\u673a\u65f6\u542f\u52a8<br \/>\n\u200bsudo systemctl enable ros_startup.service # \u5f00\u673a\u542f\u52a8\u670d\u52a1<\/p>\n<p class=\"post-copyright\">\u672a\u7ecf\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\uff1a<a href=\"http:\/\/stargazer.org.cn\/blog\">\u5de1\u661f\u4eba<\/a> &raquo; <a href=\"http:\/\/stargazer.org.cn\/blog\/?p=525\">\u6811\u8393\u6d3e\u5168\u5929\u9c7c\u773c\u76f8\u673a\u8bbe\u8ba1<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.instructables.com\/Raspberry-Pi-All-Sky-Camera\/ https:\/\/github.com\/thomasjacquin\/allsky 1)\u00a0 \u70e7\u5f55\u955c\u50cf\uff1a \u5148\u4ece\u5b98\u7f51\u4e0a\u4e0b\u8f7dlite [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":703,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[36,17,37,38],"_links":{"self":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts\/525"}],"collection":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=525"}],"version-history":[{"count":6,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts\/525\/revisions"}],"predecessor-version":[{"id":1631,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts\/525\/revisions\/1631"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/media\/703"}],"wp:attachment":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=525"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}