I was playing around with node.js on EC2 the other day and ran into some trouble installing npm. I was getting this error

[]$ curl http://npmjs.org/install.sh | sudo sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
101  7881  101  7881    0     0  94200      0 --:--:-- --:--:-- --:--:--  148k
npm cannot be installed without nodejs.
Install node first, and then try again.
 
Maybe node is installed, but not in the PATH?
Note that running as sudo can change envs.
 
PATH=/sbin:/bin:/usr/sbin:/usr/bin

My initial attempt at finding a resolution revolved around trying to update the path env setting used by sudo. After spending some fruitless time on this I switched gears and came across Michael Dillon‘s Stack Overflow post which recommended setting up some symlinks to resolve the path issues.

sudo ln -s /usr/local/bin/node /usr/bin/node
sudo ln -s /usr/local/lib/node /usr/lib/node
sudo ln -s /usr/local/bin/npm /usr/bin/npm
sudo ln -s /usr/local/bin/node-waf /usr/bin/node-waf

Minutes later npm was up and running!

{ 0 comments }

We were recently transitioned to Office365 and learned that certain settings and permissions did come across during the upgrade. This meant that some settings and permissions needed to be reconfigured via PowerShell. Back in the days of BPOS, you needed the Migration ToolKit installed in order to use any of the Microsoft Online related PowerShell Cmd-Lets. With Office365, you don’t need this! Instead, you need to open a server side connection to the cloud servers from your local machine. Below are the steps to do this.

  1. Load your Office365 credentials in a variable
    $Cred = Get-Credential
  2. Create a session variable which will configure a connection to the cloud servers
    $Sess = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic -AllowRedirection
  3. Initialize the session
    Import-PSSession $Sess
  4. Run any of the Exchange Online Cmdlets found in the documentation.
  5. Once you’re done running commands, you can close the session
    Remove-PSSession $Sess

Note: The guts of this post came from a Microsoft Article which I never was able to come across in my searching, but rather was pointed to via a service request.

{ 0 comments }

Install git on a cPanel Shared Hosting Account

March 6, 2012

**NOTE** You will need to have compiler access on your shared hosting account in order for the instructions below to work. You can request your host enable this, or pass these instructions along to them and request they compile git for you. From SSH: cd wget http://git-core.googlecode.com/files/git-1.7.9.2.tar.gz tar zxvf git-1.7.9.2.tar.gz cd git-1.7.9.2 ./configure –prefix=/home/$USER make [...]

Read the full article →

Windows XP Guest Reboots Continuously

November 30, 2011

I recently purchased a new Lenovo T410 with an i7 processor to replace my T410 with an i5 processor. While I’m a heavy user of Dropbox for files and portable versions of many applications I use on a daily basis, I tend not to place my Virtual Machines on Dropbox … go figure :-p. This [...]

Read the full article →

Trigger SSRS Subscriptions Manually

October 6, 2011

Looking to resend a single SSRS subscription? In a nutshell, subscriptions are configured via the Report Manager which then configures and are later triggered by a SQL Server Agent Job based on a Schedule ID. This schedule ID can be tied back to a report and a particular subscription owned by a user with the [...]

Read the full article →

Getting Started with Drupal Services Module & REST Server via PHP

July 11, 2011

We recently migrated a client from SugarCRM to a lighter-weight, custom built, Drupal 7 CRM solution that more tightly met their needs. (The decision making process of moving away from SugarCRM as well as the migration/implmentation could be it’s own multi-part blog post). Our client has several landing pages they use for lead generation and [...]

Read the full article →

Parking and UnParking a domain with the cPanel API

February 23, 2011

I was trying to automate the process of creating parked domains on a cPanel server today and found myself playing around with Park module of the cPanel API via the amazing cPanel-XML-API-PHP. This code was really simple and effective in parking a domain <!–?php //Do a little setup… $serverIP = ‘<IP of cPanel server–>’; $user [...]

Read the full article →

WhiteHouse Contributes to Drupal … Again

February 13, 2011

Some more awesome news on the Government/Drupal front! WhiteHouse.gov announced this Friday additional contributions to Drupal. This Follows an earlier contribution in April 2010, and covers the contribution of IMCE Tools which extends the functionality of IMCE. Key main features of IMCE Tools covered in the announcement IMCE Directory Manager – Specify user level permissions [...]

Read the full article →

.NET Framework 4.0 Backward Compatibility

June 15, 2010

During a recent attempt to install a .NET application, I encountered a horrible thing … The installation was bombing out without a good, descriptive error. After banging my head against and doing some amazing google/bing ninja moves, I discovered that this was in fact a ‘feature’ and not a bug related to the backwards compatibility of .NET 4.0 [...]

Read the full article →

Boot from USB in VirtualBox

May 26, 2010

To boot a VirtualBox virtual machine from a USB device, we must first create a disk that maps to the USB drive with the command below VBoxManage.exe internalcommands createrawvmdk -filename C:\path\to\your\HardDisks\USB.vmdk -rawdisk \\.\PhysicalDrive1 -register Note: Use Disk Management or Diskpart to determind the number to follow “PhysicalDrive” Now we can simply make this drive the [...]

Read the full article →