What Do I Install on My Machine?
This post is just something that I want to share to you. And this can be also as a reminder and guide for me when I have a freshly installed OS on my machine.
I am a Linux user. I’m currently running Ubuntu 14.04. I will give you my list of programs, tools, and some applications that I install after installing a fresh OS. I will also show you how to install them. So let’s get started.
As we all know, LAMP stands for Linux, Apache, MySQL, and PHP. These are open-source softwares used to make your web server running. Since I am running on Ubuntu, which is a Linux distro, we don’t have to take care about it. What we should just install is just the Apache, MySQL, and PHP.
To install Apache, just run this line of command in your terminal:
That’s it. To check if it works, just open your browser and type in http://127.0.0.1 or
localhost. It should display “It works!” on the page.
MySQL is basically a database management system. It is where you store data from your web application and retrieve data that is being displayed on your web application.
To install MySQL, run this line of command in your terminal:
After install MySQL, activate it with this command:
To finalize the installation, run this command:
A prompt message will ask you a lot of questions. Just answer all of them with Yes.
PHP is a server-side scripting language used to build dynamic websites.
To install PHP, run this line of command in your terminal:
Installing LAMP won’t install phpMyAdmin yet. To install phpMyAdmin, just run this on your terminal:
That’s it! As easy as 1-2-3!
Text editors are very essential for all developers. Ubuntu has a pre-installed text editor, Gedit. But I don’t like it. That’s why I always use Sublime Text as my text text editor.
To install Sublime Text 2, download the
.tar.bz2 file from Sublime Text’s website and extract it by running this command on your terminal:
If you got the 32-bit installer, just replace the x64 to x32 on the command.
After extracting, you’ll get a “Sublime Text 2” folder which contains all files that Sublime Text will need. We have to move that folder to “/opt” folder.
If you want to be able to run Sublime Text through the terminal by just typing “sublime”, we must create a link in “/usr/bin”.
Now, we also need to have a launcher in Unity. So we will create a .desktop file in “usr/share/applications”.
This will let Sublime Text 2 open up a blank document named as “sublime.desktop”. Paste these line of codes in the document:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
There you go! You already have Sublime Text 2 on your machine. If you want to install Sublime Text 3, you can get a
.deb installer from Sublime Text’s website.
Other than Subime Text 2, I also use Vim when I develop on Ruby on Rails. Installing Vim is pretty easy, just run
sudo apt-get install vim
Git is a version control system used to track the changes of your file/code. It can also be used to collaborate with other developers.
There are two ways of installing Git. It is by installing from source or through
apt-get. I’ll just show the easiest way to install Git, which is using
apt-get. Just run this command on your terminal to install Git.
If you need a merge tool for Git, I am personally using Meld. You can install it by running:
I install node.js is not just for building powerful applications. But also because of NPM (Node Packaged Modules) which is a package manager for Node. I use NPM for installing tools like Grunt and Bower which I also use for developing applications.
I use NVM (Node Version Manager) when installing Node.js because it provides you an easy way to switch between Node.js versions. To install Node.js using NVM, you must first install NVM itself. There two ways of installing NVM. To install NVM using cURL:
To install NVM using Wget:
These scripts clones nvm repository to
~/.nvm and adds the source line to your profile. (
Once you have installed NVM, you can now use it for installing Node.js. To download, compile and install the latest v0.10.x release of node, do this:
And then you can now use the installed version:
I install Ruby because it is required by Octopress which I use for this blog. And not just that, I’m also a Ruby on Rails developer. We will use RVM for installing Ruby. Before installing Ruby itself, we must first install RVM by running this command.
After installing RVM, we can now use it to install the latest ruby version.
1 2 3
MongoDB is just another database management system that I use for development. MongoDB is actually a relational database. Your data will be stored in a JSON format.
Now, let’s install MongoDB with PHP support.
After installing MongoDB, we must also install the MongoDB-PHP driver. To do that, we must first clone the repository from GitHub
Now, go inside the freshly cloned repo and runt these commands:
1 2 3 4
Now, we need to copy the driver to php extension directory.
1 2 3 4 5
Now, we have to create a mongo.ini file which will be stored in /etc/php5/conf.d/ with the line
Finally, restart apache by running
sudo service apache2 restart
We may also need something like phpMyAdmin for our MongoDB. I use RockMongo. Just download RockMongo from there website and extract the file to your web server.
I think I’ve already shared to you all of the important programs and tools that I can’t live without :P How about you? What’s yours?