Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Back to self hosting my code.

Side note: Gitlab is one of the few companies to provide a self hosted version of their VCS.

https://docs.gitlab.com/ee/install/requirements.html

Also gitea is a much more lightweight option and can use sqlite for db. Much easier to deploy on a rpi




not sure how lightweight any of these are, but https://gitolite.com/gitolite/ just needs git and ssh deployed. And it works like a charm.


running all my homelab / private repos off of a tiny gitolite3 server, and i'm always amazed that it all runs on an alpine linux VM that uses 75mb of RAM.

for anything even just sharing with friends or whatnot i won't recommend it though, people do love their web-UI and having to explicitly give someone access can turn off people already.


For a single author, if you have a server with SSH, you don't need Gitolite at all.

The lack of anonymous public access is often a deal-breaker though.


For a single author you don't necessarily need any server at all. A cloud directory or zip files work well.

But gitolite is so easy to setup & maintain, it's not a big difference and for r/w-access management within teams, it's priceless.

I guess one could even hack anonymous access with "PermitEmptyPasswords yes" and "AuthenticationMethods none"


No Gitolite requires keys.


Hence "hack". It needs keys for administration but at a first glance, I see no reason why a git-anon user couldn't be part of gitolite's git user.


You might need to use another user if you want to set its shell to `gitolite-shell username` (no command= for password authentication) but then you'd need to chain sudo or something to have Gitolite run under its own user again... Seems very tricky.

Or maybe you can write a shell that runs a gitolite-shell command is its arguments are not already gitolite-shell?


Ooh this is very nice. Might use this for private projects.

Problem with this is that it’s likely very unfamiliar with most folks. At least with gitea or gl-ce, there’s a familiar interface 99% of developers can use to browse and search code.

Like if I want to share a quick nixOS config, I doubt most people would even be willing to pull the code and only browse via web interface.


I am of the school of thought that you should be using multiple remotes anyways. I don't think there is a good reason not to. Codeburg and, as another mentioned, Sourcehut may be good places to host your code in addition to your self hosted remote.

Radicle[0] is also a really interesting option.

[0] https://radicle.xyz/


I can't wait to check out Radicle again, 1.0 seems imminent. I wonder how usable the average developer will find it.


> Also gitea is a much more lightweight option and can use sqlite for db. Much easier to deploy on a rpi

Worth mentioning Forgejo as well (https://forgejo.org), which is Codeberg's fork of Gitea. Same features and as lightweight as Gitea. Hard-forked a couple of months ago after some transparency concerns from the new parent company that owns Gitea now.


Isn't it just the same thing with a different name? Why is it worth mentioning at this point in time?


Because functionality isn’t the only thing everyone cares about, I use Forgejo for ideological reasons and so do probably most people since it’s mainly an ideological fork.

Why would it not be worth mentioning? The question is quite strange.


The project and community might be worthwhile, but as long as the product is the exact same, I don't see what there is to mention. I'm excited to see what the future holds though, more attention in this space sure sounds good.

Unless my information is out of date?


If you're concerned, you should switch the license of your code, not really where you host it. As long as your license allows LLM/AI models to train on your code, why would you be mad that it does?


My code has a license that disallows using it to create proprietary software, but it seems that proprietary LLMs are still being trained on it.


Training on your code and using your code are very different things. As a human, if your code is open, I can read it, learn how it works and reuse my knowledge to create proprietary source code without infringing on your license.


I am talking about the model itself, not the code it produces. You are not proprietary software.


Almost none of the common licenses allow this, because at the very least they have an attribution requirement. Licenses are being ignored.


Attribution doesn’t apply on training. We’d all be screwed otherwise, it would mean you’d have to attribute everything you learned while reading open source codes to every codebase you read every time you write code.


Either attribute or don't use it, that's what the license says.

"Doesn't apply" is just opinion right now until settled in court, hopefully the other way.

I'm curious to hear why you think so though? Any other license terms you routinely ignore?


> I'm curious to hear why you think so though?

As I said: it would mean you’d have to attribute everything you learned while reading open source codes to every codebase you read every time you write code.


OneDev is really slim and have all I need to start. https://github.com/theonedev/onedev


Sourcehut is great, and I doubt Drew would take the hosted version in that direction.



Are you concerned at all about the raspi’s sd card corrupting/failing? I’d feel like this would always be at the back of my mind


You don't have to run a Pi from an SD card nowadays, and shouldn't do if you can help it. They've supported USB boot for a while and the Pi5 can also boot from an NVMe SSD hooked up to the exposed PCIe lane.


As others have said, Pi now supports USB boot. An inexpensive USB to sata adaptor and a 128GB SSD (~$15) is the most inexpensive option to get started and performs very well.


This happened to me Tuesday September 28th 2001 at 3:30pm. I know because I never rewrote the complicated e-paper code that I lost when my SD card died without a backup :(


I run my rp5 off of nvme


Gerrit for really fine grained control




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: