Upgrading from Ubuntu 12.10 to 14.04

Seems that a few of my instances in AWS were originally setup using Ubuntu 12.10.  Don’t know how that happened, but anyways.  Now that 12.10 is no longer support you can’t just upgrade. So the solution is to use the old.releases.ubuntu.com site and update/upgrade from there. sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo sed -i -re ‘s/us-west-2.ec2.archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g’ […]

Nginx Deny IP

This is a quick way to deny an ip address accessing your nginx server. Create a new file in /etc/nginx/conf.d called blockips.conf Add the following to the file: deny <bad ip>; Then restart nginx.  The log file will now show 403’s for the IP address. For more info see: http://www.cyberciti.biz/faq/linux-unix-nginx-access-control-howto/

ORA-01654: unable to extend index

Database can’t extent an index. Problem ORA-01654: unable to extend index SYS.I_FILE#_BLOCK# by 128 in tablespace SYSTEM Solution Check the size and maxsize of the data files in the SYSTEM tablespace select file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name=’SYSTEM’; Increase the size of the data file; alter database datafile ‘<Path to data file>’ resize […]