help-circle
rss
New Asustor NAS. Why won’t the surveillance center load?
Hey guys. I ordered an ASUSTOR NAS and it finally came in! I'm so excited to start hosting my own things! So everything is going pretty smoothly so far. I got home assistant running. My plex is being migrated now. The next thing is getting my Reolink doorbell (IP cam) to start working. I can have it save data to it's local microSD, but I've got a new NAS. With the back story done, the problem I'm having is that their software "surveillance center" seems to be broken. I installed it (yes, I already tried uninstalling and re-installing), and all it does is show 4 black screens with a tab at the top for "live view, settings, and logs". The problem is that none of the tabs do anything. Like I click, no response. Can't configure settings if you can't get to the screen. Anyway, does anyone have any ideas? I can do FTP/FTPS with the camera, but I was hoping to use the built in software. Thanks! Side note: fuck Spez for making so I can't read reddit posts for help.
fedilink

Your favorite lesser known docker container?
Mine is beaverhabits, just a good habit app that has come out recently.
fedilink

Homelab hardware recommendations
Right now I’m running a Late 2012 Mac mini (8 x Intel Core i7-3615QM CPU @ 2.30GHz) with a 1TB SSD, a 4TB external USB HDD and 16GB of RAM. It runs Proxmox with a VM running Docker (just Transmission-OpenVPN container right now), a VM for a Debian VS Code tunnel and a LXC container for Plex. I also have a Pi3B running PiHole and I use a Mac Studio for my personal computer (500GB SSD). I’m using Fios for a 1G fiber connection, a TP-Link router (AX3000) and two daisy chained 1G unmanaged switches (unfortunate scenario due to my small apartment), 1 near my entertainment center (Apple TV, PS5 etc) and another near my desk and the Mini/Studio/Pi. I’d like to build a NAS server which I could also use for these services. Priorities being 4K transcoding capabilities and the drives for a NAS. I would also like to set up a WireGuard VPN so I can use VNC to my Mac and access home services when I’m away, this is done with the TP-Link router right now. Right now I can’t decide between Intel or AMD for the CPU, buying something new to future proof or buying some older used office hardware and what I should prioritize (server or network)? Currently I’ve got a mix of personal data in Dropbox and iCloud Drive, I’ll likely consolidate it all to iCloud and eventually my NAS and have the NAS data backed up to Backblaze as well. I’d also like to backup my Studio to multiple Time Machine backups and have them in multiple locations. My media is currently all on the external drive and nothing is super valuable, just TV and movies (removes eye patch). I’m trying to learn Linux and some web development (mostly three.js) so I’ll setup a new VM, probably NixOS moving forward, specifically for coding and web dev learning. I’m looking for hardware recommendations for the Proxmox NAS server and also networking equipment? I’d like to move off the TP-Link hardware and use something open source. Also any suggestions for other services to run or considerations I may have missed. For example monitoring, how to manage users/access like SSH, where to buy hardware, home services you can’t live without etc. I know this is a broad AF post, but figured it could trigger some good discussions!
fedilink

Should I bother with raid
I have a 2 bay NAS, and I was planning on using 2x 18tb HDDs in raid 1. I was planning on purchasing 3 of these drives so when one fails I have the replacement. (I am aware that you should purchase at different times to reduce risk of them all failing at the same time) Then I setup restic. It makes backups so easy that I am wondering if I should even bother with raid. Currently I have ~1TB of backups, and with restics snapshots, it won't grow to be that big anyways. Either way, I will be storing the backups in aws S3. So is it still worth it to use raid? (I also will be storing backups at my parents)
fedilink

