Subversion stores all its configuration and passwords under the ~/.subversion/ directory. Wouldn’t it be cool to have your passwords in KWallet or GNOME Keyring? Recently I found out, it is pretty simple.
Do the following to use KWallet with Subversion:
- Install Subversion if you haven’t yet. 😉
- Install the libsvn_auth_kwallet-1-0 or libsvn_auth_gnome_keyring-1-0 package, depending on if you use KDE or GNOME.
- Open the file ~/.subversion/config and search for the [auth] section.
- Uncomment the option password-stores. For example, if you use KDE only, the line looks like:
password-stores = kwallet
It is possible to add both, KDE’s KWallet Manager and GNOME’s Keyring, separated by commas or spaces.
- If you have more than one wallet in your KWallet Manager, set the name with the kwallet-wallet option.
Whenever you commit something in your SVN repository, SVN asks you for the password and stores it in the respective password store(s). In KDE’s KWallet Manager you get a new Subversion folder. (Probably similar in GNOME, but I haven’t tested it.)
Have fun!
Both comments and pings are currently closed.