Installing nodejs and npm on Linux CentOS

You will need to have root access to your server or have access to an account that has sudo powers on your servers. Check this post to see how to give a linux user sudo powers. I did some experimentation, as my usual, to get comfortable with all the commands I was using. If you…

Adding disqus comment counts to ghost themes on linux server

You should first have disqus comments in your posts enabled. Check this post to see how. Log on to your linux ssh terminal and lets go to the ghost themes directory. [ahmed@amayem ~]$ cd /var/www/ghost/content/themes/ You should be running ghost using its own user, which is probably called ghost. Since we will be modifying things…

Adding disqus comments to ghost themes on linux server

Getting the Disqus code First you will need to make an account on Disqus. Login to your disqus account and go to settings. Click on universal code to get the code you need. Copy the code. It should look something like this: <div id=”disqus_thread”></div> <script type=”text/javascript”> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO…

Installing a ghost theme on linux centos server

I will be using centos logging in through ssh. I assume you have git installed. If not simply issue this command: yum install git To install new themes in ghost we need to put the new themes in the ghostdir/content/themes directory. So first thing’s first let’s go there. [ahmed@amayem ~]$ cd /var/www/ghost/content/themes/ You should be…

Giving a Linx User sudo Power

There are two ways to do this. Add the user to a sudoer group Give the user sudoer powers directly We will be doing this using the root account. Common Tasks The file that holds the crux of this task is /etc/sudoers. Let’s get familiar with it: [root@amayem ~]# cat /etc/sudoers ## Sudoers allows particular…