How to setup MeetBot

MeetBot is designed to assist in running meetings, taking notes, and so on. It is in pure python, as a plugin to supybot.
However, there is a clear distinction between meeting-code and IRC-code, so it should be relatively easy to port to other bots. It is under the supybot license (3-clause BSD).

MeetBot is designed to be simple, not complex. Features are great, but not so much that it becomes hard to use or unwieldy to maintain.

More about MeetBot visit the debian wiki page: http://wiki.debian.org/MeetBot
Meetbot Manual: http://meetbot.debian.net/Manual.html
Meeting notes after the debian meetings on IRC (example): http://meetbot.debian.net
MeetBot IRC channel on irc.oftc.net: #meetbot Continue reading “How to setup MeetBot”

How to install and setup Supybot

Supybot, is an IRC (Internet Relay Chat) bot written in Python
This bot is just fantastic. It does everything you need from a IRC bot, and it’s very easy to use.
The bot would have to be able to take care of auto-opping and similar “traditional” channel duties and has factoid functionality similar to blootbot/infobot
So pretty much you can say that supybot is an all in one IRC bot.

Some information you will need about supybot:
– Supybot handbook: http://supybook.fealdia.org/
– Supybot source code: http://sourceforge.net/projects/supybot/
– Supybot IRC channel on freenode: #supybot Continue reading “How to install and setup Supybot”

CiviCRM, civimail cron job setup

To have your mailing actually send. We have to set up a cron job that will periodically poke CiviMail to send all of the mailings that are past their scheduled date.

Actually there are so many ways out there to do this thing, and probably are shorter, but I’ve built a script for my self to do that for me and is more clear to understand.

Note: The script works only with Drupal.

1. Create a file in /usr/local/bin/ called civicrmcron.sh
    and add the following lines in it, edit the required fields and save it: Continue reading “CiviCRM, civimail cron job setup”

How to install NVIDIA Drivers in Ubuntu Linux

Probably you have tried to install NVIDIA graphics driver for Ubuntu or Linux in general so many times just like me, but never found a way how to do that properly.

Well in Ubuntu you have some 2 types of NVIDIA driver which you can find them in Additional Drivers (third party proprietary drivers) :
1. The Version 173 – which is crap especially because its very slow & laggy.
2. Recommended one – which has bugs on KDE and usually in some cases results with crashing entire OS, sometimes when trying to resize konsole in KDE. (at least that’s what happened with me)

To start with:

Ubuntu has an enabled Kernel Nouveau by default, this is what makes the NVIDIA driver always crash during installation.
So to install the drivers ofcourse you need to disable that so that you can proceed. Continue reading “How to install NVIDIA Drivers in Ubuntu Linux”

Database backup scripts

1. Database backup bash script
2. Perl email script
3. Cron job configuration to run the script

Here are some scripts that will help you make a database backup and than
another script that will send you an email, to confirm that the backup was made and probably if you want you can make the script send you the backup attached via email…
Then finally a cron configuration to run the database backup script everyday, week, month or once a year.

So here is the step by step tutorial…

First Lets make some directories..

1. Make a directory in /var/backups/ called sqlbackup

mkdir /var/backups/sqlbackup

Continue reading “Database backup scripts”

Securing SSH

The best way of Securing your server via ssh is to let connection just from ssh key.
So how we do that ?
Generate a ssh key pair on your computer

# ssh-keygen

now youll have 2 files id_rsa & id_rsa.pub
so what you have to do is change the id_rsa.pub to authorized_keys

# mv id_rsa.pub authorized_keys

Go to your server via ssh try to connect somewhere with ssh just so that you
create a .ssh folder on your home folder, or you can even do it manually than get back to your pc and:

# scp authorized_keys user@example.com:/home/user/.ssh/

You can do that also to root but anyway.
Continue reading “Securing SSH”

Enable Drupal URL cleaner

Thanks to James Michael Dupont I was able to enable my Drupal’s Site Url cleaner.
Actually first you have to enable mod_rewrite module, than edit your virtual host so that
it includes the .htaccess file, than edit your .htaccess file and reload apache.

What you should do first is enable mod_rewrite module

# a2enmod rewrite

Than to make it easier to work edit change .htaccess to htaccess.conf on your drupal folder (mine: /var/www/drupal-7.0)

# mv /var/www/drupal-7.0/.htaccess /var/www/drupal-7.0/htaccess.conf

Before including some lines on your vhost go to /var/log/apache2/ and create some log files:

# touch drupal7-rewrite.log drupal_access.log  drupal_error.log  drupal-rewrite.log

So now you have to include htaccess.conf in your vhost, by adding these lines: Continue reading “Enable Drupal URL cleaner”

Edit GRUB menu easy way

I always wanted to change the look of my Grub menu, I had too many stuf there like every update I got new Boot Menu options like:

Ubuntu, with Linux 2.6.35-29-generic-pae
Ubuntu, with Linux 2.6.35-29-generic-pae (recovery mode)

and I always wanted to remove all that list and make it more simple so that
just the newest one could show on.
There are too many tutorials on web but non of them tells you the easuest way to do it as using this tool.

The tool here is called Grub costumizer and its a gui tool that helps you do that.
To install it open a terminal window and run these commands:

# sudo add-apt-repository ppa:danielrichter2007/grub-customizer
# sudo apt-get update
# sudo apt-get install grub-customizer

after the install finishes it will list in Applications>System Tools>Grub Costumizer

Continue reading “Edit GRUB menu easy way”