As you all know, we’re having a problem with Netbeans while using svn+ssh. When we try to our first commit/update at Netbeans, the username is fetched from the localhost (i.e. cnsnyldz in my case) rather being fetched from what we entered at Netbeans IDE (i.e. e1449271).
Before now, we are obliged to do a dummy checkout first, then we could use svn. I have come up with a solution for this situation. I have deleted the project from my NetbeansProjects folder and re-checkout it from svn, using the below code:
Using two usernames consequently has solved my problem. I hope it also helps you.
If you are using svn+ssh protocol for version control system, you can be bored to enter your password each time you want to update, commit etc. You can use SSH Private Key Authentication method to get rid of this. Follow these steps:
In your client computer, create a key-pair and upload it to the server:
ssh-keygen -t dsa -f ~/.ssh/id_dsa -P ”
scp ~/.ssh/id_dsa.pub <username>@<server>:
Connect to the server using ssh and save your public key:
cat id_dsa.pub >> ~/.ssh/authorized_keys2
chmod 600 ~/.ssh/authorized_keys2
Then, add this private key file into NetBeans:
- Open Versioning->Checkout menu.
- Edit tunnel command as, “ssh -l <username> -i ~/.ssh/id_dsa”
Now, you should be able to use this repository without entering your password.
This week I started to work on Last.fm and Google Android. I started to get familiar Eclipse Plugin of Google Android. For example I learned something about Dalvik Debug Monitor Service (DDMS) like how to log etc. Moreover, I made connections to Last.fm services from pure Java application. However, I could not connect to the services on the Android because it throws: “java.lang.VerifyError: net.roarsoftware.lastfm.Caller” exception and I am going to try to solve this problem as soon as possible. Lastly, I did some test using SVN.