Saturday, May 23, 2015

Telegram Messenger Installation for Fedora

Telegram is a lightweight messenger platform which is easy to install, configure and use.  It is quite similar to Facebook owned Whatsapp messenger, but has the following advantages:

  1. Your chats are synchronized across all your devices  
  2. You can install and send messages from your phone, tablet and/or desktop
  3. You can send documents of any type
  4. The client is open source and is licensed under GPLv3
  5. It is free.  No ads or subscription fees
  6. There are no limits on the size of your media or chats
  7. Your messages are encrypted
The Telegram installation instructions are simple and easy to follow.  I have also created a telegram_install script which you can download and execute.  Be sure to set the script as executable first by issuing the command:  chmod +x telegram_install

The script will do the following:

  1. Check the architecture to determine if you are running 32bit or 64bit
  2. Download the appropriate version and save it as tsetup.tar.xz
  3. Extract the compressed tar file into your home directory
  4. Start the Telegram setup program
  5. Remove tsetup.tar.xz (as it is no longer needed)
Telegram will create a desktop file to allow you to click on an icon from your start menu:($HOME/.local/share/applications/telegramdesktop.desktop)

Telegram will automatically upgrade as new versions are available.

If you wish to uninstall, simply:

  1. rm $HOME/Telegram --recursive
  2. rm $HOME/.local/share/applications/telegramdesktop.desktop

Sunday, May 3, 2015

PostgreSQL Upgrade - Fedora 22

Fedora 22 will upgrade your PostgreSQL database from 9.3.6 to 9.4.1

Since this is a major upgrade it will require that you upgrade your database.

Here is how to do it:

  1. Install the upgrade utilities:  dnf install postgresql-upgrade
  2. Become user postgres:  sudo su - postgres
  3. Rename the data directory:  mv /var/lib/pgsql/data/ /var/lib/pgsql/data_9.3/
  4. As root, initialize your 9.4 database:  sudo postgresql-setup initdb
  5. As user postgres, Copy your pg_hba.conf:  cp /var/lib/pgsql/data_9.3/pg_hba.conf  /var/lib/pgsql/data/pg_hba.conf
  6. To avoid any potential password issues, temporarily change "md5" to "trust" in both pg_hba.conf files
  7. Run the upgrade process:  pg_upgrade -b /usr/lib64/pgsql/postgresql-9.3/bin/ -B /usr/bin/ -d data_9.3/ -D data
  8. Change "trust" to md5" if you changed in step 6 
  9. Enable your postgresql.service:  sudo systemctl enable postgresql.service
  10. Start your postgresql.service:  sudo systemctl start postgresql.service
  11. Run the script as suggested
  12. Run the script as suggested