Posts

Showing posts from December, 2019

Install Gitea on NAS Netgear

  Download wget -O gitea https://dl.gitea.io/gitea/1.5.0/gitea-1.5.0-linux-arm-7 && chmod +x gitea Create a user system adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git mkdir -p /home/gitea/{custom,data,indexers,public,log} chown git:git /home/gitea/{data,indexers,log} && chmod 750 /home/gitea/{data,indexers,log} Create folder and copy files mkdir /etc/gitea && chown root:git /etc/gitea && chmod 770 /etc/gitea cp gitea /usr/local/bin/gitea Create file service /etc/systemd/system/gitea.service [Unit] Description=Gitea (Git with a cup of tea) After=syslog.target After=network.target #After=mysqld.service #After=postgresql.service #After=memcached.service #After=redis.service [Service] # Modify these two values and uncomment them if you have # repos with lots of files and get an HTTP error 500 because # of that ### #LimitMEMLOCK=infinity #LimitNOFILE=65535 Restart