[Ubuntu] Networking service

Environment : Ubuntu 14.04

Problem :

  1. Failure to restart networking service
  2. Interface eth# not configured

Continue reading


[svn] svn works with proxy in ubuntu

Background : svn checkout project under ubuntu using proxy

With natif configuration of svn (which is installed by apt-get), svn checkout return an error :

svn co --username your_username https://your_svn_url/
svn: OPTIONS of 'your_svn_url': Could not resolve hostname ... : Host not found

The solution is to add proxy to the defaut configuration of svn.

Edit : ~/.subversion/servers by adding :

http-proxy-host = your_proxy_host
http-proxy-port = your_proxy_port (3128 or 8080 etc)
http-proxy-username = your_proxy_username
http-proxy-password = your_proxy_password




[ubuntu] Change OpenJDK/OpenJRE to SunJDK/SunJRE

Here is very good article about how to change OpenJDK/OpenJRE to SunJDK/SunJRE

I list several commands for me :

Installing Sun Java on Newer versions of Ubuntu (10.04 an above)
Open the terminal and type the following:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update   
sudo apt-get upgrade   
sudo apt-get install oracle-java7-installer

That should install the Sun Java version on your system. To change to it simply do the following in case you have other java alternatives:

sudo update-java-alternatives -s java-7-oracle  

[ubuntu] WARNING gnome-keyring in lubuntu

If you have met the same problem, this maybe help.

Background :

I installed phpunit in my ubuntu 12.04(the os is lubuntu), the installation passed quite well, but when I launch the command in termianl, I got always this warning :

$ phpunit --version
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-xAGrk8/pkcs11: No such file or directory
PHPUnit 4.4.5 by Sebastian Bergmann.

Continue reading

[Install PHPUnit] Installing PEAR and PHPUnit on WAMP and Windows 7 (no longer maintained from PHPUnit 3.7)

First of all, thanks to @Sebastian Bergmann for reminding and sorry for my careless about this reblog because End of Life for PEAR Installation Method to PHPUnit from github and The package PHPUnit is not maintained anymore and has been superseded. Package has moved to channel pear.phpunit.de, package PHPUnit from pear.php.net.

So this blog should be a reblog of installing PHPUnit(<3.7) in Windows7 from http://thecancerus.com/ and I found it was still useful for understanding the theory of configuration of php(in wamp) and the environment variables.

The newest manual installation of PHPUnit in windows can be found its documentation.

Continue reading

[Mac] Github + atom

Good news !

From mac os 10.8, it begins to support Github, we don’t need to install a third-part application, sounds good.

After got a try, it is really good, just create a repository and do the git init command, after we can clone the existing project or create a new one.



Screen Shot 2014-12-13 at 01.40.59


C’est pas fini. That’s not all, Github provided several methods to visualize the project.

Screen Shot 2014-12-13 at 01.43.22


And I found a very useful, even better than Sublime, because it doesn’t need to make the complex configuration, and easy to install the tools, for example, vim mode etc.

Screen Shot 2014-12-13 at 01.45.56

[Apache2] SSLSessionCache: ‘shmcb’ session cache not supported

Background :

$ lsb_release
Distributor ID : Ubuntu
Description : Ubuntu 14.04.1 LTS

Problem :

$ sudo service apache2 restart
 * Restarting web server apache2                       <wbr />                              <wbr />                              <wbr />   [fail] 
 * The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 43 of /etc/apache2/mods-enabled/ssl.<wbr />conf:
SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
Action 'configtest' failed.
The Apache error log may have more information.

Continue reading

[Eclipse][Oracle JDK] Eclipse Indigo crashes at startup in Ubuntu 12.04

Problem :

Eclipse crashes at startup in Ubuntu 12.04 displaying an error dialog with the message “An error has occurred. See the log file /home/user/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/[a_long_number].log.” The log file is attached to the report.

Solution :

Eclipse Indigo is not compatible with Oracle’s JDK, in my case, it is JDK 1.6.0_45.

But it works with Open jdk, so idea is to change Oracle JDK to Open JDK in ubuntu 12.04

Continue reading