Ever wanted to get Ruby talking to a serial Device?
The key step is getting the Development Kit set up, which will allow you to install the serialport gem from source
- Download & Install Ruby. If you’re on windows, the RubyInstaller is great
- Download & Install the DevKit. Find the installer on the page above, use these installation instructions
- Install the serialport gem as normal:
gem install serialport
And you should be good to go!
Here’s an issue that almost stopped this blog from going up:
You’ve set up a shiny new webserver, installed php, mysql, and it all seems to be going swimmingly. You’ve even created phpinfo() file and everything seems to be working.
Then you copy something into the html folder, and just get endless 403 errors when trying to access it.
So you faff around with permissions, users, groups. No change, nothing works.
In my case, SELinux was the devil here.
This ServerFault post shows how to fix it
ServerFault: Completely random 403 errors despite explicit Allow from all
and for more info:
CentOS Wiki: HowTos > SELinux
Thanks for reading, It’s a pleasant surprise…
Here’s the idea:
You’re trying to work out how to do something (install/configure a bit of software, fix a laptop, etc) and you spend hours hunting through Google for the tiny nugget of data that helps you fix it.
I’d like to give back a little, so once I’ve figured my way past a particular problem, I’ll post how I fixed it up here!
My only hope for this site is that it saves a little hair pulling for sometime for someone, somewhere.