Recently had to patch my web servers for this SSL Bug: "Heartbleed"

You can install the patches (for Ubuntu 12.04 and up) with the following three commands: sudo add-apt-repository ppa:george-edison55/openssl-heartbleed-fix sudo apt-get update sudo apt-get upgrade
Any errors running "add-apt-repository" on Ubuntu 12.04, will probably mean that you need to install the "python-software-properties" package with the following command:
sudo apt-get install python-software-properties
12 Apr 2014

New Proxmox Nag...

Found this little trick to remove the nag from the new version (3.1) of Proxmox - which I had thought would remain free for low key users like me... http://www.jamescoyle.net/how-to/614-remove-the-proxmox-no-subscription-message
22 Mar 2014

Recent Drupal tricks and tips...

Found lots of bocked (SPAM) users in my Drupal 7 site. Deleted with this SQL script (in PHPMYADMIN)
DELETE FROM users WHERE `status` = 0 AND `uid` != 0; Also had 49,000+ failed admin login attempts on my site - had caused a lockout of my admin user.
Did this in phpmyadmin : DELETE FROM flood;
Also these bash script commands to set the permissions for a standard Drupal site: cd /path_to_drupal_installation sudo chown -R greg:www-data . find . -type d -exec chmod u=rwx,g=rx,o= '{}' \; find . -type f -exec chmod u=rw,g=r,o= '{}' \; and... cd /path_to_drupal_installation/sites find . -type d -name files -exec chmod ug=rwx,o= '{}' \; for d in ./*/files do find $d -type d -exec chmod ug=rwx,o= '{}' \; find $d -type f -exec chmod ug=rw,o= '{}' \; done
28 Dec 2013

Ubuntu DNS Issues with network-manager & dnsmasq

This has been driving me crazy. Long delays on DNS lookups on Ubuntu 13.x desktop/laptops... To fix dnsmasq errors, you should edit /etc/NetworkManager/NetworkManager.conf sudo gedit /etc/NetworkManager/NetworkManager.conf and comment out the line so it looks like this: # dns=dnsmasq in the "[main]" section. To comment out the line, put a '#' at the beginning of the line, then save the file. Then restart network-manager. sudo restart network-manager After this, non-local nameserver addresses will be entered into resolv.conf instead of the 127.* address.
21 Dec 2013

Multiple copies per page printing of business cards in MS Publisher 2007/2010

A bug I had noted in Publisher 2007 & 2010 is fixed by this simple change to the page size settings:
After following your steps I see the same problem in Publisher 2010 and Publisher 2007 Service Pack 2 but not in 2003 Service Pack 3. I see the 5 rows of 2 in 2003 as you are expecting in 2010 but not getting. What type of Avery labels are you printing? If you have the existing Publication open that was set to Northamerica 2 x 3.5" try changing the page size to the Avery preset by going to the Page Design tab, selecting Size, and clicking on More Preset Page Sizes..., selecting Business Cards, and either Avery A4/A5 or Avery US Letter. or If you are creating a new publication in 2010 but in step 4 choose the Avery preset.

Solution:

By setting the page size to an Avery 27871 and changing the orientation to portrait, the 10-up printing works as it should. Trying to set up the page via the blank business cards still doesn't work. So the question is, what is the Avery template setting inside Publisher 2010 that the blank template isn't.

02 Sep 2013

Great backup cmd in Linux

sudo rsync -avhe ssh --log-file="/usr/local/rsync/rsync.log.$(date +%Y%m%d%H%m%S)" /DATA/ root@192.168.0.2:/home/username/DATA/
29 May 2013

Proxmox Vhost IP Address Configuration

Some key cmds that I had to use to get the networking operational on the proxmox server: root@proxmax:/etc/network# vzctl set 103 --ipadd 192.168.3.88 --save This will poke a new IP address into the config for the container. The "/etc/network/interfaces" files that results will look like this:
root@XXX4 /etc/network# less interfaces # This configuration file is auto-generated. # # WARNING: Do not edit this file, your changes will be lost. # Please create/edit /etc/network/interfaces.head and # /etc/network/interfaces.tail instead, their contents will be # inserted at the beginning and at the end of this file, respectively. # # NOTE: it is NOT guaranteed that the contents of /etc/network/interfaces.tail # will be at the very end of this file. # # Auto generated lo interface auto lo iface lo inet loopback # Auto generated venet0 interface auto venet0 iface venet0 inet manual up ifconfig venet0 up up ifconfig venet0 127.0.0.2 up route add default dev venet0 down route del default dev venet0 down ifconfig venet0 down iface venet0 inet6 manual up route -A inet6 add default dev venet0 down route -A inet6 del default dev venet0 auto venet0:0 iface venet0:0 inet static address 192.168.3.88 netmask 255.255.255.255

And from the Proxmox Controller:

root@proxmax:/etc/network# vzlist CTID NPROC STATUS IP_ADDR HOSTNAME 100 18 running - XXX3.msjlaw.us 101 19 running - XXX4.msjlaw.us root@proxmax:/etc/network# root@proxmax:/etc/network# vzctl set 101 --ipadd 192.168.3.88 --save Adding IP address(es): 192.168.3.88 CT configuration saved to /etc/pve/openvz/101.conf root@proxmax:/etc/network# vzlist CTID NPROC STATUS IP_ADDR HOSTNAME 100 18 running - XXX3.msjlaw.us 101 18 running 192.168.3.88 XXX4.msjlaw.us root@proxmax:/etc/network# root@proxmax:/etc/network# ping 192.168.3.88 PING 192.168.3.88 (192.168.3.88) 56(84) bytes of data. 64 bytes from 192.168.3.88: icmp_req=1 ttl=64 time=0.047 ms 64 bytes from 192.168.3.88: icmp_req=2 ttl=64 time=0.015 ms 64 bytes from 192.168.3.88: icmp_req=3 ttl=64 time=0.014 ms 64 bytes from 192.168.3.88: icmp_req=4 ttl=64 time=0.022 ms 64 bytes from 192.168.3.88: icmp_req=5 ttl=64 time=0.027 ms ^C
23 Apr 2013

VNC Install on RedHat

[donmc@MSJ ~]$ sudo rpm -Uvh VNC-Server-5.0.4-Linux-x86.rpm
[sudo] password for donmc:
Preparing...                ########################################### [100%]
   1:realvnc-vnc-server     ########################################### [100%]
Checking for xauth... [OK]
Updating /etc/pam.d/vncserver
Looking for font path... not found.
Generating private key:
  p: .....................................
  q: ................
Installed init script for VNC X11 Service-mode daemon
Start and stop the service with:
  /etc/init.d/vncserver-x11-serviced (start|stop)

Installed init script for VNC Virtual-mode daemon
Start and stop the service with:
  /etc/init.d/vncserver-virtuald (start|stop)
12 Feb 2013
Subscribe to