Archive

Archive for the ‘Tech’ Category

New server (with photos)

September 23rd, 2009 cyprix No comments

As part of an overall upgrade for my systems, I’m moving to a brand new server. It’s my first rackmount server at 1U high and will be going into a colocation centre soonish.

It will be running a variety of applications including:

  • Mandriva Linux 2010.0
  • Web Serving: Nginx, Apache 2.2, PHP 5.3
  • Mail: Postfix, Dovecot, RoundCube
  • DNS: PowerDNS, Bind
  • Database: MySQL
  • Virtual Hosting: VirtualBox

Server Specifications:

  • Intel SR1530HSH with S3200SHVL Motherboard. 320w PSU, 3x Hot Swap SATA HDD, 2x Gb Nic
  • Intel Q9550 Processor – 4x 2.83ghz, 12mb cache, e0 stepping
  • Intel Q9400 Processor – 4x 2.66ghz, 6mb cache, r0 stepping
  • 4x 2gb (8gb total) Kingston DDR2 800Mhz Ram
  • 2x 1Tb Seagate Hard Drives (in RAID 1)

Update: Unfortunately, the E0 stepping Q9550 is not supported for the bios of the s3200 motherboard, so I’ve had to switch down to the Q9400 with only 6mb cache :( .

Photos:

Intel SR1530HSH 1U Server - Front

Intel SR1530HSH 1U Server - Front

Intel SR1530HSH 1U Server - Rear

Intel SR1530HSH 1U Server - Rear

Intel SR1530HSH 1U Server - Top

Intel SR1530HSH 1U Server - Top

Intel SR1530HSH 1U Server - Inside

Intel SR1530HSH 1U Server - Inside

[Solved] WordPress automatic upgrade and nginx

September 12th, 2009 cyprix No comments

With my slow move over to nginx I’ve been finding the odd niggle to solve. Today’s one was the inability for my wordpress installations to use the automatic upgrade facility whilst running on nginx. Instead it kept asking to fall back to ftp for upgrading.

On apache, this can occur when your wordpress directory does not have write permissions for the apache user. But I’d already checked that. So I got thinking…

Since nginx and php fastcgi are separate processes I checked the users they were running under – lo and behold the php-fcgi was running under root!!! Big oops! Solution: change php-fcgi to run as user nginx & group nginx (same as the nginx server under Mandriva). As I currently use the spawn-fcgi program I changed by init.d file to use the user and group options as shown below.

/usr/local/bin/spawn-fcgi -u nginx -g nginx

All fixed :)

At some stage I’ll post my init.d file for php-fcgi and my nginx configuration files once they become somewhat stable.

Categories: Linux, Servers, Tech Tags: , , ,

Migrating to nginx, php 5.3, mysql 5.1, mandriva 2010… and more

September 7th, 2009 cyprix No comments

Lots going on at the moment. I’m migrating most of mine and my clients websites to nginx from apache in preparation for moving everything to a new server.

First thoughts? Nginx is super fast, reasonably easy to configure (once you figure out the php issues) and saves a heap on memory. Downside? I’ve had the odd niggle with moving old sites across – especially since I’m moving to php 5.3 and MySQL 5.1 at the same time, otherwise all good.

The other major change is the look of this blog. The old K2 theme was becoming an issue to deal with (mainly because I didn’t update it enough) so I’ve now moved to this lovely theme: inove. I’ve also done a fresh wordpress install of 2.8.4 and added pretty links – so anyone linking to the old structure might have the odd issue, but otherwise should be painless. Oh yeah – any images on the older posts (pre Aug 2009) are gone.

Anyway here is a list of upgrades currently underway:

  • php 5.2.x to 5.3.0
  • mysql 5.0 to mysql-max 5.1
  • apache 2.2/mod_php to nginx 0.8.10/php-fcgi
  • athlon64 2ghz 1gb ram to athlon64 X2 2ghz 2gb ram
  • mandriva 2008.x/2009.x to 2010.0 (Cooker)
  • wordpress 2.x.x to 2.8.4
  • mediawiki 1.x to 1.15.1
  • bind 9 to powerdns 2.9.22
  • and a few more that i’ve forgotten about

Favourite linux single line command…

August 11th, 2009 cyprix 1 comment

Whenever you have pesky windows users on your network, your file system on any servers running samba start to gain extra, silly, “Thumbs.db” files.

If you’re like me and hate the things with a vengeance, you can get rid of every single one of them using the linux command line below.

updatedb;for i in `locate Thumbs.db|sed 's/ /\__/g'`;do rm -vf "`echo $i | sed 's/__/\\ /g'`";done;

Update 21 Oct 2009: added for loop with sed commands to safety handle spaces, round brackets and single quotes etc. in the file path

Categories: Linux Tags:

DViCO FusionHDTV Pro working under linux [Finally!]

May 20th, 2009 cyprix No comments

Today I got my DViCO FusionHDTV Pro (dvb-t) card working under mandriva linux in Melbourne, Australia.

I’ve been wanting to do this for years and has actually been the major stopper in Mandriva becoming my primary OS on my desktop (besides my laptop(s), wifes laptop, friends laptops, and all my servers). I always figured I could dual-boot for LAN parties.

Anyway… I did it like this.

Step 1. Install Mandriva 2009.1 Spring Powerpack (64bit)

