Connecting to Ubuntu Servers With RSA Keys

Connecting to Ubuntu Servers With RSA Keys

Coding, Guide
I manage a bunch of internal servers and for those that aren't part of the wider web I like to use key pairs to speed up my sign ins and maintenance. Key-Based SSH Logins Key-based authentication is the most secure mode of authentication usable with OpenSSH. Key-based authentication has several advantages over password authentication, for example the key values are significantly more difficult to brute-force, or guess than plain passwords, provided an ample key length. Key-based authentication uses two keys, one "public" key that anyone is allowed to see, and another "private" key that only the owner is allowed to see. To securely communicate using key-based authentication, one needs to create a key pair, securely store the private key on the computer one wants to log in from, and store the…
Read More
Useful Command Line Scripts

Useful Command Line Scripts

Coding
Below is a list of very common linux commands that any linux person should know by heart. From gzipping files, to running backups this is my personal cheat sheet Compressing Files and Folders Unzip 7z Archive 7za x myfiles.7z gzip File gzip -9 file gzip Folder tar -zcvf archive-name.tar.gz directory-name Uncompress Gzip File gzip -d file.gz Remove Files and Folders Removing a large number of files If you're getting this error: /bin/rm: Argument list too long. Use this command: find . -type f -delete Remove folder from SVN rm -rf `find . -type d -name .svn` Remove ._ files find . -name "._*" -exec rm '{}' \; -print Remove Dreamweaver Notes rm -rf `find . -type d -name _notes` Renaming Multiple Files find . -name "*.jpg" -exec sh -c 'mv…
Read More
Basic Linux Commands For Managing A LAMPP Server

Basic Linux Commands For Managing A LAMPP Server

Coding, Guide
Frequently I am asked by clients for details on how to manage a lampp server. While I do not recommend that clients who are not familiar with systems mess with the core system there are a few simple tasks that anyone can do to back or restart basic systems. Let's get started. First you need an account with SUDO access to the server. By SUDO you are going to SSH into the server. SSH? SUDO? Linux servers typically do not have a windows type interface to them and require that you to everything in a command line system. SSH is how we are going to connect to the server. To do this you need a terminal program, OSX on the Mac includes one out of the box. Windows users will…
Read More
Installing GeoIP for Apache2

Installing GeoIP for Apache2

Coding, Guide
From time to time I need to install a way to accurately determine where users are located based on their header information. Thankfully there is a wonderful free database from MaxMind that gives you this ability when you install it with Apache2. Here are the steps to get it all setup on your Ubuntu (or other Linux) server. Let's get started! There are two different databases. One for country and one for local. From the terminal: cd /tmp/ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz gunzip ** Now we've got a folder /tmp/ with two dat files - GeoIP.dat and GeoLiteCity.dat. Copy those over to this shared folder: mkdir /usr/local/share/GeoIP/ cp ** /usr/local/share/GeoIP/ Next we need to install the Apache2 Module for using these databases. sudo apt-get install libapache2-mod-geoip And then we need to configure apache2 to…
Read More
Key PHP Developer’s Tools

Key PHP Developer’s Tools

Coding, Guide
Development Tools Netbeans - http://www.netbeans.org Dreamweaver for UI http://www.adobe.com Flux is good too and much cheaper (OSX Only) http://www.theescapers.com/flux/ TextWrangler for just simple text stuff (OSX Only) http://www.barebones.com/products/textwrangler/ or if you're a PC person go with Notepad++ http://notepad-plus-plus.org/ Filezilla FTP for uploading and downloading to servers http://filezilla-project.org Google Chrome's built in developer tools rock http://chrome.google.com or Firefox with Web Developer and Firebug Addons installed Frameworks The most important thing is, use a framework. Not only does it allow you to work faster, but it also gives you access to a community, as well as forces you to use best coding practices. Kohana - http://kohanaframework.org (Unofficial Wiki for Samples) optionally CakePHP is excellent http://www.cakephp.org optionally CodeIgniter is good - http://codeigniter.com as is the Zend Framework - http://framework.zend.com/download/current/ JQuery - http://jquery.com JQuery UI - http://jqueryui.com Key thing with JQuery…
Read More
Get system specs in Linux

Get system specs in Linux

Guide
I've been looked for a CPUZ type program for my Linux (Ubuntu) so I could see the bios info and what motherboard specs I have in my computer. This little scrips works great. First launch terminal Applications > Accessories > Terminal then type: sudo lshw -html > Myhardware.html The terminal will ask for your password, enter it and then it will generate a HTML file in your home folder called Myhardware.html. Launch your home folder and double click on Myhardware.html to get all of your specs.
Read More
Installing a Virtual LAMPP Server with VirtualBox and Ubuntu

Installing a Virtual LAMPP Server with VirtualBox and Ubuntu

Guide
Part 1 Install Virtual Box Download it free from virtualbox.org and run through the installer. Part 2 Download the latest Ubuntu software. I like the desktop version as I can do other things besides just run a server. Download the ISO here: http://www.ubuntu.com/getubuntu/download Part 3 Install Ubuntu on VirtualBox Launch VirtualBox and create an new virtual machine. When creating the machine, Virtual box will ask what type. Name your machine: Ubuntu Server Operating System: Linux Version: Ubuntu All the other settings are fine as they are setup by default. Once you are back at the Virtual Box select a machine screen, double click on your new Ubuntu Server. The first run Wizard appears. Follow the questions and when prompted to select the installation media, browse to the newly downloaded ISO you downloaded…
Read More
Ubuntu 9.10 Review

Ubuntu 9.10 Review

Review
It’s been a couple of months since the release of the latest and greatest of Ubuntu, Karmic Koala and while we’ve been busy building servers based on the this release we can say with out a doubt it just keeps getting better. The refinements in the Gnome interface really are paying off in spades, as this release is more than ready for prime time. Finally the new file system is enabled by default. By this we mean ext4. While not many people care about this, it adds more speed to the already great linux distro. Overall systems feel snappier and I really chalk it up to this new file system. That and all of the work being done on the boot up and launcher times are really starting to add…
Read More