Sunday, 26 December 2010

VBRUN300.DLL problem with Wine application under Linux

(Kubuntu 10.10 with Wine 1.3.10)

I have installed a Windows program under Wine, but it wasn't working. When I run the EXE from console, I got a message that VBRUN300.DLL is missing.

First thing to do here is to download winetricks. The complete guide is available on http://wiki.winehq.org/winetricks. The complete list of available Windows libraries is shown under Options. It includes  vb3run - I have tried with lots of libraries, but I think that only this one is necessary to get VBRUN300.DLL. So:

  • download winetricks to your home folder with wget http://www.kegel.com/wine/winetricks,
  • then, download the library with sh winetricks vb3run.
After this, I still couldn't start my program. I did have the dll file (named Vbrun300.dll), so I made link to it in folder where is the EXE file of mine program (the link is named with all capital leters). After starting the program again, in console I got an error that some other files are missing (THREED.VBX and MCI.VBX). After making similar links to these files, the program worked.

Wednesday, 15 December 2010

Kristijan Mitrovic - Search Engine Optimization

(SEO)

The problem I have is that my blog is near the top for the search on some keywords related to the posts, but when I look for my name (as most people do, also some HR staff) I do not see my blog well positioned.

This post would be the solution I hope. This is the reason why I do have my full name in the title.

Friday, 26 November 2010

Apache Archiva admin account locked

(Archiva 1.1.3 with default Derby database)

Many times I have had this problem. It's time to note the solution here, so I would not waste any time in the future. I just forgot the admin password or locked it some way.
Here is a step by step solution:


  • Download and install some database client for Derby (I have SQuirreL SQL Client 3.2.0).
  • Create new account on Archiva's Web interface, and remember the password.
  • Stop Archiva on server.
  • Locate users database folder on the server (I have it in /usr/share/apache-archiva/data/databases/users/), make a backup and download it to your local machine, and then remove the content of this folder on server.
  • Connect to the database with your client (in SQuirreL, I'm using Apache Derby Embedded driver and jdbc:derby:C:/derby_home/databases/users/ as URL with user name sa).
    If you get an error Error occured in IPlugin.sessionStarted() for Hibernate Plugin within SQuirreL, just ignore (close) it.
  • Find table JDOUSER within SA schema and open its content for editing (in SQuirreL: right click on content and then click Make Editable).
  • Set values for all or just for admin account:
    • COUNT_FAILED_LOGIN_ATTEMPTS = 0
    • ENCODED_PASSWORD - copy the encoded password value from the account created in the second step
    • LOCKED = N
    • PASSWORD_CHANGE_REQUIRED = N
    • PERMANENT = Y
    • VALIDATED = Y
  • Close the database session.
  • Copy all files from local database folder to server's database folder.
  • Run the Apache Archiva and log in as admin with password that you set for the new account in the step 2 of this guide.

Popular Posts