SEARCH

The Geek

Lowell Heddings, better known online as the How-To Geek, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on if you'd like.

Run this command from a terminal window. This works on debian, ubuntu, and redhat. I’m sure it works on others but those are the only ones I have access to.

about 8 years ago - by  |  Comments (6)

This approach works for any linux operating system, including Ubuntu, and is probably most often used in conjunction with web development work.

about 8 years ago - by  |  Comments (9)

If you are doing any kind of PHP development, you’ll almost always be using Apache along with it. Here’s the quick and easy way to get PHP up and running on your Ubuntu box.

about 8 years ago - by  |  Comments (87)

Repositories on Ubuntu are the locations that you can download software from. As a general rule, the default repositories don’t contain the right locations for most software packages that you’ll want to install. You will want to open up the /etc/apt/sources.list file, find and uncomment the following lines

about 8 years ago - by  |  Comments (14)

Run this command from a command prompt inside your project directory:

about 8 years ago - by  |  Comments (0)

Sometimes you will want to freeze the version of Ruby on Rails that you are using to ensure that system level upgrades to the Rails framework don’t break the application you are working on. From within your project directory, you will want to run this command:

about 8 years ago - by  |  Comments (0)

There are many reasons you would want to restore a database from a backup file… But you should also test this on a test server just to make sure that your database backups are working correctly. Here’s the syntax:

about 8 years ago - by  |  Comments (8)

Backing up your database is a very important system administration task, and should generally be run from a cron job at scheduled intervals. We will use the mysqldump utility included with mysql to dump the contents of the database to a text file that can be easily re-imported.

about 8 years ago - by  |  Comments (3)

For every database, you should set the root or sa passwords to something other than the default, unless you want to get hacked. For mysql, the system administrator user is called root. You will use the mysqladmin utility from a command line to set the new password. Notice that there are two commands to be run.

about 8 years ago - by  |  Comments (12)

By default, MySQL only allows connections from the localhost address. The configuration file is usually found in /etc/mysql/my.cnf

about 8 years ago - by  |  Comments (0)

Simply open a new Terminal window and type in this command

about 8 years ago - by  |  Comments (3)

Simply run this command:

about 8 years ago - by  |  Comments (2)

Instead of having to constantly type in ‘sudo’ every time you need to make an admin change, you can use one of these commands to act as root.

about 8 years ago - by  |  Comments (6)

Upgrading Ubuntu Linux is just as easy as installing a new package. Simply run these commands, and your system will be updated:

about 8 years ago - by  |  Comments (2)

I know for most of you this is a very simple tip, but I’ve received a number of requests for understanding what will make this screen go away for good, because otherwise it loads up every time you start up your computer.

about 45 years ago - by  |  Comments (39)

The Ruby language makes it easy to create functions.

about 45 years ago - by  |  Comments (3)

The Ruby language has a very simple control structure that is easy to read and follow.

about 45 years ago - by  |  Comments (8)