Support Jocks

  • warning: mysql_connect() [function.mysql-connect]: Access denied for user 'db11867'@'64.13.192.44' (using password: YES) in /nfs/c01/h11/mnt/11867/domains/linuxfiesta.com/html/gallery/lib/adodb/drivers/adodb-mysql.inc.php on line 348.
  • warning: mysql_connect() [function.mysql-connect]: Access denied for user 'db11867'@'64.13.192.44' (using password: YES) in /nfs/c01/h11/mnt/11867/domains/linuxfiesta.com/html/gallery/lib/adodb/drivers/adodb-mysql.inc.php on line 348.

Vtiger CRM backtracing code

Kadjo's SoftDev - Tue, 2010-06-29 04:41

To backtrace the particular part in the vtiger script.. add the following code.

$bt = debug_backtrace(); $ut = array(); foreach($bt as $t){ $ut[] = array('file'=>$t['file'],'line'=>$t['line'],'function'=>$t['function']); } var_export($ut);
Categories: Support Jocks

Backup MySQL via Crontab

KnightLust's Diaries - Wed, 2010-05-12 17:00
After spending a half an hour figuring out how to make noupe's No. 2 solution work, I finally got my crontab entry that'll execute on my Ubuntu workstation. It took me a while since I stumbled upon a couple of errors, mostly syntax, and the messages wasn't helpful. But here it is:

00 * * * * /usr/bin/mysqldump -h HOSTNAME -u MYUSERNAME -pMYPASSWORD mydatabase | gzip > /home/dax/Backups/db_`/bin/date +\%Y\%m\%d\%H\%M`.sql.gz

What it  does is execute the mysqldump command every hour, pipe it through gzip, and save the compressed file on my Backups directory as db_201005122300.sql.gz (since it executed on May 12, 2010 at 11:00PM)

Notes:

  • The HOSTNAME, MYUSERNAME, and MYPASSWORD should be filled up by you
  • ! % \ etc. should be escaped as such: \! \% \\
  • /bin/date + is very important, it won't execute if you only place date there
Categories: Support Jocks

Blog Clients on Ubuntu

KnightLust's Diaries - Wed, 2010-05-12 17:00
I'm not much of a blogger, but I blog enough to need a client (or clients) to handle my posts. This list ain't much, nor that comprehensive, but here's five clients I use on my Ubuntu box.

OpenOffice.org with Sun Weblog Extension

This is my favorite, and the one I use often. I always have an OpenOffice.org instance running (either at work or at home) and figured it'll be great if I can post to my blog directly from OO.o. I stumbled upon it last year when I got tired of copy-pasting my articles. This one's great for text-only posting (such as poem/haiku blogs) since I still haven't figured out how to include images even from existing URLs - I'm not even sure this extension even supports it.





Scribefire

This client is also another favorite. In fact, this article was posted from Scribefire. I love the option/feature to upload images directly from my computer, this client will take care of the rest. This one's great if you tend to upload/insert images to your posts.



Drivel

If you prefer a simple, small and fast client, then Drivel's for you. I use it once in a while if I wanted to post something before I lose my train of thoughts.





BloGTK

Although I don't use this client, a few friends swear by it. Configuration's a pain in the ass, and if I can't configure it in 2 mins, then it's not a client for me. I got it working alright, but only on one account.



Flock Browser

This browser is so good that it's literally unproductive. I never got real work done whenever I use it. I tend to check photos, videos, and friends statuses that I never really have time for anything else. The blog client of Flock is great since it integrates nicely into your browser. Image uploads to any one of your image hosting sites, and adding an image is a matter of dragging the thumbnail from the media bar.



Categories: Support Jocks

PHPMyAdmin doesn't load

KnightLust's Diaries - Wed, 2010-05-12 17:00
Apparently, when changing Apache2 user and/or group, PHPMyAdmin would stop working. I believe this is a security feature. As a workaround, I have to issue the following command.

sudo chmod 644 /etc/phpmyadmin/config-db.php

And I have to again, re-issue the same command every single time I upgrade PHPMyAdmin.



Powered by ScribeFire.

Categories: Support Jocks

No Templates Installed on Nautilus

KnightLust's Diaries - Wed, 2010-05-12 17:00
I've been working on tons of PHP, Java, and Python files for quite some time now, and I've recently tried getting the templates feature working on Nautilus. For some reason, the templates directory directs me to my home directory, instead of the usual Templates where I've saved a couple. After googling for answers, I stumbled upon Launchpad Answers which directs me to a forum thread.

