[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

[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

[Proxy Ubuntu] Configration of proxy in Ubuntu 12.04 for eclipse SVN

1. Configration proxy in Ubuntu :

System setting -> Network proxy as diagram below :

Apply your own configration of proxy.

2. Configration proxy for SVN :

Go to ~/.subversion folder, modify the file servers :

Uncomment these lines and add your own configration proxy :

# http-proxy-host=your_host_name
# http-proxy-port=8080
# http-proxy-username=bo
# http-proxy-password=password

Make sure there is no gap on either side of “=” symbol

It will works your proxy.

[UBUNTU] Black screen when installation of Ubuntu 12.04 + solution

The problem which I met yesterday :

1. trying to install ubuntu 12.04, and black screen (solution in the POST precedent)

2. after installation ubuntu 12.04 successfully, when reboot and black screen

There are some diagrams which could be more clear :

When you arrive at this step below, just press shift key on your keyboard.

Press e to edit your start command, change quiet splash to nomodeset  and press Ctrl+X on keyboard.

After you reboot successfully, open a terminal, and follow the tips below:

You should add this option to /etc/default/grub, firstly:
sudo nano /etc/default/grub

and then add nomodeset to GRUB_CMDLINE_LINUX_DEFAULT:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
GRUB_CMDLINE_LINUX=""

And then simply run:
sudo update-grub

You can also find the solution in the following URL, especially the answer of Coldfish in the second URL which provide a solution to update grub :

http://askubuntu.com/questions/162075/my-computer-boots-to-a-black-screen-what-options-do-i-have-to-fix-it

http://askubuntu.com/questions/38780/how-to-set-nomodeset-for-installation/38782#38782