Sunday, July 21, 2013

Github Copy Public Key from Terminal to Github.com

VIEW ALL TO COPY

cat ~/.ssh/id_rsa.pub

cat shows contents using word wrap in terminal

POSTING PROVOKED BY
ssh-keygen -t rsa -C "user@email.com"
Your public key has been saved in ~/.ssh/id_rsa.pub
-  needing to copy a public key from terminal & paste into gitub.com
-  with nano, line in terminal is too long to highlight everything on one screen
- xclip from github tutorial did not work

Friday, July 19, 2013

FileZilla Error Folder Write Permission

HTDOCS SETTINGS FOR BITNAMI STACKS...

sudo chown -R bitnami:daemon /opt/bitnami/apache2/htdocs
sudo find /opt/bitnami/apache2/htdocs -type f | xargs chmod 644
sudo find /opt/bitnami/apache2/htdocs -type d | xargs chmod 755

ERRORS THAT CAUSED THIS POST
Error:  open for write: permission denied
mkdir: cannot create directory `test': Permission denied

Wednesday, July 10, 2013

Favorite Linux Commands

cd = change directory / navigate to another file

ls = list folder contents

Ctrl + E = end of line

Ctrl + A = beginning of line

Ctrl + L = clear terminal

Ctrl + K = cut line (delete & copy)


View Processes
top

Search Processes
ps -ax | grep -i skype

Kill Processes
kill
kill 41258

Cloud9IDE SSH Workspace to Amazon EC2

CLOUD9 from c9.io

1.  Create New Workspace > SSH

2.  Hostname:  ec2-184-72-92-230.compute-1.amazonaws.com

3.  Username:  ubuntu

4.  Copy SSH Key

AMAZON from your local terminal

5.  ssh -i PrivateKey.pem ubuntu@ec2-184-72-92-230.compute-1.amazonaws.com

  • Note:  PrivateKey.pem must locally be in same folder as this ssh command

6.  nano ~/.ssh/authorized_keys

7.  Paste SSH key from Cloud9

INSTALL NODE.JS from terminal inside amazon vm

8.  sudo apt-get update
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

CLOUD9 from c9.io

9.  Login Test

10.  Apply

Clone/Copy Virtual Machine on VMware

vSphere Client 5.1
  1. Click on the host > Configuration tab
  2. Select Hardware > Storage to display the datastores
  3. Right-click on the datastore with the VM you want to clone > Browse Datastore
  4. Create a new folder in the store
  5. Right click on the VM folder and select Copy (must be done in the right pane of the Datastore Browser)
  6. Paste the VM to a new sub folder (otherwise the VM will overwrite itself)
  7. Once copied, rename and move the folder if desired
  8. Select the .vmx file within the cloned VM and select 'Add to Inventory'
**VMware needs to bring their software up to 2013.  This process reminds me of 1990s software.