Quick N Dirty way to Map Commands to remote servers via ssh
You may be running several independent but similar servers at the same time and wasting time by executing commands in all of them one by one. Wouldn’t it be nice to send a command to all of them at...
View ArticlestartKeychain – bash utility to start ssh-agent
For my (and your) future reference, here’s a function to put on your .bashrc or .bash_profile, you can invoke it later at any time to start/re-start your ssh-agent. [bash] function startKeychain {...
View Articlelighttpd, allow “Access-Control-Allow-Origin:*” headers on the server status...
Maybe there’s someone out there who needs to read the output of lighttpd’s status for monitoring purpose like me tonight, and also, like me, you want to do this using JavaScript, but your browser gives...
View Articleubuntu packages for a kick ass web server
Copy and paste the following list on a file, say “packages.txt”. To install all just do: sudo apt-get install $(cat packages.txt) accountsservice acpid adduser ant ant-optional apache2-utils apparmor...
View ArticleMy First Raspberry PI Project: DIY ARM Video Game Console.
I got everything on amazon, didn’t pay for shipping (Prime member): So far I bought: – Raspberry PI ($48) – Raspberry PI case ($14) – Power adapter ($2.25) – SNES-like Controller with USB jack ($10.75)...
View Articlecan’t ssh to ec2 ubuntu instance, /etc/fstab breaks bootup due to missing ebs...
So the /etc/fstab file on your root volume looked like this LABEL=cloudimg-rootfs / ext4 defaults 0 0 /dev/xvdf /mnt/backups auto defaults,comment=cloudconfig 0 2 by mistake you deleted the ebs volume...
View ArticleHow to have a Play framework app autostart during boot on Elastic Beanstalk...
So you’ve created an Elastic Beanstalk environment, you have a play framework distribution which you’ve created using play dist (either on your local environment, or right there on the server, whatever...
View ArticleAWS troubleshooting: how to fix a broken EBS volume (bad superblock on xfs)
As great as EBS volumes are on Amazon Web Services, they can break and not ever mount again, even though your data could still be there intact, a simple corruption on the filesystem structure can cause...
View ArticleHow to resize an EBS (xfs formatted) partition
First of all, create a snapshot of your EBS volume. Then out of that snapshot you will be able to create your new volume. However, when you detach the old one from your instance and attach the new one,...
View ArticleWhat to do when lighttpd won’t start and won’t give out any error output?
So you upgraded your server, or just all of a sudden you try to start lighttpd, it says the server started ok, but you check and there’s no lighttpd process. You then go after your error log files, and...
View ArticleHow to run your Kotlin gradle built app from the command line
So you build your Kotlin app, you went through the trouble of creating a build.gradle script that you build with gradle assemble this outputs a a “build/libs/kotlin.jar” .jar file, but you have no clue...
View Article