Posted in Linux, web coding

Hosting Provider Migration

I have to apologise profusely for the site being down over the last few days, when moving a number of domains and my hosting provider some issues were encountered which took down the blog for a while!

All migrated now and back up and running. Normal service has resumed.

Thanks for your patience.

Posted in apache, arch, arch linux, html, Linux

Apache and public_html directories

I’ve been hacking around with the One Month HTML course and decided to set up a local apache server to play around with my work, but for the life of me I could not get the public_html directory and apache2 userdir setting to work under Arch Linux.

For those of you that have had similar issues it turns out to be a simple fix:

The world execute bit on your home directory needs to be set so that /home/<user> is set to rwxr-x–x and also the same for your public_html directory, i.e. it also needs to be set to rwxr-x–x.

Et voila, html goodness on your own server, now you can test away until you’re ready to put your site into production!!

Posted in Linux, Ubuntu

Mounting Windows Shares permanently in Linux

So I had a need to mount so NAS shares on my linux box, lets face it who wouldn’t these days with the advent of Plex, these are the basic steps snagged from the Ubuntu wiki and a StackExchange post:

sudo apt-get install cifs-utils
sudo mkdir /media/windowsshare

Then edit your /etc/fstab file (with root privileges) to add this line:

//servername/sharename  /media/windowsshare  cifs  guest,uid=1000,iocharset=utf8,sec=ntlm  0  0


  • guest indicates you don’t need a password to access the share,

  • uid=1000 makes the Linux user specified by the id the owner of the mounted share, allowing them to rename files,

  • iocharset=utf8 allows access to files with names in non-English languages. This doesn’t work with shares of devices like the Buffalo Tera Station, or Windows machines that export their shares using ISO8895-15.

  • If there is any space in the server path, you need to replace it by 40, for example //servername/My40Documents

  • I added the sec=ntlm at the end otherwise I kept getting a (95) error when running the mount -a in the next step.

After you add the entry to /etc/fstab type:

sudo mount -a

This will (re)mount all entries listed in /etc/fstab.

Et Voila, you should now have some shiny new mounted shares under the /media directory.

If you want more detail check out the following posts:

Posted in Linux

Thanks to OMG Ubuntu for this one, fixed my image tearing issue

How To Fix Video Tearing In Videos; Nvidia, Ubuntu
1/25/2010 by d0od
Tags: compiz, nvidia, screentearing, tips, vlc
Screen-tearing is an issue for many Nvidia users on Ubuntu. Videos are plauaged by a visible ‘tear’ mid way through the screen during any moments of intense action or horizontal panning. Gamers find anything that sidescrolls too much also results in the same issue. Here’s an example of it: –

Thankfully kopiwe over on the Ubuntu Forums has posted an amazing tutorial on how to finally get rid of screen tearing in Ubuntu – providing you’re using a Nvidia graphics card. I’ve re-written it here and provided some screenshots for those less confident about changing settings. Please go and thank him in the thread on the forums.
Preparation To fix thread-tearing you’re going to need the CompizConfig Settings Manager and Nvidia X Server Settings installed. The later was most likely be installed along with your graphics drivers, the former can be installed using: –

* sudo apt-get install compizconfig-settings-manager

or by searching for Compizconfig in the Ubuntu Software Centre. Step 1

* Open up the CompizConfig Settings manager via the System > Preferences menu
* Click the ‘General Options’ button and go to the ‘Display Settings’ tab
* Change the ‘refresh rate’ to ’60’ using the slider (though higher if you’re a gamer, etc)
* Tick the ‘Sync To VBlank’ check-box

Step 2

* Open Nvidia X Server Settings Via the System > Preferences Menu
* Choose ‘OpenGL Settings’ on the left-hand side
* Check the box next to “Sync To VBlank” to enable it

Step 3 To finish up: –

* Open Startup Applications via the System > Preferences menu
* Click on ‘Add’
* Enter ‘Nvidia Settings’ or similar for the name
* Enter ‘nvidia-settings -l’ for the command entry.

Now, upon reboot, your new effects will take place and should no-longer see any more of the annoying screen tear issue during videos, etc! Super thanks to kopiwe once again. This issue drove me mad! Once you noticed it the first time then you noticed it always.

Posted in Linux, mint 8, power, seagate, usb, x64

Stop Seagate Drive from Going into STANDBY – Linux Mint 8 x64

[x_section style=”margin: 0px 0px 0px 0px; padding: 45px 0px 45px 0px; “][x_row inner_container=”true” marginless_columns=”true” bg_color=”” style=”margin: 0px auto 0px auto; padding: 0px 0px 0px 0px; “][x_column bg_color=”” type=”1/1″ style=”padding: 0px 0px 0px 0px; “][x_code]# sdparm -al /dev/sdd
/dev/sdd: Seagate FreeAgentDesktop 100D
Direct access device specific parameters: WP=0 DPOFUA=0
Power condition [po] mode page:
IDLE 0 [cha: n, def: 0, sav: 0] Idle timer active
STANDBY 1 [cha:y, def: 1, sav: 1] Standby timer active
ICT 0 [cha: n, def: 0, sav: 0] Idle condition timer (100 ms)
SCT 9000 [cha:y, def:9000, sav:9000] Standby condition timer (100 ms)

# sdparm –clear STANDBY -6 /dev/sdd
/dev/sdd: Seagate FreeAgentDesktop 100D

# sdparm -al /dev/sdd
/dev/sdd: Seagate FreeAgentDesktop 100D
Direct access device specific parameters: WP=0 DPOFUA=0
Power condition [po] mode page:
IDLE 0 [cha: n, def: 0, sav: 0] Idle timer active
STANDBY 0 [cha: n, def: 1, sav: 0] Standby timer active
ICT 0 [cha: n, def: 0, sav: 0] Idle condition timer (100 ms)
SCT 0 [cha: n, def:9000, sav: 0] Standby condition timer (100 ms)[/x_code][/x_column][/x_row][/x_section]