Get Social

Delete the message proxmox “No Valid Subscription”

How to we can remove proxmox message “No Valid Subscription”?

To do this, you just need to edit the file pvemanagerlib.js:

open in test editor:

nano /usr/share/pve-manager/ext4/pvemanagerlib.js

You can use “locate pvemanagerlib.js” command to find this file.

Find the line:

  if (data.status !== 'Active') {

We copy and comment on it (just in case) and correct, as shown below:

//  if (data.status !== 'Active') {
  if (false) {

Now “No Valid Subscription” message does not bother us anymore.

Update. path in new proxmox version: /usr/share/pve-manager/js/pvemanagerlib.js

Installing and configuring the adminer on debian (phpmyadmin alternative)

On my current work, there was a task to install and adjust this tool.

What is it? According to Wikipedia: “Adminer (formerly known as phpMinAdmin) is a tool for managing content in MySQL databases (since version 2 also in PostgreSQL, MS SQL, SQLite and Oracle databases).

Next – go to his site and get acquainted closer … We see that there is simply an adminer, and there is – adminer-mysql. We need for mysql. Since the package for it is still in the sid branch, it will not turn out beautifully from the repository. We will not connect this branch so that the package manager does not become littered, especially since the entire utility is one file and we can have the latest version simply by downloading it from the site. On our Debian server, create a directory and download the latest version of adminer:

mkdir /var/www/adminer
cd /var/www/adminer
wget https://www.adminer.org/latest-mysql.php

Next, create a configuration file for Apache:

nano /etc/apache2/conf.d/adminer.conf

Add the following entry:

Alias /adminer /var/www/adminer

<Directory /var/www/adminer>
        Options FollowSymLinks
        DirectoryIndex latest-mysql.php

        <IfModule mod_php5.c>
                AddType application/x-httpd-php .php

                php_flag magic_quotes_gpc Off
                php_flag track_vars On
                php_flag register_globals Off
                php_value include_path .
        </IfModule>
</Directory>

Now, use it with url: http://yourserver/adminer

P.S. It is also possible to change the interface – you just need to download the file adminer.css to the adminer.php directory.

Problem with java plugin in proxmox

The java plugin installed in this way works well by itself, but in the case of proxmox, it produces an error:

Appication Blocked by Security Settings: Your security setting have blocked a self-signed application from running

Here is error screenshot:

java-plugin-proxmox-blocked

What to do? There are 2 solutions:

[Solution 1] Install IcedTea plugin and then connect it to the browser

aptitude install icedtea-7-plugin

And so on … But I did not do it, because I found a better solution -> next “Solution 2”.

[Solution 2] Configure Java Control Panel

/usr/lib/jvm/j2sdk1.7-oracle/bin/ControlPanel

Execute this command in the terminal and you get run the Java Control Panel.
If in your case there is no such file, then you can find it like this:

find /usr/lib/jvm/ | grep -i ControlPanel

Next, choose Security > Edit Site List > Add And add your path to the host (it was https://aspetruk:8006 in my case)

java-plugin-proxmox-control-panel

After that, proxmox console worked perfectly.