remote-access

In VOLTTRON, how to use VIP to get agents talk across remote platform instances?

时光怂恿深爱的人放手 提交于 2019-12-02 15:51:47
问题 I am trying to get agents talk to each other across remote platform instances. For example, Agent1 running on machine1 (192.168.1.10) wants to talk to Agent2 running on machine2 (192.168.1.11) with VOLTTRON environment . I think VOLTTRON Interconnect Protocol (VIP) may be a good choice to implement that, but how to set it? Can anyone show me an example? Thanks. 回答1: Are you trying to have two agents talk directly or is the goal for them to publish messages to a remote bus for the other agent

Using a remote host's USB port as local USB (Linux and Windows) [closed]

本秂侑毒 提交于 2019-12-02 14:03:07
I have a USB device that reads data from a system and transfers them to the computer. I am wondering if it's possible to have a Linux single board PC (i.e. Raspberry Pi) to run a script and be a remote-server for my USB device and I can connect to that "remote-server"(Linux) through SSH or FTP or another protocol (over the Internet) and mount that USB port to my computer. Any software would do it, you know how terminal service connects the remote resources, and I need the same, but preferably on a Linux board. My system is Windows 7, so I need to mount that remote-USB as a "local port" so the

Host xxxx is not allowed to connect to this MySQL server

拈花ヽ惹草 提交于 2019-12-02 11:11:03
问题 Well, after reading topics with the same name without success I feel forced to ask again and show you my scenario: I am on a Kali Linux machine, my mysql config file ( /etc/my.cnf ) is setup this way: bind-address = 172.16.1.228 I reset the service I can't enter neither remotely nor localy, I got this 2 errors depending on how I access: root@Adkadon:~# mysql -u root -p -h 172.16.1.228 Enter password: ERROR 1130 (HY000): Host 'Adkadon' is not allowed to connect to this MySQL server mysql -u

In VOLTTRON, how to use VIP to get agents talk across remote platform instances?

纵然是瞬间 提交于 2019-12-02 09:52:42
I am trying to get agents talk to each other across remote platform instances. For example, Agent1 running on machine1 (192.168.1.10) wants to talk to Agent2 running on machine2 (192.168.1.11) with VOLTTRON environment . I think VOLTTRON Interconnect Protocol (VIP) may be a good choice to implement that, but how to set it? Can anyone show me an example? Thanks. Are you trying to have two agents talk directly or is the goal for them to publish messages to a remote bus for the other agent to see? If it's the latter, you can see an example in the ForwardHistorian: https://github.com/VOLTTRON

can i connect to a remote SQLCe database?

◇◆丶佛笑我妖孽 提交于 2019-12-02 08:56:14
We've got an SQL Ce database on a remote machine and we're trying to get a reporting system (using custom LINQ queries) via c# to connect to the database in shared read mode. At this point we're getting an exception "There is a file sharing violation", even when the database has no other conections. Our sql connection string appears thus: using (SqlCeConnection conn = new SqlCeConnection( "Data Source=\\\\telemetry\\C$\\users\\usermetrics.sdf; File Mode=shared read;)) { conn.Open( ); // => exception here ... Is this even possible? 来源: https://stackoverflow.com/questions/7249510/can-i-connect

Start services in parallel

ⅰ亾dé卋堺 提交于 2019-12-02 08:33:36
I have a script which checks if certain service on different servers is up, if it is not, the script should start the service. The problem is, it doesn't start the services in parallel, instead it waits until each service is started. Code: $server_list = Get-Content -path D:\Path\list_of_servers.txt $server_list | foreach { (Get-Service -Name '*Service Name*' -computername $_) | Where-Object {$_.status -eq "Stopped"} | Set-Service -Status Running } I know it's due to the way the script is written, but maybe some of you have any suggestions how to make it better? Cheers! Here is an example of

Failed to remotely execute R script which loads library “rhdfs”

余生颓废 提交于 2019-12-02 06:20:34
I'm working on a project using R-Hadoop, and got this problem. I'm using JSch in JAVA to ssh to remote hadoop pseudo-cluster, and here are part of Java code to create connection. /* Create a connection instance */ Connection conn = new Connection(hostname); /* Now connect */ conn.connect(); /* Authenticate */ boolean isAuthenticated = conn.authenticateWithPassword(username, password); if (isAuthenticated == false) throw new IOException("Authentication failed."); /* Create a session */ Session sess = conn.openSession(); //sess.execCommand("uname -a && date && uptime && who"); sess.execCommand(

Reading remote file size using filesize

瘦欲@ 提交于 2019-12-02 05:53:40
问题 I read the manual that filesize() is able to calculate file size from remote file. However, when I try to do that with snippet below. I got error PHP Warning: filesize(): stat failed for http://someserver/free_wallpaper/jpg/0000122_480_320.jpg in /tmp/test.php on line 5 Here's my snippet: $file = "http://someserver/free_wallpaper/jpg/0000122_480_320.jpg"; echo filesize( $file ); Turns out, I can't use HTTP for filesize(). Case close. I'll use snippet here as a work-around solution. 回答1:

Java RMI:Updating client side objects in the server

社会主义新天地 提交于 2019-12-02 03:27:09
I'm trying to implement a middle-ware for group communication in a distributed system using Java RMI. In there, I need to send an object to server and modify it. So that changes should be reflected in the client side. For example, I will give the most common tutorial in Oracle web site. X.java public class X implements Serializable, Remote{ public int x; // defined as public, just be simple. } Hello.java import java.rmi.Remote; import java.rmi.RemoteException; public interface Hello extends Remote { String sayHello(X c) throws RemoteException; } Server.java import java.rmi.registry.Registry;

How to activate programs on windows from Linux machine

前提是你 提交于 2019-12-02 02:48:16
问题 First I will explain my target Target - execute programs or scripts on my windows machine from my Linux machine I find the winexe tool – this tool perform remotely executes commands on remote windows machine from my Linux – very nice, real example about winexe tool , and how it works: The following example syntax should open the IE on my windows machine from my Linux (very nice ) ./winexe -U login%password -W WORKGROUP //remore_machine_ip "cmd /k cscript C:/open-explorer.vbs" open-explorer