How To Add a Symbolic Link in Centos

ln -s [TARGET DIRECTORY OR FILE] ./[SHORTCUT]

For example:

ln -s /usr/local/apache/logs ./logs

Posted in Centos 5.2, Command Line | Leave a comment

How to Remove an Old version of Ruby

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.

Posted in Redmine, Ruby on Rails | Tagged , , | Leave a comment

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

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

Posted in Centos 5.2, Open Source | Leave a comment

How To Install Suns VirtualBox tools on a Centos Virtual Machine

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

Posted in Centos 5.2, Command Line, VirtualBox | Leave a comment

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

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.

Posted in Centos 5.2, Command Line | Tagged , , | Leave a comment

Google Releases Open Source NX Server for Remote Desktop

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/

Posted in Open Source | Tagged , , , , , | Leave a comment

VLC Version 1.0 Released

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/

Posted in Open Source, Vista | Leave a comment

How to Find Large Files using Linux Command Line

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

Posted in Centos 5.2, Command Line | Tagged , | Leave a comment

How to Install Tracks 1.7 on Centos 5.2

 

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

Posted in Centos 5.2, Open Source, Project Management, Ruby on Rails | Tagged , , | 1 Comment

VLC – The Best Media Player For Linux

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

Posted in Open Source | Tagged , , | Leave a comment