Posts Tagged Server

How to safely kill rails WEBrick server running in daemon mode

Ruby on rails and the WEBrick Daemon are great for testing however there are times when you start a WEBrick server in daemon mode and later find you need to stop this without restarting the box. This can sometimes be troublesome, especially if you accidently kill a live server. In this tutorial I’ll go through ensuring you kill the correct process. Read the rest of this entry »

, , , , , , , , , , , , ,

No Comments

Installing Ruby on Rails Ubuntu 12.04 LTS using RVM and Ruby 1.9.3

Ruby Rails is a Web application framework created in 2004 intended as a rapid development web framework that runs the Ruby programing language. The latest version of the Ruby is ‘Ruby 1.9.2‘ and was realised in August 2011, it brings many new features and bug fixeses. The most signifiant changes are Block local variables, An additional lambda syntax, Per-string character encodings are supported and a new New socket API (IPv6 support). You can find a great walkthrough of all the new features at Ruby Inside. coinciding with the release of Ruby 1.9 is the Rails 3.1 framework which requires Ruby 1.8.7 or higher. RubyonRails 3.1 brings many new features, most notably: jQuery as default, HTTP Streaming, a new assets pipeline powered by Sprockets 2.0. So this is all good stuff and I’m sure you want to be working with the latest version of Ruby and RubyonRails, especially if you setting up a new server. Read the rest of this entry »

, , , , , , , , , , , ,

4 Comments

How To Install Ruby on Rails Ubuntu Server 11.10

Ruby Rails is a Web application framework created in 2004 intended as a rapid development web framework. It was intended to emphasize Convention over Configuration (CoC) meaning the developer only needs to specify unconventional aspects of the application. For example, if there is a class Sale in the model, the corresponding table in the database is called sales by default. It is only if one deviates from this convention, such as calling the table “products sold”, that the developer needs to write code regarding these names. It has also been designed around the “Don’t repeat yourself” principle. Both of these ways of thinking allow you, with Ruby Rails, to create excellent, dynamic websites very quickly. So to get started we need to setup a Ruby Rails development server on Ubuntu (Ubuntu 11.04, Ubuntu 11.10) Read the rest of this entry »

, , , , , , , , , , , , ,

1 Comment

CPU Limit Ubuntu Server 11.04 Command Line

I’ve was encrypting some files the other day with GPG and found that while the encryption was taking place my computer ground to a halt because GPG was taking up all of my CPU. Normally I wouldn’t mind this as I would just setup a few jobs and go make a cup of tea. Then I though what would happen if I run my encryption jobs on a webserver, well it grinds to a halt. So how do we run encryption jobs on our servers without affecting users, Read the rest of this entry »

, , , ,

No Comments

Adding Swap to any EC2 Instance

Custom Swap IconHave you every worried about your EC2 instance running out of memory, especially when you’re running a EC2 Micro instance witch only comes with a total of 613MB of memory. Well If you’re planning on running anything other then a basic web page you may run out of RAM can cause all sorts of problems, mainly it will cause your instance to crash. Well there is a tried an tested method to get around this called paging or swap space. Read the rest of this entry »

, , , , , , , , , , , , ,

1 Comment

Can I connect to an amazon instance and create more instances?

Can I connect to an amazon instance and create more instances? I have heard this question several times now and the answer is yes. You are limited to running 20 On-Demand and 100 Spot Instances per region with Amazon EC2. If that not enough for you then you’ll need to file a Request to Increase the EC2 Instance Limit, to use more instances.

Each instance is basically a virtual machine running on amazons infrastructure, and each instance is allocated its own address allowing you to connect to it. Because each instance runs independently you can connect to as many as you want simultaneously. Read the rest of this entry »

, , , , , , , , , , , , ,

No Comments

Save Outlook 2010 Archive Remotely

Save Outlook 2010 Archive Remotely

Have you ever had your computer lost or stolen, had to format it, or had a corrupted HDD, well if you have you’ll know its a pain, especially when trying to get you data back. Now with high-speed networks and cheap storage its becoming more common to backup are data remotely. This helps reduce data lost in the event your computer is lost or damaged.

This is all fair and well for your documents, you just copy them to a remote server and you can sleep safe in the knowledge your files will be OK. But what about your emails, these can be just as important, if not more, then your documents, in fact someone told me the other day that his emails were like is calendar and identity and would be completely lost without them, so its worth ensuring they are all backed up correctly. Read the rest of this entry »

, , , , , , , , , ,

No Comments

Snort Email Reports

Snort has many logging ability’s, syslog, unixsock, tcpdumps, csv, xml, unified and my favourite, database. All these logging methods are great if you are going to look through your logs regularly. But if your busy doing other things or maintaining snort isn’t you main priority how are you expected to keep up to date with the logs.

I find that having snort email me every morning with a simple report is a much better way of ensuring that no one is attacking my systems. It only takes me a minute to read through the report and if there is something I think needs looking at I can easily log into my database and get as much information on the event as I need. So how do you setup email reports, well if you installed Snort on a Debian based system it is already installed, just not setup correctly: Read the rest of this entry »

, , , , , , , , , , , , ,

No Comments

Add NRPE host to Nagios

nagios Logo NRPE (Nagios Remote Plugin Executor) is a Nagios agent witch allows for remote system monitoring by executing scripts on a remote system allowing monitoring of disk usage, system’s load or number of users currently logged in and much more.

Normally Nagios can only monitor public services such as HTTP & FTP. This is great if you only want to monitor public servers, however I bet that most people want to monitor their own servers and have access to private information, that’s were NRPE comes in. It works on a client server basis, you install a daemon on the machine you want to monitor, then setup your Nagios server to connect to the remote daemon to gather information Read the rest of this entry »

, , , , , , , , , , ,

No Comments

IP Address Basics

Network Lead with some IP address stuffIf you want communicate with someone then you’ll need some kind of address, weather this be an house address, telephone number or even email, otherwise how will your message reach its destination. This is the same for computers, for one computer to talk to another (i.e. a network) then each computer needs to have an address. This is called an IP Address (Internet Protocol Address) and nearly every computer with a network card will have one. So how do IP Address work and how do they affect me? Read the rest of this entry »

, , , , , , , , ,

No Comments