Skip to main content

Posts

Showing posts from 2012

Using scp for file transfer

From remote host to local host $ scp your_username@remotehost.edu:/some/remote/directory/\{a,b,c\} .  From local host to remote host $ scp -r foo your_username@remotehost.edu:/some/remote/directory/bar  These commands were wimple extracted from the elaborate guide http://www.hypexr.org/linux_scp_help.php

Creating simply correlated data in R

Although it might appear as a trivial task to a R user with 1 or 2 weeks of R experience, I thought that this might help to a total noob like me. It's fascinating how you can avoid using loops in R to get the jobs done in a few lines of code (or commands as one might argue...) So you end up with a simple 2-D data set with some correlation, nothing fancy at all. Anyway, I needed this to play around with Principal Component Analysis (PCA), more on that later. Rendering...

SSH login without password

As the server passwords comprise of rather painful combination of characters, I often find it annoying to type the password every-time I ssh to a remote server. This annoyance turned into a marked irritation when RapidSVN on Ubuntu 11.10 prompted for password every-time I tried to update, commit or add a file to the repository. As a workaround I was aware that I could use my public key but I wasn't quite aware on how to do it. Apparently it turned out to be a quite straightforward.   Note: You should have a ssh client installed - Ubuntu has it by default Step 1 : Generate rsa key pair (private/public) in your local machine.   Step 2 : Login to the remote server using whichever the method you used earlier to create a directory ~/.ssh   if the directory doesn't already exist. Step 3 : Now that you have create the directory exit from the remote server and append your public key to the 'authorized_keys' list in the remote server. Step 4 : D