Skip to main content

Posts

Showing posts from 2012

MySQL automatic startup script in Ubuntu

Check for mysql installed scripts: sudo ls -l /etc/rc?.d/*mysql Remove if any: sudo update-rc.d -f mysql remove Copy template script to init.d directory: sudo cp /support-files/mysql.server /etc/init.d/mysql (under mysql script, change basedir if different from /usr/local as stated in the script comments) Make it executable: sudo chmod +x /etc/init.d/mysql Create run level scripts automatically: sudo update-rc.d mysql defaults Try restarting your server, it should start / stop mysql automatically now. If you want to start/stop mysql manually: sudo /etc/init.d/mysql start

alien Linux Program

Sometimes we found that linux application that we need, in a different format, other than .deb. Fortunately there is a small program called alien  that transforms .rpm packages into .deb ones. Under Ubuntu type: sudo apt-get install alien dpkg-dev debhelper build-essential Then, convert .rpm package into .deb: sudo alien mypackage.rpm To install the newly created .deb package use: sudo dpkg -i  mypackage .deb

Eclipse BIRT report error

Recently I was trying to run a report in Eclipse BIRT but I was getting this error and Eclipse was closing unexpectedly. I was able to fix it after digging a little bit on what djView is. Looks like it is a report file type; I'm not pretty sure about that. ** (Eclipse:20112): DEBUG: NP_Initialize ** (Eclipse:20112): DEBUG: NP_Initialize succeeded djview: QDjViewPlugin::exec() begin No bp log location saved, using default. [000:002] Browser XEmbed support present: 1 [000:002] Browser toolkit is Gtk2. [000:002] Using Gtk2 toolkit [000:003] Warning(optionsfile.cc:47): Load: Could not open file, err=2 [000:003] No bp log location saved, using default. [000:003] Browser XEmbed support present: 1 [000:003] Browser toolkit is Gtk2. [000:004] Using Gtk2 toolkit djview: QDjViewPlugin::exec() begin ** (Eclipse:20112): DEBUG: NP_Initialize ** (Eclipse:20112): DEBUG: NP_Initialize succeeded ** (Eclipse:20112): DEBUG: NP_Initialize ** (Eclipse:20112): DEBUG: NP_Initialize suc...