Archive | Linux RSS feed for this section

Folders Sync

26 May

0325-sync-folder-thumb-100029454-large This may not be a problem for many people but folder syncing can be an issue, especially if you are like me, who has work spread out over at least three computers; one at home, one at the office, and a mobile computer (laptop/tablet/phablet). This is not to mention the syncing of work to online resources like Dropbox, Google Drive and Microsoft’s OneDrive (formerly known as SkyDrive before an injuction by Sky Media in the UK put an end to that – Microsoft should fire the guy who came up with that name as clearly they have no research capabilities) – so that should one by any chance not be at one of their computers but has access to an online machine, they can still get access to their work.

I scoured the web searching for useful solutions to this conundrum and here are the applications I have ended up installing on my computers – in a bid to keep my folders up to date most of the time.

Continue reading

Install RPM with dependencies via CLI in openSUSE

15 Apr

So…this is most likely something trivial to many people, but I found myself googling this the last time I tried to install Skype on my office PC. So, should you not know or have forgotten how to install and RPM with dependencies in openSUSE, here are two ways that work like magic

Method 1 – Yast

The command to run is simple – and this works with the assumption that you have yast-ncurses installed to make yast work well in the command like interface

yast –i /path/to/your-package.rpm

This will refresh your configured repositories, resolve dependencies (if possible), confirm to you what is about to be installed, and then install them with a nice cli interface so to speak.

NB: With Yast, you can choose to browse the repositories for other things to install or update.

Method 2 – Zypper

The command to run is as follows

zypper in /path/to/your-package.rpm

This will refresh your repositories, resolve your dependencies (if possible), confirm to you what is to be installed, and then install them via a simple cli interface – not as complex as yast.

Crontab Log – How to log the Output of a Cron Script (and email it as well)

28 Feb

cron-logo-680x225 As mentioned earlier, in my world of development, I keep landing myself into sticky situations and what makes me keep my job or clients happy is that I get myself out of such sticky situations quick quickly. Now, the situation I encountered recently involved crons

I have a php script whose function is to check a certain database for messages to be sent. The script should then collect required messages and pass them on the the Goip SMS gateway. Now, how do I save the output of the sending to the gateway so that I can know which ones failed – if any – without having to add the logging function into the sending script and without having to look through cron’s own logs? Answer – simply tweak the cron command slightly to achieve logging.

Continue reading

CLI Certificate Tools for Zimbra Server How To

28 Feb


For the few of you who actually run your own organizational mail servers and the even fewer of those who run Zimbra, here is what you do when you encounter the following error while trying to start zimbra

Host mail.domain.tld
Unable to determine enabled services from ldap.
Unable to determine enabled services. Cache is out of date or doesn’t exist.

This is normally caused by the expiry of the certificate that Zimbra uses for ldap. All you have to do to fix the situation is generate a new valid certificate, using Zimbra’s CLI (command line interface) certificate tools.

Continue reading

How to Create a bootable USB key from an image file

3 Feb

USB-iconOf late, for one reason or another, my burner is not writing discs properly. Now, while I chill to take the machine in because that is definitely a warranty issue, I needed to urgently fix my older laptop which I knew had hard disc issues and required to be ‘Spinrited’ – if you don’t mind the invention of the word. Anyhow, long and short of it is that if I required the services of DynaStat Data Recovery and I could not burn discs, then my flash drive would have to do. Not suprisingly, it is not the simplest thing to do, getting a flash disc to boot so here goes some tips on how to do so in Linux and Windows Continue reading

Manage your E-Books Library

15 Nov

kindleI love neat and useful gadgets. On my wish list is the iRobot Roomba robot that can clean floors while I am away at work but who am I kidding. TIA (this is Africa) and the dust in my neighborhood will make the motors in that thing pack up in one week max. My uneven floor wont help much either. Anyhow, I do own dust averse clever gadgets though, and this one I love. It’s my Kindle!

It’s a second gen Kindle Keyboard (curses all you Kindle Touch and Kindle Fire owners) but it works like a charm and for as long as it keeps doing so (or somehow gets lost), Amazon can keep releasing newer ones – I will not be deterred to buy another one. Though the $79 ad supported Kindle is quite tempting.

Continue reading

Tips on how to (re)install grub on a HP ProLiant server

7 Mar

hp-proliant-g6-serverRecently, I needed to install Suse Linux Enterprise Server on a HP Proliant Server. The setup goes smoothly until I had to reboot the system, at which point, I got an error when I tried to boot from the hard disk – Error Loading Operating System. On booting with the installation disk in recovery mode, and trying to get grub to boot into the system on the hard disk, I kept on getting the error that /dev/had could not be found.

Continue reading