remote-access

How can I flush GPU memory using CUDA (physical reset is unavailable)

主宰稳场 提交于 2019-11-28 19:52:36
问题 My CUDA program crashed during execution, before memory was flushed. As a result, device memory remained occupied. I'm running on a GTX 580, for which nvidia-smi --gpu-reset is not supported. Placing cudaDeviceReset() in the beginning of the program is only affecting the current context created by the process and doesn't flush the memory allocated before it. I'm accessing a Fedora server with that GPU remotely, so physical reset is quite complicated. So, the question is - Is there any way to

Developing PHP with Eclipse on a remote server (FTP) on Windows

∥☆過路亽.° 提交于 2019-11-28 19:41:21
I'm a real klutz when it comes to Eclipse, but I'm also poor, which is why it is the option I've chosen. I've installed Eclipse 3.5, Eclipse for PHP, and RSE. I've actually gotten to a point where I can create a new (local) project and download all files to my local (Windows) computer. I'm not running any kind of web server on my local box, and am hoping to keep it that way for now. I've imported my remote folder into my local project, where I can see all my PHP files and edit them. But of course, when I save, it just saves the local copy. Is there no "put" command? Can I not save straight to

Use SQL Server Management Studio to connect remotely to an SQL Server Express instance hosted on an Azure Virtual Machine

强颜欢笑 提交于 2019-11-28 16:58:42
问题 Initial Attempt I have an Azure VM with Windows Server 2012, on which I just installed SQL Server 2012 Express Database Engine component. Then, I followed the instructions here to connect remotely with SQL Server Management Studio. Create a TCP endpoint for the virtual machine Open TCP ports in the Windows firewall Configure SQL Server to listen on the TCP protocol Configure SQL Server for mixed mode authentication Create SQL Server authentication logins Determine the DNS name of the virtual

Using Emacs server and emacsclient on other machines as other users

天大地大妈咪最大 提交于 2019-11-28 15:39:17
I know that after I call (start-server) inside an existing Emacs session I can then use emacsclient -c (on the same computer) to create new frames that connect into that server, so that each new frame created by emacsclient has access to the same set of shared state (e.g. buffers). Most of the documentation I've found focuses on the "give me fast access to my local Emacs" use case, and so there are two things that I haven't seen any details of yet: Can emacsclient -c access Emacs servers started by other users, or is it hard-wired to detect only sessions started by my own user? Does Emacs

How Connect to a Azure Windows VM and run a remote script with PowerShell?

早过忘川 提交于 2019-11-28 14:12:36
I am familiar with Linux envs and using SSH to run remote scripts and programs and automatic scripts from my desktop. I would like to have a similar workflow with Windows VMs that I have on my Azure Account. However, I can´t find a straight forward instructions on how to build my local PowerShell scripts. I need only to connect to a VM and call some scripts within it. The best I could find would be this guide from MS https://docs.microsoft.com/en-us/azure/virtual-machines/windows/winrm Or this a litte older blog post. http://fabriccontroller.net/using-remote-powershell-with-windows-azure

How to expand environment variables remotely with .NET?

穿精又带淫゛_ 提交于 2019-11-28 13:24:32
I need a way to expand environment variable on a remote machine. Suppose I have a path to a folder %appdata%\MyApp\Plugins or %ProgramFiles%\MyCompany\MyApp\Plugins and I want to list files in that folder for audit purposes. The only problem is I want to do it on a remote machine, which however I have admin access to. An extra question (but not essential) is how to do that for given user on remote machine? SwDevMan81 You would use GetFolderPath . There are a bunch of different SpecialFolder values that you could use including ProgramFiles and ApplicationData string path = Environment

How can I run Tensorboard on a remote server?

谁都会走 提交于 2019-11-28 13:18:15
问题 I'm new to Tensorflow and would greatly benefit from some visualizations of what I'm doing. I understand that Tensorboard is a useful visualization tool, but how do I run it on my remote Ubuntu machine? 回答1: Here is what I do to avoid the issues of making the remote server accept your local external IP: when I ssh into the machine, I use the option -L to transfer the port 6006 of the remote server into the port 16006 of my machine (for instance): ssh -L 16006:127.0.0.1:6006 olivier@my_server

Running command after sudo login

…衆ロ難τιáo~ 提交于 2019-11-28 12:56:05
I'm trying to execute below code to execute sudo commands but I do not know how execute commands after sudo login String[] commands = {"sudo su - myname;","id"}; JSch jsch = new JSch(); String username = "myuser"; com.jcraft.jsch.Session session = jsch.getSession(username,"hostname", 22); session.setPassword("my@123"); session.connect(); Channel channel=session.openChannel("exec"); for(int a=0;a<=commands.length;a++){ ((ChannelExec)channel).setCommand("sudo su - myname;"); ((ChannelExec)channel).setErrStream(System.err); ((ChannelExec) channel).setPty(true); channel.connect(); System.out

Can't connect to Postgresql on port 5432

浪子不回头ぞ 提交于 2019-11-28 06:24:45
I have PostgreSQL 9.3 installed on a server running Ubuntu Server 14.04. If I ssh into the server via terminal, I'm able to connect with psql. But when I try to configure pgAdmin III to do the remote connection, I get: Server doesn't listen The server doesn't accept connections: the connection library reports could not connect to server: Connection refused Is the server running on host "172.24.3.147" and accepting TCP/IP connections on port 5432? When I run on the server service postgresql status it gives me: 9.3/main (port 5432): online So of course I'm missing something important here. EDIT

Remote mySQL connection throws “cannot connect to MySQL 4.1+ using the old insecure authentication” error from XAMPP

淺唱寂寞╮ 提交于 2019-11-28 02:16:37
问题 I'm running a local copy of WordPress on XAMPP/WinXP for development, but would like to maintain a connection to the remote database. I keep getting "Error establishing database connection" no matter what I try. On the same PC, I can connect to the remote mySQL DB using any number of mySQL clients, and on the mySQL side, the both the user and the database are set to accept incoming requests from any wildcard domain. I can also easily ping the remote database server from my PC (though I don't