<![CDATA[V-Consulting, Inc - Blog]]>Wed, 10 Feb 2016 09:25:55 -0800Weebly<![CDATA[Linux RAID failed replace drive]]>Sun, 13 Sep 2015 16:22:07 GMThttp://www.v-consulting.com/blog/linux-raid-failed-replace-driveWell, I just had this happen and a great tutorial on dealing with a Linux Software RAID drive failure is here:

https://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array
]]>
<![CDATA[FreePBX fail2ban startup issue]]>Mon, 20 Oct 2014 14:14:39 GMThttp://www.v-consulting.com/blog/freepbx-fail2ban-startup-issueI was having an issue with the latest sysadmin intrusion detection module in FreePBX.  Fail2Ban was having problems starting as follows:

fail2ban-client start
ERROR  /etc/fail2ban/filter.d/freepbx.conf and /etc/fail2ban/filter.d/freepbx.local do not exist
ERROR  Unable to read the filter
ERROR  Errors in jail 'pbx-gui'. Skipping...



An upgrade turns out to fix the issue.  Run yum update fail2ban, restart it, and you should be good.

Email me if you have any issues.]]>
<![CDATA[Quickbook 2013 on Ubuntu Linux 12.04 - SQLAnywhere cannot start.  "Not enough memory" error.]]>Mon, 28 Oct 2013 16:21:12 GMThttp://www.v-consulting.com/blog/quickbook-2013-on-ubuntu-linux-1204-sqlanywhere-cannot-start-not-enough-memory-errorHello again everybody,

In case you run into an issue with Ubuntu 12.04 LTS running the Quickbooks SQLAnywhere Database starting here's what I did to get around it.  There a memory error in SQLAnywhere which is fixed in a recent release of the SyBase Database, however you can't really upgrade the database alone if you install the Quickbooks Database.  Basically you trick the database to think that it is running on a kernel prior to 3.2.0 which is the default on Ubuntu 12.04LTS.   I did not have this issue on 10.04LTS.  

If you run the following command, then start the Quickbooks database it will run:

setarch $(arch) --uname-2.6  

I placed the following at the start stanza in /etc/init.d/qbdbmgr_23

setarch $(arch) --uname-2.6&

You'll need to background that when starting.  

Here's the full stanza in /etc/init.d/qbdbmgr_23

  start)
        setarch $(arch) --uname-2.6&
        echo -n $"Starting ${prog} : "
        if [ -f ${qbdbportallocator} -a -f ${conf_file} ] ; then
           QBDB_PORT=`${qbdbportallocator} ${conf_file} ${DBMAJOR_VERSION}`
           PORT_RET_STATUS=$?
           if [ ${PORT_RET_STATUS} -eq 1 ] ; then
                echo "Quickbooks DB major version is wrong"
                echo "exiting ${prog}"
                RETVAL=1
           elif [ ${PORT_RET_STATUS} -eq 2 ] ; then
                echo "${conf_file} reload error"
                echo "exiting ${prog}"
                RETVAL=1
           elif [ ${PORT_RET_STATUS} -eq 3 ] ; then
                echo "Could not initialize sockets"
                echo "exiting ${prog}"
                RETVAL=1
           elif [ ${PORT_RET_STATUS} -eq 4 ] ; then
                echo "No free port available"
                echo "exiting ${prog}"
                RETVAL=1
           else
                #We have a port number to run the DB Manager
                umask 111
                cd ${QBDBMGR_DIR}
                ${qbdbm} -n ${QB_HOST} -qs -gd all -gk all -gp 4096 \
                -gu all -ch 512M -c 256M -x "tcpip(BroadcastListener=No;port=${QBDB_PORT})" -ti 0 \
                -ec simple -qi -qw -tl 0 -oe ${LOG} >/dev/null 2>&1 &
                RETVAL=$?
                echo
                [ $RETVAL -eq 0 ] && touch ${lockfile}
           fi
        else
           echo "Could not find ${qbdbportallocator} or ${conf_file}"
           echo "exiting ${prog}"
           RETVAL=1
        fi
        ;;




]]>
<![CDATA[My favorite Distros]]>Thu, 04 Oct 2012 22:15:13 GMThttp://www.v-consulting.com/blog/my-favorite-distrosIn case you're a Linux freak like me you might be interested in what Distros I typically role out for different situations.  While I have much experience with most every Unix flaver (Solaris, BSD, FreeBSD, HPUX, etc.), I mostly stick with the Linux OS.  The distros I use and reasons are listed here:

Ubuntu:  General use Linux system, has all the necessary needs, can be a bit bloated.  I will install this on most client systems both server and desktop versions
Xubuntu:  My choice for Ubuntu variant that has the xfce graphic interface, and is faster than gnome.  Old laptops or Dekstops will have a bit of a speed improvement with this, so that's where I'll run it.
Kubuntu:  Another Ubuntu variant for those that like KDE.  I have some clients that like KDE, so I'll use this. 
CentOS:  I'll run this OS for almost all of my Asterisk Voice over IP VOIP installations.  I may run AsteriskNow, or usually FreePBX Distro,  but they'll run on CentOS.



Download a copy of ubuntu today, put it on a USB stick or burn to a CD and boot from it to try if you haven't already.  It's great and you don't have to worry about windows Viruses!  http://www.ubuntu.com.

Jim Valavanis]]>