So you are ready to deploy your Sails.js application and you want to use HTTPS (ssl). So you go to the website. Nothing there. A bit of googling takes you to this Stack Overflow question. That doesn’t work.
I have just installed Nginx on my Linode VPS, and I have moved my blog and website to it to. I have also consolidated my blog and personal website into one site.
I have put Nginx in front of Apache, so all the static files are served by Nginx, with the rest (PHP) being served by Apache using Nginx as a proxy.
IPMI data to SNMP
I’ve been monitoring CPU, Ram, HDD, and network usage using cacti for a while, but recently I’ve wanted to monitor temperature and fan data. A couple of servers have IPMI on them, which I can use to access the temperature and fan data, however there doesn’t seem to be an easy way of getting this into cacti.
I started off following IPMI Sensor Data on Dell 1850s and 2850s via SNMP and Cacti by Barry O’Donovan; however that is now a bit old, and it seems that a couple of things seem to have changed.
Linode DDNS updater script
So my domain registrar doesn’t do DDNS (dynamic dns), but Linode have an API to update your DNS records that you have on their name servers, so you can do DDNS with your own domains really easily!
I use my Wifi router with OpenWrt on to run the update script every hour. There are a couple of updater scripts out there, a quick Google will find you some. Below is one I’ve bodged together using a couple I found Continue reading
So I have been playing around with Magento for a couple of weeks and I have come across some very useful code snippets along the way. I have listed them below in the hope that they are useful to me and anybody else in the future. I will be adding more as I come across them. Let me know in the comments if you come across any more!
So by default MythWeb uses the cover art mythtv downloads, which is fine, however when each cover art image is >1Mb, and you have >100 videos, things get a little silly. What can we do about this? Well quite simply we can make the thumbnails ‘manually’, and then tell MythWeb to use our thumbnails. Continue reading
stop lubuntu 11.04 blanking screen.
etc etc etc
Turns out lubuntu 11.04 uses xfce4-power-manager-settings. So to stop the screen blanking / going to sleep / turning off all you need to do is press ALT F2 (Run command) then enter
and then you can set the screen to never turn off! Yay
Don’t know why this isn’t in the System or Preferences menu…
Well after about 2 hours of head desking I have I got the above to all work nicely together.
Firstly you need to install all the prerequisites. If you are using you can install most of these though apt-get. I assume you have LAMP set up locally and you will be testing on this
sudo apt-get install php5-dev php-pear php5-cli php5-xdebug phpunit
This will install a bunch of stuff you will need. If you want to install from source feel free.
So I have been playing with my arduino with a LCD I got ages ago. First off I had to solder some pin headers to the LCD so that I can plug it into a breadboard. I could have soldered the pins straight to the LCD but I used some ribbon cable in the middle, and some veroboard (Note to self: Get a dremel for birthday, that stuff is a pain to cut though!) to add flexibility and some give if/when I drop it… Continue reading
Just got me a linode and have been setting it up for the past hour and a bit. I’m going to use it as a personal svn, testing and development server and I might move this site over there at some point. Maybe
Anyway it is really quick and easy to set yourself up with a linode (or I assume any VPS for that matter), but the documentation that the linode people have amassed is huge, and really helpful and easy to follow. If you have not set up a linux server before then it can seem a bit daunting but their beginners guide is a good introduction and easy to follow for people who have a little bit of linux experience but not experience as I have set up a couple of LAMP stacks before I found it nice and easy. Even creating the SVN server was easy, only needing a couple of commands.
There are other VPS hosts out there but I went with linode because of the massive documentation library, their custom written ‘linode manager’, which works really well and the fact that they were the only hosts that I could find that offered a vps with Ubuntu 10.04. Hooray for them
I was going to make this post a how to set up a LAMP (Linux, Apache, MySQL, PHP) stack with svn and trac however their documentation is really good anyway, so why reinvent the wheel. They don’t how ever have documentation about how to install trac and link it in with svn, so maybe I’ll make that a how to later on. Can’t do it yet because I am waiting for my web hosts to add some dns records for me so I can start using some Apache virtual name based hosts.
There really isn’t any limit on what you can do with a VPS, and with linodes LISP stuff it really is like you have your own server sitting in front of you which you can do with what ever you want. Even what it boot up if you really want…
So if I have inspired you to get a vps then good for you. If you choose to get a linode then please use this link or put in my referral code:
when you purchase one and share the love a little. Thanks