RSS

Archive | System Administration RSS feed for this section

ssh logins without a password

28. April 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...

Clone a VMWare virtual machine

18. April 2006

8 Comments

Simple one, you have a windows virtual machine and you want to copy it: Copy the folder the VM is in (assuming you use a folder per virtual machine) and rename it to the new host name Click on the .vmx icon (you can rename this file first so it’s new-host-name.vmx) Select “Edit this virtual machine’s settings” Under Hardware [...]

Continue reading...

debian start-up script tip

16. April 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

7. April 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...

Creating a second virtual hard disk for a linux server with VM Ware

4. April 2006

0 Comments

On my virtual Debian Sarge development server running within VMWare I wanted to create a separate virtual disk so that if I ever want to use the data on it with another virtual machine I can. Here’s the mini How-To: http://bealers.com/how-to/creating-a-separate-vmware-hard-disk-for-a-linux-virtual-server/

Continue reading...

Vim: Enough tabs already

2. April 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

25. March 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

14. September 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...

Getting a PHP CLI on Windows

10. September 2005

0 Comments

I want to do some scripting to parse the contents of the iTunes XML library and ultimitely transfer the contents to a remote server. For my desktop I use Windows XP because It Just Works most of the time and I reckon that doing what I want under DOS is probably impossible, I don’t know [VB|.NET|Delphi|C++|or [...]

Continue reading...

MySQL: master’s binary log is corrupted

30. June 2005

0 Comments

At work I’ve a MySQL 4.1 Master -> Slave set-up over our VPN as a backup and for local data processing. Today we realised that it’d not been replicating for days, @rse. Running “SHOW SLAVE STATUS \G” on the slave showed: mysql> show slave status \G *************************** 1. row *************************** [...]

Continue reading...