Category Archives: How-To

Adobe Flash Player on OpenSolaris

Getting Flash to work with Firefox on OpenSolaris was fairly simple.

NOTE – this installs the plugin for all users.

  1. First, download the Flash plugin package from Adobe – Adobe Flash Player.
  2. I prefer to unzip anything I’m about to install to /usr/src
    cd /usr/src
  3. Unpack the plugin
    sudo tar zxvf /path/to/flash_player_10_solaris_x86.tar.bz2
  4. Find the Firefox plugins directory
    find / -name plugins
  5. Copy the Flash library to that directory
    sudo cp flash_player_10_solaris_r45_2_x86/libflashplayer.so /usr/lib/firefox/plugins/
  6. Restart Firefox, and verify that Flash works.

AdBlock Plus on OpenSolaris with Firefox 3.1 Beta 3

While trying to install AdBlock Plus on Firefox 3.1, I encountered an error similar to this guy:

Firefox: Firefox could not install the file at ‘URL’ because: Signing could not be verified.

I was able to follow those steps, but with a bit of variation:

  1. Made a temp folder
    mkdir /tmp/adblock
  2. Get the extention (I copied the URL from the failed install error message):
    wget https://addons.mozilla.org/downloads/file/74835/adblock_plus-1.1.3-fx+sm+tb+fn.xpi?src=api --no-check-certificate
  3. Unzip the package:
    unzip adblock_plus-1.1.3-fx+sm+tb+fn.xpi
  4. The first bit of output showed the RSA file he looks for in Step 5:
    Archive:  adblock_plus-1.1.3-fx+sm+tb+fn.xpi
    inflating: META-INF/zigbert.rsa
  5. Search for the Certificate Authority info:
    mikes@nerdherd-opensol:/tmp/adblock$ strings ./META-INF/zigbert.rsa | egrep -i "sign|cert"
    "Secure Digital Certificate Signing1806
    $StartCom Verified Certificate Member1
    "Secure Digital Certificate Signing1)0'
    StartCom Certification Authority
    Limited Liability, read the section *Legal Limitations* of the StartCom Certification Authority Policy available at http://www.startssl.com/policy.pdf0c
    4http://www.startssl.com/certs/sub.class2.code.ca.crt0#
    "Secure Digital Certificate Signing1)0'
    StartCom Certification Authority0
    "Secure Digital Certificate Signing1806
    "Secure Digital Certificate Signing1)0'
    StartCom Certification Authority
    &http://cert.startcom.org/sfsca-crl.crl0'
    #http://cert.startcom.org/policy.pdf05
    )http://cert.startcom.org/intermediate.pdf0
    AStartCom Class 2 Primary Intermediate Object Signing Certificates0
    "Secure Digital Certificate Signing1806
  6. Unlike his Step 7, in Firefox / Preferences / Advanced / Encryption / View Certificates / Authorities, that cert wasn’t listed.  So I imported it.
  7. Click the Import button on the Authorities tab.  Browse to the /tmp/adblock/META-INF folder created when AdBlock was unzipped.
  8. Change the file type selector from Certificate Files to All Files; select zigbert.rsa; click Open.
  9. Check the box, “This certificate can identify software makers.”
  10. Click OK until enough dialog boxes are closed that you can re-try the AdBlock Plus install.

It then installed without issue.  Restart Firefox to enable the add-on.

Microsoft Remote Desktop and vncviewer for OpenSolaris

After a constantly recurring conflict between Ubuntu and my desktop’s nVidia card, I decided to switch operating systems.  OpenSolaris has nice, built-in support for nVidia, so I decided to give it a try. I used Solaris for close to a decade at Cisco, and it’s still one of my favorite OSs.

First, I went to sun.com, was shocked to be redirected to oracle.com, found the Download page, got the x86 ISO, and burned it to CD.  It’s a Live CD, meaning you can boot from it and run the OS “on” your machine without actually installing it to your hard disk.

Running the Live CD, I was able to confirm that OpenSolaris recognized all my PC’s hardware: the network worked, and video was good.  Nice!  I rebooted into Ubuntu, copied all my files onto a USB stick, and then proceeded with the install.

Now, I’m back to getting everything reinstalled and my environment back how I like it.

First up: A Windows administrator needs to be able to remote to Windows servers!  This requires the rdesktop package, which is not installed by default.

To Install VNC client and rdesktop Client with IPS under OpenSolaris

# pkg install SUNWvncviewer
# pkg install SUNWrdesktop

To Run Microsoft Remote Desktop Client
# rdesktop <hostname_or_IP_address>

via Microsoft Remote Desktop and vncviewer for OpenSolaris : JB French OpenSolaris User.

I wrote a script called rdesk to connect to various Windows and VMware hosts:

#!/bin/bash

host=$1
resolution='1162x768'

case $host in
201 | 211 | 212 | 213 | 216)
hostname=192.168.249.$host
user=administrator
;;

101 | 102)
#VMware Remote Console Information:
#Usage: vmware-console <flags> [[user@]host:]vm
#where <flags> are:
#-h host        connect to HOST
#-P port        port on HOST
#-u user        connect as USER
#-p password    password for USER@HOST
#-c vm        name of virtual machine to connect to
#-v           print program version
vmware-console -h 10.5.10.$host -u root -p
exit
;;

*)
hostname=$host
domain='-d OURDOMAIN'
user=me

esac

rdesktop $domain -u $user -p $pass -g $resolution -r clipboard:PRIMARYCLIPBOARD -T $hostname $hostname

This allows me to run ‘rdesk hostname‘ or ‘rdesk ip‘ and open a rdesktop window to that machine, asking for a password.

Next step: installing KeePassX