On Fri, 01 Dec 2023 11:21:32 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote:

>OK, I will have to test it again.
>
>But I have so many RPi units and some have this problem whereas others don't so
>I have to somehow figure out how to test it on all to look for commonality/diff
>between those that pop the GUI dialog and those that don't.
>
>On one where the svn commands work without popping up anything I have this:
>
>Inside ~/.subversion/auth are these dir/files:
>
>svn.simple/03994a04eb338a432667e51f0e0720bf
>svn.ssl.server/52e60f46d8c02303aea5256b18eb7aac
>
>The other dirs are empty.

>So maybe these two together is the store for text based access logins?

UPDATE:
-------
Now I have tried to check out a package from our SVN server into a freshly built
Raspberry Pi4B running 32 bit PiOS (bookworm).

Before I did this I had compared the config between an older installation using
a several years old operating system and this new one and I saw that the old had
this setting enabled:

[auth]
password-stores = gnome-keyring

So I added this to the svn installation config on the new RPi4B

Then on the SSH login I tried to check out the package I wanted and this
happened:

It asked for the password for "bosse"

But I had not told it what user to use on svn so it seems like it forces one to
use the local system username rather than the subversion server username!

In this case they happened to be the same since the new RPi systems no longer
uses pi as the user but some username configured on installing the operating
system.

But after I typed in my password it just hung as before...

So then I opened a VNC session to the GUI and sure enough there was a dialog box
popped up on that window!!!

Here it asked me the following:
-------------------------------
Choose password for new keyring
An application wants to create a new keyring called "Default".
Choose the password you want to usefor it.
Password: *****
Confirm:  *****
       [Cancel]  [Continue]
-------------------------------

So I entered the password twice and hit Continue.

Now in the SSH window the checkout proceeded as it should have in the first
place...

Finally:
--------
After this was done I now created a new SSH session and inside that I went to a
different target directory and issued the same svn command for a checkout and
this time I was not asked for a password and the GUI screen did not pop up a
dialog.

So it seems like svn can be used on the command line provided one first does
this:

- Install subversion via apt
- Run a bare svn command to create ~/.subversion/config
- Edit the config file and enable this:
  [auth]
  password-stores = gnome-keyring
- Go somewhere like ~/projects
- Issue a svn co command for a package on the server
- Enter the requested password
- Access the GUI screen where the dialog shown above is now displayed
- Enter the requested password twice

Now the svn checkout proceeds and apparently any following checkout will not
trigger the GUI dialog.
But I have not tested a svn ci command yet....

Or another package of our svn server..


-- 
Bo Berglund
Developer in Sweden

Reply via email to