search for: rdist

Displaying 20 results from an estimated 87 matches for "rdist".

Did you mean: dist
2012 Apr 27
15
puppet way of handling rdist and triggers
We have an existing "management system" of sorts, based on rdist. I''d like to know the best way to migrate it to using puppet. Currently, we have a local binaries tree, rdisted out nightly. We also make use of rdist''s extra capability to trigger scripts when and if named files are updated. I''m not sure what the best method would...
2003 Oct 17
1
ssh-agent and rdist
.... I've got two nearly identically configured RedHat 8 systems, call them A and B. I've generated keys with passphrases on both, added the public key for B to ~/.ssh/authorized_hosts on A and vice versa. On either machine, I can use ssh-agent with no problems. In particular, if I run 'rdist -P /usr/bin/ssh -c testdir myname at B' on A, no passphrase is requested. But the similar command issued on B to try to connect to rdistd on A always asks for a passphrase. This breaks parallel rdist updates. Oddly, if I manually do 'ssh -l myname A rdistd -S' on B, rdistd starts fin...
2004 Feb 19
1
Rsync and rdist-like specials
Greetings, We manage a large farm of systems and push changes, patches, new software, etc. out to our clients using kerberized rdist. It's clunky and slow but it's got the magic of specials. Using a special one can tell rdist that if a particular file changes, preform this command. So, if we make a change to httpd.conf, we can tell rsync to bounce httpd. If httpd.conf hasn't change, the process is left alone. It'...
2017 May 19
0
[OT] how to give ssh options to rdist
Hello, I'm trying to configure rdist over ssh so that it connects at target side as a particular user. I'm using CentOS 7.3 on both ends (I also tested with Fedora 25 with the same behavor) So I create at source side the file ~/.ssh/config under mysourceuser home Host targetsrv.localdomain.local HostName targetsrv.localdom...
2001 Apr 16
1
openssh-2.3.0p1, Krb5 and rdist
Krb5-authentication and Kerb5-TGT-passing is working well with openssh-2.3.0p1. Question: Is there a solution using rdist -P "/usr/local/bin/ssh" without the need for RhostRSAAuthentication, RSAAuthentication or using the Kerberos r-command set? The objective is to do away with ".rhosts/.shost" and private-key authentication when Kerberos authentication is already in place. Using the Kerberos...
2003 Jan 01
1
Simulating rdist?
rsync is great for syncing 2 directory trees, but I want to maintain a master source tree on one machine and copy that to multiple machines. i.e. basically what rdist does The only way I can see of doing this with rsync is to have multiple cron jobs 0 * * * * rsync ... machine1:... 0 * * * * rsync ... machine2:... ...and so on. Is there a more elegant/compact way of doing this? Thanks
2000 May 30
1
Unable to use rdist in parrellel mode with 2.1.0p2 ...
Morning all ... using the following command to sync up the binaries on several machines: rdist -P /usr/slocal/bin/ssh -Rf /root/sync-systems generates the following error message(s): jasper: updating host jasper hermes: updating host hermes attila: updating host attila hercules: updating host hercules ".rcules: LOCAL ERROR: Unexpected input from server: "Couldn't initialise...
2004 Apr 04
1
How to improve this code?
...LSE) #Trade Area Size TAsize <- c(100) custlatlon <- customerlist[, 2:3] for(i in 1:length(TAsize)){ for(j in 1:nrow(storelist)){ cat("Store: ", storelist[j]," TA Size = ", TAsize[i], "\n") storelatlon <- storelist[j, 2:3] whichval <- which(rdist.earth(t(as.matrix(storelatlon)), as.matrix(custlatlon), miles=F) <= TAsize[i]) dist <- as.data.frame(rdist.earth(t(as.matrix(storelatlon)), as.matrix(custlatlon), miles=F)[whichval]) storetag <- as.data.frame(cbind(1:nrow(dist),storelist[j,1])) fincalc <- as.data.frame(cbind(1:n...
2004 Feb 26
1
Distance and Aggregate Data - Again...
...(age). I don't know how to write only those fields out to the file. Any suggestions? Thank you for your help, Danny ##### library(fields) d <- as.matrix( read.csv("filein.csv") ) for(i in 1:nrow(d)){ lonlat1 <- d[i,2:3] lonlat2 <- d[,2:3] distval <- d[,1] [which(rdist.earth( t( as.matrix(lonlat1) ), as.matrix(lonlat2), miles=F ) < 2)] write(distval,file="C:\\outfile.out",ncol=1, append=TRUE) } ##### -------------- Sample Input Data -------------- recid,lat,long,pop,dwell,age 10010265,47.5971174,-52.7039227,584,219,38 10010260,47.5971574,-52.70391...
2011 Nov 07
1
How do I return to the row values of a matrix after computing distances
...ons set.seed(123) nsim<-5 p<-2 ## Generate Random Matrix G G <- matrix(runif(p*nsim),nsim,p) ## Set Empty Matraces dmax and dmin dmax<- matrix(data=NA,nrow=nsim,ncol=p) dmin<- matrix(data=NA,nrow=nsim,ncol=p) ## Loop to Fill dmax and dmin for(i in 1:nsim) { dmax[i]<- max(rdist(G[i,,drop=FALSE],G)) dmin[i]<- min(rdist(G[i,,drop=FALSE],G[-i,])) } I filled the dmax and dmin with the distance values I calculated, but what I really want to fill them with are the rows in G. What should I do? I tried "which" function but it did not work. Thank you in advance!!!!...
2004 Apr 06
1
k nearest neighbours
...hose points within the radius, select the k nearest ones. What I now do is 1) Create an n*m matrix C were I put the distances from all the points in B to the points in A and make NA those cells were the distance is larger than the radius. (The points are geographical locations so I use function rdist.earth in package fields) e.g.: library(fields) data(ozone) A<-cbind(ozone$lon.lat[1:10,]) B<-cbind(ozone$lon.lat+2) C<-rdist.earth(A,B) radius<-180 # The search radius C[which(C>radius)]<-NA 2) Then I make NA everything but the k nearest ones k<-5 # The nearest neighbours rank...
2004 Aug 22
1
latitude longitude data
Dear R-helpers, I get GPS readings with bug counts (bugs meaning insects in this case) made along rows in crop fields and use these to make maps of bug distribution. The GPS readings are not quite accurate enough for my purpose, so since I know what row each reading is made in, I adjust the latitudinal coordinate using: grd<-lm(lat~lon+Row,data)
2008 Oct 06
1
easier way to do this without a loop? (successive euclidean distances between points)
a <- c(1:10) b <- c(.5, .6, .9, 10, .4, 3, 4, 9, 0, 11) d <- c(21:30) z <- data.frame(a,b,d) library(fields) results <- c() for(i in 1:(length(rownames(z))-1)){ results[i] <- rdist(z[i,], z[(i+1),]) } results.1 <- data.frame(results) f <- rownames(z) r <- f[-1] rownames(results.1) <- r colnames(results.1) <- f[1] this does what I want it to do - is there an easier/generic way of doing this. I will be using this to calculate euclidean distances betw...
2008 Oct 27
3
Hostbased authentication without known_hosts file?
Hi, is there any way to use hostbased authentication without the need to have the SSH host keys stored in a known_hosts file? We run a large cluster where we need to have passwordless remote login available. We currently do that with hostbased SSH authentication. But it is error-prone and a lot of work to keep the known_hosts file up to date on all hosts. (This is the same situation like DNS vs
2002 Jan 26
5
[PATCH] Connect timeout
The attached patch adds a new 'ConnectTimeout' option (man page updated in patch) to avoid wasting time when the target host is down. I needed that because I was using rsync/rdist over ssh for massive files update and the default connect() took too long for my purpose. The patch was tested on Linux only, but I used a similar one for ssh 1.2.XX on Linux, Solaris and HP-UX without problems. The patch can also be found on: http://charts.free.fr/openssh-3.0.2p1-timeout.patch...
2012 Oct 01
6
nlme: spatial autocorrelation on a sphere
I have spatial data on a sphere (the Earth) for which I would like to run an gls model assuming that the errors are autcorrelated, i.e. including a corSpatial correlation in the model specification. In this case the distance metric should be calculated on the sphere, therefore metric = "euclidean" in (for example) corSpher would be incorrect. I would be grateful for help on how to
1999 Jan 06
0
FW: SUGGESTION: allow TZ to be specified at time of mount (PR#124 25)
...ION: allow TZ to be specified at time of mount Let me start by saying SAMBA is great and my suggestion is not meant to take away from all that SAMBA already does. I use SAMBA to mount several NT4.0 drives from different global locations onto one LINUX machine located in LDN. The purpose is to use rdist on LINUX via cron to sync the contents of the drives. The problem arises because the timestamps on the files when mounted via SAMBA are not adjusted for timezones. As an example, if a file exists on an NT filesystem in NYC (EDT) and has been copied with xcopy /r/e/i to an NT filesystem in LDN (BST)...
2005 Apr 04
2
rsync is flaky going to Penang
...er in Penang. Several times the job seems to 'hang' and never completes. Penang then is therefore missing a lot of required cad files. Have any of you experienced the same thing and what did you do to fix the problem? Does anyone know of a better tool to use? We chose rsync after rdist gave us problems. Perhaps we're missing an important flag in our rsync commands but I think it's set up correctly. Thanks and Best Regards, Jackie Wright Agilent Technologies - WSD R&D IT Engineer Telnet: 435-6653 or (408) 435-6653 Cell: (510) 825-7638 Fax: (408) 435-4803...
2005 Dec 30
5
rssh: root privilege escalation flaw
...Vulnerability: local user privilege escalation Severity: *CRITICAL* Impact: local users can gain root access Solution: Please upgrade to v2.3.1 Summary ------- rssh is a restricted shell which allows a system administrator to limit users' access to a system via SSH to scp, sftp, rsync, rdist, and cvs. It also allows the system administrator the ability to chroot users to a configurable location. * PLEASE NOTE * This problem was fixed in 2.3.0, but there is another small bug (not security-related) in that version which prompted me to release 2.3.1 today. I will announce that separate...
2004 Jul 13
0
Calculating sum of squares deviation between 2 similar matrices
...0. Matrix 2 is the cluster centroids and is 100x50. The same variables are found in each matrix in the same order. I'd like to calculate the 'distance' of matrix 1 to matrix 2 and get a ranking of matrix 2's distances (and row IDs 1 to 100) sorted by distance. I tried using the RDIST and DIST functions but they have true (Euclidean) distances and all I want is the sum of squares deviation across the 50 variables. I don't know how to program the sum of squares deviation across the 50 variables and do it efficiently. Because of the size of the data I'm not sure that appl...