My yum Got Stuck

I was upgrading using yum in a newly installed Scientific Linux 6 and during the last clean up yum just got stuck. I did a ctrl+c and stopped the process. A reboot worked fine as well. However, suddenly a message popped up saying there was an error in yum and told me to run a command as root: yum-complete-transaction. This ought to have solved any problems created when I forcefully quit a running yum transaction.

Install Virtualbox on Centos

I finally found good working guide of package installation of virtualbox 3.1.x on Centos 5.4 . I would like to share this thing with one who is looking for it. Hope will help.

Step 1:
First we have to get Sun’s public rpm key:

[root@~]# wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc
[root@~]# rpm --import sun_vbox.asc
[root@~]# rm -f sun_vbox.asc


Step 2:
Now we have to enable the VirtualBox OpenSUSE repository on our system:

[root@~]# cd /etc/yum.repos.d/
[root@~]# wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo


Step 3:
Install VirtualBox 3.1.x

[root@~]# yum install VirtualBox-3.1


Step 4:
Now you must add the user that will run VirtualBox (admin in this example) to the vboxusers group:

[root@~]# /usr/sbin/usermod -G vboxusers admin

VirtualBox is now installed and ready to be used.

To access virtualbox goto Applications->System Tools->Sun VirtualBox

Cheers,
Sh

Reference: howtoforge.com

USB devices greyed out in Virtualbox [Solved] – Centos

On my Centos 5.4 I installed Virtualbox and run Windows XP guest OS on it. After installation it showed available USB devices but all were greyout or disabled. After searching for the solution on net for 2 days i finally get it working by  following the steps below.

Step1:

Findout gid number by typing

# grep vboxusers /etc/group

you will get output like this

vboxusers:x:501:userid

Note down the number between :XXX: in this case it is 501

Step 2:

Now make sure none of the usb devices attached to the PC.

goto root level and run the follwoing commands

[root@~]# umount /proc/bus/usb
[root@~]# mount -n -t usbfs /proc/bus/usb /proc/bus/usb -o devgid=501,devmode=664

put devgid value  which you get above.

Step 3:

Now open your virtubalbox and run the OS, you will see all your USB devices enabled.

Cheers,

Sh

Hat Tips: Virtualbox Forum

Install FreeSwitch in CentOS

Before we proceed, let’s make one thing certain: FreeSwitch Download & Installation Guide is and always will be better than this guide. However, what I try to do here is make things mentioned in the official guide more clear. Since FreeSwitch recommends using the code in trunk, we will follow this recommendation and the Quick and Dirty Install.

Install svn

svn is required to check-out code from FreeSwitch’s trunk. To install it, run the following command:

sudo yum install subversion

Stop Asterisk

If Asterisk is installed and running, you need to stop it first. Run the following commands:

sudo /usr/sbin/asterisk -r
codeghar*CLI> stop now

Install Development Tools

To make sure you have the things you might need to install FreeSwitch, install the following:

sudo yum install gcc gcc-c++ make automake autoconf libtool libtermcap-devel ncurses-devel

Download FreeSwitch

cd /usr/src/
sudo mkdir freeswitch
sudo chmod o+rwx freeswitch (This is unsafe)
cd /usr/src/freeswitch/
wget http://www.freeswitch.org/eg/Makefile
make

Now sit back and let it do its thing. Once that’s done, run the following commands:

make all
cd freeswitch.trunk
sudo make install
sudo make cd-sounds-install
sudo make cd-moh-install

Yum repomd.xml Error

I installed Fedora 11 in a VMware virtual machine from a DVD iso image. After installation, I went on to do yum update and got this message: Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Searching the web revealed one most-recommended solution: check your DNS settings. It turns out, repomd.xml is a file located on the mirror from which you are trying to download updates, new package, whatever. The error message is displayed when yum is unable to either find or get the repomd file.

The first thing you should check is your Internet connection. Maybe try to ping some server (ping -c 3 google.com). If your connection is fine, the issue could be with DNS settings, proxy issues, or maybe the mirror you are connecting to is having problems. One solution I found said they simply waited some hours and it worked. It indicates to me that maybe the mirrors were having a hard time when they first tried but when their load decreased things were ok.

When I checked, eth0 on my Fedora install was disabled. I had to enable it, make sure network card was connected on VMware, brought down the interface and brought it back up. It used DHCP to get a new IP. I tested a ping to a server and it was successful. Now yum worked just fine.

Enable eth0

To enable eth0, I had to change the ifcfg-eth0 file. I ran the following commands:

sudo vim /etc/sysconfig/network-scripts/ifcfg-eth0

And made sure the following two lines were present:

ONBOOT=yes

BOOTPROTO=dhcp

Bring Down Interface and Bring it Up

To bring down my eth0 interface, I ran

sudo ifdown eth0

To bring it back up, I ran

sudo ifup eth0

How to install Asterisk on CentOS? Package installation.

Follow these steps to install Asterisk (Open source PBX) on CentOS.

Step 1.

Make sure following packages were installed on CentOS/

  • kernel-devel OR kernel-smp-devel
  • bison
  • openssl-devel

To installed above packages run following commands

sudo yum install kernel-devel
sudo yum install bison
sudo yum install openssl-devel

Step 2.

Now add atrpms repository for Asterisk Installation

  • Create the file called atrpms.repo
sudo vim /etc/yum.repos.d/atrpms.repo

put following in the file

[atrpms]
name=CentOS $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
gpgkey=http://atrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1

Step 3.

Run update command

sudo yum -y update

Step 4.

Now run following command to installed Asterisk

sudo yum install asterisk

After installation completed run following commands to check Asterisk status.

To check Asterisk Status

sudo /etc/init.d/asterisk status

To Start Asterisk

sudo /etc/init.d/asterisk start

To Stop Asterisk

sudo /etc/init.d/asterisk stop

To Restart Asterisk

sudo /etc/init.d/asterisk restart

5. Asterisk CLI

Go to asterisk directory and then use command -rvvv

                      cd /etc/asterisk/
                      asterisk]# asterisk -rvvvv

where ‘v’ indicates verbosity


Good Luck!

Reference:

How to install Asterisk on CentOS server

Follow

Get every new post delivered to your Inbox.