Category Archives: Ubuntu

Bash aliases: create your own bash shortcuts!

When I’m building websites especially, I have to work with a lot of deeply nested files. But typing cd ~/public_html/websitename/wp-content/themes/themename/ in the terminal every time is giving me carpal tunnel, so I found a better way:
First open ~/.barshrc in a text editor and uncomment lines 73 through 75 so they look like this:
if [ [...]

Also posted in Linux, Solutions | Leave a comment

How to configure Apache virtual hosting in Ubuntu Karmic 9.10

Before you do anything, back up your original config files. I used to just create a copy of the files with the suffix “.bak” (sudo cp example.conf example.conf.bak), which works, but creates a lot of clutter. Now I use a great little utility called etckeeper which automatically places all files in /etc under [...]

Also posted in Apache, Solutions, Virtual Hosts | Leave a comment

Ubuntu Karmic LAMP stack installation

In the terminal, type:

$ sudo apt-get install apache2
$ sudo apt-get install php5 libapache2-mod-php5 php5-mysql
$ sudo apt-get install mysql-server
$ sudo apt-get install phpmyadmin

Just agree when it asks you stuff.

Also posted in Solutions | Leave a comment

Use ’service’ to start, stop and restart Apache in Ubuntu Karmic

The service service_name command command can be used to start, stop, or restart anything in your /etc/init.d directory. From the command line, use it like this:

$ sudo service apache2 start
$ sudo service apache2 stop
$ sudo service apache2 restart

Also posted in Solutions | Leave a comment

VirtualBox on Ubuntu Jaunty for Testing Internet Explorer in Windows

I really loved using VMWare Fusion in OSX to test my webpages in Windows.  The power to just drag a whole Windows installation into the trash when it gets jacked up is intoxicating. Unfortunatly, Jaunty is still not supported by VMWare, and the bugs were just to much. Plus, I really didn’t like the [...]

Also posted in Linux, Software I use, Solutions, Tutorial, VirtualBox | Leave a comment

lftp is awesome

I’ve been looking for a command line ftp utility that does tab completion and supports sftp. lftp is it! It comes pre-installed on Ubuntu 9.04 Jaunty.
change directory: cd
change local directory: lcd
list directory contents: ls
list local directory contents: !ls
print local working directory: lpwd
Put a file: put filename
Put multiple files: mput filename1 filename2
Get a file: get [...]

Also posted in Linux, Solutions | Leave a comment

External Monitor Resolution Fix for Ubuntu Jaunty

There is a lot of false information floating around the interweb about this one, but here’s how to get the right resolution on your external monitor when running Ubuntu Jaunty on a Macbook 2-1:

Edit the xorg.conf file by typing the following into the terminal: sudo gedit /etc/X11/xorg.conf
Edit that file to look like this:
Section “Monitor”
[...]

Also posted in Solutions | Leave a comment

Ubuntu Features I Heart

I’m working mostly in Ubuntu now a days, and its been a joy since I discovered (read: desperately scoured the earth for) these fantastic applications that give me all the workflow magic I take for granted in OSX.
GNOME Do
A very fast and extensible launcher that does all the stuff I use Quicksilver for in OSX. [...]

Also posted in Musings | Leave a comment

VMware Fusion and Ubuntu Jaunty Jackalope Upgrade Issues Resolved

I have been working in Ubuntu a lot lately and really loving it.  OSX may be prettier, but as far as workflow, nothing beats Ubuntu. I upgraded to the newest distro, 9.04 and had a few issues that I just got ironed out.
Slow mouse problem
After I finished the upgrade and installed 9.04, things [...]

Also posted in VMware | Leave a comment

A list of HTML Snippets in Gedit

Snippets are extremely useful feature of Gedit that make it usable for TextMate fiends like myself. They work exactly the same as in TM: in Gedit go to Edit -> Preferences -> Plugins and put a check next to “Snippets”. Now open, say, an html file, type body and press TAB. Gedit [...]

Also posted in Gedit, Linux, Tutorial | Leave a comment