RSS

Tag Archive | "*nix"

Nightmare MySQL migration

Wednesday, September 13, 2006

1 Comment

I’ve been migrating a large number of websites over from one server to another, always an enjoyable task. So I get to the last one, copy the database over and do the normal mysql import along the lines of: [code]mysql -ufoo -pbar database_name < database_name.sql[/code] Errors++ Turns out the Donke^H^H^H^HDeveloper who built the application didn't care about things like [...]

Continue reading...

Excluding folders when creating a tarball

Wednesday, September 13, 2006

0 Comments

When creating a tarball, to exclude folders one simply uses the –exclude= flag: For example to tar up the contents of /var/log but to exclude /var/log/apache & /var/log/mail/ tar -jcvf logfiles.tar.bz2 /var/log/* --exclude=/var/log/apache/* --exclude=/var/log/mail/* Just in case you didn’t already know then the ‘j’ flag in the ‘jcvf’ tells tar to use bzip2 compression.

Continue reading...

The Linux project’s seductive Marxist ideology

Tuesday, May 2, 2006

0 Comments

This just has to be a wind up, although the comments are pretty scary as some poeple are responding as if they believe it! Next time somebody asks you how Al Queda agents pay for their rifles and rocket launchers, you can tell them that foreign hackers make software called Linux which helps them steal from [...]

Continue reading...

ssh logins without a password

Friday, April 28, 2006

0 Comments

Share ssh keys: client: [code]cd ssh-keygen -t rsa[/code] the copy ~/.ssh/id_rsa.pub over to server server: [code]mkdir .ssh cat id_rsa.pub >> .ssh/authorized_keys[/code] Job done

Continue reading...

debian start-up script tip

Sunday, April 16, 2006

0 Comments

If you’ve just installed something and want to make sure it starts on boot then the init.d script needs adding to the various run level folders as a symlink. It’s a bit of a drag and it can be sometimes forgotten. Never mind, Debian comes with a handy script: Lets assume that we have a script [...]

Continue reading...

Creating a subversion repository

Friday, April 7, 2006

0 Comments

I wanted to add my Zend Framework example code to subversion but to do that I needed a local Subversion repository As I had to figure out some of the bits how to this, I decided to put all of my steps into a mini How-To. Here it is: http://bealers.com/how-to/creating-a-subversion-repository/

Continue reading...

Vim: Enough tabs already

Sunday, April 2, 2006

0 Comments

Scenario: You are connected to a Linux webserver via a Windows terminal client such as PuTTy. You copy some text to paste into a Vim document open on the remote machine and you get tab hell: Here’s an example of something I pasted in tonight: [code] ServerAdmin webmaster@host.some_domain.com [...]

Continue reading...

Building a PHP Development server from scratch

Saturday, March 25, 2006

0 Comments

New How-To added detailing all of the steps I took to build myself a home PHP development server: http://bealers.com/how-to/creating-a-php-development-server/

Continue reading...

Using rsyc to mirror a subversion repository

Wednesday, September 14, 2005

2 Comments

At work we use subversion to manage our code, we also use Trac to manage bugs which has handy hooks into subversion. Unfortunately they are on different (internal) servers. This is quick What I DidTM to get the live svn server (taipan) to sync with the Trac server (apu) taipan: svn server (Debian 3.0 woody) apu: svn mirror [...]

Continue reading...