Edit ~/.config/user-dirs.dirs and change the template directory from

XDG_TEMPLATES_DIR="$HOME"
to
XDG_TEMPLATES_DIR="$HOME/Templates"



Powered by ScribeFire.

Categories: Support Jocks

SmartBro ZTE MF627 on Ubuntu Jaunty

KnightLust's Diaries - Wed, 2010-05-12 17:00
I recently got a SmartBro ZTE MF627. It's a mobile broadband device that utilizes existing 3G, HSDPA, EDGE and GPRS connection (whichever is available). With this device, I can easily connect anywhere there's a cellular signal. This is a better solution over 3G phones which drains your batteries (3hrs battery life with GPRS/3G turned on in my case).



I'm not on the road that often, but I'll be needing it when I'm either at school (where they require you to surf only using their Windows workstations which are full of malwares and keyloggers) or at work and away from my workstation (they've been scrimping on wifi, dedicated ethernet connection only to company workstation, and blocked internet connection via MAC filtering).

The device retails for PhP1,995 (but I got mine way cheaper than their SRP) and usage costs only PhP10 per 30 minutes. It's the cheapest mobile broadband service we have in the Philippines. Granted they still charge you PhP10 even if you've consumed 5mins, but it's still PhP10. I should also note that it's a prepaid service and you can reload from any reloading centers literally scattered all over our country.



Setup would require more work on your Jaunty installation though since it's not yet natively supported - but hopefully will be on Karmic Koala.

Adding the Repository
Go to Liam Green-Hughes' PPA and his PPA to your /etc/apt/sources.list. There's a detailed instructions on how to it on here.

Install the packages
After updating, you'll need to install 2 packages from the repository.

sudo aptitude install zte-mf627-switch usb-modeswitch

Plug your ZTE MF627


Check to see if it's mounted





The Wizard would launch and prompt you to set it up






After that, it should connect your laptop or netbook and you're all set.

Note: This device has a micro-SD port, so you'll have an expandable thumb drive as well as a mobile broadband connection. It's internal disk space though contains Windows executable file. It installs ok on Wine but doesn't work at all with your device.



Note: Mine didn't connect as expected. According to the website, I'll have to first register it on a Windows platform before it works (granted it's addressed to Mac users, it's the same thing for us free OS users).




Update 29 June 2009: It works ok now on Smart Bro now. But we need to configure a few things.

APN: SMARTBRO



Authentication Method: PAP (just PAP)




And also, plugging it in or rebooting doesn't work in my case. Oh it'll connect just fine - but it'll disconnect the moment it authenticates to the server.




My workaround is to completely shut down my netbook. Turn it back on with the wifi turned off from the hardware, and it'll connect just fine.

I took a screenshot after 20mins it's connected.



Categories: Support Jocks

MSI Wind Wireless Networking with RTL8187SE

KnightLust's Diaries - Wed, 2010-05-12 17:00
I've been asked tons of times on how to get RTL8187SE working on Ubuntu Jaunty, as posted on http://ubuntuforums.org/showthread.php?p=6794539, we only need to run 2 commands;

sudo aptitude install rtl8187se-source
sudo m-a auto-install rtl8187se


After reboot, your wireless would be up and running. I've also speculated before that we would need to re-issue the 2nd command every after kernel upgrade. This is untrue since I've been through dozens of upgrades and I didn't find any need to re-issue the said command.

Happy surfing!
Categories: Support Jocks

DBDesigner4 and MySQL5 on Ubuntu

KnightLust's Diaries - Wed, 2010-05-12 17:00
This is a remake of my other article, but this focuses on efficiency rather than hand-holding. I've tested it on both Ubuntu (and also Xubuntu) Hardy Heron and Intrepid Ibex. I'm a little tired of waiting for MySQL Workbench, so I decided to give DBDesigner another shot.

What we'll use
I'll be using the RPM package since it'll make DBDesigner4 available to all users

What to Install
Install alien via aptitude (or apt-get, whichever you prefer)
sudo aptitude install alien

What to Download
DBDesigner4-0.5.4-0.i586.rpm
http://fabforce.net/downloadfile.php?iddownloadfile=9

kylixlibs3-borqt-3.0-2.tar.gz
http://prdownloads.sourceforge.net/kylixlibs/kylixlibs3-borqt-3.0-2.tar.gz?download

dbxmda.tar.gz
http://crlab.com/dbx/download.html

MySQL-shared-compat-4.1.9-0.i386.rpm
ftp://ftp.wesmo.com/pub/contributed/RPMS/MySQL-shared-compat-4.1.9-0.i386.rpm

