'linux' tag

Updating Slice Software

0

This is one of those things that I don’t do often enough to commit to memory, so for future reference:

sudo aptitude update; #updates source repositories
sudo aptitude safe-upgrade;
sudo aptitude full-upgrade;
#tada!

Auto-Update SVN Bash Script

3

I’ve got at least 4 installs of WordPress on my server and I have them all checked out from WordPress’ SVN repository because uploading WordPress files whenever there is an update is incredibly annoying.

I know this means I may be using unstable and unreliable code and all that, but so far I haven’t had much of an issue. Worst case scenario I have to do a server rollback or something.

But anyway, having something like 4 SVN WordPress Installs it’s become apparent that I need an easier solution to running svn update on all the directories.
SO I MADE A BASH SCRIPT.

The Script

#!/bin/bash
# Updates all of my wordpress installations at once ...

echo '--Updating benwatts.ca';
cd ~/benwatts.ca
svn update

#[..] repeat for the other installs

echo "Done and done.";

Storing the Script

Then I created a bin folder in my user folder

mkdir ~/bin

and moved it there

mv ~/updatewordpress ~/bin/updatewordpress

.

Using it

Unfortunately, to use it you have to specify the path (so …

cd ~/bin; ./updatewordpress

). That kind of sucks. Not a whole lot … but I wanted to be a bit adventurous and make it so that I just have to type ‘updatewordpress’ and it’ll go ahead and do it. As it turns out, at least in my version of linux it already searches ~/bin for shell scripts … so all I had to do was log out and log back in again and now the command is there … NICE!

Changing the Time Zone in Ubuntu Gutsy

6

EDIT: Okay. Ignore this entire post because as it turns out it’s outrageously easy with

sudo dpkg-reconfigure tzdata

. Kudos to soundray.

I’m hosted with Slicehost — they’re cool cats that offer very affordable VPS hosting. This is my first venture into server administration so I imagine sometime in the next two weeks the whole thing is going to come crashing down and the datacentre will catch on fire.

It’s been going pretty smooth, actually. Slicehost has amazing documentation and a lovely wiki. I recently noticed however, that my server’s time zone was set to UTC and not my beloved EST …
Read the rest of this entry »