Category Archives: Linux

The better way to install LAMP on Ubuntu Karmic 9.10

All this comes from here:
https://help.ubuntu.com/community/ApacheMySQLPHP
In the teminal:

$ sudo tasksel install lamp-server
$ sudo apt-get install phpmyadmin
$ sudo gedit /etc/apache2/apache2.conf

Add the following to the end of this file:  “Include /etc/phpmyadmin/apache.conf”

Edit the /etc/php5/apache2/php.ini file and increase the memory_limit value. I used 64M, but that may be overkill.

Also posted in Apache, Solutions, Ubuntu | Leave a comment

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 Solutions, Ubuntu | Leave a comment

Use touch to create empty files

I find myself needing this all the time, especially when I’m doing a tutorial on something nerdy.
Create an empty file in the current directory from the command line:
$ touch filename

Posted in Linux | 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 Software I use, Solutions, Tutorial, Ubuntu, 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 Solutions, Ubuntu | 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, Tutorial, Ubuntu | Leave a comment