How to Install
For convenience sake, save or move the four files to a temporary directory (e.g. ~/temp) then issue to following commands:

For DBDesigner4
  • sudo alien -i DBDesigner4-0.5.4-0.i586.rpm
For kylixlibs3-borqt-3.0-2.tar.gz
  • tar xzvf kylixlibs3-borqt-3.0-2.tar.gz
  • sudo cp kylixlibs3-borqt/libborqt-6.9.0-qt2.3.so /usr/lib/libborqt-6.9-qt2.3.so

For dbxmda.tar.gz
  • tar zxvf dbxmda.tar.gz
  • sudo cp DbxMda/libsqlmda.so.4.20 /usr/lib

For MySQL-shared-compat-4.1.9-0.i386.rpm
  • sudo alien -i MySQL-shared-compat-4.1.9-0.i386.rpm
*Note: no need to run sudo ldconfig after copying the libs since the last command will run it anyway.

What we Installed
DBDesigner4-0.5.4-0.i586.rpm: the DBDesigner4 application

kylixlibs3-borqt-3.0-2.tar.gz: the libborqt object file, this will prevent "libborqt-6.9-qt2.3.so: cannot open shared object file: No such file or directory" errors



dbxmda.tar.gz: the libsqlmy object file, this will prevent "Unable to Load libsqlmy.so" errors



MySQL-shared-compat-4.1.9-0.i386.rpm: some may encounter the "unable to load libmysqlclient.so" error. There's an incompatibility issue with libmysqlclient.so.15, so you'll need to download and install libmysqlclient.so.10.

What we need to Configure
Fonts
Access the fonts settings from Options > DBDesigner Options > Visual Options and set it to Helvetica sized 10

Menu
Here's the menu settings
Name: DBDesigner4
Icon: /opt/DBDesigner4/Gfx/Icon48.xpm
Command: /opt/DBDesigner4/DBDesigner4

Configuration File
Open ~/.DBDesigner4/DBConn_DefaultSettings.ini in a text editor and change the folowing:

GetDriverFunc=getSQLDriverMYSQL
LibraryNameLinux=libsqlmy.so
VendorLibLinux=libmysqlclient.so

to

GetDriverFunc=getSQLDriverMySQL
LibraryNameLinux=libsqlmda.so.4.20
VendorLibLinux=libmysqlclient.so.10

MySQL5 Settings
In order for DBDesigner4 to access your MySQL5 tables, you need to create another user and set its password to an old format DBDesigner4 understands. Login as root (or as a user that can grant privileges) then execute the commands listed below. Change the username, password, and dbname where appropriate:
  • GRANT ALL PRIVILEGES ON dbname.* TO username@'%'
  • SET PASSWORD FOR username@'%' = OLD_PASSWORD('password')
  • FLUSH PRIVILEGES
How to Reverse Engineer your Database
I believe this article is best suited for this section since it includes screenshots as well as walkthroughs.

Sources:
http://ubuntuforums.org/showthread.php?t=125911
http://www.visualcplusdotnet.com/dbdesignerdatabasetool.html

Categories: Support Jocks

Outdated mscomm32.ocx Error on Wine

KnightLust's Diaries - Wed, 2010-05-12 17:00
I've been using MyPhoneExplorer to manage SMS, Contacts, and Calendar on my phone. Recently, I did a fresh install of Xubuntu Intrepid and discovered that MPE doesn't work. It gave me an error:

Run-time error '372':
Failed to load control 'MSComm' from MSCOMM32.OCX. Your version of MSCOMM32.OCX may be outdated. Make sure you are using the version of the control that was provided with your application.




This problem will occur only in Windows 95, 98, NT and 2000. You won't see it in Windows 98SE (Second Edition), Me, XP or Vista. The problem occurs because of a poor design decision that Microsoft made several years ago when they changed from the 16-bit to then-new 32-bit operating system. They've corrected the problem in the newest versions of Windows, but if you are running one of these older operating systems, you may possibly see the error. - AICS Research, Inc.

To fix this, you have to download a newer version of MSComm32.ocx and replace the one that you have installed on ~/.wine/drive_c/windows/system32

Rename the old MSCOMM32.OCX to MSCOMM32.OCX.bak just in case you need it in the future.

Download the files at:
http://www.dataq.com/support/downloads/mscomm32dotocx.zip

or at:
http://www.orbitfiles.com/download/id3289503534.html

