Important Note: According to the Ubuntu Help:
Upgrading Ubuntu has gotten simpler over time. The graphical utility makes it a breeze to upgrade to the next version. This HowTo should work for any beta version in the future, but keep in mind that installing beta software should only be done by those that are sure they know what they are doing.
You’ve just thought of a great new layout for your blog… but making changes to your blog while visitors are accessing it is generally a bad idea, especially if you are running an ad-supported blog. This How-To shows you the list of steps you need to take to get a copy of your production WordPress blog copied down to your local Ubuntu machine. (Should work for any debian linux)
Like anything else on linux, it’s easiest to do things from the command line. Open up a terminal window and type in the following commands
There are a number of ways to kill a process if you know the name of the process. Here’s a couple different ways you can accomplish this. We are going to assume that the process we are trying to kill is named irssi
If you have an unwieldy text file that you are trying to process, splitting it in sections can sometimes help processing time, especially if we were going to import a file into a spreadsheet. Or you might want to just retrieve a particular set of lines from a file.
Setting up an SSH server on Ubuntu is about as simple as it gets. The server of choice is OpenSSH.
The ASP.NET development environment on Ubuntu Linux is called XSP. This is a simple webserver written in C# that can be used for either ASP.NET 1.0 or 2.0 applications. You can install both environments side by side if need be.
When you are trying to install software on Ubuntu or Debian linux using the apt-get package system, quite often you’ll forget the exact name of the package you are trying to install. Here’s how you can get a little help figuring out what the name is.
There is no easier way to get your Ubuntu installation up and running with the tools you need than Automatix. I’m not entirely certain why this hasn’t been integrated into the core of the system yet, because it’s about as easy as it gets.
For this exercise, we will use the mysqldump utility the same as if we were backing up the entire database.
From a command prompt or terminal window, run this command:
Very simple, either use the clear command:
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.
This approach works for any linux operating system, including Ubuntu, and is probably most often used in conjunction with web development work.
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.
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
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:
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.
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.
By default, MySQL only allows connections from the localhost address. The configuration file is usually found in /etc/mysql/my.cnf
Simply open a new Terminal window and type in this command
Simply run this command:
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.
The Ruby language has a very simple control structure that is easy to read and follow.