Get Social

Howto install latest java and plug-in to chromium

Install build java utility:

aptitude install java-package

After that – go to link and download archive for your system (in my case it was: Linux x64 131.8 MB jdk-7u51-linux-x64.tar.gz). Compile deb-package:

make-jpkg jdk-7u51-linux-x64.tar.gz

(We could download rpm package and used the alien utility to convert it to deb, but [we are not looking for easy ways]||[it seems make-jpkg compiled package will be more correct] ). Now install it:

su
dpkg -i oracle-j2sdk1.7_1.7.0+update51_amd64.deb

To connect it to the browser, we do so:

mkdir ~/.config/chromium/plugins
ln -s /usr/lib/jvm/j2sdk1.7-oracle/jre/lib/amd64/libnpjp2.so ~/.config/chromium/plugins/libjavaplugin.so

Even without restarting the browser, you can immediately go to the link and check the version of java.

The history of one error … (microsoft forms)

In a certain kingdom, in a certain state …

In one company, specific software is used. For that software even more specific applications are written in the Excel using Visual Basic to generate reports. But, when Access is not installed (and it is often not included in the office components), this report produces a similar error:

Microsoft Forms: Could not load an object because it is not available on this machine
mscal.ocx

We get rid of it error simply. We search another computer with the same version of the office where Access is installed. Then the file mscal.ocx (usually it is in c:\\program files\microsoft office\officeXX, where XX is the office version), copy it from there. Then we register it on the command line:

regsvr32 "c:\\program files\microsoft office\office\XXmscal.ocx"
vb-error

After this, error should disappear …

How quickly make a blog on WordPress?

Only few steps need to install wordpress on clean / new server.

[Step 1] Choose a domain name for your blog.

This step includes think of a name and choose a domain name registrar provider.
Comparing domain registrars, we must remember that cheap does not always mean really cheap. It may be an extension of 2-year is much more expensive. Maybe it is necessary to order additional services such as hosting.

[Step 2] Choose and install a CMS for your blog.

I chose between Drupal and WordPress. Because I already dealt with Drupal 6th and 7th version, I decided to extend the experience and install WordPress. I’m going to start wordpress.org and start discover wordpress. Next, follow the instructions to put the engine on your web server (I prefer Debian GNU / Linux as the platform).

cd /var/www/

(current version at the official wordpress site is always available via the link https://wordpress.org/latest.zip or https://wordpress.org/latest.tar.gz):

wget https://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
mv wordpress mynewblog.com

[Step 3] Now – create MySQL database:

mysql -u root -p
 CREATE DATABASE blogdb;
 GRANT ALL PRIVILEGES ON blogdb.* TO "user"@"localhost" IDENTIFIED BY "pass";
 FLUSH PRIVILEGES;
 EXIT

Do not forget to set up connection for the WordPress, as indicated in its manual (it is clear that the name of the database, database user name and password you need to specify your own).

[Step 4] After that edit Apache config:

nano /etc/apache2/conf.d/mynewblog.conf

Add here:

<VirtualHost *:80>
   ServerName mynewblog.com
   DocumentRoot /var/www/mynewblog.com 
 <Directory "/var/www/mynewblog.com">
   AllowOverride All
   Order deny,allow
   Allow from all
   AddHandler application/x-httpd-php .php .html
 </Directory>
</VirtualHost>

Graciously ask Apache to reread configuration files:

apachectl graceful

[Step 5] What is the result?

Now you may follow url, like http://mynewblog.com and customize the interface of the CMS under your new blog needs.


P.S. For better security of your web server, you can configure Apache to run as a different user:

# install multiuser MPM for Apache
aptitude install apache2-mpm-itk

# change wordpress filse owner
chown -R nobody:nogroup /var/www/mynewblog.pp.ua/

# permit wp-content directory writing privileges to group
chmod -R g+w /var/www/mynewblog.pp.ua/wp-content

Then add in the Apache config file the following lines (and restart it again):

<Directory "/var/www/mynewblog.pp.ua">
  ...
  AssignUserID www-data nogroup
  ...
</Directory>
Pages:1...678910111213