Tuesday, February 28, 2017

Enable Retina display on macOS VMware Fusion VM

By default, macOS (tested on 10.2.3) VM using VMware Fusion is not using Retina display. To enable high display resolution, do:

  1. On the macOS host machine, open VMware Fusion Preferences ( VMware Fusion | Preferences... )
  2. In Display selection, set Single Window to "Resize the virtual machine and the window" and Full Screen to "Resize the virtual machine and the window". See figure below for reference.
  3. In VMware Fusion, select the machine in the library ( Window | Virtual Machine Library
  4. In Virtual Machine Library, select the macOS guest VM then select Virtual Machine | Settings...
  5. In System Settings area, select display icon 
  6. Then in Display, select Use full resolution for Retina display
  7. Power up the macOS VM and install VMware Tools
  8. Once tools installation is complete, open terminal and type
  9. sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true
  10. Logout and log back in
  11. In the VM System Preferences | Display, select Resolution to Scaled and the resolution marked HiDPI.
  12. Done


Monday, October 03, 2016

Location of Android ADB in Windows

Android Debug Bridge (adb.exe) location in Windows 10


Thursday, September 29, 2016

Installing .Net 3.5 on Windows 10 offline using DVD/ISO media

Installing .Net 3.5 using the Control Panel in Windows 10 (anniversary update) can sometimes be very slow. Alternative option is to install from DVD/ISO, like:

c:\>DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:E:\sources\sxs

E: is the drive letter of DVD/ISO


Wednesday, September 28, 2016

BlackBerry Playbook Simulator 2.1 not working after installing on Ubuntu 16.04 64-bit

I was able to install BlackBerry Playbook Simulator 2.1 on Ubuntu 16.04 64-bit by installing supported libraries, see here.

Running the IDE (/opt/bbndk-2.1.0/bbndk.sh) fails with a message as shown below.

/opt/bbndk-2.1.0/host/linux/x86/usr/bin/../..//usr/qde/eclipse/qde: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

The above message says we don't have libgtk-x11-2.0 libraries. Since the IDE was compiled as i386 we need to install the library like:

sudo apt install libgtk2.0-0:i386

Running the IDE again yields the following error message:
(qde:2418): Gtk-WARNING **: Unable to locate theme engine in module_path: "hcengine",
# A fatal error has been detected by the Java Runtime Environment:
#  SIGSEGV (0xb) at pc=0xf771179d, pid=2418, tid=4131637376
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode, sharing linux-x86 )
# Problematic frame:
# C  [ld-linux.so.2+0xb79d]
# An error report file with more information is saved as:
# /home/y/hs_err_pid2418.log
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
Aborted (core dumped)

What is happening here is that Momentics IDE ships with Java 1.6 runtime but it is not compatible with some of the libraries that comes with Ubuntu 16.04. To fix this install Java 1.9 runtime for i386 architecture, like:

sudo apt install default-jre:i386

The above installation will make Java runtime available in the default path which will override sourcing by the scripts. Running the IDE this time should work but with some minor warnings, like:

(qde:2418): Gtk-WARNING **: Unable to locate theme engine in module_path: "hcengine"

To clean the console message out, do:

sudo apt install gtk2-engines:i386

You should now have a working Momentics IDE!!!

Tuesday, September 27, 2016

Installing BlackBerry Playbook Simulator 2.1 fails on Ubuntu 16.04 64-bit

Tried to install BlackBerry Play Simulator 2.1 on Ubuntu 16.04 64-bit but it fails with error message below.

sudo ./installer-bbndk-2.1.0-linux-1032-201209271809-201209280007.bin

Preparing to install...Extracting the JRE from the installer archive...Unpacking the JRE...Extracting the installation resources from the installer archive...Configuring the installer for this system's environment...
Launching installer...
./installer-bbndk-2.1.0-linux-1032-201209271809-201209280007.bin: 3320: exec: /tmp/install.dir.3056/Linux/resource/jre/bin/java: not found

The installation is failing because it has dependencies to 32-bit libraries. To fix it, do:
$ sudo dpkg --add-architecture i386
$ sudo apt install libc6:i386
$ sudo ./installer-bbndk-2.1.0-linux-1032-201209271809-201209280007.bin

Installation should now complete but the IDE will not be working. Next post details how to fix it.

Follow-up post is here.

Saturday, September 24, 2016

Installing VMware Workstation Professional VMware Tools in Ubuntu 16.04

It is good practice to get the latest updates before installing VMware Tools. Open terminal and run the following:
$ sudo apt update
$ sudo apt upgrade
$ sudo reboot
If the update needs to upgrade the kernel, it is a good idea to reboot the machine before installing the tools so that we are compiling against the correct kernel.

From VMware Workstation menu, do VM | Install VMware Tools....
$ mount cdrom
$ mkdir ~/tmp
$ tar -xvzf /media/u1/VMware\ Tools/VMwareTools-9.9.5-3735633.tar.gz -C ~/tmp
$ cd ~/tmp/vmware-tools-distrib/
$ sudo ./vmware-install.pl -d
$ eject
$ sudo reboot
u1 = is the username, replace it with your username
VMwareTools-9.9.5-3735633.tar.gz = version of VMware Tools in the ISO, change it with what's in /media/<user>/VMware Tools/.

Friday, September 23, 2016

How to determine BlackBerry PlayBook Simulator IP address

Click on user icon, a popup dialog will show up and show the IP address.