How to Remove an Old version of Ruby

November 5th, 2009 No comments

This post just saved me a hours of work, thanks :-)

http://www.d-man.org/news/2009/01/06/91/

It outlines how to remove an old version of ruby and install the version you need.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis

Upgrade OTRS 2.3.4 to OTRS 2.4.1-01 using OTRS rpm’s on Centos

July 24th, 2009 No comments

OTRS is an Open source Support Ticket System, its fairly easy to setup and has the ability to receive emails and add them automatically as tickets.

Personally I like its flexibility and they have just released OTRS 2.4.1 (Aitutaki – One Foot Island, Cook Island) which improves alot of its flexibilty.

It has great documentation at  http://doc.otrs.org/2.4/en/html/

I have version 2.3.4 installed and I want to upgrade it to the latest version OTRS 2.4.1.

Download the rpm

wget http://ftp.otrs.org/pub/otrs/RPMS/fedora/4/otrs-2.4.1-01.noarch.rpm

Change the permissions.

chmod 777 otrs-2.4.1-01.noarch.rpm

Run the rpm upgrade.

rpm -Uvh otrs-2.4.1-01.noarch.rpm

Upgrade the database Part 1

MySQL

cat /opt/otrs/scripts/DBUpdate-to-2.4.mysql.sql | mysql -p -f -u root otrs

PostgreSQL

cat /opt/otrs/scripts/DBUpdate-to-2.4.postgresql.sql | psql otrs

Run the migration script as OTRS user.

su otrs

/opt/otrs/scripts/DBUpdate-to-2.4.pl

I got this error and ignoreed it.

Message: Need Type!

Traceback (10973):

Module: Kernel::System::NotificationEvent::NotificationAdd (v1.2)

Module: main::MigrateCustomerNotification (v1.6) Line: 218

Module: /opt/otrs/scripts/DBUpdate-to-2.4.pl (v1.6) Line: 99

Update the database Part 2

MySQL

cat /opt/otrs/scripts/DBUpdate-to-2.4-post.mysql.sql | mysql -p -f -u root otrs

PostgreSQL

cat /opt/otrs/scripts/DBUpdate-to-2.4-post.postgresql.sql | psql otrs

Restart httpd and mysqld

service httpd restart

service mysqld restart

Restart otrs service

service otrs restart

Goto your otrs installation http://localhost/otrs/index.pl

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis
Categories: Centos 5.2, Open Source Tags:

How To Install Suns VirtualBox tools on a Centos Virtual Machine

July 22nd, 2009 No comments

If you get the error

Could not find the Linux kernel header files – the directories
/lib/modules/2.6.18-128.el5/build/include and /usr/src/linux/include
do not exist.

Then you need to install the following packages.

yum install kernel sources

yum install kernel-devel

yum install gcc

Create the following link

ln -s /usr/src/kernels/2.6.18-92.1.18.el5-i686 /usr/src/linux

And now you should be able to run.

sh VBoxLinuxAdditions-x86.run

Source of this tip – http://forums.virtualbox.org/viewtopic.php?f=6&t=16721

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis
Categories: Centos 5.2, Command Line, VirtualBox Tags:

How To Turn Off Overwrite Request on when you copy in Centos

July 15th, 2009 No comments

When copying a folder in centos, it interactively asks if you want to overwrite a file, the -f flag does not work.  Simple solution, use \cp.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis

Google Releases Open Source NX Server for Remote Desktop

July 13th, 2009 No comments

NoMachine developed NX technology to handle remote X window sessions and to make a remote graphical display usable over lower connection speeds.

Google released a open source NX server called Neatx, looks pretty interesting, see it at – http://code.google.com/p/neatx/

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis

VLC Version 1.0 Released

July 9th, 2009 No comments

Great news, they have released version 1.0 of VLC finally. In my opinion VLC is the best media player out there, it works! Get it here – http://www.videolan.org/vlc/

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis
Categories: Open Source, Vista Tags:

How to Find Large Files using Linux Command Line

May 7th, 2009 No comments

find / -type f -size +20000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’

or

find / -type f -size +20000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’ > filelist.txt

To put the results in a text file.

Found here, a good resource for command line stuff – http://snippets.dzone.com/posts/show/1491

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis

How to Install Tracks 1.7 on Centos 5.2

April 5th, 2009 No comments

 

Install Ruby on Rails – Use http://www.how-to-linux.com/2008/12/how-to-install-ruby-on-rails-on-centos-52/

Create a database for Tracks

mysql -u root -p

create database tracks;

exit

Download Tracks from http://bsag.bingodisk.com/public/files/tracks-current.zip

Unzip the Tracks archive

unzip tracks-current.zip

Put tracks into /opt

mv tracks-1.7 /opt

Edit /opt/tracks-1.7/config/database.yml

vi /opt/tracks-1.7/config/database.yml

Add you mysql server details

production:

  adapter: mysql

  database: tracks

  hosts: localhost

  username: root

  password: neveruserrootpassword

Change a config in site.yml

vi /opt/tracks-1.7/config/site.yml

Add something unique in the salt parameter.

Add the Tracks data to the database

rake db:migrate RAILS_ENV=production

If you get this error;

no such file to load — mysql

Download ruby-mysql – http://rubyforge.org/frs/?group_id=4550

tar mysql-ruby-2.7.tar.gz

cd mysql-ruby-2.7

ruby extconf.rb –with-mysql-config

make

make install

Now run the server

script/server -e production

Goto http://localhost:3000

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis

VLC – The Best Media Player For Linux

April 5th, 2009 No comments

VLC media player is the best video player, it just about runs any type of media.  They have just released an update.

VLC media player is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, …) as well as DVDs, VCDs, and various streaming protocols. It can also be used as a server to server in unicast or multicast in IPv4 or IPv6on a high-bandwidth network.

Download it at - http://www.videolan.org/vlc/

VLC on Windows

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis

How To Fix Yum When It Hangs With No Error Message

April 1st, 2009 No comments

Yum on one of my centos boxes simply would not work.  Once you entered a yum command such as;

yum clean all

yum upgrade

it hung and would not work.

Apparently I needed to remove the __db.* in /var/lib/rpm

rm -f /var/lib/rpm/__db.*

See this link for more info - http://www.serpentine.com/blog/2007/01/04/dealing-with-yum-hangs-on-fc6/

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis
Categories: Centos 5.2 Tags: ,