Sunday, August 30, 2015

JDK and NetBeans

Normal I would attempt to avoid install/add software manually and use aptitude to get the job done instead.

Although there is an option to install Java and JDK with aptitude, the version is a bit old, i.e. version 7 instead 8.  I have no option but do it manually.

Here are the steps which I tool to install JDK8 on my machine.

1) Download your JDK8 from Oracle.  Since I am using Debian, I picked and used the gzip version.
2) Decompress the gzip file, e.g.

tar zxvf jdk-8u60-linux-i586.tar.gz

3) Move the uncompressed package to your desired location.  In my case, I put it where other OpenJDK are located, e.g.

sudo   mv   jdk1.8.0u60   /usr/lib/jvm


4) Create a subversion mutual symbolic link to the /usr/lib/jvm/jdk1.8.0u60, e.g.

ln -s /usr/lib/jvm/jdk1.8.0u60   /usr/lib/jvm/oracle-jdk8

5) Use update-alternative to add java, javaws, javadoc, javac to the system.

update-alternatives   --install   "/usr/bin/java"  "java" "/usr/lib/jvm/oracle-jdk8/bin/java"   1

Repeat the above for javac, javadoc and javaws

6) You may need to use update-alternatives --config to update the default java executable path, e.g.

update-alternatives   --config   java

7) Test you setup by running

java   -version

(see: http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre)

8) If you have NetBeans setup before the installation, you need to update its java_homepath value by modifying its netbeans.conf file.

I kept the configuration personalized to my account, hence I used the localized version which is at:

~/.netbeans//etc/netbeans.conf

The contents in my netbeans.conf is

netbeans_jdkhome=/usr/lib/jvm/oracle-jdk8

note: You may not see the etc directory.  If you can't see it, you need to create the etc directory and .netbeans.conf file yourself.

(further information can be found at: Netbeans - ArchWiki)

Update 2016-01-28:  Alternatively, Java can be installed with APT by following the instructions at:

https://launchpad.net/~webupd8team/+archive/ubuntu/java

and

https://launchpad.net/~webupd8team/+archive/ubuntu/java

Tuesday, August 11, 2015

USB3.0 Gigabit Ethernet Adapter

I just want to share my experience with 2 USB3 to Gigabit Ethernet solutions. I have tried solutions from ASIX (AX88179) and Realtek (RTL8153).  Both work very well and offer nice speed bump from the 10/100Mbps adapter that comes with my laptop. I get approximately 60-70MB/s (read) for my laptop with USB3, and near 40MB/s (read) for my old Dell desktop with USB2.

RTL8153 USB3 to Gigabit Adapter on USB2 connection

If you have a laptop that only comes with 10/100Mbps NIC, or have a old SFF desktop that again comes with 10/100Mbps onboard NIC, you may want to give these USB3 to Gigabit Ethernet adapters a try. The two adapters I have certainly give the otherwise slow transfer speed a nice boost!

Friday, August 7, 2015

I have an old Broadcom NetXtreme Gigabit Ethernet NIC, and it worked well with Windows 8.1 but not with Windows 10 (at least not with the version I had).

Anyway, today I managed to find a set of drivers which work. The driver I found is from Lenovo for its THINKSTATION S10 (TYPE 6423, 6483), ver. 10.86.0.0.  Its URL is:
http://support.lenovo.com/us/en/downloads/ds000638

If you are having one of these Braodcom NIC below, you may want to give it try.

5700, 5701, 5702, 5703, 5704, 5705, 5751, 5753, 5754, 5755, 5756, 5782, 5786, 5787, 5788, 5789, 5901, 5906


By the way, the hardware ID for my card is:

PCI\VEN_14E4&DEV_16A6



Wednesday, August 5, 2015

Change Window 8/10 Network Location using PowerShell

One thing that I am really annoyed by Windows 8 and then now Windows 10 is Set/Change network location.  Microsoft manages to make something so easy in Windows 7 to something that is so convoluted in new versions.

If you are comfortable with using commands, you may want to use PowerShell to change the Network Location instead.

