Configuring SVN from PKCS12 files - eclipse

When I started my current job, I was told to install the Subversive plugin for Eclipse, and given the URL of the repository to pull projects down from. My username and password were/are the same as my Active Directory credentials. So I installed the plugin, created a new repository (don't remember how, but it was easy to do), and have never looked back.
I am now being transitioned to a different team, who also use SVN for source control, but have it set up on a completely different server. I was asked to put in a ticket with the systems people to request access to this SVN server so I could access this other team's code.
The systems person assigned to my ticket just sent me the following email:
Attached are the pkcs12 files that are needed for your access to SVN on [svn.someserver.com]. You’ll need to put these files on your local systems and then add the following configuration to the ~/.subversion/servers file, for your SVN client. I just use the svn command on linux, so my home directory contains the .subversion directory and the servers file is in that directory. I will send your password separately.
Note: I have a Windows machine, so a part of my confusion may stem from the fact that the tech is on Linux and I am on Windows 7.
The attachment was a ZIP file that extracted two separate files:
foo.pem - a PEM file (?)
atannon - a "Personal Information Exchange" file (?); same as my username
The tech followed up with an email giving me my password in cleartext.
I checked my home directory and do not see a .subversion or .svn hidden directory anywhere. I am wondering if I need to follow his directions, but using my Program Files/eclipse/ directory instead.
So I have several questions here, all relating to how to configure SVN access in the manner prescribed by this systems tech:
Why was it so easy for me to get set up with the first SVN server when I started my job (just install the plugin and find the repo through Eclipse's Repo Explorer), and why does this server require so much configuration? I assume there are multiple methods for gaining access to a SVN server, and this 2nd team just uses a more lengthy setup method?
Can someone give me a super-quick rundown of what each of these files are and what purpose they serve? And why I need to install them locally on my system?
Where should I install these files? The tech wanted me to put them in my ~/.subversion directory, but I never created one because they only SVN client I ever installed was Subversive (through Eclipse)
I tried creating a new repository for [svn.someserver.com] in Eclipse. I supplied my username and the cleartext password the tech sent me and now it is giving me a dialog stating I need to "Provide authentication information", asking for SSL settings, and specifically a File and a Passphrase for the Client Certificate...would the files he sent me suffice for this? If so, perhaps the answer to my question above just requires knowing which files to point Eclipse to, and I don't have to install these files anywhere
I usually don't like to ask multiple questions inside of one giant question, but these are all so similatrly in nature, I didn't want to clutter SO with too many closely-related questionss.
Thanks in advance for any help here!

Why was it so easy for me to get set up with the first SVN server when I started my job (just install the plugin and find the repo through Eclipse's Repo Explorer), and why does this server require so much configuration?
First server have less paranoid (if have any at all) security settings, second was configured by Real Admin. Client-certificate authorization is most bullet-proof method
Can someone give me a super-quick rundown of what each of these files
are and what purpose they serve? And why I need to install them
locally on my system?
foo.pem is your Personal S/MIME certificate, which used for client authentication, which you have storelocally and link with repo's server. atannon (I think) contain password for certificate privatekey, which will be asked (TBT) at first operation with repo (or with all, if you don't cache password)
Where should I install these files? The tech wanted me to put them in my ~/.subversion directory
For Windows, $HOME-dir (~ in Tux-world) is C:\Users\<Your Username>\ (Win7) or c:\Documents and Settings\<Your Username>\ (WinXP). You have to find inside this tree servers file (and remember it's location for future). In case of my XP (with TortoiseSVN only, no any Eclipse)
Directory of c:\Documents and Settings\Badger\Application Data\Subversion
30.06.2010 09:02 <DIR> auth
02.01.2012 19:11 6 712 config
30.06.2010 09:02 4 400 README.txt
30.06.2010 09:02 7 832 servers
"Provide authentication information", asking for SSL settings, and specifically a File and a Passphrase for the Client Certificate...would the files he sent me suffice for this?
Yes, pem-file is certificate in PKCS12-format, atannon (I hope) - contain password for it

Related

How to send my project to a colleague?

My colleague and myself are fairly new to RubyMine and to Ruby. We use WinXP Pro.
I want to zip a small Ruby (non-Rails) project and either email it to my colleague or copy it to a share. Note that we are not currently using a single repository for RubyMine projects.
Edited: Please ignore everything above the line. It seems to be causing some generous responders to waste their time. I apologize for that.
Assume the post starts below this line.
I have no internet connection. I want to zip a small Ruby (non-Rails) test project, copy it to a floppy, and deliver it by hand to a friend. My friend has no internet connection.
I would like to confirm that all I need to do is to zip everything including, and below, the project root in Windows Explorer. (I'm assuming that the "project root" is the folder that contains the "gemfile".)
I'm assuming that the gemfile.lock will force my colleague's gems to match mine, even if one of his gems is more up to date than mine.
I'm assuming that the contents of RM's "External Libraries" will be recreated on my colleague's RM, without my needing to include these files in the ZIP.
I would be grateful for any advice.
Use a version control system like git or svn.

Cannot Clone EGit Repo on Eclipse

everyone. I've been struggling with this for a long time now. So I started an Android application using the Android Development Tools (ADT) on my computer and now I want to move this project into a repository on my Ubuntu Desktop 12.04 server, so I can work on it with a friend without constantly overwriting one another. I zipped the project on my computer, extracted and imported it on the server (using Eclipse on both ends) and created a git repository on the server by right clicking and going to Team -> Share Project
Now when I try to clone it from my (Windows) computer, I can't seem to connect properly no matter what protocol I use, be it git, SSH, FTP or HTTP. I want to try HTTP since it's the easiest (or am I totally wrong?)
The server has a static IP address, namely 192.168.1.42 (it also has a WAN address which I'll give my friend once this gets sorted out), and the project, along with the .git folder inside it, are under var/www/git/Eclipse Workspace/Musica
I can browse to that folder on Chrome from my computer, and to the hidden .git folder as well, but whenever I try to connect on Eclipse it says:
[address]/info/refs?service=git-upload-pack not found
And I can't seem to get around that. I've also tried using SSH, but the first time I connect it asks me to add a key, then fails loading the files, and every attempt thereafter fails to connect in the first place. FTP isn't cooperating either, nor is git nor file.
I'm out of ideas. I would really appreciate any guidance. Thanks!

Netbeans - Open remote folder/new project

I have been using Netbeans for several months now and like it a lot. I am trying to enable a way to create a project which accesses live files on my server to make changes. When I create a project using a remote source, it starts downloading all the server files to my computer. This would be just fine, except for the fact that (a) the server has a few gigs of files on it and (b) there are two of us that will be making changes on the server.
In the past, I have worked with IDEs that just open an FTP or SFTP connection and will download the file you want to edit, and then upload that file back to the server when you save it. Preferably, this is what I would like Netbeans to do.
I have tried adding a FTP folder in Windows, but Netbeans won't open it. I have tried using Swish and setting up an SFTP folder, and Netbeans won't find the Swish folder altogether.
On a side note, I understand what I am doing is horrible practice, but it is a small site and I am usually the only one working on it. I haven't worked on the website in the past several weeks and just thought it would be easier to get access directly than re-downloading the entire server's worth of code/images/videos/etc. Any help would be appreciated.
NetBeans does not support what you want to do. However, if you put your site under Subversion/Git (revision control), you could check out the content, modify it locally and push modification back remotely.
This would also help avoiding code clashes when your friends work on your website too.
Actually Netbeans supports this for php projects.
Just choose :
PHP Application from remote server
(but git is the best solution anw as it gives you version control as well but the above is useful if you want your server files to be updated when you just press ctr+s)

Removing SVN username and password from Eclipse does not work in Windows 7

I'm using Eclipse (Helios) 32Bit in Windows 7, with Subclipse 1.6.x.
I want to reset my SVN username and password. On the internet, I found the following steps:
Close Eclipse or RAD/WSAD
Navigate to the following directory replacing {User} with your Windows logon id.
C:\Documents and Settings{User}\Application Data\Subversion
Delete all files under the Subversion directory
Open Eclipse or RAD/WSAD
Synchronize with your SVN repository
If prompted click Accept Permanently to trust the certificate
When prompted enter your Subverion user id and password
These steps aren't working. When I open Eclipse again and synchronize with the repository, it doesn't ask for a username or password.
Other information:
I tried deleting the files in the Subversion directory, but when synchronizing, Eclipse creates a folder there again.
In another post I read about "deleting the .keyring file", but I couldn't find the location of this file.
In the Secure Storage contents tab, I only have this:
There are different possibilities where passwords could be stored in eclipse and subversion. The keyring file is stored in an installation of eclipse I have used with subclipse at <root>/eclipse/configuration/org.eclipse.core.runtime/.keyring. You should at least look if it exists there. The location of that file may be overriden by command line parameters, but that you would know. See the article "How to change Eclipse SVN plugin password" for some more information.
For another option, you could check:
Go into the Preferences by Windows > Preferences.
Select there General > Security > Secure Storage.
Go to the tab Contents and expand there the entry SVN.
You should see now a local cache of SVN related things that SVN can use to answer the password question for the server. Delete the entries that is cached for the location you want to login as a different user. Ensure that your subversion directory is cleaned as well:
Windows XP: C:\Documents and Settings\{User}\Application Data\Subversion
Windows 7: C:\Users\{User}\AppData\Roaming\Subversion\
And delete the .keyring file as well, if you find it.
I've found the fil containig my SVN credentials at ...\Eclipse\config\auth\svn.simple\
https://casecomplete.zendesk.com/hc/en-us/articles/200685197-Resetting-stored-Subversion-credentials
This worked for me. deleting all the files, in the svn.simple directory (for windows 7) deletes all the stored passwords. One will have to set them, while commiting content again, but that is obviously through the usual means.

Joomla installation of plug-ins

How & where to change fix upload permitions for joomla.
After installation of the plugin or module, i have no rights to edit file/directory.
thnx
You need to either enable the FTP layer and put in your username and password so that Joomla can create new directories with the proper permissions or you need to get a host that runs PHP as a CGI. The latter is preferable as the FTP layer is considered a security risk.
By default, Joomla will try to fix the permissions of files and directories during the install process, but it is not always successful depending on the server configuration. One of these 2 methods should fix your issue with future installs.