Thứ Bảy, tháng 6 01, 2013

How to install jdk 7 when install failed ?

When I fresh install Linux Mint 14 KDE, all the suddent I couldn't install Java (sha256sum mismatch jdk-7u3-linux-x64.tar.gz), which means I can't do much deving. Well I searched through the interweb and finally found a solution.

First:

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

By now, you have probably gotten an error and the terminal has stated that Java was not installed. No problem.

Second:

Download Java directly from Oracle

Now, move what you just downloaded to /var/cache/oracle-java7-installer/

Third:

sudo gedit /var/lib/dpkg/info/oracle-java7-installer.postinst

Now scroll down and find the following:

                
                echo "Downloading..."
                rm -f $FILENAME
                WGETRC=wgetrc wget $PARTNER_URL 
                        || fp_exit_with_error "download failed"
                rm -f wgetrc
                echo "Download done."

Now put a # next to each line between "Downloading..." and "Downloading done."

     
               
                echo "Downloading..."
                #rm -f $FILENAME
                #WGETRC=wgetrc wget $PARTNER_URL 
                        #|| fp_exit_with_error "download failed"
                #rm -f wgetrc
                echo "Download done."

Save, and go back to your terminal.

Finally, do:

sudo apt-get install oracle-java7-installer

Java should now install properly.

Source:

http://www.ubuntugee...untu-12-04.html (most helpful info is in the comments)

Thứ Sáu, tháng 5 31, 2013

How to Install Oracle Java 7 (JDK & JRE) in Ubuntu 13.04 Raring Ringtail, 12,10 and LinuxMint ?

Question: How to  Install Oracle Java 7 (JDK & JRE) in Ubuntu 13.04 Raring Ringtail, 12,10 and LinuxMint ?

To install java7 in Ubuntu 13.04 Raring Ringtail, 12.10 and LinuxMint13, use the following repository (Thanks to Andrew from Webupd8):
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
- If you want to remove Oracle Java 7 from your system, open terminal and  run this command:
sudo apt-get remove oracle-java7-installer
That all.
For questions please refer to our Q/A forum at : http://ask.unixmen.com

Thứ Bảy, tháng 12 22, 2012

Cách khắc phục lỗi 403 Forbidden khi tạo Alias cho Xampp trên Ubuntu

Hôm nay cài lại Ubuntu 12.10 cho lappy, đã cài hoàn chỉnh để tập code, cài IDE cho Android khá ổn nhưng tới  khi cài Xampp để code PHP (dùng Eclipse PDT plugin for Eclipse Classic) đã cấu hình Alias cho nó và set luôn quyền 777 cho thư mục Alias thì vẫn bị tình trạng 403 Forbiden , quái ! full access sao mà còn bị Forbiden là sao ?
Lay hoay các diễn dàn của VN kể cà Ubuntu VN cũng chả thấy xi nhê gì cả, bỏ đó đi ăn tối và làm ly cafe đá đen với 2 điếu Jet cho nó khỏe người cái đã

Lát sau vào http://www.blogit.info/2012/09/tao-virtual-host-trong-xampp.html thây có câu :
Nếu lỗi 403 Forbidden bạn có thể thay bằng
1
2
3
4
5
<Directory "D:/www">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Require all granted
</Directory>
Làm thử xem sao, hờ hờ không ngờ nó okies , cảm ơn tác giả !!!!