1) You need to start PowerShell with elevated user account with command as below.
PSH>Start-Process WindowsPowerShell.exe -verb RunAs
Alternatively, you can type powershell in Search, and run it as an administrator by using the "Run As" option from the context menu (right click)

2) Use the Get-NetconnectionProfile to find out the InterfaceIndex of the connected NIC, e.g.
PSH> Get-NetConnectionProfile
......
Name : Unidentified network
InterfaceAlias : vEthernet (Local-10)
InterfaceIndex : 18
NetworkCategory : Public
IPv4Connectivity : LocalNetwork
IPv6Connectivity : LocalNetwork

3) Use the Set-NetConnectionProfile to change to the desired network location.
PSH> Set-NetConnectionProfile -InterfaceIndex 18 -NetworkCategory Private
That's it. This saves you from switching account, and then jump through hoops to get the network location changed.

(ref: http://blogs.msmvps.com/russel/2013/12/29/set-network-location-to-private-in-windows-8-1server-2012-r2/)

Friday, July 31, 2015

Microsoft Edge and Google

One of the selling feature of Windows 10 is its brand new browser Edge. Most review said it is fast, so I give it a spin myself. After a brief moment with it, I almost wrote it off as I couldn't seem to change its default search result provider from Bing to Google. With the old IE, the method was obvious. You click on the option for showing you a list of providers and pick from it; With Edge, you click "Add New", nothing happens. As it turns out, the "Add New" option only comes to live if you are on the search engine page as seen below.


I may be wrong, but this works for me.

Wednesday, July 8, 2015

ATi X300 Driver for Windows 8.1

I had to dig out my old ATi X300 card when the graphics card cooling fan on one of my desktop failed.  X300 is very old.  It was released in 2004.  It is always a challenge to get graphics this age to work in modem Windows.  To my surprise, it is actually easy.  Windows 8.1 seems to accept and use its dated Vista 64bit driver happily (http://support.amd.com/en-us/download/desktop/legacy?product=Legacy1&os=Windows%20Vista%20-%2064).

Instead of using the installer to install the driver, you run the installer to extract the files, but stop run after the extraction.  You then install the driver manually by asking Windows to look for drivers in the folder when you extract your drivers files.  Windows should pick up the driver, and install it.

Further details can be found at:
http://forum.xda-developers.com/showthread.php?s=f5175aaa350a453115ae1aef89d529f1&t=1536711

Update 2016-08-25: It works on Windows 10 too.  However, it needs to be install under safe mode!

Sunday, April 12, 2015

GIMP batch processing

Just want to share a nice little plugin BIMP (Batch Image Manipulation Plugin)for batch processing in GIMP. As it says on the tin, it allows you to queue up processing steps and apply them to a set of images in batch. You can find this plugin at: http://www.alessandrofrancesconi.it/projects/bimp/

Thursday, April 2, 2015

Xubuntu 14.10 and Intel i915

It is very easy to setup Xubuntu on this old laptop.  Unlike the OS (Windows) it replaced, it runs smoothly on the laptop's Core2Due processor and with 3GB memory.  Most hardware on this laptop just works in Xubuntu, with the exception of the Intel i915.  Every now and then, I got a corrupted screen.

After reading up a few posts on online forums, it seems this can be fixed by applying

1) Create a i915.conf file in /etc/modprobe.d with this line

options i915 enable_rc6=1 enable_fbc=1 lvds_downclock=1

2) create a xorg.conf in /etc/X11 with the settings below

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"  "uxa"
EndSection


This tricks seem to work so far.  I will update this post in few weeks time to let you know if it really gets the job done!

Friday, March 20, 2015

Things to do after installing Xubuntu

