My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://techienote.com and update your bookmarks.

Tech Resources

Monday, July 19, 2010

Managing Blackberry from linux


Linux users who also use a BlackBerry now have an option for managing their BlackBerry directly from Linux.
Barry is an Open Source application that will provide synchronization, backup, restore and program management for BlackBerry devices. Barry is primarily developed on Linux, but is intended as a cross platform library and application set, targeting Linux, BSD, 32/64bit, and big/little endian systems.
The Barry project began in October 2005 and has steadily added features and polish to Blackberry usage on Linux ever since. We were the first to reverse engineer the battery charging handshake via USB.
Today, it is possible to:
  • charge your Blackberry's battery from your USB port
  • parse the following database records: Address Book, Email, Calendar, Service Book, Memos, Tasks, PIN Messages, Saved Email, Folders, Phone Call Logs, and SMS messages
  • build the following database records: Address Book, Calendar, Memos, Tasks
  • export Address Book contacts in text or LDAP LDIF format
  • make full data backups and restores of your device using a GUI
  • synchronize contacts and calendar items using the OpenSync framework
  • use the Blackberry as a modem
  • install and manage Java applications from the command line
  • take screenshots of your device
  • set the device time from the command line
For more features you can check their website.

To install barry on fedora run following as a root user
#yum install -y barry

To install barry on ubuntu run following as a root user
#apt-get install barry

Attach your blackberry device and run barry
[vidyadhar@vidyadhar ~]$ barrybackup

It will ask you to enter device name for your blackberry device

If you have set device password for blackberry, you have to enter the same

For example to take address book backup, click on config button, choose Device database backup list configure, select address book & address book all. Then on the main screen click on backup. By default barry will generate backup in .barry folder in your home directory.

Labels: , , , ,

Wednesday, July 14, 2010

Upgrading joomla on linux

If you have followed my previous post regarding joomla installation you are ready with joomla v.1.5.10 & to upgare it you need to download a patch according to your existing version.

We are upgarding from 1.5.10 to 1.5.18

Taking backup of joomla's content and it's database for safety purpose.
In my case joomla's web directory is /var/www/html/joomla & mysql database name is joomla
#tar zcvf joomla-1.5.10.tar.gz /var/www/html/joomla/
#mysqldump -u username -p database_name > /root/joomla.sql

Download joomla 1.5.18 patch
#cd /root
#wget http://joomlacode.org/gf/download/frsrelease/12351/51116/Joomla_1.5.10_to_1.5.18-Stable-Patch_Package.tar.gz
#mkdir joomla1.5.18
#cd joomla1.5.18
#tar zxvf ../Joomla_1.5.10_to_1.5.18-Stable-Patch_Package.tar.gz
#unalias cp
#cp -rf * /var/www/html/joomla/
#alias cp='cp -i'

Now log in to your admin panel and check the version
http://your_server_ip/joomla/administrator



Labels: , , ,

Tuesday, July 13, 2010

Gmail backup


Most of the time user use gmail to save their important data. But they never care to take backup. What you will do in one of thoes downtimes of gmail servers? What if you wrongly delete your important emails? To prevent such incident from happening, you might want to backup your emails to your system.
Here is the script to backup your gmail data with labels in mbox format. It use getmail to fetch mails from gmail. You can also use it for incremental backup.

http://gmail-backup.sourceforge.net/

You need to install getmail on your machine to run the script
#yum install getmail

Download & run the script
#cd ~
#wget http://downloads.sourceforge.net/project/gmail-backup/gmail-backup.tar.gz?use_mirror=space&23393821
#tar zxvf gmail-backup.tar.gz
#cd gmail-backup
#chmod +x gmail-backup.sh newmail.sh allmail.sh
#sh gmail-backup.sh

It will ask for your emailid, password and the folder's name you want to backup.

To start backup (in case of all emails)
#cd ~/gmail-backup/
#sh allmail.sh

To start increamental backup
#cd ~/gmail-backup/
#sh newmail.sh

By default it will store all emails in mbox format at ~/gmail folder.

Labels: , , , , , , , ,

Friday, July 9, 2010

Configure Google calendar on Thunderbird


We all keep calendar in one or another form. Either we use phone to fulfill our needs or some applications. Many people prefer MS outlook for calendar. And many use Lightning. If you are using lightning to maintain calendar and wish to keep it in sync with google calendar this may be helpful for you. To keep your calendar in sync with mobile phone & computer you can try Google Sync.

Get Google calendar link to configure with Thunderbird
Logonto Google calendar
Right click on calendar => calendar Settings

Get ICAL Link.
Copy Link.
Once you click on ICAL, you’ll get calendar Address link. Keep copy of this link.

Configure Thunderbird
Install following addon on Thunderbird.
Provide for Google calendar
Lightning

Configure calendar on Thunderbird
File => New => calendar
Select Google calendar in format.

Paste ICAL Link and complete calendar config. During this process you’ll be prompted to enter password of your google email id.

This is all you need to do, now you can keep your Thunderbird calendar in sync with mobile device / google webcal.

Credits


Labels: , , , ,

Tuesday, July 6, 2010

Installing java on linux


Download java binary installation file for linux from java website http://www.java.com

Copy the binary file to /usr/local
#cp jre-6u20-linux-i586.bin /usr/local/

Extract the binary file
#cd /usr/local
#chmod +x jre-6u20-linux-i586.bin
#./jre-6u20-linux-i586.bin

Now you will see jre1.6.0_20 folder in /usr/local/ dir, We need to set system variable, to run the java properly
Setting the system variable for java
#vi /etc/profile.d/java.sh

export J2RE_HOME=/usr/local/jre1.6.0_20
export PATH=$J2RE_HOME/bin:$PATH

#source /etc/profile.d/java.sh

For finding your java version just do;
#java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)


Labels: , , , , ,

Monday, July 5, 2010

Switching from gnome to kde in fedora


If you are running gnome and want to switch to kde you can install kde-desktop and switch it before logging in to your machine.

Just do,
#yum install @kde-desktop -y

While logging in to just choose kde in session.

Labels: , , ,

Thursday, July 1, 2010

Dowloading source RPM in fedora


Some time we need source rpm to build custom rpm. You can download source rpm via yum in fedora.
To download source rpm of firefox in tmp folder.
#cd /tmp
#yum install yum-utils -y
#yumdownloader --enablerepo=rpmfusion-free-rawhide --source firefox

#ls
firefox-3.6.4-1.fc13.src.rpm

Labels: , , , , ,