Skip Navigation
Simple authentication for homelab?
  • I've been using Authelia with several OIDC integrations for a while now. Works great. They've released a huge update like a day ago too. Out of the ones you listed, it's very lightweight too. The docs are a bit all over the place but it is quite comprehensive.

    I did look at Zitadel and tried setting it up myself but I just couldn't get it to work. The docs are a bit vague.

  • would you consider this a decent price for the specs for a home server
  • I think it's still good to go with the HDD instead. You can always later get M.2 SSD with a USB enclosure if you run "busier" databases that will benefit from faster speeds. They're small enough to dangle from USB ports.

    When you go refurbished it's always luck when it comes to any type of storage. My server's root fs runs on an SSD that's like 10 years old, yet I bought second hand hard drives that are 4 years old and they were broken beyond repair.

    Make sure to backup your stuff regardless.

  • would you consider this a decent price for the specs for a home server
  • Welcome to the club!

    The build sounds good, and yes a little bit overkill. I host way more on much older gear, comfortably. For "homelab" stuff I wouldn't buy a Xeon like the other commenter said lmao, you're not going to like your bills. That's way too overkill as you're mostly likely going to be memory-bound, not CPU-bound.

    Just for reference, I have ~65 containers running and using ~8 GB RAM. I started with 8 GB and added another 8 GB to have a bigger buffer, and to try out new stuff from time to time.

    In general, don't worry about hardware too much, get what is within your budget to build up knowledge and skills. You will figure out what you need later down the line.

    Also, I prefer Adguard Home over Pi Hole, and check out Vaultwarden, the community Rust version of Bitwarden as well.

  • What's a site that allows you to upload an mp3 to share? See self-text.
  • I was going to suggest put.icu (seems like max 4GB) but their max expiry is 1 day. I found a list of privatebin instances here (it's a pastebin but you can also attach files). From the table, you can select ones with file upload, but some of them have quite low file size limit. I was able to upload a 10 MB file over at https://privatebin.at.

  • What's a simple logging service?
  • If you just want to view logs, then a lightweight viewer I really recommend is Dozzle.

  • I know very little about Vietnam, not qualified to answer this question
  • Ah you caught me out on that one, I was recalling from memory. Everything still holds, but it's actually US helping to detoxify the consequences of Agent Orange, support its victims, clearing out bombs, mines, etc. AND also recover and identify Vietnamese soldiers' remains. They never paid reparations for the damage so I guess this is it.

  • I know very little about Vietnam, not qualified to answer this question
  • What's driving this involvement with the US?

    International relations stuff is not just A is bad B is now friend. For Vietnam to get as much resources as it can while staying friendly and peaceful towards those that offer to help, it cannot always stir the history soup and make a big deal out of its painful past. Vietnam is more than just whatever came out of the US-Vietnam war.

    I'm not sure I agree with the take that Vietnam favors US relations because China did bad things. It paints Vietnam as antagonizing US and China relations. While US-China relations are in fact poor, the reality is Vietnam is a much smaller country that seeks cooperation and as much help as it needs, and has no chance to point out this antagonism publicly.

    Vietnamese being very warm and welcoming to visitors may skew their sentiment towards USians coming from the Wild West. The fact that y'all come at all is pretty cool, shows that the food is good and the landscape nice.

    Vietnam also receives Chinese visitors, all the time and all day of the year. They show the same appreciation, but it is quite normalized. Both China and Vietnam relations also go a long way back, so there is less of an element of novelty, therefore less need to be humble and polite. China, after all, is like a (much) bigger brother.

    "US better" is definitely not the sentiment when I ask Vietnamese this question. They admit China's support is more appreciated and frankly, useful, but wishes to be less coupled to China. The US involvement is annoying to some, and appreciated by others. I don't know if there is much heft to it other than friendly words on paper and in the press.

    When Biden visited, Vietnam agreed to receive a lot of help and support in technological, scientific, and energy domain from the US, as well as help to (continue) undoing the mass destruction the US has caused in return for the bodies of US soldiers. I don't think Vietnam has forgotten at all. The agreement is not because US is better. Sino-Vietnamese trade stands strong.

    Here's another element to the story. China borders Vietnam and thus it (under various names and governments) has history with Vietnam (also under various names and governments) that spans way back to before either were communist.

    In Vietnam, it is taught in history classes at a primary level about conflicts and wars with China that last a total of a thousand years. Was this communist China? No, neither was it communist Vietnam. But is it still significant to the extent that it is historical knowledge that is taught in the main curriculum. Otherwise if we solely teach (joint North-South) communist Vietnam history you'd run out of content pretty quick as the country is so recently established.

    I don't know what or if at all communist Chinese history is taught in the curriculum. But yeah Chinese warlords did engage in a lot of wars and invasions with the warlords down south in Vietnam.

    Now the Sino-Vietnamese war did happen. The sentiment was perhaps a feeling of betrayal and shock. Many understand why China might have invaded, including the involvement of Pol Pot.

    But things have changed. I always say this: historical events are real events that happened but they don't act as static backdrop to reduce present phenomenon to simple yes no causality. They are for personal remembrance and for future lessons. Both China and Vietnam have made strict plans to normalize relations in the early 90s. Here is a translated excerpt from a recent article on 45 years after the Sino-Vietnamese war:

    With the spirit of "Putting the past aside, looking forward to the future", we have built a bridge across the painful pit of war, working together to build an increasingly sustainable relationship between Vietnam and China!

    It is more often discussed how terrible the Pol Pot government was during that time (they also killed and tortured many Vietnamese) and how necessary Vietnamese involvement was. There is also Cambodian-Vietnamese relations to sort out in this equation. While these wars are coupled in a way, modern treatments isolate them in order to rectify the relations individually with its neighbors.

    Vietnam has also decided to move on with the US in a similar vein to how it did with China. But the sentiment is not the same. To contrast, here's an excerpt from 2020 on 45 years after the US-Vietnam war:

    The victory of Ho Chi Minh's campaign marked a major turning point in the nation's history, fully completing the goal of "Fighting the Americans out, fighting the puppets" as set out by President Ho Chi Minh; liberate all of South Vietnam, ending 21 years of national division, leading to the unity, independence, sovereignty and territorial integrity of Vietnam on land, airspace and sea; bringing our nation into a new era, the era of national independence and socialism throughout the entire Vietnamese Fatherland.

    Conflicts in the South China Sea is a tricky one, but it's not swept under the rug. China and Vietnam have sought to sort out naval and armed conflicts in the area. While it is somewhat of a stale issue by now, I think we just have to wait to see how they decide to settle/regulate it.

  • What's a good note taking app?
  • It's not open source though.

  • Traveling to Vietnam
  • I'm going to use local names since idk the translation for these things. You can copy paste into search engine and machine translate blogs for food places.

    General tip: don't bother too much about Michelin stars in Hanoi, especially in phố cổ, as all the restaurants in there all taste more or less the same. Otherwise you have to queue very long with other tourists. As always, eat where the locals eat.

    Hanoi

    (make sure to keep masks with you for walking along roads)

    Electric buses available here.

    Go see uncle Ho, I missed him last time I went to Hanoi. The mausoleum closes early (like 10:30) so you have to get up relatively early for that.

    Go around the back of the mausoleum to see chùa một cột.

    There are several national museums dotted around the centre, if you have time. Monday is a bad day for museums as most of them will close.

    Massive government buildings/military areas in the centre as well. Lots of hammer and sickles everywhere.

    Go to Lenin park to see a cool Lenin statue.

    On Trúc Bạch lake, there is a cool war monument of John McCain being shot down and kept as POW. His plane landed there. Some USians actually pay respect at the monument even if it's anti US lol.

    Go to phố cổ, hồ gươm, văn miếu quốc tử giám.

    Eat bún chả, phở hà nội, cơm rang, chè, bún gan, bánh cốm, xôi cốm, bún riêu, bánh cuốn. Honestly there's so much food in Hanoi, explore around.

    Ho Chi Minh

    You will notice the difference from Hanoi. More lights, more people out, busier and more urban.

    Museum by dinh độc lập.

    Many parks in general where young people hang out, dance, play sports. If you skate, phố đi bộ is a good spot, even when busy.

    There's a big zoo, with a lot of greenery. Zoos are not my thing in general but if you're bored and want to see cool birds and reptiles (they've got a lot of them funny birds at the moment to get them out of critical endangered status).

    Several smaller museums by the zoo. You might spot a few US planes that were shot down on display.

    There's a city hall and opera house, they look very fr*nch and the latter looks bourgeoise as fuck.

    I like walking around phố đi bộ and the city centre area to see what people are up to. Bùi viện is like a party street for tourists and I hate it.

    There's Saigon waterbus that takes you around the city via the river. It's really nice.

    Outside of the centre, there's chợ lớn, which is a 'chinatown'. Lots of pagodas and chinese cuisine.

    There is so much food in general, both local and asian in general, you'd be overwhelmed. Worth trying: cơm tấm, bánh xèo, hủ tiếu nam vang, chả cá lã vọng, bánh canh, bún bò huế, gỏi cuốn, bánh pía.

    In both places: If you drink coffee, please try out the cà phê phin there. It's good black, with milk, hot, or cold. There are hundreds of cafes and most stay opened til late. Sit by a balcony and watch the streets and the people. The culture is very relaxed and laid back.

    In both places, you can get around one area to the other via motorbike, and if you can't ride one, there are many cheap uber-like taxi services for both types of vehicles. You gotta get the apps for that, a bit of a pain, but everyone switches between them to get good deals. Cycling might be an option but just be careful.

  • It is now verboten to mention “Chinese New Year” in the Biden regime
  • I don't get it either. I'm from one of these countries that celebrate the Lunar New Year but live in the imperial core, and I've been to parties or gatherings with a mix of East asians celebrating and I don't think anyone there took issue with it being called Lunar New Year as a quick reference to the different holidays around the same time. You can phone your parents and use your own lingo then but when returning to English it really is no big deal?

    I get the "Chinese" in CNY being a boogeyman thing for western whitewashed people, but personally as someone from East Asia I think Hexbear who think this is 100% a Sinophobic thing should log off and go to a new year party.

  • Appriciation post - envlinks: ultraminimalist homepage / dashboard
  • I've tried nearly every selfhosted dashboard out there and in the end settled for static html/css/js. If you want to access links quickly by typing abbreviations then use something like https://github.com/Ozencb/tilde-enhanced. A lot lighter and can be used with an existing webserver too.

  • How to access traefik hostnames from tailscale clients
  • https://tailscale.com/kb/1054/dns#nameservers

    and

    https://tailscale.com/kb/1114/pi-hole#step-3-set-your-raspberry-pi-as-your-dns-server

    Set tailscale to use your dns server to resolve your services (or all traffic if you prefer). Assuming your dns server is on 100.x.x.1:53, then put 100.x.x.1 as a nameserver.

  • Infrastructure-as-code for friendly neighbourhood single board computer?
  • For not having to remember ports, use a reverse proxy. Keep configuration text files in a repository somewhere, online or offline. Then maybe write an ansible playbook to install all the packages you need and configure as you want. For services that don't have config files, document in a personal wiki what you do to have it set up.

    I currently have a lot of things installed and use a mixture of docker compose files and config files (podman can also use compose-style files). I've written down a guide for myself on how to redeploy my whole server and plan to use ansible to reproduce the setup.

    Flow charts are also good to visualize the state of things.

  • Docker Container Status Displays on Public Website
  • How about Uptime Kuma status pages? They're separate from the admin page and you can add Docker containers as monitors.

  • Is game theory as insightful as it's made out to be?
  • I don't know extensively about it, but I have engaged with crossover science/biology/economic topics that deal with modelling "rational agents" to derive predictions. I find it overly reductive and hyper-individualist. It uses weird justification from "human nature" and static ideas of "conformity", "cooperation" and "non-cooperation" that only concern form and quantitative measures, depriving it of symbolic and meaning content. Its games and experiments are hyper static, isolated scenarios where real world implications and (material) relations are cast aside as "irrational" or unimportant factors, whereas for real humans these factors are central to their decisions and worldview.

  • US cultural hegemony and cultural self-confidence
  • Many have already said a lot, so I won't write an essay here. I agree to a certain extent that culture is steered by the US in the popular consumer market. But if you take the center/periphery model of culture seriously (I don't), then you can expect a lot of niche/scene things to come out of periphery nations and in turn influence the center nations, like US/UK. I can comment a few things:

    • Artistic merit lies in the eye of the beholder.
    • Just because something is popular doesn't mean it's good. Likewise, if something that isn't popular doesn't mean it's bad.
    • Hollywood has a lot of budget, big music labels in the US/UK have a lot of budget. They can hire experienced producer, promoters, gig/cinema managers etc. to promote and distribute their stuff. Art in the East does not often have the same budget to distribute and promote. This means lack of exposure on the consumer end.
    • Lack of local exposure on the artist end. If "Western" music is enjoyable, and Eastern musicians make music inspired from it, what's the power play here? It's not necessarily a hegemony, it's a matter of recognising lineage and historical contingency.
    • Watch some USSR movies (e.g. Tarkovsky) and listen to some USSR music (e.g. Kino).
    • A lot of Japanese anime/manga also has "unlikeable and selfish main characters, and boilerplate, tropey plots." Big budget and high incentive to pump out a lot of content will lead to slop, but there's always a % that produces instant hits and cult-classics.
    • There's a lot of cool and hip Eastern-based music out there, you will have to look outside the top charts though (same goes for Western music). Again, your opinion lies ultimately in the eye of the beholder: I find Hollywood movies too cookie-cutter, and Western top chart music too overproduced and formulaic still. There are small scenes and collectives anywhere, pushing the frontier for arts and media. What about ZA/UM, making Disco Elysium?
    • Lots of cool scenes in London/New York come from immigrant/world musicians. Just because it comes from the US/UK doesn't make it "Western".
  • selfhosted service to share files to SSO-authenticated users ?
  • SFTPGo supports OIDC and has a lot of ACL features. It allows users to have their own folders, as well as shared volumes between a group.

  • Stop bothering the billionaires...you're taking things away from them

    Libs: stop telling the rich to throw money away, it's not gonna solve everything.

    Also libs: Ukraine aid asap, thoughts and prayers.

    Rest of thread contains: billionaire apologia and dehumanization of the homeless

    Fuck crapitalist realism

    Eat the rich

    Link because I'm not a lib

    13
    [CW: suicide] Kiwifarms/EFF struggle session over on dot world
    lemmy.world The endless battle to banish the world’s most notorious stalker website - Lemmy.world

    The endless battle to banish the world’s most notorious stalker website::undefined

    Ledditors griefing over internet "censorship" and muh freeze peach principles that were apparently violated when effective, direct measures were used to combat fascism.

    > I don’t think we should ever celebrate people being deplatformed...If the content is illegal pursue legal means to punish the posters...But let’s say they win, and they get the domain blocked everywhere. They’ll just launch a new domain, just like all the pirate streaming sites do.

    Are you implying you shouldn't try to do anything because the fascists will (deterministically) win? Hence why the people trying to shut them down went straight to the ISPs because they know they can win the ISPs over on moral grounds?

    > [...] you have to decide if the internet is a human right or not. If it is, it must be for everyone, or it is for no one. As soon as we make exceptions to basic rights, those rights get eroded for everyone. Because people in power will bend the exceptions to political expediency.

    Fascists don't deserve basic rights.

    54
    I keep closing my browser tabs by accident with Ctrl + W

    While editing in an input field, I'm so used to going for Ctrl+W instead of Ctrl+Backspace because it's more ergonomic. But almost all modern browsers use Ctrl + W to close tabs. Since when was this a convention? I'd love to go back in time and git revert this change. Incredibly frustrating.

    TL;DR: old man yelling at clouds.

    30
    Lemmy Support @lemmy.ml lckdscl [they/them] @whiskers.bim.boats
    Custom theme/theme modding not working?

    I'm trying to add a modified css for lemmy-ui to my self-hosted instance running on Docker. I'm following this guide but the custom theme is just showing up as litely. Steps taken:

    • Went to bootstrap.build, made the necessary edits.
    • Exported the bootstrap.min.css as well as the _variables.scss
    • Renamed them to theme-name.css and _variables.theme-name.scss
    • Do the necessary bind mounts so lemmy-ui can access the files. Can confirm the files are correct and appear within the container.
    • From lemmy web ui, select from drop down the theme called theme-name (it shows up with the right name and all).
    • Press Save, but theme is just litely.
    • Use dev tools on browser and can confirm theme-name.css is just the litely css. cat theme-name.css within the container is showing the right content.
    • LEMMY_UI_EXTRA_THEMES_FOLDER is set correctly since the option for theme-name is showing up, it's just loading litely instead.

    Not sure what I'm doing wrong here :/

    12
    lckdscl lckdscl [they/them] @whiskers.bim.boats

    I self-identify as an nblob, a non-binary little object.

    Posts 5
    Comments 299