Difference between revisions of "Proxmox 2.0: Akses Konsol VNC"

From OnnoWiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 25: Line 25:
  
 
* http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
 
* http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
* http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
+
* http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
 
* http://java.com/en/download/manual_java7.jsp -- Java JRE 7
 
* http://java.com/en/download/manual_java7.jsp -- Java JRE 7
  
Line 55: Line 55:
 
  tar zxvf jre-8u45-linux-x64.tar.gz
 
  tar zxvf jre-8u45-linux-x64.tar.gz
 
  cd /usr/lib/mozilla/plugins
 
  cd /usr/lib/mozilla/plugins
  ln -s /usr/java/jre1.8.0_31/lib/amd64/libnpjp2.so
+
  ln -s /usr/java/jre1.8.0_45/lib/amd64/libnpjp2.so
  
 
==Edit ConsolPanel==
 
==Edit ConsolPanel==
 +
 +
===Untuk JRE7===
  
 
  cd /usr/java/jre1.7.0_75/bin
 
  cd /usr/java/jre1.7.0_75/bin
 
  ./ControlPanel
 
  ./ControlPanel
 +
 +
Ijinkan self-signed
 +
 +
* Klik Security > Edit Site List > Add > Masukan URL
 +
 +
 +
===Untuk JRE8===
 +
 +
  cd /usr/java/jre1.8.0_45/bin/
 +
  ./ControlPanel
  
 
Ijinkan self-signed
 
Ijinkan self-signed

Latest revision as of 14:18, 8 June 2015

Instalasi Menggunakan apt-get

WARNING: Sebaiknya cara ini jangan digunakan karena akan menginstalasi versi terbaru versi terbaru rewel dengan selfsigned certificate

Pastikan anda memiliki akses ke Internet yang kencang.

Masukan di /etc/apt/sources.list

deb http://www.duinsoft.nl/pkg debs all

Lakukan gpg key

sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26

Lakukan

sudo apt-get update
sudo apt-get install update-sun-jre

Ini akan memakan waktu lumayan karena akan mendownload sekitar 40-50Mbyte file


Download JRE

Instalasi Java Secara Manual

Men-delete plugin yang lama

sudo su
rm /usr/lib/mozilla/plugins/libnpjp2.so

Menginstalasi versi 7

sudo su
mkdir /usr/java
cd /usr/java/
cp jre-7u75-linux-x64.tar.gz /usr/java/
cd /usr/java
tar zxvf jre-7u75-linux-x64.tar.gz
cd /usr/lib/mozilla/plugins
ln -s /usr/java/jre1.7.0_75/lib/amd64/libnpjp2.so

Menginstalasi versi paling baru

sudo su
mkdir /usr/java
cd /usr/java/
cp jre-8u45-linux-x64.tar.gz /usr/java/
cd /usr/java
tar zxvf jre-8u45-linux-x64.tar.gz
cd /usr/lib/mozilla/plugins
ln -s /usr/java/jre1.8.0_45/lib/amd64/libnpjp2.so

Edit ConsolPanel

Untuk JRE7

cd /usr/java/jre1.7.0_75/bin
./ControlPanel

Ijinkan self-signed

  • Klik Security > Edit Site List > Add > Masukan URL


Untuk JRE8

 cd /usr/java/jre1.8.0_45/bin/
 ./ControlPanel

Ijinkan self-signed

  • Klik Security > Edit Site List > Add > Masukan URL

Mengaktifkan Java Secara Manual

Mengaktifkan secara manual untuk amd64

cd /usr/lib/mozilla/plugins
ln -s /usr/java/jre1.7.0_45/lib/amd64/libnpjp2.so


Memperbaiki Sertifikat yang Selfsigned

Java ada di folder

/opt/java/64/jre1.7.0_51/bin

Misalnya web yang di akses adalah 192.168.0.13 port 8006

echo -n | openssl s_client -connect 192.168.0.13:8006 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/mycert.crt

Akan keluar

depth=0 OU = PVE Cluster Node, O = Proxmox Virtual Environment, CN = proxmox.yc0mlc.ampr.org
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 OU = PVE Cluster Node, O = Proxmox Virtual Environment, CN = proxmox.yc0mlc.ampr.org
verify error:num=27:certificate not trusted
verify return:1
depth=0 OU = PVE Cluster Node, O = Proxmox Virtual Environment, CN = proxmox.yc0mlc.ampr.org
verify error:num=21:unable to verify the first certificate
verify return:1
DONE


Verify menggunakan perintah

openssl x509 -in /tmp/mycert.crt -text

Ini tidak harus.


Simpan di cacert

keytool -import -trustcacerts -keystore /opt/java/jre/lib/security/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mycert.crt
keytool -import -trustcacerts -keystore /etc/java-sun/security/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mycert.crt
keytool -import -trustcacerts -keystore /etc/ssl/certs/java/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mycert.crt
keytool -import -trustcacerts -keystore /opt/java/64/jre1.7.0_51/lib/security/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/mycert.crt

Referensi

Pranala Menarik

Proxmox 2.0