- 2015.09.03
- read file from remote server (windows)
- install openssh
- download the latest version from http://www.mls-software.com/opensshd.html
- the blank should not be included in the path where you install it
- e.g. D:\OpenSSH
- create keys
- run 'cmd'
- d:
- cd OpenSSH
- cd bin
- ssh-keygen -t rsa
- it will tell you where the keys are created
- e.g. your identification has been saved in /home/admin/.ssh/id_rsa
- the real path is something like, C:\Users\admin\.ssh
- scp /home/admin/.ssh/id_rsa.pub <user name>@<host name>:
- ssh <user name>@<host name>
- if there is no .ssh directory
- mkdir .ssh
- chmod 700 .ssh
- cat id_rsa.pub >> .ssh/authorized_keys
- chmod 644 .ssh/authorized_keys
- exit
- ssh <user name>@<host name>
- it should not ask you to enter the password this time
- warning: unprotected private key file! / permissions 0xxx for 'path/to/id_rsa' are too open (OpenSSH)
- chmod 600 path/to/id_rsa
- try again
- run R/Rstudio
- install.packages("RCurl", dependencies = TRUE)
- require(RCurl)
- x = scp("host name", "/path/to/the/file", key=c("C:/Users/admin/.ssh/id_rsa.pub", "C:/Users/admin/.ssh/id_rsa"), user="user name", binary=F)
- or
- d <- read.table(pipe( 'ssh -l <user name> <host name> "cat /path/to/the/file"' ))
- install openssh
- read file from remote server (windows)
Wednesday, September 30, 2015
R
Tika
- 2015.09.02
- building the sources
- wget http://apache.tt.co.kr/tika/tika-1.10-src.zip
- md5sum tika-1.10-src.zip
- 092d8bbc51756b180a8d65bbd4620801
- unzip tika-1.10-src.zip
- cd tika-1.10-src
- mvn install
- building the sources
- 2015.08.31
- introduction
- The Apache Tika™ toolkit detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF). All of these file types can be parsed through a single interface, making Tika useful for search engine indexing, content analysis, translation, and much more.
- supported formats
- introduction
Subscribe to:
Posts (Atom)