Friday, June 26, 2015

Firfox install addon success on normal version failure on developer edition

I worked on Opensource project Mitro, try add idQ Trusted sevice authorization to it.
After I made some change on Mitro firefox plugin, this plugin could not install on firefox developer edition, but the normal firefox works.

Finally, I found the issuse was :



14:41:46.304 1435344106304 addons.xpi ERROR Failed to remove file C:\Users\....\AppData\Roaming\Mozilla\Firefox\Profiles\4c3molwx.dev-edition-default\extensions\trash\adbhelper@mozilla.org\win32\adb.exe: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.remove]"  nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)"  location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm :: recursiveRemove :: line 1506"  data: no] Stack trace: recursiveRemove()@resource://gre/modules/addons/XPIProvider.jsm:1506 < forEach()@self-hosted:210 < recursiveRemove()@resource://gre/modules/addons/XPIProvider.jsm:1521 < forEach()@self-hosted:210 < recursiveRemove()@resource://gre/modules/addons/XPIProvider.jsm:1521 < forEach()@self-hosted:210 < recursiveRemove()@resource://gre/modules/addons/XPIProvider.jsm:1521 < DirInstallLocation_getTrashDir()@resource://gre/modules/addons/XPIProvider.jsm:7521 < DirInstallLocation_installAddon()@resource://gre/modules/addons/XPIProvider.jsm:7543 < AI_startInstall/<()@resource://gre/modules/addons/XPIProvider.jsm:5996 < next()@self-hosted:674 < TaskImpl_run()@resource://gre/modules/Task.jsm:330 < Handler.prototype.process()@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:867 < this.PromiseWalker.walkerLoop()@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:746 < this.PromiseWalker.scheduleWalkerLoop/<()@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:688 < <file:unknown>1 Log.jsm:749:0

I delete and try reinstall it.


Tuesday, June 9, 2015

Windows cannot find the Microsoft Software License Terms. Make sure the installation sources are valid and restart the installation.

I install windows 2012 r2 on VMware player 6.3 always get error "Windows cannot find the Microsoft Software License Terms.  Make sure the installation sources are valid and restart the installation."

To fix this issue:
When you create a New virtual machine
- Choose the option: I will install the operating system later.(The virtual machine will be created with a blank hard disk.)
   Do not type the path to the ISO file
- After creating New virtual machine additionally set the path to the ISO file (VM/ settings/ CD-DVD.../Use ISO image file)
- After running the New virtual machine to automatically install classicl (otherwise runs probably Express= error)

Friday, May 15, 2015

Add Listen ports to apache in ubuntu

http://www.cyberciti.biz/faq/linux-apache2-change-default-port-ipbinding/

Question: How do I change Apache 2 default port under Debian / Ubuntu Linux? I've couple of public IPv4 address assigned by my ISP, how do I force Apache2 to listen to a specific IP address? How do I change Apache2 IP address binding?
Answer: You can easily change the port and other settings using following directives:


Task: Change Apache port

Open /etc/apache2/ports.conf file, enter:
# vi /etc/apache2/ports.conf
OR
$ sudo vi /etc/apache2/ports.conf
To make the server accept connections on both port 8010, enter:
Listen 8010
To make the server accept connections on both port 80 and port 8010, use:
Listen 80
Listen 8010

Task: Accept connections on specific IP / interface port

You need to use network interfaces IP address. For example, to make the server accept connections on IP 202.54.1.2 and port 80, enter:
Listen 202.54.1.2:80
To make the server accept connections on two specified interfaces and port numbers, enter:
Listen 202.54.2.1:80
Listen 202.54.2.5:8010

Save and close the file. Restart Apache 2 webserver:
# /etc/init.d/apache2 restart
OR
$ sudo /etc/init.d/apache2 restart

How do I verify port and IP binding working ?

Use netstat command to find out if Apache is listening on a specific port or not, use:
# netstat -tulpn
# netstat -tulpn | grep :80
# netstat -tulpn | grep :8010
# netstat -tulpn| grep 202.54.1.2:80

Sample output:
tcp        0      0 202.54.1.2:80            0.0.0.0:*               LISTEN