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...Wednesday, September 13, 2006
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...Tuesday, May 2, 2006
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...Friday, April 28, 2006
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...Sunday, April 16, 2006
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...Friday, April 7, 2006
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...Sunday, April 2, 2006
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...Saturday, March 25, 2006
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...Wednesday, September 14, 2005
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...
Wednesday, September 13, 2006
1 Comment