Wednesday, February 3, 2016

Sonicwall NetExtender on Ubuntu

One of the main problems with using the linux version of NetExtender on Ubuntu is that is messes with the resolvconf and does not restore it properly when it is done. Below are the commands I run to fix my resolvconf after closing NetExtender.

sudo rm resolv.conf 
sudo ln -s /run/resolvconf/resolv.conf resolv.conf 
sudo resolvconf -u

Friday, August 15, 2014

Ubuntu log-in screen

Here is what /etc/lightdm/lightdm.conf looks like to remove the list of users, require users to type in their usernames to log-in, and not allow guest or remote log-ins to Ubuntu.

UPDATE: On Ubuntu 13.10 the lightdm.conf file might need to be created.
UPDATE: On Ubuntu 14.04 the lightdm.conf file might need to be created.


Friday, April 25, 2014

PowerBroker Identity Services (formerly Likewise Open) on Ubuntu server

*Likewise Open is no longer available.  It has been taken over by BeyondTrust and is called PowerBroker® Identity Services, Open Edition
Here are the steps I took to get PowerBroker Identity Services, Open Edition onto Ubuntu Server.
  • Ubuntu Server 14.04 64-bit
  • PBIS Open - Stable Release
  1. Log-in to server with sudo privileges
  2. Be sure ssh server is installed
  3. Download PowerBroker® Identity Services, Open Edition 
  4. Make script executable
      $chmod +x
  5. Execute install script and follow istructions 
      $sudo ./
  6. Join the domain
      $sudo domainjoin-cli join <domain name> <domain admin user>
  7. Change default shell for domain users to bash
      $sudo /opt/pbis/bin/config LoginShellTemplate /bin/bash
  8. If you would like, set the domain as default (not require <domain>\ to precede username for domain logins)
      $sudo /opt/pbis/bin/config AssumeDefaultDomain true
  9. Add domain users to necessary groups in /etc/group (sudo for the admin users)
  10. Clear cache
      $sudo /opt/pbis/bin/ad-cache --delete-all
  11. Apply fix: Edit /etc/pam.d/common-session and change "session sufficient" line to
      session [success=ok default=ignore]
  12. Reboot and login with domain user

Tuesday, February 25, 2014

Audio virus (Trojan.Zekos.Patchedww2)

A user experienced a problem where their laptop would play audio ads when started.

OS: Windows Vista

After trying all the usual tools the audio ads continued to play.  Running Malwarebytes Anti-Rootkit BETA v1.07.0.1009 found a virus (Trojan.Zekos.Patchedwv2) in C:\Windows\System32\rpcss.dll.

Other symptoms:
  • DCOM Launcher and PlugPlay services have high CPU utilization
  • Vista restarts with message "Windows must now restart because the DCOM Server Process Launcher service terminated unexpectedly".  This message does not allow you to prevent the machine from rebooting, the only option is "Close"
Other steps tried (unsucessfully):
  • Malwarebytes (regular version)
  • Every pertinent tool on Hiren Rescue CD
  • Panda Antivirus scan
  • Kapersky TDSSKiller
  • RKill

Tuesday, January 14, 2014

Glassfish deployment issue: "Could not load any resource bundle by...."

While attempting to redeploy a web project to Glassfish the following error occurred:
"Could not load any resource bundle by"
When trying to restart the Glassfish domain it ran into errors and would not start.  After some troubleshooting the problem turned out to be with the Glassfish server not Glassfish or the project.  It turns out that a teammate ran into some problems while running updates on the Ubuntu server that was hosting Glassfish and that caused java to be temporarily uninstalled (which would obviously cause problems for the java application server).  After re-running the updates, rebooting, then re-running updates again (not sure if all of these steps were necessary) the  Glassfish domain was able to start and deployment of the project worked with no errors.

Tuesday, December 31, 2013

Javascript Event Keys

Ways to get the keycode (or charcode) of keys that were pressed.

  • which (i.e. e.which)
  •  keyCode (i.e. e.keyCode)

     function testkeydown(e)
          alert("Key pressed was " + e.keyCode);

     function testkeyup(e)

     function testkeypress(str, e)
          alert("Key pressed was " + e.which + " and the additional parameter was " + str + ".");

<input type="text" onkeydown="testkeydown(event);" />
<input type="text" onkeyup="testkeyup(event);" />
<input type="text" onkeypress="testkeypress("additional parameter", event);" />

Wednesday, October 30, 2013

uses a non-entity as target entity in the relationship

This error or similar appears in the Glassfish server log even though everything appears correct in the project.  Double-check the persistence.xml to be sure it is correct.  If it is, the problem is likely being caused by a cached persistence.xml.  If you are using an IDE such as Netbeans be sure to Clean & Build before deploying.