This is a checklist that I found useful when setting up a new Xubuntu installation.

  1. NetBIOS - Allows computer names to be used rather than IP.
    1. sudo apt-get install winbind libnss-winbind
    2. Edit /etc/nsswitch.conf, and add wins to the end of the line in (3)
    3. host: files mdns4_minimal [NOTFOUND=return] dns wins
  2. Samba Configuration Tool - Allows folders to be shared with other Windows computers.
    1. sudo apt-get install system-config-samba
    2. sudo touch /etc/libuser.conf
    3. sudo system-config-samba
  3. RDP Client - Allows making remote desktop connection to a Windows machine in the network.
    1. sudo apt-get install remmina
  4. Preserve Job History - Stops CUPS preserving job history
    1. sudo pico /etc/cup/cupsd.conf
    2. add PreserveJobHistory off just before WebInterface Yes


  • Add optimized driver repository from Oibaf at https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
  • Sunday, March 1, 2015

    Hyper-V and Hyper-V Adminsitrators Group

    While VirtualBox is an excellent virtualization solution, it is a Type-2 Hypervisor, i.e. it has greater overhead.  The extra overhead can be a problem for Virtual Machines that facilitate demanding applications such as Visual Studio.  Virtual Machines with these demanding application would be better served by a Type-1 (aka Bare Metal) Hypervisor.

    There are Type-1 Hypervisors available, but some can be very strict in hardware requirement; and some can be a bit tricky to setup.  Since Hyper-V comes with Windows 8.1, and is in the "Click and Install" software category, I decided to give it a spin.

    Hyper-V is not installed in Windows 8.1 by default.  To add Hyper-V, go to "Programs and Features", click on "Turn Windows features on or off", select Hyper-V features and click OK.


    With the default setup, only Administrators or user in the Administrators group can connect to the Hyper-V Server.  Since I have taken extra trouble to create a Normal User account for my day-to-day use, I do not want to ruin all my efforts because I want to use Hyper-V.  Luckily, you can allow a non-admin user to connect to Hyper-V server by adding the user to the Hyper-V Administrators group (rather than the Administrators group).  You can find this group by right clicking on Computer, selecting Manage. Under the "Local Users and Groups", you should be able to find the "Hyper-V Administrators" groups as shown below.  Add the local user who you are allowed to connect, and off you go.  The local user you have added can now connect to the Hyper-V server.



    Further information on Hyper-V setup can be found at: https://technet.microsoft.com/en-gb/library/jj647785.aspx

    Monday, February 23, 2015

    Acer XC115

    Just received my Acer Aspire XC115 today.  If you are going for the Windows 8.1, it is relatively easy to set it up as Windows is able to find most of its drivers during the installation.  The only exception is the AmdAS4 Device.  However, it is not hard to fixed.  All you need to do is to install the latest AMD chipset drivers for this platform.

    If you are installing Windows 7, you may need few more drivers but again shouldn't be difficult (I have not tried it myself), as you should be able to find them from the manufacturer site (if not from Acer itself)
    As for performance, it would be daft to think this is lightening fast for a machine costs less than USD 160 and has a 15W TDP APU.  However, it is certainly not painfully slow neither.  I have run Cinebench R15 on it, and it is very comparable to my i5 laptop which costs significant more.
    Just for further references, I have also included result from my other machines.
    Update 2015-03-19: Cinebench result from a Core2Duo E4600 machine with nVidia GeForce 8400 has been added.  It seems the R2 iGPU is much faster than GeForce 8400, and the E2 6110 CPU is more than comparable with a Core2Duo, especially if you take the operating frequency into account, i.e. 1.5GHz vs 2.4GHz
    Update 2015-04-12: Cinebench result from a Lenovo S20-30 is added.

    Saturday, February 21, 2015

    Remote Connection Manager 2.7

    Microsoft has this little free Utility that lets you to have multiple remote desktop sessions opening in a single Window.  It is a nice utility but it is a bit out of date.  The last version was 2.2 and was released in 2010.

    This has changed with the arrival of 2.7 (released in November 2014).  I don't know why it is so late to the party, but I glad it does.  It finally brings features found in Remote Desktop Utility comes with Windows 8.

    It is available on Microsoft Website at: http://www.microsoft.com/en-gb/download/details.aspx?id=44989

    Here is a quick quote from the application page for its new features:
    "The RDCMan 2.7 version is a major feature release. New features include: - Virtual machine connect-to-console support - Smart groups - Support for credential encryption with certificates - Windows 8 remote action support - Support for Windows 8, Windows 8.1 / Windows Server 2012, Windows Server 2012 R2"