Stop WordPress asking for FTP info and allow it to install plugins

Chris Abernethy publishes a good solution to stop WordPress asking for connection info upon installing plugins, however I have discovered an alternative fix, if you don’t want to change the file owners The use-case for this is if you are working in a subdirectory of your home folder, and don’t want to make www-data the owner of everything under public_html. This change makes WordPress to do the permission check by group id: Open up the file wp-admin/includes/file.php Find line if ( getmyuid() == @fileowner($temp_file_name) ) Change to if ( getmygid() == @fileowner($temp_file_name) ) Save and close

Continue Reading...
June 19th, 2012

Cannot find install-sh, install.sh, or shtool in arch

Encountered while trying to compile 0MQ 3.2 on an up-to-date Arch distro, and solution shamelessly found here and noted for future reference: $ libtoolize –force $ aclocal $ autoheader $ automake –force-missing –add-missing $ autoconf $ ./configure

Continue Reading...
June 19th, 2012

Installing X11 Screensavers on Ubuntu

Miss the Windows 3.11 days of After Dark?, well if you are running Ubuntu or Mac you can relive it by download the X11 screen saver package. If running from Ubuntu, you can install it from the repos: sudo apt-get remove gnome-screensaver sudo apt-get install xscreensaver xscreensaver-data xscreensaver-gl xscreensaver-data-extra  xscreensaver-gl-extra unicode-screensaver rss-glx Then start the daemon with: xscreensaver -nosplash Make sure you add xscreensaver -nosplash as a startup item. You can configure the screen savers by running xscreensaver-demo. Windows users you may turn to Really Slick screensavers.

Continue Reading...
April 15th, 2012

Completely removing a mdadm raid array in Ubuntu

To completely remove an mdadm raid array you must “zero the superblock” on the component drives, so that mdadm will not detect them on its next scan/reboot of your system: sudo bash mdadm –stop /dev/md1 mdadm –remove /dev/md1 mdadm –zero-superblock /dev/sdb3 mdadm –zero-superblock /dev/sdc3 Oh…and happy new year! With thanks to MDLog:/sysadmin.

Continue Reading...
January 1st, 2012

Connecting to a remote host through a Ubuntu VM and sharing that back to your Windows Host

The VM in this walkthrough is Ubuntu 11.10 32bit (“VM”). It is running on my desktop, the physical machine (“PM”) running which runs Windows 7 32 bit as the Host Operting System (“Host OS”). Things will be a lot easier for you if your username on your VM (“vmuser”), Host OS (“huser”) and remote host (“rmuser”) are the same. Part 1: Generate RSA keys on your VM, and install them on the remote host Follow steps 3 and 4 from the Ubuntu community help page, on your VM: mkdir ~/.ssh chmod 700 ~/.ssh ssh-keygen -t rsa ssh-copy-id rmuser@remotemachine Try sshing from the VM to the remote host. If it does not ask you for a password, then key-generation and installation worked. If not, then you must fix this before continuing. Part 2: Preparing your VM and setting up an entry in /etc/fstab Install: *samba file server *sshfs *[optionally] Install webmin (will make checking user group, and creating/checking home share a lot easier). *[optionally] Install the ssh meta-package so that you

Continue Reading...
November 13th, 2011
Contact Nixz Kerr