Make sure the filename's all Uppercase (MSCOMM32.OCX) - you are, afterall, using Wine on Linux.

So there it is, I got my MPE and I hope you get to run your apps as well.
Categories: Support Jocks

flv to 3gp

KnightLust's Diaries - Wed, 2010-05-12 17:00
Here's how to convert your flv files to 3gp so you can play them on your symbian phones.

ffmpeg -i file.flv -s 176x144 -vcodec h263 -r 28 -b 96k -ab 64 -acodec aac -ac 1 -ar 44100 file.3gp

And here's a batch converter bash script based on mypapit's FLV to 3gp batch converter script, I only changed the ffmpeg part since the output on the script's a wee bit choppy on video and very much crappy on audio playback.

#!/bin/bash
echo "fakap mp3-to-flv converter http://blog.fakap.net/mp3toflv/"
echo "Copyright (c) mypapit 2007"
echo ""
if (($# ==0))
then
    echo "Usage: flvto3gp [flv files] ..."
    exit
fi

while (($# !=0 ))
do
        ffmpeg -i $1 -s 176x144 -vcodec h263 -r 28 -b 96k -ab 64 -acodec aac -ac 1 -ar 44100 $1.3gp
    shift
done
echo "Finished fakaping with flv-to-3gp converter"
echo "\"fakap all those nonsense!\""
echo ""

Make sure that you have ffmpeg and restricted codecs installed.
Blogged with the Flock Browser
Categories: Support Jocks

Installing DBDesigner4 on Kubuntu Gutsy

KnightLust's Diaries - Wed, 2010-05-12 17:00
DBDesigner4 is a visual database design system that integrates database design, modeling, creating, and maintenance into a single seamless environment.

DBDesigner4 is, in fact, comparable to products such as Oracle's Designer, IBM's Rational Rose, Computer Associate's ERwin, and theKompany's DataArchitect.
- http://www.fabforce.net/dbdesigner4/

DBDesigner4 an Open Source Software optimized for MySQL databases and is the next best thing to MySQL Workbench - which is based on DBDesigner4. Until MySQL release a Workbench for Linux, I guess we all have to settle for DBDesigner.

What to Download
The first thing you should decide on is what installer to download from http://fabforce.net/downloads.php. There's a Tarball, an RPM, and an EXE file for Windows.

The EXE installs and works great on WINE (if you have it installed). I haven't encountered any problem with this install - yet, not even performance issues. You should use this if you don't want to go through the hassle of troubleshooting DBDesigner. Just click on the installer to launch it on WINE. No need to launch it from the command-line.

But being a Linux aficionado, I preferred a tarball or rpm install though. The tarball's fine, just issue tar zxvf DBDesigner4.0.5.4.tar.gz to extract the files.

The RPM install is preferred if you want DBDesigner4 available to all users on your system. However, you'll need alien on Gutsy. This tutorial would go through installing DBDesigner4-0.5.4-0.i586.rpm.

Installing Alien
Issue the command: sudo aptitude install alien



Download DBDesigner4-0.5.4-0.i586.rpm
Download the RPM file here: http://fabforce.net/downloadfile.php?iddownloadfile=9

Install DBDesigner4-0.5.4-0.i586.rpm
Issue the command: sudo alien -i DBDesigner4-0.5.4-0.i586.rpm



libborqt-6.9-qt2.3.so: cannot open shared object file: No such file or directory
DBDesigner4 is installed on /opt/DBDesigner4, however, we wouldn't be able to launch it since it'll give you the libborqt error.



To fix this error, we need to download and copy libborqt-6.9-qt2.3.so to /usr/lib. Download the file at http://prdownloads.sourceforge.net/kylixlibs/kylixlibs3-borqt-3.0-2.tar.gz?download

Extract it by issuing this command: tar xzvf kylixlibs3-borqt-3.0-2.tar.gz



Then copy the dependency to /usr/lib: sudo cp kylixlibs3-borqt/libborqt-6.9.0-qt2.3.so /usr/lib/libborqt-6.9-qt2.3.so



Now launch DBDesigner:



Fonts
The font is sucky, so you may need to change it to Helvetica-10 to make DBDesigner4 look more appealing.
Options > DBDesigner Options > Visual Options



Menu Entry
Create a Menu Entry using this values:
Name: DBDesigner4
Icon: /opt/DBDesigner4/Gfx/Icon48.xpm
Command: /opt/DBDesigner4/DBDesigner4



Unable to Load libsqlmy.so
When connecting to the database, you'll get this error:



To fix this, you need to go to http://crlab.com/dbx/download.html and download dbExpress driver for MySQL, Linux version 4.20

Then to extract the file, type: tar zxvf dbxmda.tar.gz



Then copy libsqlmda.so.4.20 to /usr/lib: sudo cp DbxMda/libsqlmda.so.4.20 /usr/lib
and run: sudo ldconfig



Then relaunch DBDesigner4.

Libmysqlclient.so Error
Some may encounter the unable to load libmysqlclient.so error. There's an incompatibility issue with libmysqlclient.so.15, so you'll need to download and install libmysqlclient.so.10.

Download the file at ftp://ftp.wesmo.com/pub/contributed/RPMS/MySQL-shared-compat-4.1.9-0.i386.rpm

Then install it: sudo alien -i MySQL-shared-compat-4.1.9-0.i386.rpm



Making changes globally
Open ~/.DBDesigner4/DBConn_DefaultSettings.ini in Kate and change the folowing:

GetDriverFunc=getSQLDriverMYSQL
LibraryNameLinux=libsqlmy.so
VendorLibLinux=libmysqlclient.so

to

GetDriverFunc=getSQLDriverMySQL
LibraryNameLinux=libsqlmda.so.4.20
VendorLibLinux=libmysqlclient.so.10



And there you go. Hope everything works for you. I know this is temporary, since we're only waiting for MySQL Workbench for Linux... right?

Blogged with Flock

Categories: Support Jocks

Bluetooth Blues in Kubuntu Gutsy

KnightLust's Diaries - Wed, 2010-05-12 17:00
Got a replacement Bluetooth dongle from MSI only to find out that I can't send files from my Nokia phone to my Kubuntu Gutsy. Turns out that this bug has already been reported at https://bugs.edge.launchpad.net/ubuntu/+source/kdebluetooth/+bug/146145. So for those looking for a quick bluetooth fix, here's a little howto:

1) download kdebluetooth_1.0-beta8-0quickpackage_i386.deb from http://peppesbodega.nu/files/Packages

wget http://peppesbodega.nu/files/Packages/kdebluetooth_1.0-beta8-0quickpackage_i386.deb

2) cd to your download directory

3) Install it

dpkg -i kdebluetooth_1.0-beta8-0quickpackage_i386

Notes:
You have to uninstall kbluetooth and libkbluetooth prior to installing this package. Don't worry, this deb would installed it' patched packages.
If your system also uninstalls bluetooth, just reinstall it.

Blogged with Flock

Categories: Support Jocks

Connecting to a MySQL Server remotely

KnightLust's Diaries - Wed, 2010-05-12 17:00
I've been working on a PHP code that uses MySQL DBs, and I've been doing it manually from Quanta and PHPMyAdmin. And everyone knows that coding in a browser is a very bad habit. I sure wish I have an IDE with MySQL Admin integrated in it. But before I go searching for that particular IDE, I wanted to make sure that I can access it from both my desktop and my laptop.

I'll be using MySQL Administrator for this tutorial and my MySQL server is hosted on Ubuntu Server Gutsy, subtle differences are expected (if any).

First, the error that'll show up would be this:



To determine if there's a firewall preventing access, try to ping it:



If you can't ping it, open port 3306

sudo iptables -A INPUT -i eth0 -p tcp -m tcp --dport 3306 -j ACCEPT

As I've said earlier, I have PHPMyAdmin installed, I used it to create 4 users for my laptop and my desktop. I made sure I have both the IP Address and Hostname in it. And since I wanted this to be an admin account, I granted it all privileges. Consult the help docs if you don't have PHPMyAdmin installed or if you want to do this manually.



Next up would be to edit /etc/mysql/my.cnf
Comment out bind = 127.0.0.1



Restart MySQL



And lastly, test it out:



I can now create, edit, and drop DBs/Tables from MySQL Administrator. I don't have any need for PHPMyAdmin now that I can access MySQL remotely so I removed it. I'll be searching for a PHP/MySQL IDE next.

Blogged with Flock

Categories: Support Jocks

P3 733MHz Server and SSH

KnightLust's Diaries - Wed, 2010-05-12 17:00
I badly need a multi-purpose server to hone my skills and host my site and my files. So I converted my old P3 733MHz into a server. Good thing it only consumes 19.1 Watts, that'll help a lot with my Power bill. After I installed Ubuntu Gutsy RC1, I disabled everything else... CD-ROM Drive, USB, etc. etc. etc. The only thing running right now is the CPU, PSU, and my trusty old 20GB Hard Disk Drive.

After two days of configuring it, I finally got my server running. Had to wait for my DNS entry to propagate though, but it worked well once I got it up and running. So far, it's been running for 3 days straight, and it's as fast and cool as ever. I might need to take it offline next year though to clean the dust.

And lastly, I need to have it running headless. So I installed OpenSSH-server, imported my key to the authorized_keys file and configured it to only accept logins from me. However, before getting it to work flawlessly, I encountered one problem... it won't allow me to login. I keep on getting Permission denied error.

How did I know I have a permission problem? I checked /var/log/auth.log and saw this line:

Oct 16 16:38:25 t2798 sshd[29599]: Authentication refused: bad ownership or modes for directory /home/dax/.ssh

Since I imported my /home from an old HDD, I forgot to check it's permission. SSH is very particular about permissions. I fixed it by issuing this command:

server$ chmod go-w ~/
server$ chmod 700 ~/.ssh
server$ chmod 600 ~/.ssh/authorized_keys





Blogged with Flock

Categories: Support Jocks

Helping with Bugs

KnightLust's Diaries - Wed, 2010-05-12 17:00
It is common knowledge that Ubuntu gets hundreds of Bug Reports daily. And currently, we have around 32K Open Bugs.


http://people.ubuntu.com/~brian/graphs/
http://people.ubuntu.com/~brian/testing_graphs/

This is an invite to everyone fond of Ubuntu. Bug Reporting's one thing, but Triaging's another. Once a bug gets reported, it stays there. The Dev/Maintainer would be informed that he has an Open bug, and he may or may not choose to work on it. Sometimes, due to stress and workload, they don't even have the luxury of time to look at your report.

This is where Bug Triaging comes in. We mark duplicate bugs, ask for confirmation from users, and squeeze as much information from both users and reporters. Once we have everything we need, we mark it as Triaged and set the appropriate Priority. The dev/maintainer, no matter how busy he is, is now obligated to look into it. Fix it or replace the affected package with an updated one.

Of course, there will always be old bugs. Sometimes, we have Open Bugs as far back as 2005, and there's nothing we can do but close it and advise users to upgrade to the latest stable version.

This is how we control bugs. Join us, I know you'll have fun doing this.

Additional Resources:
Contribute to Ubuntu
BugSquad
Bug Responses
Bug Importance
How to Report Bugs
Effective Bug Reporting
Finding the Right Package
Getting Backtrace
Debugging Procedures

Blogged with Flock

Categories: Support Jocks

Konversation: Error 65 and 3

KnightLust's Diaries - Wed, 2010-05-12 17:00
I haven't used Konversation for a few weeks, and when I did.. Konversation returned this error:
Server sent error 65: Access to restricted port in POST denied.
and
Server sent error 3: Could not start process Unable to create io-slave: klauncher said: Unknown protocol ". .



It's been like this for three weeks and I was forced to rely on IRSSI and IceApe's Chatzilla. My cravings for Konversation grew stronger that I finally ranted about this at #ubuntu-ph. I gave Jucato and Ahmuck this error:

0xffffe410 in ?? ()
#0  0xffffe410 in ?? ()
#1  0xbf909888 in ?? ()
#2  0xb79f1ff4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#3  0xbf909874 in ?? ()
#4  0xb793ee96 in nanosleep () from /lib/tls/i686/cmov/libc.so.6
#5  0xb793eca7 in sleep () from /lib/tls/i686/cmov/libc.so.6
#6  0xb744cad9 in KCrash::startDrKonqi () from /usr/lib/libkdecore.so.4
#7  0xb74634de in KCrash::defaultCrashHandler () from /usr/lib/libkdecore.so.4

and this

Failed to open device
konversation: WARNING: Cannot execute call to system.login: empty server URL
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
konversation: ERROR: : couldn't create slave : Unable to create io-slave:
klauncher said: Unknown protocol ''.
konversation:
konversation: ERROR: <qt>Server sent error 3: <b>Could not start process Unable to create io-slave:
klauncher said: Unknown protocol ''.
.</b></qt>
konversation: ERROR: <qt>Server sent error 3: <b>Could not start process Unable to create io-slave:
klauncher said: Unknown protocol ''.
.</b></qt>
konversation: WARNING: Cannot execute call to addressbook.boaddressbook.search: empty server URL
konversation: WARNING: Cannot execute call to addressbook.boaddressbook.categories: empty server URL
konversation: WARNING: Cannot execute call to addressbook.boaddressbook.customfields: empty server URL
dax@knightlust:~$ QGDict::hashKeyString: Invalid null key
konversation: ERROR: : couldn't create slave : Unable to create io-slave:
klauncher said: Unknown protocol ''.
konversation:
QGDict::hashKeyString: Invalid null key
konversation: ERROR: : couldn't create slave : Unable to create io-slave:
klauncher said: Unknown protocol ''.
konversation:
KCrash: Application 'konversation' crashing...

It was Jucato who asked the maintainer of Konversation (Sho) what's happening.

Jucato: That has something to do with the KAddressBook integration, from the looks of it
Jucato: My guess is that he's using eGroupWare or IMAP to store his address book on a server, and something goes wrong in KIMProxy
Jucato: If it's a dialog box, you can be fairly sure it's not Konversation, we don't use them
Jucato: "kresources/egroupware/kabc_resourcexmlrpc.cpp: QString msg = i18n( "Server sent error %1: %2" ).arg( error ).arg( errorMsg );" btw
from kdepim
Jucato: Perhaps he set up eGroupware, but removed eGroupWare again but forgot to remove the resources in Kontact/KAddressBook

So there it is.... the solution to my problem. Sho was right.. I used (past tense) eGroupware and forgot to delete any reference to it from KAddressbook.

I deleted it.. and it worked. Ha! I said my goodbye to Chatzilla (no.. I'm still fond of IRSSI) and went to bed. This all happened last night.

For those curious how to remove the XML-RPC entry in KAddressbook, just go to Settings > Show Extension > Address Books. That's where you delete it.

Blogged with Flock

Categories: Support Jocks

Gutsy - Firefox is disappointing

KnightLust's Diaries - Wed, 2010-05-12 17:00
Since Gutsy Tribe 3, Firefox never really worked. Oh sure, the Addons installs and allows me to surf, but that's it. Everytime I open the Preference window, Bookmark a site, or even download a file... it just crashes. As long as I open a window in Firefox (except Organize Bookmarks and Download windows), I really can't stop Firefox from crashing.

It's been over two months now, and frankly, I'm disappointed. I have Flock installed, but I'm still craving for the red fox! Today, after working on a few (around 15) tabs, it crashed again... and lost 2 hours of work. I keep on forgetting that working in a browser is a bad idea. I'm fed up! I just uninstalled it and will probably wait for the Beta release before I try it out again. I'm now working with IceApe as my primary browser and glad that it's stable enough for me to do my thing.

Come to think of it, it's been a while (like more than a month) since I last saw any updates on Firefox.... I don't know what the hell the Mozilla Team's doing, but I just signed up on their list and will help on my free time. Need my addiction satisfied.

Blogged with Flock

Categories: Support Jocks

Confused and Irritated

KnightLust's Diaries - Wed, 2010-05-12 17:00
Recent life-changing events forced me to contemplate on my life and my priorities. After being a bum for a few months - with funds fast depleting - I decided it's now time to get myself a day job. I'm well rested and very much eager to interact with the corporate world again. Let's get it on!

The confused and irritated part was caused by a surprise. This shit happens, and I'm just a victim of synchronicity. But I'll also face it head on!

When I need think, I usually get a piece of paper and a pencil and write down what I can and cannot do. And since I'm stuck in front of my laptop, I'll be doing that right here, right now. I've been using the SWOT method for a long time now, but this time I'll just focus on strengths and weaknesses and my computing and management skills.

Strengths:
System Administration
  • LAMP
  • eGroupware and PHPGroupware
  • Dovecot
  • Postfix
  • Sendmail
  • Dancer IRCD
  • Subversion
  • Installation and Configuration of Debian, Ubuntu, and Fedora
  • IRC Bots (Eggdrop and Supybot)
  • DNS Administration via EditDNS and DynDNS
  • SSH and FTP Configuration
  • Samba
  • Drupal, Joomla, Mambo, e107, PHP-Fusion
  • Wordpress
  • Moodle
  • Search Engine Optimization
  • Software Testing and Quality Improvement
  • Exposure to Open Source Processes
  • LAN Networking
  • Software/Computer Forensics
  • PGP and SSH
Programming
  • C++
  • PHP & HTML
  • KDevelop
  • NetBeans
  • Anjuta
  • Geany
  • MS Visual C++ 6
Management
  • Managing Accelerated Performance (MAP)
  • Knowledge Management
  • Project Management
  • Performance Management
  • Six Sigma Training
  • Risk Management

Weakness:
System Administration
  • Cyrus and Courier Email Servers
  • Kolab, Scalix, and Zimbra
  • Jabber
  • Asterisk
  • BIND
  • JBoss
  • Novell/SUSE and Red Hat
  • LDAP
  • Kerberos
  • SpamAssasin
  • ClamAV
  • Squid
  • IPTables
  • Sugar CRM (or any CRM Applications)
  • Tiny ERP (or any ERP Applications)
  • Chrooted/Jailed Accounts
  • Virtual Email Accounts using MySQL
  • Clustering
  • Solaris
  • WebSphere and Domino
  • MSSQL
  • LTSP
  • WAN Installation and Management
Programming
  • MS Visual C++ 6, I've relied heavily on this.
  • C++ skill not enough, at least for Linux.
  • PHP skill not enough
  • Java
  • Any Scripting Language
Management
  • Not enough experience
So there it is.... based on the list above, I guess I'll have more chances of getting a Sys Admin job. But also based on the list above, there's a lot more stuff I need to learn before I consider myself qualified to be a Sys Admin.

Now the hard part, it's Baguio. There's very, very few companies who use Unix/Linux for their servers, much less for their workstations. I'll see what I can do. But for now, and the next couple of days, I'll be very busy studying and working on my skills.

Blogged with Flock

Categories: Support Jocks

Limits.conf

KnightLust's Diaries - Wed, 2010-05-12 17:00
Setting limits on what processes can be very helpful for those testing out various distributions - Gutsy in my case. There will always be rogue applications spawning tens, sometimes hundreds, of same processes due to bugs. And this almost always happens on Alpha versions. So beware. If you're not up to it, DO NOT INSTALL AN ALPHA VERSION!

Here's one of the tips I learned. You see, a bug in KMail caused it to create multiple KMail processes. If you don't set a limit, it'll slow down your system. Worse, your system would freeze rendering it unusable. Here's how you set limits on running processes.

Edit /etc/security/limits.conf as root and append the following lines.

* soft nproc 200
* hard nproc 300

When you hit the 200th process, it'll warn you.
And your system won't allow you to go beyond 300 processes.

This is very, very useful for shell providers. You can even limit a user to 5 or even 2 processes. But for a tester like me, 300 processes is enough. It'll make sure I can run all the programs I need without worrying about rogue apps going nuts all over my system.

Blogged with Flock

Categories: Support Jocks

Setting up Subdomain in Apache2 and EditDNS

KnightLust's Diaries - Wed, 2010-05-12 17:00
So, you want to setup a sub-domain? There's 2 things you need to do.
  • Configure Apache2
  • Add a Sub-domain to your EditDNS account (or your domain providers' control panel)
Configuring EditDNS
You should setup a subdomain on EditDNS first. Why, because it'll take time to propogate. That'll give you enough time to edit Apache's configuration files.

Before doing anything, make sure you can access your domain. If you can, then let's go ahead and create a sub-domain.

In the Record Name, type in subdomain.yourdomain.com
In the Type, select CNAME
Leave AUX and TTL alone
In the IP/Host, type in yourdomain.com
Click Add
Repeat as needed

Here's my EditDNS Entry. I added blog, bugs, forum, learn, and wiki to my account.



Apache2 Configuration
Launch your favorite text editor and edit the default file as root. The file is in the /etc/apache2/sites-available.

sudo nano /etc/apache2/sites-available/default
kdesu kate /etc/apache2/sites-available/default

And append this to the file:
<VirtualHost *>
        DocumentRoot "/var/www/subdomain/kb/"
        ServerName kb.knightlust.com
        ServerAdmin dax@knightlust.com
        ErrorLog /var/log/apache2/kb.log

        <Directory /var/www/subdomain/kb/>
                Options Indexes FollowSymLinks MultiViews +Includes
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

Explanation:
  • The DocumentRoot should be pointed to the directory where you installed your site or script. And it should be enclosed in quotation marks. Don't forget that.
  • ServerName should have your subdomain
  • ServerAdmin and ErrorLog is optional.
  • The <Directory> should also be pointed to where you installed your site or script.
Here's mine:



And here's for my other subdomains. So you see, just edit the entry above to fit your configuration.



Now before you reload Apache2, you need to make sure that the default file is linked in /etc/apache2/sites-enabled. Otherwise, it just won't work.

If there's no linked file there, issue this command:
sudo a2ensite default



Once everything's done, go ahead and reload Apache:
sudo /etc/init.d/apache2 reload

Blogged with Flock

Categories: Support Jocks
Syndicate content