break summary and reorg images for posts to appear nicer on overview

This commit is contained in:
2025-03-21 23:27:36 +01:00
parent 25513a6b48
commit c3fe0986d1
19 changed files with 108 additions and 72 deletions

View File

@@ -9,10 +9,13 @@ tags:
- guide
---
{{< figure src="/img/blog/gogs-logo.png" class="sm pull-right" lightbox="none" >}}
Since end of 2014 I published some of my Free Software code mostly Bash, R and HTML/PHP on a [self-hosted gitweb instance][1]. I did this because I wanted to share the work Ive done with other people because Ive learnt a lot by reading other peoples code. Although Im just a „hobby programmer“, I hoped at least some people can benefit from it.
<!--more-->
{{< figure src="/img/blog/gogs-logo.png" class="sm pull-right" lightbox="none" >}}
The last few days, I switched from [gitweb][2], a very simple web interface for my git repositories, to [Gogs][3], a feature-rich webservice which still is lightweight, and quite simple to install and maintain and of course Free Software! By doing so, people can now register [with my Gogs instance][4], open issue tickets, fork my projects and send pull requests very similar to non/semi-free services like GitHub or GitLab.
## Installation
@@ -20,10 +23,10 @@ The last few days, I switched from [gitweb][2], a very simple web interface for
As a user of the German hosting service [Uberspace][5] I had to follow some special ways to install Gogs. But thanks to a [nice guide][6] it was quite simple, so it was finished after only 15 minutes. The only tricky part was the SSH feature with which I spent a few hours to make it work. The problem was that using the same public key with Gogs as youre using for logging into the servers SSH wont work. Youll have to generate a new SSH key and use its public key for Gogs. Then you have to edit your clients SSH config:
```
Host src.mehl.mx
HostName src.mehl.mx
User your-username
IdentityFile ~/.ssh/id_rsa_gogs
Host src.mehl.mx
HostName src.mehl.mx
User your-username
IdentityFile ~/.ssh/id_rsa_gogs
IdentitiesOnly yes
```
@@ -32,9 +35,9 @@ This forces your client to use the Gogs-specific SSH key for every connection to
**Update**: Its best to use the built-in server if you cannot create a separate user for Gogs and if you depend on using the default `~/.ssh/authorized_keys` file for other use cases than gogs (e.g. to log in). The problems lies in Gogs behaviour: sometimes it rewrites the `authorized_keys` file without being asked to do so, and as a result you cannot log into the users account anymore via SSH! To make the solution easy for you, heres the excerpt of my `custom/conf/app.ini` file:
```text
[server]
START_SSH_SERVER = true
SSH_PORT = ${DEDICATED_SSH_PORT_FOR_GOGS}
[server]
START_SSH_SERVER = true
SSH_PORT = ${DEDICATED_SSH_PORT_FOR_GOGS}
SSH_ROOT_PATH = /path/to/the/separate/authorized_keys/file
```
@@ -49,9 +52,9 @@ Before beginning with switching to Gogs, the migration process was the most inti
Now please feel free to browse through [my repositories][7] and work with them. You can also have a look at [my archived, not-working-anymore gitweb][8] page to see the striking differences between both.
**Update 28.02.2016:**
I tested the migration assistant with a larger repository. It still worked like a charm: All branches, releases and commits are taken over. However, issues, pull requests, and wiki entries are not transferred, at least not natively. Maybe therere tools for that?
Additionally, I more deeply elaborated the SSH problems and solutions if youre using a shared host, or/and if you cannot create a separate user for Gogs and you use SSH keys to login into that user.
[1]: https://blog.mehl.mx/2014/sharing-is-caring-my-git-instance/