Hello there Selfhosted community! This is an announcement of the completion of a project I've been working on. A Script for installing Ubuntu 24.04 on a ZFS RAID 10. Now, I'd like to describe why I choose to develop this and how I'd like for other people to have access to it as well. Let us start with the hardware. Now, I am using an old host. My host in particular was originally a BCDR device that was based on a ZFS raidz implementation. Since it was designed for ZFS, it doesn't even have a RAID card, it only has an HBA anyways. So for redundancy, ZFS is a good way to go. Now, even though this was a backup appliance, it did not have root on ZFS. Instead, it had a separate harddrive for the operating system and three individual disks for the zpool. This was not my goal. So I did a little research and testing. I looked at two particular guides ([Debian](https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Bookworm%20Root%20on%20ZFS.html)/[Ubuntu](https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/Ubuntu%2022.04%20Root%20on%20ZFS.html)). Now, I performed those steps a dozens of times because I kept messing up the little things. And to eliminate the human error(that's me) I decided to just go ahead and script the whole thing. The Github Repository I linked contains all the code needed to setup a generic ubuntu-server host using a ZFS RAID 10. Instructions for starting the script are easy. Boot up a live cd(https://ubuntu.com/download/server). Hit CTRL+ALT+F2 to go into the shell. Run the following command: ``` bash <(wget -qO- https://raw.githubusercontent.com/Reddimes/ubuntu-zfsraid10/refs/heads/main/tools/install.sh) ``` This command does clone the repository, changes directory into it, and runs the entrypoint(sudo ./init.sh). Hopefully, this should be easy to customize to meet your needs. More Engineering details are on the Github.
fedilink

Troubleshooting immich
Cross posted from: https://lemmy.world/post/22666668
fedilink

Edit: exchanged fdroid url with github
fedilink

I have no idea why it's taken me so long, but I've "discovered" #Redlib as a way to view #Reddit  without all of the cruft. #selfhosted of course. https://www.macklin.co/redlib-reddit/ You can use Redlib to create an #RSS feed, which you can process in #Huginn to create a new version of the feed that includes the comments as well as the original post. Just right for using in your favourite rss news reader. https://www.macklin.co/redlib-via-huginn/
fedilink


My little nuc server. Had to change some bios configs today so I busted out the old LCD and since it was there already, did a package update for the hell of it.
fedilink

Offline Game Library?
What are y'all using for your offline game libraries? I ended up getting Resident Evil on GoG and started thinking about how I can host these on a NAS. Maybe something Dockerized? Jellyfin for music and video Immich for images Audiobookshelf for Audiobooks ??? for Gaming?
fedilink

I prefer trilium but need an offline first option for mobile notetaking…
Any options? Thanks for all the alternatives. I’m also asking if there’s anyway to edit trillium on my phone when my server is offline… guess not?
fedilink

connect to vps
Hello Trying to see if there is an easier way or if is secure. I have a VPS. I want to use for web services (docker) only accessible internal and not exposed to interent e.g. ZorAxy/ngnix manager. I don't want to use Tailscale as the VPS is headscale and feel not secure. Don't want to use VPN as I don't want my device to connect to it, forward my traffic from VPS IP. Also I use android a lot and that uses a commerical VPN. So I thought ssh tunnel, make tun device on vps, and make docker compose port to the tun ip. Can then use a proxy on android to connect to my internal web servers. As for Linux, I have to make another tunnel and proxy my browser - problem is that everything from the browser goes through my vps, so like a VPN. Just wondered if there was an easier solution and is this way secure? Thanks
fedilink
5

Hi /c/selfhosted, I want to introduce PdfDing to this community. PdfDing is a PDF manager and viewer that you can host yourself. It offers a seamless user experience on multiple devices. It's designed be to be minimal, fast, and easy to set up using Docker. The repo can be found [here](https://github.com/mrmn2/PdfDing/). Features include: * Seamless browser based PDF viewing on multiple devices * Dark Mode, colored themes and custom theme colors * Inverted color mode for reading PDFs * Remembers current position - continue where you stopped reading * SSO support via OIDC * Share PDFs with an external audience via a link or a QR Code * Shared PDFs can be password protected and access can be controlled with a maximum number of views and an expiration date * Automated and encrypted backups to S3 compatible storage I would be very happy if you wold give PdfDing a try. If you like it, be sure to leave a star :)
fedilink

port opening with ipv6 host exposure
I moved, and now my new router has no ipv4. I can expose the host with ipv6. After opening a port and exposing the host, the host is fully exposed and all ports are open. It'ss weird. Vodafone calls ut host exposure, I can select a specific port and all ports are open. How do you guys corcumvent that issue? Is this the infamous cgnat problem or is this why many people use a cloudflare tunnel? I just want to reach my nextcloud and immich with a normal domain. Edit: I called my provider and now I've got an ipv4 address with port forwarding
fedilink

Over the last two months, I developed wanderer. It is a self-hosted alternative to sites like alltrails.com or in other words a self-hosted trail database. It started out more as a small hobby project to teach myself some new technologies but in the end, I decided to develop it into a fully-fledged application. Core Features: - Manage your trails - Extensive map integration and visualization - Share trails with other people and explore theirs - Advanced filter and search functionality - Create custom lists to organize your trails further - Chique design with a dark and light theme - Fully mobile compatible wanderer is completely open-source. You can find the GitHub repo here: [https://github.com/Flomp/wanderer](https://github.com/Flomp/wanderer) wanderer is still under active development so if you encounter any bugs/errors or have suggestions please let me know here or open an issue on GitHub.
fedilink

![](https://lemmy.world/pictrs/image/dae62396-f7e9-4c21-86de-7390cd59a1c1.jpeg) Only use jellyfin. Have a list of things want to update... but it works for now. Yes that is a laptop usb cooler used as supplemental placebo cooling. Also a pc fan I have propped up against the hard drive feeding into the pi. Can't recall last time used the ps4 or switch. But they're there
fedilink

Hey everyone, wanderer recently celebrated it’s 10th anniversary. Well, as far as minor versions go at least. First and foremost: What is wanderer? wanderer is a self-hosted GPS track database. You can upload your recorded GPS tracks or create new ones and add various metadata to build an easily searchable catalogue. Think of it as a fully FOSS alternative to sites like alltrails, komoot or strava. Next: Thank you for almost 1.2k stars on [GitHub](https://github.com/Flomp/wanderer). It’s a great motivation to see how well-received wanderer is. By far the most requested feature since my last post was the possibility to track your acitivities. This is now possible on the new profile page which shows various statistics to help you gain better insights into your trailing/running/biking habits. Lists have also received a major upgrade allowing you easily bundle a multiday hike and share it with other users. If you want to give wanderer a try without installing it you can try the [demo](https://demo.wanderer.to). When you are ready to self-host it you can head over to [wanderer.to](https://wanderer.to) to see the full documentation and installation guide. If you really like wanderer and would like to support its development directly you can [buy me a coffee](https://www.buymeacoffee.com/wanderertrails). Thanks again! Cheers Flomp
fedilink

Migrating emails from Gmail to new email server
I came across mention of IMAPSync and Larch as tools to move emails out of Gmail to a new email account. Does anyone have any experience using these? I have a family’s worth of email gmail accounts all of which are running out of space and will need to be moved to a new email provider. They would of course all like to keep their historical sent and recieved emails.
fedilink

*Last June, fans of Comedy Central – the long-running channel behind beloved programmes such as The Daily Show and South Park – received an unwelcome surprise. Paramount Global, Comedy Central’s parent company, unceremoniously purged the vast repository of video content on the channel’s website, which dated back to the late 1990s.*
fedilink


Self-hosted music streaming (and me giving up on it)
This post is mostly just me bitching about the music industry but also genuine interest in what other people in this community do when it comes to music streaming. Apologies if this is an incomprehensible wall of text. --- My favorite self-hosted project is [Navidrome](https://github.com/navidrome/navidrome/). I've been running it for years and it's been absolutely perfect the entire time. Related clients like [Supersonic](https://github.com/dweymouth/supersonic) and [Tempo](https://github.com/CappielloAntonio/tempo) have been fantastic as well. More than half of my donations to open source software have been to music related projects like these, I use them for multiple hours every day. I'm giving up on using them though, because actually obtaining the music to stream has become harder and more expensive every year. Unlike self-hosted movie/tv streaming, the primary reason I self-host music is to support the artists. I feel better paying $10 for an album I enjoy compared to the artist getting pennies from me streaming it. I'm sure as hell not doing this to save money, I spend around $30/month on average on new music. My only criteria for buying music is that it's at least CD-quality. Going back a few years, my options (ordered by preference at the time) were Bandcamp, Qobuz, 7Digital, the artist's own website, physical CDs that I'd rip myself, then finally giving up and using Soulseek. Bandcamp and Qobuz would typically cover 95% of what I was looking for, I'd rarely need to use Soulseek. But over the course of those past few years... **Bandcamp** was bought by Epic, then sold to Songtradr, half of its staff were laid off, and it's been a shell of its former self ever since. It seems like Bandcamp is now mostly ignored by artists, with albums rarely releasing or releasing far later than other platforms. It's genuinely a surprise when I find the artist or album I'm looking for on Bandcamp at this point. **Qobuz** has been experiencing rapid enshittification as they try to get people to subscribe to their streaming service. Dark patterns added throughout the purchase and download process, [albums being pulled from my account](https://i.imgur.com/xTVe4yv.png), and albums becoming more expensive (I'm seeing a whole lot more $15-$20 albums than $10 albums now). **7Digital** is dead. **Artist websites** rarely offer lossless downloads anymore. Last time I bought an album directly from an artist was Madeon in 2019, and that's now an [archived page](https://madeon.store/collections/archives-page/products/good-faith) you have to go out of your way to find. **CDs** are somehow still a reliable option, but I just cannot justify this anymore. At some point having a collection of 250 plastic discs that I rip precisely once and then store forever just doesn't make sense. I'm tired of buying physical clutter to get digital files. I sold a sizable chunk of my collection a few months ago. **Soulseek**, the "fuck it I'm pirating it" option whenever I can't buy an album through any available means. Surprisingly even Soulseek seems to be suffering, I used to be able to find **anything**, but now even a slightly obscure release can be hard to find. So now, my preferred options are Bandcamp, Qobuz if the album is less than $15, then Soulseek. I'm using Soulseek a hell of a lot more now, which defeats the point of why I do this in the first place. So fuck it, I subscribed to Tidal. But like, what the fuck? [Why is it so hard to give artists *more* money](http://i0.kym-cdn.com/entries/icons/original/000/005/574/takemymoney.jpg)? --- So, for others who self-host their music collection, or even still rock an iPod or something, what do you do? Do you buy lossy releases? Do you pirate everything? Is there a magical website that has every album for sale that I just don't know about? CDs? I can't be the only one with this problem, but I haven't seen anyone else talk about it.
fedilink


Is there any open-source project that serves the same purpose of Duolingo that can be self-hosted?
Or perhaps a self-hosteable webapp i could add the words myself from curated sources on the internet to then do quizzes on it?
fedilink


With free esxi over, not shocking bit sad, I am now about to move away from a virtualisation platform i’ve used for a quarter of a century. Never having really tried the alternatives, is there anything that looks and feels like esxi out there? I don’t have anything exceptional I host, I don’t need production quality for myself but in all seriousness what we run at home end up at work at some point so there’s that aspect too. Thanks for your input!
fedilink

Would you buy “self-hosted in a box” hardware?
I'm considering a business plan for people getting in to self-hosting. Essentially I sell you a Mikrotik router and a refurbished tiny x86 server. The idea is that the router plugs in to your home internet and the server into the router. Between the two they get the server able to handle incoming requests so that you can host services on the box and address them from the broader Internet. The hypothesis is that $150 of equipment to avoid dozens of hours of software configuration is a worthwhile trade for some customers. I realize some people want to learn particular technologies and this is a bad fit for them. I think there are people out there that want the benefit of self-hosting, and may find it worth it to buy "self-hosting in a box". What do you think? Would this be a useful product for some people?
fedilink

Low Cost Mini PCs
Thought this might be helpful as a lot of these mini PCs are hitting the used market.
fedilink

Announcement by the creator: https://forum.syncthing.net/t/discontinuing-syncthing-android/23002 > Unfortunately I don’t have good news on the state of the android app: I am retiring it. The last release on Github and F-Droid will happen with the December 2024 Syncthing version. > Reason is a combination of Google making Play publishing something between hard and impossible and no active maintenance. The app saw no significant development for a long time and without Play releases I do no longer see enough benefit and/or have enough motivation to keep up the ongoing maintenance an app requires even without doing much, if any, changes. > Thanks a lot to everyone who ever contributed to this app!
fedilink

Hello everybody, Daniel here! We're excited to be back with some new updates that we believe the community will love! As always before we start, we’d like to express our sincere thanks to all of our [Cloud](https://linkwarden.app/#pricing?utm_source=Lemmy&utm_medium=social&utm_campaign=v2_7_announcement) subscription users. Your support is crucial to our growth and allows us to continue improving. Thank you for being such an important part of our journey. 🚀 ## What's New? --- ### 🛠️ Code Refactoring and Optimization The first thing you'll notice here is that Linkwarden is now faster and more efficient.[^1] And also the data now loads a skeleton placeholder while fetching the data instead of saying "you have no links", making the app feel more responsive. ![](https://lemmy.world/pictrs/image/2cb06878-ca0c-471b-863e-e8b108f42b49.jpeg) ### 🌐 Added More Translations Thanks to the collaborators, we've added Chinese and French translations to Linkwarden. If you'd like to help us translate Linkwarden into your language, check out [#216](https://github.com/linkwarden/linkwarden/issues/216). ![](https://lemmy.world/pictrs/image/561fad10-9eb3-4a36-b2bb-af0d3dce6cf4.jpeg) ### ✅ And more... Check out the full changelog below. **Full Changelog**: https://github.com/linkwarden/linkwarden/compare/v2.6.2...v2.7.0 -------- If you like what we’re doing, you can support the project by either starring ⭐️ the repo to make it more visible to others or by subscribing to the Cloud plan (which helps the project, a lot). Feedback is always welcome, so feel free to share your thoughts! Website: [https://linkwarden.app](https://linkwarden.app/?utm_source=Lemmy&utm_medium=social&utm_campaign=v2_7_announcement) GitHub: https://github.com/linkwarden/linkwarden Read the blog: [https://blog.linkwarden.app/releases/2.7](https://blog.linkwarden.app/releases/2.7?utm_source=Lemmy&utm_medium=social&utm_campaign=v2_7_announcement) [^1]: _This took a lot more work than it should have since we had to refactor the whole server-side state management to use react-query instead of Zustand._
fedilink

So SBCs are shit now? Anything I can do with my collection of Pis and old routers?
I dunno when it happened but I swear SBCs were the *new best thing* in the universe for a while and everyone was building cool little servers with their RockPis and OrangePis. Now it's all gone x86 and Proxmox with everyone shitting on Arm. What happened? What gives? Is my small army of xPis pointless? What about my 2 Edge routers? I've got about 6 xPis scattered round my flat - is there anything worth doing with them or should I just bin them? All thoughts, feelings and information welcome. Thank you.
fedilink




Broadcom yanks ESXi Free version, effective immediately
I'd expected this but it still sucks.
fedilink

Photofield v0.15.0 released: Google Photos alternative, now zoomier than ever! Plus related image search, map view, arm64, tags (alpha), and more!
Hi all! I'd like to share some slow, but steady progress I've made on my self-hosted personal photo gallery - a Google Photos alternative. It's been a while since I last posted any updates - the last time was [about v0.9.2 on /r/selfhosted](https://www.reddit.com/r/selfhosted/comments/12irele/photofield_v092_released_google_photos/), so it's actually my first post here. ### What's new? Lots of things! Here's a quick summary: * **New website!** [photofield.dev](https://photofield.dev/) - bonus, it's embedded in every install, in fact, even the website is just hosted from the app itself. 😎 * **UX polish** - lots of small improvements, like [better interaction &amp; fixed video controls](https://github.com/SmilyOrg/photofield/releases/tag/v0.15.0) and [better error messages &amp; autoreloading config](https://github.com/SmilyOrg/photofield/releases/tag/v0.14.0). * **Zoomier than ever** - since [v0.15.0](https://github.com/SmilyOrg/photofield/releases/tag/v0.15.0) when you zoom into a photo, it zooms the whole scene! This wasn't the case for a few versions due to a technical detour, but I found a way to get it back without too many compromises. * **Related image search** - you can [Find Similar Images](https://github.com/SmilyOrg/photofield/releases/tag/v0.10.1) now, using the same AI functionality as the semantic image search. * **Map view** - you can [see your photos on a map](https://github.com/SmilyOrg/photofield/releases/tag/v0.12.0). Still has some quirks, so make sure to zoom in first. [To be improved](https://github.com/SmilyOrg/photofield/issues/91). * **Reverse geolocation** - you can see the [location of a photo in the timeline view](https://github.com/SmilyOrg/photofield/releases/tag/v0.11.0). Completely local, using [tinygpkg](https://github.com/SmilyOrg/tinygpkg). * **Tags (alpha)** - you can [tag your photos](https://github.com/SmilyOrg/photofield/releases/tag/v0.10.0) now. Quite basic for now, but should be a good foundation for [things to come](https://github.com/SmilyOrg/photofield/issues/80). * **ARM Docker images** - since [v0.14.1](https://github.com/SmilyOrg/photofield/releases/tag/v0.14.1) the published Docker images are multiarch - x64 and arm64, including [photofield-ai](https://github.com/SmilyOrg/photofield-ai/pkgs/container/photofield-ai). Makes it possible to run on cheaper, ARM-based servers, and faster on M1/M2/M3 Macs. ### Show me the demo https://demo.photofield.dev/ Now hosted on Hetzner's arm64-based CAX11 - 2 vCPUs &amp; 4 GB of RAM - the cheapest one. The photos are © by their authors. Since migrating to the CAX11, it only uses one size of internally pregenerated sqlite-based thumbnails, taking up roughly 4% of the disk space of originals. Support for Synology Moments thumbnails is still there, but doesn't seem as crucial as before. ### How do I try it out? It's very low commitment, a single executable or Docker image that you can mount with read-only access to an existing file structure, see [Quick Start](https://photofield.dev/quick-start) (also [on GitHub](https://github.com/SmilyOrg/photofield/pkgs/container/photofield#getting-started) if the website is dead). ### Another one??? Why? It's a conspiracy to increase fragmentation and increase shareholder value of big tech companies. 😄 Jokes aside, I think there is some space for a fast, self-contained, extremely easy to deploy solution. But mainly, it's to scratch my developer itch and I get to learn new things. ### Thanks Thanks to everyone who's been using it, contributing, and giving feedback! See also [foss_photo_libraries](https://meichthys.github.io/foss_photo_libraries/) for alternatives if this doesn't fit your needs. Let me know what you think and what you'd like to see next! 🙏
fedilink


Any non-tech-background self-hosters?
I assume most users here have some sort of tech/IT/software background. However, I've seen some comments of people who might not have that background (no problem with that) and I wonder if you are self-hosting anything, how did you decide that you would like to self-host?
fedilink

*What rights do you have to the digital movies, TV shows and music you buy online? That question was on the minds of Telstra TV Box Office customers this month after the company announced it would shut down the service in June. Customers were told that unless they moved over to another service, Fetch, they would no longer be able to access the films and TV shows they had bought. *
fedilink

    Create a post

    A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

    Rules:

    1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

    2. No spam posting.

    3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

    4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

    5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

    6. No trolling.

    Resources:

    Any issues on the community? Report it using the report flag.

    Questions? DM the mods!

    • 0 users online
    • 23 users / day
    • 56 users / week
    • 220 users / month
    • 820 users / 6 months
    • 1 subscriber
    • 1.57K Posts
    • 8.89K Comments
    • Modlog
    Lemmy.World
    A generic Lemmy server for everyone to use.

    The World’s Internet Frontpage Lemmy.World is a general-purpose Lemmy instance of various topics, for the entire world to use.

    Be polite and follow the rules ⚖ https://legal.lemmy.world/tos

    Get started

    See the Getting Started Guide

    Donations 💗

    If you would like to make a donation to support the cost of running this platform, please do so at the following donation URLs.

    If you can, please use / switch to Ko-Fi, it has the lowest fees for us

    Ko-Fi (Donate)

    Bunq (Donate)

    Open Collective backers and sponsors

    Patreon

    Liberapay patrons

    GitHub Sponsors

    Join the team 😎

    Check out our team page to join

    Questions / Issues

    More Lemmy.World

    Follow us for server news 🐘

    Mastodon Follow

    Chat 🗨

    Discord

    Matrix

    Alternative UIs

    Monitoring / Stats 🌐

    Service Status 🔥

    https://status.lemmy.world

    Mozilla HTTP Observatory Grade

    Lemmy.World is part of the FediHosting Foundation