Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

lowercase filenames, fixed markdown indentation

  • Loading branch information...
commit 2eb3d14cd8a721c42045e658bc2a5778e232f068 1 parent 0746dc0
@inolen authored
View
18 README.md
@@ -1,6 +1,6 @@
# rex
- Rex is a tool for Linux machines to remotely execute processes in a virtual environment using your local machine's file system for i/o.
+Rex is a tool for Linux machines to remotely execute processes in a virtual environment using your local machine's file system.
## Installation
@@ -12,35 +12,35 @@
## Setup
- Rex uses SSH for it's communication between machines; each machine must be able to access eachother via public/private keys in order to function.
+Rex uses SSH for it's communication between machines; each machine must be able to access eachother via public/private keys in order to function.
### Remote config
- The remote machine will need to have an account you can authorize as, and it will also need to be able to authorize back to your account/machine in order to perform file i/o.
+The remote machine will need to have an account you can authorize as, and it will also need to be able to authorize back to your account/machine in order to perform file i/o.
- If an account already exists on the remote machine that you'd like to use, please skip ahead. However, if you don't, then you'll need to create one:
+If an account already exists on the remote machine that you'd like to use, please skip ahead. However, if you don't, then you'll need to create one:
$ useradd remote_rex_user
- Next, switch to the new user and generate a pair of keys for authentication like so:
+Next, switch to the new user and generate a pair of keys for authentication like so:
$ sudo -u remote_rex_user -s
$ ssh-keygen
- Now, copy the new public key back to your original machine so that rex can connect back without a password:
+Now, copy the new public key back to your original machine so that rex can connect back without a password:
$ ssh-copy-id youraccount@yourmachine
- Finally, since rex needs to run with elevated privileges in order to setup the virtual environment, you'll need to add this new user to your sudoers list:
+Finally, since rex needs to run with elevated privileges in order to setup the virtual environment, you'll need to add this new user to your sudoers list:
$ echo remote_rex_user ALL=PASSWD: ALL, NOPASSWD: /usr/local/bin/rex >> /etc/sudoers
### Local config
- To configure your account on your local machine, you'll need to also generate a pair of keys:
+To configure your account on your local machine, you'll need to also generate a pair of keys:
$ ssh-keygen
- And then, you need to copy your public key to the remote user you created on the remote machine so rex can connect without a password:
+And then, you need to copy your public key to the remote user you created on the remote machine so rex can connect without a password:
$ ssh-copy-id remote_rex_user@remotemachine
View
0  lib/ConnectionInfo.js → lib/connectioninfo.js
File renamed without changes
View
4 lib/rex.js
@@ -7,10 +7,10 @@
var async = require('async'),
child_process = require('child_process'),
- ConnectionInfo = require('./ConnectionInfo'),
+ ConnectionInfo = require('./connectioninfo'),
fs = require('fs'),
librex = require('../build/Release/librex'),
- SSHFSClient = require('./SSHFSClient'),
+ SSHFSClient = require('./sshfsclient'),
temp = require('temp');
/******************************************************************************
View
2  lib/SSHFSClient.js → lib/sshfsclient.js
@@ -1,5 +1,5 @@
var child_process = require('child_process'),
- ConnectionInfo = require('./ConnectionInfo');
+ ConnectionInfo = require('./connectioninfo');
/******************************************************************************
* SSHFS client
View
25 package.json
@@ -1,20 +1,21 @@
{
"name": "rex",
- "version": "v1.0.0",
+ "version": "v0.1.0",
+ "description": "Remote process execution and virtualization.",
+ "author": "Anthony Pesch <inolen@gmail.com> (http://www.inolen.com)",
+ "main": "bin/main.js",
"scripts": {
"preinstall": "node-waf configure && node-waf build",
"preuninstall": "rm -rf build/*"
},
- "main": "bin/main.js",
- "description": "Remote process execution and virtualization.",
- "homepage": "https://github.com/olalonde/node-notify",
- "author": {
- "name": "Anthony Pesch",
- "email": "inolen@gmail.com",
- "url": "http://www.inolen.com/"
- },
"repository": {
- "type": "git",
- "url": "https://github.com/inolen/rex.git"
- }
+ "type": "git",
+ "url": "https://github.com/inolen/rex.git"
+ },
+ "dependencies": {
+ "async": "0.1.15",
+ "optimist": "0.3.1",
+ "sinon": "1.2.0"
+ "temp": "0.3.0"
+ }
}
View
2  test/test-ConnectionInfo.js → test/test-connectioninfo.js
@@ -1,5 +1,5 @@
var assert = require('assert'),
- ConnectionInfo = require('../lib/ConnectionInfo');
+ ConnectionInfo = require('../lib/connectioninfo');
suite('ConnectionInfo', function () {
test('Validate good connection string', function () {
View
2  test/test-rex.js
@@ -2,7 +2,7 @@ var assert = require('assert'),
child_process = require('child_process'),
rex = require('../lib/rex'),
sinon = require('sinon'),
- SSHFSClient = require('../lib/SSHFSClient'),
+ SSHFSClient = require('../lib/sshfsclient'),
temp = require('temp');
suite('rex', function () {
View
2  test/test-SSHFSClient.js → test/test-sshfsclient.js
@@ -1,7 +1,7 @@
var assert = require('assert'),
child_process = require('child_process'),
sinon = require('sinon'),
- SSHFSClient = require('../lib/SSHFSClient');
+ SSHFSClient = require('../lib/sshfsclient');
suite('SSHFSClient', function () {
var connection_string;
Please sign in to comment.
Something went wrong with that request. Please try again.