Why am I seeing “Unable to scan (resource busy)” in Disk Utility when I try to restore a disk image?

Why do I keep seeing “Unable to scan “disk image.dmg” (Resource busy)” and “Restore Failure – Could not validate source – Operation not supported” in Disk Utility in MacOS 10.9 when trying to restore a disk image (.dmg) to a USB drive? Answer: A “feature” of recent versions of MacOS “Disk Utility” requires that a source …

Continue reading ‘Why am I seeing “Unable to scan (resource busy)” in Disk Utility when I try to restore a disk image?’ »

How do I use internal Amazon addresses with DNS?

The Problem: When you spin-up a new Amazon EC2 server instance, a public IP is automatically assigned to it. If you want to assign a more “permanent” IP to it, you can use Elastic IP’s. Either way, you end up with an “internal” (10.x.x.x or 172.16.x.x) IP address and a “public” Internet-routable IP address for …

Continue reading ‘How do I use internal Amazon addresses with DNS?’ »

How do I use SQLPLUS?

Start SQLPLUS: admin@dbserver1:~$ /net/oracle/bin/sqlplus ‘dbserver1/ted@DBSP’ To add a user to Oracle Database: SQL> CREATE USER bob IDENTIFIED BY DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp QUOTA 2000m ON users QUOTA 0m ON system; User created. SQL> GRANT connect,resource TO bob; SQL> CONNECT bob; If you want bob to have DBA privileges as well, then: SQL> GRANT …

Continue reading ‘How do I use SQLPLUS?’ »

Why am I seeing “SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch”?

2014/08/28 16:46:16 [emerg] 2995#0: SSL_CTX_use_PrivateKey_file(“/etc/ssl/private/mycompany.key”) failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch) This is nginx’s way of saying that the public and private SSL keys don’t match. The most common cause of this is that the component keys that make up the public key were not concatenated together in the right order. # unzip STAR_mycompany_com.zip …

Continue reading ‘Why am I seeing “SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch”?’ »

How to I secure a Solaris 10 server?

Some steps towards securing Solaris 10: To list services: # inetadm Tell Solaris not to listen on port 25: # svccfg -s svc:/network/smtp:sendmail setprop config/local_only = true # svcadm refresh svc:/network/smtp:sendmail Disable vulnerable services: # inetadm -d ftp # inetadm -d telnet # inetadm -d finger Disable Berkeley r* services: # inetadm -d rlogin # …

Continue reading ‘How to I secure a Solaris 10 server?’ »

How does storage work on AIX 5.2?

Storage on IBM AIX is organized into volume groups (VG’s): # lsvg -L rootvg # # lsvg rootvg VOLUME GROUP: rootvg VG IDENTIFIER: 00c4f9fd00004c000000010f7db4f5fa VG STATE: active PP SIZE: 128 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 1092 (139776 megabytes) MAX LVs: 256 FREE PPs: 680 (87040 megabytes) LVs: 13 USED PPs: 412 (52736 megabytes) OPEN …

Continue reading ‘How does storage work on AIX 5.2?’ »

How do I get back into Jenkins if I am locked out?

If you accidentally enable a security option and are met with a login screen and no way to login, you can: 1. Shutdown Jenkins $ sudo service jenkins stop 2. Edit config.xml in the Jenkins home directory: $ sudo vi /var/lib/jenkins.config.xml ..find “true” and change “true” to “false”. ..and remove the XML blocks for sections …

Continue reading ‘How do I get back into Jenkins if I am locked out?’ »

Why am I seeing “ERROR 1290 (HY000): The MySQL server is running with the –read-only option so it cannot execute this statement”?

Why am I seeing “ERROR 1290 (HY000): The MySQL server is running with the –read-only option so it cannot execute this statement”? If I look in the “ps” output, the mysqld server is NOT running with the –read-only option! The mysql “root” user can write to the database, but other users only have read-only access, …

Continue reading ‘Why am I seeing “ERROR 1290 (HY000): The MySQL server is running with the –read-only option so it cannot execute this statement”?’ »

Why am I seeing “ERROR 1130 (HY000): Host ‘192.168.0.2’ is not allowed to connect to this MySQL server”?

When you connect to a MySQL server, it checks it’s grants table (the “user” table in the “mysql” database on the MySQL server) against the IP address of the connecting MySQL client machine. If there are NO MATCHING ENTRIES in the “host” column in the “user” table in the “mysql” database, mysqld will IMMEDIATELY CLOSE …

Continue reading ‘Why am I seeing “ERROR 1130 (HY000): Host ‘192.168.0.2’ is not allowed to connect to this MySQL server”?’ »

Why does Puppet say “Error: source did not contain any PSON!”?

If a puppet agent run is interrupted, it can leave an “agent_disabled.lock” file behind. Make certain that Puppet really isn’t running, then delete it: # ls -l /var/lib/puppet/state/ total 236K -rw-r–r– 1 root root    0 Feb 11 10:36 agent_disabled.lock drwxr-xr-x 2 root root 4.0K Jan 21 17:06 graphs/ -rw-r—– 1 root root 149K Feb 11 …

Continue reading ‘Why does Puppet say “Error: source did not contain any PSON!”?’ »