You are here

linux

HOW-TO install MySQL on an Amazon AWS Server using EBS

I am using an Amazon Linux AIM so the steps below assume this is the kind of image you have. Most of the steps below actually should work on any Linux server.
It is interesting to use an EBS filesystem so your data is persisted even after termination of your server instance. Using the instance filesystem to store data from MySQL should not be interesting for a database server, as all your data would be lost in case of termination of your instance.

Basic Vi Editing - Most used commands

Every developer has heard of 'vi' at least once in their life. That empty screen with a flashing cursos can be a little intimidating at first. After a few attempts of typing your text and nothing is echoed back to the screen, than it becomes really intimidating. :)
To help those out there who want to be able at least to quit vi editing without closing their Terminal window, here are a few tips and basic commands.
The first thing you should know about vi is that it has two modes of operation:

HOW-TO Install and Run JIRA in Ubuntu - v2.0

A few weeks ago I wrote another article explaining how to install and run Atlassian JIRA in Ubuntu. Well, I was not quite satisfied with the results, so I tried another approach and it seems to be working better now as my previous JIRA installation was extremely slow and crashed due to Out of Memory errors.

So here are the steps:
1. Install Java

HOW-TO Install and Run JIRA in Ubuntu

I use Atlassian JIRA as a tool to control my software development process, registering issues, tasks and bugs and planning development cycles.
So now that I switched to Ubuntu as development platform, I need to setup JIRA on my new Linux machine. I wrote down the steps I followed to achieve this.

1. Install Java
First of all, of course, install Java in your Ubuntu server and test the installation:

HOW-TO Move and Import Subversion Repositories - dump them

A few weeks ago I wrote an article on how to install Subversion and Apache in a Windows environment and another article about how to install those in a Linux environment.

HOW-TO Install Subversion on Ubuntu using Apache in 10 steps

A few weeks ago I wrote an article on how to install Subversion and Apache in a Windows environment. Today I decided to use Ubuntu as my development environment and somehow I felt that it would take many more steps to configure those in Linux than it took in Windows, so I wrote them down for future reference. Here are those steps:
1. Install apache2

Ubuntu Linux OpenSSH

I just installed Ubuntu 9.10 (the Karmic Koala, as they call it) at my home Desktop. First thing I tried was to check whether my ssh daemon was running, and it wasn't. I did have the ssh client but not the scripts to start the server, but no panic. It is quite fast to fix this. Jut open a terminal window and type the following to install OpenSSH.

sudo apt-get install openssh-server openssh-client


I did not need the client as I had it installed already. Here is the result from the command above:

Rotating Log Files in Linux

Applications usually generate a huge amount of log files. Some logging utilities available to programming languages already have the rotating (or rolling) functionality. If this is not the case and you are using some flavor of Linux or Unix to run your system, you might use the logrotate utility. Check if you have it available by typing:

[definenull@hm1446 prp]$ whereis logrotate
logrotate: /usr/sbin/logrotate /etc/logrotate.conf /etc/logrotate.d /usr/share/man/man8/logrotate.8.gz

Find out Linux distro and version

If you need to find out which "flavour" (or distro) Linux you are using just type the following command at the prompt:


[definenull@hm1446 ~]$ cat /etc/*-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)

This might not work on all distros, so a more general approach would be running the command:


[definenull@hm1446 ~]$ lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.3 (Tikanga)

Subscribe to RSS - linux