Showing posts with label CentOS. Show all posts
Showing posts with label CentOS. Show all posts

Monday, July 15, 2013

[Centos] yum-complete-transaction error

These commands are useful when yum-complete-transaction gives error, in my case "error removing yum" & "duplicate packages" (yum-utils need to be installed to perform no. 2 & 3):

  1. yum-complete-transaction --cleanup-only
  2. package-cleanup --dupes
  3. package-cleanup --problems

Thursday, January 3, 2013

[CentOS] Install OpenERP 6.1 on CentOS 6.3

This article is about how to install OpenERP on my newly installed CentOS 6.3:

Here's an article I found online which provide steps by steps guide:
http://intellectseed.wordpress.com/2012/11/06/how-to-install-openerp-on-centos/

[CentOS, Fedora] Yum for novice user

There are a lot to learn about Yum, for novice user below are a few very useful method to get you started with installation using Yum:

  • # yum install XXXXX
This command is to install a known program. Normally a program would end with "x86_64" for 64-bit CentOS / Fedora.
  • # yum search XXXXX
This is very useful when you know the name of the software, but do not know how the repo name it. Wildcard is not supported here, because no matter what you type, it will treat is a "contain", mean if I search for "fire", I could eventually get "Firefox".
  • # yum list XXXXX
List is similar to search, but wildcard is not enabled by default. So if you wanna search for "Firefox", you have to type "fire*".
  • # yum groupinstall XXXXX
Group install is very useful not only to resolve dependencies, but it also helps by installing other features that require by particular software. For example, Libre Office, by default installation, it would sometimes not appear in the Application Menu. By doing groupinstall all LibreOffice program will be added to the application menu automatically.

* I have not really dig into the groupinstall behaviour, so might explain wrongly here. To be precise, here's how yum.baseurl.org explained:
Despite their differing names both of these commands perform the same function. They will attempt to install/update all of the packages in the group that are of the types 'default' or 'mandatory' (by default). (To change this types of packages edit the value of the group_package_types option in yum.conf.) And they will install any additional dependencies needed by any of the installing/updating packages.

  • # yum update
As the name suggest, this is use to update the system to the latest available patches. Worth to mention here, for those who use Ubuntu / Fedora / CentOS together might get confused a bit, as Ubuntu apt-get update is only to update the repository, but not to perform update to the system. Use apt-get upgrade instead.

I hope this will help many who just start playing around with Yum. Have fun!

[CentOS] Installing CentOS 6.3 Minimal Edition: Part 1

In this post I would list down the steps & tasks I performed after during and after successful installation of CentOS minimal edition.

During Installation
I install CentOS 6.3 in a VM via Oracle VirtualBox. The initial graphic RAM given was 12mb, that has caused CentOS setup fail to boot into a GUI installation. Installing from the old DOS-like environment is headache because somehow it does not show up any available drive for me to select to hold the CentOS.


After a few trials, I decided to re-configured and install in GUI environment. The installation went smooth and very quickly it is done and CentOS is up.

* One thing to take note during the installation is to setup the LAN connection otherwise you would not get connection once boot into CentOS. (Special thanks to Sharuzzaman Ahmat Raslan from Facebook General Linux Discussion M'sia for his advice and screenshot)

To setup the LAN, simply click on the "Configure Network" button on the bottom left.

 


After installation
Once CentOS boot up I'm required to login. Key in root and password (set during installation) then we can start to install everything.

****** This step only required if you forgot to setup LAN during installation ******
Before that I would need to bring up the network interface. I used NAT for the VM. The network interface is not up by default, I did ifconfig and only can see "lo". To bring up the network interface simply type:

# ifup eth0

Run ifconfig to check again and now eth0 has already up and running with DHCP.
****** End of network interface section ******

First thing to do is to perform update to overall system.

# yum update

It is easier and more straight forward to work under GUI than terminal mode. So I decided to install the Gnome Desktop Environment & KDE. The reason I install both because there are some KDE tools & programs are useful to me. Before we can install Gnome/KDE, we must first install the "X Windows System". Yum has an option to do groupinstall. It will help you resolve all dependencies, for novice users this come in very handy. Execute the following:

# yum groupinstall -y 'X Window System'

So what is mean by "-y" in the command line above? It means "answer yes to all", so the system will perform every resolved dependencies without getting further permission from me.

To install Gnome, execute:

# yum groupinstall -y 'Desktop'

* A reminder here: Restart is not required after install "X Window System". If one restarts the system, remember to bring up eth0 again.

Once the installation done, execute:

# startx

I'm now in the Gnome Desktop environment. To make sure it run every time we restart the system, simply go /etc/inittab and change the id:3:initdefault: to id:5:initdefault:.

* To change and save the inittab file, we can use:

# vi innittab

press "Insert" on keyboard to enter editing mode. Once done, press ESC and type ":wq".

Reboot with command init 6 and I can now work in desktop environment.

===============================
There are some issue with minimal edition of CentOS that is it comes with very limited tools we can use to configure the OS. The most critical stuff that are missing is text editor such as gEdit / Kedit / Leafpad. Personally I prefer Leafpad, but to install Leafpad it is not as straight forward.

Some other issue:

  1. the network interface is not configure to load automatically when OS starts
  2. Mozilla Firefox is not pre-install
I will cover in Part 2 how to install those missing stuff as well as configure the network interface so it loads with the system.

Until then, have fun with your newly installed CentOS!

===============================
Some useful links for reference:

Thursday, December 13, 2012

[CentOS] Dependencies problem during DraftSight installation

libaudio.so.2 download for other distribution: http://pkgs.org/download/libaudio.so.2

Installing DraftSight in CentOS 6 with the binary package from official website may give error: 
requires libaudio.so.2
and I cannot find any useful solution from online. So how can we fix this?

It actually not hard to get it done:
  1. Go to http://pkgs.org/centos-6-rhel-6/epel-i386/nas-1.9.1-7.el6.i686.rpm/download/
  2. Download the binary package, install it with Package Manager. This should contain the libaudio.so.2
  3. Run the DraftSight.rpm again
  4. The setup will ask you to install extra stuff before it continues. Click install. Wait until it done.
  5. Once it is  done, navigate to Applications > Graphics.  Voila! DraftSight is running perfectly!