Proxmox 2.0: Akses Konsol VNC

From OnnoWiki
Jump to navigation Jump to search

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