TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Setting up a Raspberry Pi 4 home server

251 点作者 wheresvic3大约 5 年前

17 条评论

ajphdiv大约 5 年前
A big performance increase by putting the OS on a SSD. The read&#x2F;write speed is much better than using the SD card. It takes a little tweaking to get the SSD to boot on the rpi 4, but can be done. Basically the SD card gets used a bootloader.<p>howto:<p><a href="https:&#x2F;&#x2F;jamesachambers.com&#x2F;raspberry-pi-4-usb-boot-config-guide-for-ssd-flash-drives&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jamesachambers.com&#x2F;raspberry-pi-4-usb-boot-config-gu...</a>
评论 #22375505 未加载
评论 #22375335 未加载
评论 #22375990 未加载
评论 #22375961 未加载
skocznymroczny大约 5 年前
It might not be as exciting, but I run <a href="https:&#x2F;&#x2F;dietpi.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dietpi.com&#x2F;</a> on my RPi. It&#x27;s basically a Debian distro with an easy to use installer for common things. To install Apache, Nextcloud or anything else you just select it from a long list of installers in a console user interface.
ch33zer大约 5 年前
A few insecure choices here: * fail2ban installed but no mention of actually setting up the rules. Additionally out of the box fail2ban won&#x27;t work with docker containers * Wide open ports. Only open what you need * In the DNS script you are putting the username and password in the URL. This means even though you are using https anyone can see the username and password you&#x27;re sending. Pass these options some other way.
评论 #22375324 未加载
评论 #22375482 未加载
评论 #22376594 未加载
评论 #22375501 未加载
评论 #22378405 未加载
评论 #22376839 未加载
punk-coder大约 5 年前
Nice article.<p>I had big plans for using a Raspberry Pi as a Plex Media Server once. The set up was easy, I attached my external HDD and let it scan the libraries. My wife and I watched a few movies, it worked perfectly. The next evening when we sat down to watch a movie I saw that Plex couldn&#x27;t connect to the media server. I went upstairs and attached a monitor to my Raspberry Pi and I saw that Wireless Internet was not working on it. I tried everything and eventually rebooted it and everything worked again. This turned into a daily thing. I followed all sorts of instructions I found on the internet to try and fix the issue, but to no avail. Every day there would come a certain time where the Raspberry Pi would just lose it&#x27;s Wifi capabilities and a reboot was needed. Sad, because I liked the idea of this small box sitting on the corner of my desk running a media server. This was an older Raspberry Pi, maybe things have improved.
评论 #22374849 未加载
评论 #22374659 未加载
评论 #22381451 未加载
评论 #22381758 未加载
评论 #22374594 未加载
评论 #22374650 未加载
freedombox大约 5 年前
Please consider <a href="https:&#x2F;&#x2F;freedombox.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;freedombox.org&#x2F;</a> - it is part of Debian.
评论 #22374905 未加载
Legogris大约 5 年前
I&#x27;m currently in the process of setting up a HA Hashicorp stack (Vault&#x2F;Consul&#x2F;Nomad) + GlusterFS cluster in my free time at home with Raspberrys and some other small-board computers. Completely overkill but it&#x27;s great fun. My goal is to see just how self-reliant I can be in terms of digital services. Right now it feels completely reasonable to get to a point where the only external services I really rely on is a CA and domain registrar. Possibly DNS, and external endpoints to front traffic. If the HA part works well and I can make a failover region somewhere, self-hosted e-mail doesn&#x27;t seem that unreasonable anymore.<p>There are several attractive alternatives to RasPi (Odroid already mentioned, beware though as most of the small boards are 32bit only. Also Khadas VIM3, FriendlyELEC NanoPi, Rock Pi. Many people also seem to like Orange Pi). The earlier generation Raspis are honestly quite disappointing from a performance perspective, mostly because of the shared bus between Ethernet&#x2F;Wifi&#x2F;USB&#x2F;storage. The 4B is actually the first to hold its ground, and still does price&#x2F;performance-wise compared to the above. Honestly it feels like the market&#x27;s stagnated a bit around the RK3399 and Allwinner H5&#x2F;H6, hoping there&#x27;s going to be a new wave of interesting stuff during 2020.<p>A really nice feature of some of these ARM boards is that you can go so much more free (as in libre) than with x86 chips. Raspberry Pi excluded, unfortunately.<p>If you&#x27;re open to x86 and want a bit more power, Intel NUCs have been around for a good time and AMD is pushing out Ryzen NUCs now. First out is ASROCK. I&#x27;ve also been very happy with the PC Engines APU2 router boards - they are great as small-form-factor servers or NAS builds as well.<p>Note that even if Raspbian is 32-bit only, you can totally run 64-bit OS&#x27;s on the 3B+ and 4 series.<p>For 3B+ there&#x27;s even a pretty stable UEFI bootloader: <a href="https:&#x2F;&#x2F;www.raspberrypi.org&#x2F;forums&#x2F;viewtopic.php?f=50&amp;t=249449" rel="nofollow">https:&#x2F;&#x2F;www.raspberrypi.org&#x2F;forums&#x2F;viewtopic.php?f=50&amp;t=2494...</a><p>For Raspi 4 you can just rebuild the kernel for aarch64 and change the config a bit. Or if you&#x27;re lazy, sakaki- is providing weekly builds here: <a href="https:&#x2F;&#x2F;github.com&#x2F;sakaki-&#x2F;bcm2711-kernel" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sakaki-&#x2F;bcm2711-kernel</a><p>I have both 3B+ and 4B running vanilla 64-bit Debian Buster.
评论 #22377181 未加载
评论 #22376267 未加载
评论 #22375364 未加载
tyingq大约 5 年前
Once you jump up into the 4GB model and are looking at &quot;home server&quot; or &quot;media server&quot; type functionality, other solutions might be more attractive.<p>For example, used ASUS Chromeboxes are all over eBay from $50-$120 or so with a real SSD, x86-64, nice enclosure, etc. And they are easy enough to use a SeaBios ROM with for regular Linux instead of ChromeOS.<p>Edit: not disputing the Pi is king at lower memory &#x2F; lower storage &#x2F; lower cost points.
评论 #22374874 未加载
评论 #22377540 未加载
评论 #22374772 未加载
评论 #22375127 未加载
评论 #22374880 未加载
评论 #22375847 未加载
评论 #22376978 未加载
评论 #22376025 未加载
exclusiv大约 5 年前
I recently setup my Pi 4 with Pi-Hole and Wireguard for VPN. My first install and config resulted in super high load. So I redid it all on a fresh card (same brand) and it was snappy. No idea what the culprit was but I&#x27;m running Raspbian, installed with a NOOBS formatted SD card<p>I disabled swap memory and overclocked it to 2ghz which was super easy. Switched to a Flirc case because my prio case with a fan was really loud.<p>For Wireguard I followed this guide: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;pihole&#x2F;comments&#x2F;bnihyz&#x2F;guide_how_to_install_wireguard_on_a_raspberry_pi&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;pihole&#x2F;comments&#x2F;bnihyz&#x2F;guide_how_to...</a>
heyflyguy大约 5 年前
If you&#x27;re into this sort of thing, I have really enjoyed tinkering with Odroid products. Also the homelab subreddit is pretty good.<p><a href="https:&#x2F;&#x2F;www.hardkernel.com&#x2F;shop&#x2F;odroid-hc2-home-cloud-two&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.hardkernel.com&#x2F;shop&#x2F;odroid-hc2-home-cloud-two&#x2F;</a>
评论 #22376854 未加载
nihonium大约 5 年前
I use my Raspberry pi to proxy any cloud video to my LG Smart TV, at native resolution, using rclone mount and Emby Media server. It&#x27;s great. I can play 4K 100mbit videos from my cloud drives directly on the TV.<p>Side note, you can also use cloudflare free for dns, it&#x27;s easy to setup.
评论 #22374758 未加载
bergoid大约 5 年前
Is there a Raspberry Pi 4 case somewhere for sale that can hold a 2.5 inch HDD?
评论 #22376190 未加载
评论 #22377450 未加载
jlgaddis大约 5 年前
I only skimmed this article but I didn&#x27;t see any step where the default credentials (&quot;pi&quot;&#x2F;&quot;raspberry&quot;, IIRC) are changed so if you follow this guide you should expect your &quot;home server&quot; to be hacked and become part of a botnet shortly after you<p>&gt; <i>head to your router settings and port forward 80, 443, 22 and any other ports that you might want.</i>
评论 #22379284 未加载
kristianp大约 5 年前
I&#x27;m using a pi 4 with ubuntu server and plex. The Android tv Plex app works really well with it.<p>It&#x27;s connected to my wifi router via an ethernet cable. I used 32 bit ubuntu as it&#x27;s only a 1GB pi and 32 bit saves some ram. I had some voltage warnings when booting up, I should probably get a better power supply for it. The Usb drive is non-ssd.
threatofrain大约 5 年前
What might people recommend for a NAS?
评论 #22375294 未加载
评论 #22375508 未加载
评论 #22375234 未加载
评论 #22375174 未加载
评论 #22376615 未加载
评论 #22375170 未加载
评论 #22376233 未加载
评论 #22385274 未加载
评论 #22375481 未加载
评论 #22376312 未加载
评论 #22375590 未加载
wheresvic3大约 5 年前
One small point not mentioned in the article is that the is hooked on to a wall behind the tv so it is nicely hidden.<p>A cheaper option would probably have been to get a proper computer (likely secondhand), which would have been more cost effective but probably take up more space :)
atum47大约 5 年前
Now I just need to translate it to Portuguese and share it with my Dad. Thanks a lot. =)
评论 #22375901 未加载
wyclif大约 5 年前
I enjoy this blog, but I wish it had an RSS feed.