Step 2. Setup online repositories including PLF mirrors

Step 3. Install dvb-apps and most other dvb utils (run `urpmq dvb- -a` to see them)

Step 4. Install mplayer, smplayer and usual auto installed plf codecs

Step 5. (as per v4l mailing list) Download ‘extract_xc3028.pl’ script, and drivers

Step 6. Extract driver and copied it to `/lib/firmware` (do not use Chris Pascoe’s firmware as it is not req’d – and not working)

Step 7. (following instructions from the ubuntu forums) Run `scandvb /usr/share/dvb-apps/scan/dvb-t/au-Melbourne > channels.conf`

Step 8.  Run `sudo cp channels.conf /etc && cp channels.conf ~/.tzap`

Step 9. Test Setup – run `mplayer dvb://”ABC2″`

Step 10. Due to all Australian HDTV channels using AC3 onlyfor sound we need to set the PIDS correctly for the audio as AC3 is by default 0. If you don’t you won’t get any sound on any of the HD channels.

Step 11. For each channel (ABC, 7, 9, 10 and SBS) run `tzap -c /etc/channels.conf -r “ABC1″` <- replacing “ABC1″ with the channel name. Then in a new console run scandvb -c and save the contents.

Step 12. Convert the AC3 values from hex to decimal. (Hint google: convert ….. to decimal)

Step 13. Edit /etc/channels.conf and add the decimal AC3 values in the file. Replace the zero in …:0:… with the AC3 value.

Step 14. Enjoy.

Ahhh :)

Categories: Linux, Mandriva Tags: , , ,

ZuFeed.com – launch

April 13th, 2009 cyprix No comments

ZuFeed is a new website designed to help you access the latest news, updates and other information.

The website is currently in “beta” mode, so please excuse any bugs.

You can decide what you want to see by creating custom collections of information and everything up to date with the latest information as it arrives.

Information from all over the web via RSS feeds so if we don’t already have what you’re looking for, just add it to our database.

For more info check out the About ZuFeed page or sign up for at no cost.

Categories: Projects, Tech, ZuFeed Tags: , ,

Upgrade to Mandriva 2008.0

October 25th, 2007 cyprix 1 comment

Just a quick note for everyone.

Mandriva Linux 2008.0 is out and going strong. Keeping that in mind, I have now updated this server to run 2008.0 with very few problems (via urpmi –auto-select). This is a first for me with any Mandriva server. Well done guys!

I’ve also installed the Powerpack on my Toshiba Satellite 2410 laptop with no real issues, but with great new fonts and features (like automount ntfs-3g) all around.

Categories: Linux, Servers, Tech Tags: ,

1 Month On: Mandriva 2007 Spring – Laptop

May 25th, 2007 cyprix 21 comments

Since it’s been a while since I last posted, I thought I’d bring you all up to date with the new Mandriva release. Spring beautiful spring!

For the last month (and a bit) I’ve been running Mandriva 2007.1 Spring PowerPack on my Toshiba Satellite 2410. To avoid people having to skip to the conclusion, I’m sticking with Mandriva Linux Spring on my laptop permanently! Read more…

Categories: Linux, Tech Tags: ,

Virtual Mail Server Howto

December 1st, 2006 cyprix 9 comments

Well, I know it’s been a while since I’ve posted something new, but then again as my regular readers only count in single figures (i.e. me) I don’t think that will be a problem.

I’ve finally finished stage one of my Cyprix Mail Server Howto!

The howto is a very much step-by-step method of setting up a virtual domain, virtual user mail server using:

Currently the howto is based on Mandriva Linux, however with minor changes it can be applied to most Linux/Unix based distributions.
Read more…

Categories: Linux, Servers, Tech Tags:

Review: Mandriva One 2007 rc2 "Sunna" KDE

September 18th, 2006 cyprix 18 comments

G’Day. As it’s my first review I’m just going to blurt it all out.

Mandriva One is the Live Linux cd for Mandriva. And just for fun we’re testing the release candidate 2 “Sunna” as this should be pretty close to the real thing.

As I’m a KDE user, we are using the KDE3 disc which does include proprietory drivers & software.

Mandriva 2007 rc2 “Sunna”

Right now you have a choice of 1 DVD(dual arch, ie. i586 & x86_64), 2 x 3 CDs(one for each arch) & 14 One CDs.

Key Packages:

  • kernel 2.6.17
  • kde 3.5.4
  • Mozilla Firefox 1.5
  • OpenOffice.org 2.0.3
  • 3D desktop with compiz (XGL & AIGLX)
  • new la-ora theme

For this review, I’ll be using both the “live” and the install from live features.
Test System:

  • Athlon 1.2gHz Thunderbird
  • 512mb SDram
  • ATI Radeon 9550 (AGP)
  • AC/97 inbuilt sound
  • D-Link DWL-G520 802.11b/g (SuperG) Wireless

Now, for a bit of background. I’ve been a user of Mandriva (Mandrake) back since 9.2, however I’ve as yet not been able to make the permanent switch from WinXP to linux on the desktop. On my servers however is a different story as they have only ever run Mandriva(Mandrake) Linux.

2007 looks very promising on the specs – especially with the much hyped XGL/AIGLX + Compiz 3D desktop and a new network configuration tool. This may just be what I require to do the big move.

Read more…

Categories: Linux Tags: