Go into Chrome Settings: Way down at the bottom, click Show advanced settings. Find the HTTPS/SSL Manage certificates button: Push the button and you will be in Certificate manager: Click import, and you will be asked for the certificate. Navigate to your .p12 file and import: Enter your password and click OK when you see […]
Installing A Certificate on Chrome
Customizing the MediaWiki Toolbar Signature
One reason I enjoy the world of open source so much is that if I want something to be a certain way, I can make it be that way if I spend enough time. As an example, I use MediaWiki as a simple blog. It allows me to easily make an entry without much fuss. […]
Using Curl With PHP to Retrieve Pages With Basic Authentication
To retrieve a particular page from another web site using basic authentication, use this PHP script: <?php $path = $_GET[‘path’]; $username = “username”; $password = “password”; $uri = “https://example.com/$path”; $ch = curl_init($uri); curl_setopt_array($ch, array( CURLOPT_RETURNTRANSFER =>true, CURLOPT_USERPWD=> “$username:$password”, CURLOPT_HTTPAUTH=> CURLAUTH_ANY, CURLOPT_VERBOSE => 1 )); $out = curl_exec($ch); curl_close($ch); echo $out; ?> Use the path of […]
Getting Rid of WordPress Comments Off
Perhaps you can override this; however, if you want a quick hack to not display “Comments Off” on WordPress blogs that you don’t have comments on, find these lines in wp-includes/comment-template.php: if ( false === $zero ) $zero = __( ‘No Comments’ ); if ( false === $one ) $one = __( ‘1 Comment’ ); […]
OpenBSD 2.9
BSD is often a good choice for utility boxes running stuff like Sendmail or BIND. The hardware support isn’t as good, and if you think desktop applications are bad with Linux, then you certainly aren’t going to like BSD. BSD is arguably more secure and stable than Linux. In the gradient of stability, though, Linux […]
Using Eterm Remotely with Clipboard on OS X
I have a GNU/Linux box running CentOS that is up all of the time, and is my main workstation. Lately, I’ve needed to use a laptop, and am running OS X Tiger on it. I’ve always enjoyed Eterm, but getting this to run on OS X is difficult. Since I mainly work on remote servers […]
Setting up X11 on OS X Tiger
After a bit of work, I have my desktop on OS X Tiger working well. I’m used to GNU/Linux, and it took me awhile to find the right combination of tools. Here is a screenshot of my desktop: click for larger image. Some key issues that I solved that are visible above: The clipboard works […]
Flushing the DNS Cache on Mac OS X
Use this command to flush the DNS cache on Mac OS X: lookupd -flushcache It appears that the cache overrides /etc/hosts.
Monitoring, Pausing, and Prioritizing Mac OS X Applications
If you simply want to monitor processes on Mac OS X, the included Activity Monitor in applications/utilities works well: There is also a free third party application called App Stop available here that will allow you to pause applications and set priority. If you have a heavy application you are running concurrently while doing more […]
Xcode is Required for Nmap and Fink
Both Fink and Nmap have problems compiling with earlier versions of Xcode. Xcode is found here. The error I got with Fink was: compress-zlib-pm586-1.34-11 failed With Nmap: ./pcap-bpf.c: In function ‘pcap_inject_bpf’:./pcap-bpf.c:348: error: ‘BIOCSHDRCMPLT’ undeclared (first use in this function)./pcap-bpf.c:348: error: (Each undeclared identifier is reported only once./pcap-bpf.c:348: error: for each function it appears in.)make[1]: *** […]
Testing Apple Hardware With Mac OS X Install Disk
The first Install disk has a hardware test routine on it. Just boot with the CD and old down the Option key as the computer starts up. Here is what the test program looks like:
Checking the Filesystem on Mac OS X
Simply hold down Command-S as the system boots to get into single user mode. To check and fix the filesystem run fsck -fy:
Installing Apache 2.2 on Mac OS X From Source
Apache 2.2 compiles perfectly on Mac OS X. We are running an Intel Mac Version 10.5.6. Let’s create a place to compile this that is separate from other software. First we need to log on as root for convenience: srv-5:~ usr4$ sudo su Password: sh-3.2# Let’s create a /usr/local/src to compile the software in. This […]
Installing Dia on OS X
Dia is a diagramming tool that includes many symbols. Here are the Cisco symbols: Install on Mac OS X with Darwin Ports and then simply run dia from the command line: srv-8:~ usr4$ sudo port install dia —> Fetching libpixman —> Attempting to fetch pixman-0.14.0.tar.bz2 from http://distfiles.macports.org/libpixman —> Verifying checksum(s) for libpixman —> Extracting libpixman […]
Bringing up Solaris
There are *a lot* of really cheap Sun boxes on Ebay these days. We picked one up for our lab. Here are a few tips for newbies trying to bring up Solaris on a Sun Sparc box that might be useful. First off, go to sun.com and download the CD images of Solaris. If you […]
Solaris Companion CD
There is a free set of utilities for Solaris available here that provides many of the GNU tools and other free software for Solaris. If you don’t have a console you will need to make sure that the host you telnet in from is resolvable from your Solaris box (add the host to /etc/hosts or […]
Patching Solaris
Patches for Solaris are available here: Sun Recommended and Security Patches Even for old boxes, the patches are kept up to date and available. We have an old Enterprise 2 box that we run 2.5.1 on in our lab. For more info on this, see our Solaris articles. To show what patches are currently installed, […]
Updating the Flash PROM on Sun Ultra 2 Systems
We have a dualie 300 Mhz Sun Ultra 2 that couldn’t run 64 bit apps because the system firmware was so old. It turns out that not only does Sun have good documentation for this procedure, but that our system was even easier to upgrade than the documentation stated. Here are the details of our […]
Software RAID w/ Solaris
The Solaris Management Console (smc) comes with the Solaris 9 distribution, and allows you to configure your software RAID, among other things. We are running the console remotely, so to run smc on our workstation we have to run: # /usr/X11R6/bin/xhost +10.50.100.50 On the Sun box: # export DISPLAY=srv-1:0.0 # smc Of course, your IP […]
Bringing Up a Base GCC Compiler on Solaris 9
In this article we talked about the Solaris companion CD. The location for the Solaris 9 companion CD is here. Now, if you want to *just* compile software with GCC, the best place to go is sunfreeware. Grab the closest mirror. We found that this mirror works well in the US. To get enough software […]