* Setting up a Git server
@ 2019-09-13 1:44 quiliro
2019-09-13 6:08 ` quiliro
0 siblings, 1 reply; 2+ messages in thread
From: quiliro @ 2019-09-13 1:44 UTC (permalink / raw)
To: help-guix
Hello Guix.
I have set up a git server on one machine by adding openssh as a service
in my guix system reconfigure file:
(operating-system
[...]
(services (cons*
(service openssh-service-type
(openssh-configuration
(port-number 2222)))
[...])))
And on a wheel user, I typed the command:
sudo guix system reconfigure config.scm
On a regular user, I added git:
guix install git
I created a new directory and made it a repository with:
mkdir git_test
chmod 770 git_test
cd git_test
git init
I added a new file and commited that file:
echo "This is the first text of the first file." > new_file
git add .
git commit -m "First file added for testing."
So now, from a remote machine which has Git installed, I can:
git clone git clone \
ssh://remote_user@remote_server_IP_address:2222/home/remote_user/git_test
Everything is fairly well. But not as well as I expected. I have the
following problems:
- no users can push
- everyone mush pull with the remote_user's password
How can each user push with their own password?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Setting up a Git server
2019-09-13 1:44 Setting up a Git server quiliro
@ 2019-09-13 6:08 ` quiliro
0 siblings, 0 replies; 2+ messages in thread
From: quiliro @ 2019-09-13 6:08 UTC (permalink / raw)
To: help-guix
Solved. The solution was devised by the great help of nckx. Below is the
turnkey version in detail:
## On the server
mkdir repo && cd repo && git init --shared=group --bare
## On the workstation
git clone ssh://user@server_IP_or_name:2222/directory/of/the/repo && cd
repo && echo "New file created on the workstation." > New && git add . &&
git commit -m "Addition of file on remote workstation." && git push
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-13 6:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-13 1:44 Setting up a Git server quiliro
2019-09-13 6:08 ` quiliro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).