MoonPoint Support Logo

Geeks.com - Free Shipping



Advanced Search
February
Sun Mon Tue Wed Thu Fri Sat
     
8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      
2012
Months
FebMar
Apr May Jun
Jul Aug Sep
Oct Nov Dec


Sat, Sep 04, 2010 9:45 pm

Installing Google Chromium on CentOS

Google Chrome
Logo If you have a Fedora 12 or Red Hat 6 (RHEL) or later versions of Linux on a system and would like to install the Google Chrome browser using the YUM package manager, you can do so using the following steps.

Note: You can determine which version of those operating systems or CentOS you are using by examining the contents of /etc/redhat-release.

  1. Add Google's own YUM repository to be sure you obtain the latest version of the chrome browser, which will allow you to easily ensure you can keep it up-to-date. To do so, create the file /etc/yum.repos.d/google.repo and place the following lines in it depending on whether you are using a 32-bit version of Linux or a 64-bit version. You can check whether you have a 64-bit version by issuing the command uname -a. For a 64-bit version, you will see x86_64 in the output.

    32-bit

    [google]
    name=Google - i386
    baseurl=http://dl.google.com/linux/rpm/stable/i386
    enabled=1
    gpgcheck=1
    gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

    64-bit

    [google64] name=Google - x86_64 baseurl=http://dl.google.com/linux/rpm/stable/x86_64 enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

    Note: you could also put both the 32-bit and 64-bit repo information in the same file, if you wish.

  2. Install either the stable, beta, or unstable versions of Chrome from the root account. I would recommend using the stable version.

    ## Install Google Chrome Stable version
    yum install google-chrome-stable

    ## OR install Google Chrome Beta version##
    yum install google-chrome-beta

    ## OR install Google Chrome Unstable version##
    yum install google-chrome-unstable

However, if you are using CentOS 5, you won't be able to install the Chrome browser using the above steps. When I attempted to install the package on a CentOS 5.5 system, I saw a message indicating that version 3.2 of the lsb package was needed:

Missing Dependency: lsb >= 3.2 is needed by package google-chrome-stable-6.0.472.53-57914.x86_64 (google64)

# yum install google-chrome-stable
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons: hpc.arc.georgetown.edu
 * base: centos.mirror.netriplex.com
 * extras: mirror.vcu.edu
 * rpmforge: fr2.rpmfind.net
 * updates: mirrors.serveraxis.net
google64                                                 |  951 B     00:00     
403 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:6.0.472.53-57914 set to be updated
--> Processing Dependency: lsb >= 3.2 for package: google-chrome-stable
--> Processing Dependency: xdg-utils for package: google-chrome-stable
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:6.0.472.53-57914 set to be updated
--> Processing Dependency: lsb >= 3.2 for package: google-chrome-stable
---> Package xdg-utils.noarch 0:1.0.2-2.el5.centos set to be updated
--> Finished Dependency Resolution
google-chrome-stable-6.0.472.53-57914.x86_64 from google64 has depsolving proble
ms
  --> Missing Dependency: lsb >= 3.2 is needed by package google-chrome-stable-6
.0.472.53-57914.x86_64 (google64)
Error: Missing Dependency: lsb >= 3.2 is needed by package google-chrome-stable-
6.0.472.53-57914.x86_64 (google64)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

When I tried updating the lsb package, I saw the following:

# yum install lsb
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons: hpc.arc.georgetown.edu
 * base: mirrors.serveraxis.net
 * extras: mirror.vcu.edu
 * rpmforge: fr2.rpmfind.net
 * updates: mirrors.serveraxis.net
403 packages excluded due to repository priority protections
Setting up Install Process
Package redhat-lsb-3.1-12.3.EL.el5.centos.x86_64 already installed and latest ve
rsion
Package redhat-lsb-3.1-12.3.EL.el5.centos.i386 already installed and latest vers
ion
Nothing to do

I had similar results when I changed the contents of google.repo to try the 32-bit version, instead.

I found lots of other people reporting the same problem with earlier versions of Red Hat Enterprise Linux (RHEL) 5 and versions of Fedora prior to 12. E.g., there are similar reports at How to install google Chrome in RHEL 5. and Add support for RHEL/CentOS for OS compatibility. At the latter problem report webpage, I found a suggestion from andrewrjones that people wanting to use chrome on CentOS check Chris Staite's webpage, Chrome on CentOS where he provides Chromium for CentOS. Chromium is Google's open source alternative to their Chrome browser.

You can download Chromium for CentOS 5 from his website or from this website. Chromium is an open-source browser project behind the Google Chrome browser that aims to build a safer, faster, and more stable way for all users to experience the web.

Download Chromium
Chris Staite
MoonPoint Support

Once you've downloaded it, you will need to unzip it and untar it. When you extract the contents of the tar file, a chrome directory will be created beneath the current directory. Make that the working directory and run chrome-wrapper.

# gunzip chrome.tar.gz
# tar -xvf chrome.tar
# cd chrome
# ./chrome-wrapper

You will then be asked to choose the search engine you wish to use from Google, Yahoo!, or Bing.

Chromium - Choose Browser

Once you've started Chromium, you can control and customize it, by clicking on the wrench symbol in the upper, right-hand corner of the Chromium window.

Chromium - Start

When I ran chrome-wrapper, I received the error message below, but the program ran.

# ./chrome-wrapper
[5578:5592:5060312371904:ERROR:base/nss_util.cc(184)] Error initializing NSS with a persistent database (sql:/root/.pki/nssdb): NSS error code -8174

The program that Chris provides is a 32-bit one.

# file chrome chrome: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped

I found a discussion of the problems with Chrome and Chromium as well on CentOS systems at Google chrome for CentOS ?? that indicates Google has no interest in supporting Chrome on CentOS 5. There's also helpful information there on the Chromium software available from Chris Staite's site and how to resolve problems encountered with it on CentOS systems, but, since I have a lot of more pressing things to get done, I decided I couldn't afford to spend any more time troubleshooting issues with Chrome and Chromium on CentOS and just deleted the Chromium software from the system on which I had placed it.

References:

  1. Install Google Chrome with YUM on Fedora 13, Red Hat (RHEL) 6
    Published: February 20, 2010
    If Not True Then False - A Blog About Programming, Operating Systems and Applications
  2. How to install google Chrome in RHEL 5
    Date: February 4, 2010
    Google Chrome Help
  3. Add support for RHEL/CentOS for OS compatibility
    Date: December 23, 2009
    Google Chrome Help
  4. Google Chrome
    Google
  5. The Chromium Projects
  6. Google chrome for CentOS ??
    Date: December 11, 2009
    CentOS

[/os/unix/linux/centos] permanent link

Mon, Aug 23, 2010 9:26 pm

Determining the Version of CentOS or Redhat Linux

To determine what version of CentOS or Red Hat Linux is running on a system look at the contents of cat /etc/redhat-release.

References:

  1. How To Determine CentOS or Red Hat Version
    Posted by Jeff
    Date: March 10, 2009
    rackAID - Linux Server Management Services for Small Business

[/os/unix/linux/centos] permanent link

Thu, Jul 24, 2008 10:15 am

NTFS Support on CentOS

I needed to be able to access files on a USB drive formatted with the NTFS filesystem from a CentOS 5.1 Linux system. To do so I used the free open source NTFS driver for Linux, NTFS-3G.

I followed the instructions at How to Mount an NTFS Filesystem in order to be able to do so. I issued the command yum install fuse fuse-ntfs-3g dkms dkms-fuse to install the required packages (dkms and dkms-fuse install the fuse kernel module).

The system needs to be configured to use the RPMforge repository in order for the above yum install command to work. See Installing Wine on CentOS or RPMForge Packages and Yum Priorites for information on configuring yum to use the RPMforge repository.

After installing the ntfs-3g driver, I was able to mount the NTFS-formatted drive.

[root@localhost ~]# mkdir /mnt/windrive
[root@localhost ~]# mount -t ntfs-3g /dev/sda1 /mnt/windrive

I first created a mount point, which I arbitrarily named "windrive" under /mnt. Then I needed to specify the file system type with -t ntfs-3g. This particular drive was an external USB drive, which Linux identified as /dev/sda. It had only one partition on it, so I used /dev/sda1 to mount it. If you are unsure how Linux will identify the drive, see Linux Drive Designations

If the NTFS drive contains the Windows operating system for a system and the system was put into hibernation mode when it was shut down, you can only mount it in read-only mode. You will see the following message, which I saw when I tried to mount another drive from a hibernated Windows system, if you don't specify read-only mode for mounting the drive:

# mount -t ntfs-3g /dev/sdc1 /mnt/workdrive
Windows is hibernated, refused to mount.
Failed to mount '/dev/sdc1': Operation not permitted
The NTFS partition is hibernated. Please resume and shutdown Windows
properly, or mount the volume read-only with the 'ro' mount option, or
mount the volume read-write with the 'remove_hiberfile' mount option.
For example type on the command line:

            mount -t ntfs-3g /dev/sdc1 /mnt/workdrive -o remove_hiberfile

I was able to mount the drive by using the -r option for the mount command (you can also use -o ro.

mount -r -t ntfs-3g /dev/sdc1 /mnt/workdrive

fuse-ntfs-3g package information:


[root@localhost /]# rpm -qi fuse-ntfs-3g
Name        : fuse-ntfs-3g                 Relocations: (not relocatable)
Version     : 1.2712                            Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
Release     : 1.el5.rf                      Build Date: Mon 14 Jul 2008 04:20:28 PM EDT
Install Date: Thu 24 Jul 2008 08:48:39 AM EDT      Build Host: lisse.leuven.wieers.com
Group       : System Environment/Kernel     Source RPM: fuse-ntfs-3g-1.2712-1.el5.rf.src.rpm
Size        : 905700                           License: GPL
Signature   : DSA/SHA1, Mon 14 Jul 2008 05:57:27 PM EDT, Key ID a20e52146b8d79e6
Packager    : Dag Wieers 
URL         : http://www.ntfs-3g.org/
Summary     : Linux NTFS userspace driver
Description :
The ntfs-3g driver is an open source, GPL licensed, third generation Linux NTFS
driver. It provides full read-write access to NTFS, excluding access to
encrypted files, writing compressed files, changing file ownership, access
right.

Technically it’s based on and a major improvement to the third generation Linux
NTFS driver, ntfsmount. The improvements include functionality, quality and
performance enhancements.

ntfs-3g features are being merged to ntfsmount. In the meanwhile, ntfs-3g is
currently the only free, as in either speech or beer, NTFS driver for Linux
that supports unlimited file creation and deletion.
[root@localhost /]# rmdir /mnt/windrive

[/os/unix/linux/centos] permanent link

Wed, Jul 23, 2008 2:41 pm

Installing Wine on CentOS

I needed to install Wine on a CentOS 5.1 system I had just set up. Wine is available from the RPMForge repository, so I downloaded the latest rpmforge-release package from RPMForge and installed it.
[root@localhost ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
[root@localhost ~]# rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm

That placed two new files, mirrors-rpmforge and rpmforge.repo in /etc/yum.repos.d. I then checked to ensure the yum-priorites package was installed.

[root@localhost ~]# rpm -qi yum-priorities
Name        : yum-priorities               Relocations: (not relocatable)
Version     : 1.1.10                            Vendor: CentOS
Release     : 9.el5.centos                  Build Date: Sun 08 Jun 2008 06:25:46 PM EDT
Install Date: Wed 23 Jul 2008 12:20:43 AM EDT      Build Host: builder16.centos.org
Group       : System Environment/Base       Source RPM: yum-utils-1.1.10-9.el5.centos.src.rpm
Size        : 12698                            License: GPL
Signature   : DSA/SHA1, Sat 14 Jun 2008 07:23:04 PM EDT, Key ID a8a447dce8562897
URL         : http://linux.duke.edu/yum/download/yum-utils/
Summary     : plugin to give priorities to packages from different repos
Description :
This plugin allows repositories to have different priorities.
Packages in a repository with a lower priority can't be overridden by packages
from a repository with a higher priority even if repo has a later version.

I then verified that yum-priorities is enabled by ensuring that the following lines were present in /etc/yum/pluginconf.d/priorities.conf :

[main]
enabled = 1

The yum repository information is stored in /etc/yum.repos.d.

[root@localhost ~]# ls -l /etc/yum.repos.d
total 32
-rw-r--r-- 1 root root 2049 Jun 19 09:48 CentOS-Base.repo
-rw-r--r-- 1 root root  626 Jun 19 09:48 CentOS-Media.repo
-rw-r--r-- 1 root root  684 Mar  8  2007 mirrors-rpmforge
-rw-r--r-- 1 root root  428 Mar  8  2007 rpmforge.repo

I added priority=1 as the last line in the following sections of CentOS-Base.repo:

[base]
[updates]
[extras]

I added priority=2 as the last line in the [centosplus] .

I edited /etc/yum.repos.d/rpmforge.repo and added priority = 11 at the end of the file.

Repositories with lower priority numbers are considered to have a higher priority than than those with higher numbers. E.g. if repository A has priority=4 associated with it while repository B has priority=5 associated with it, repository A has a higher priority than repository B.

After adding the RPMForge repository, I was then able to install Wine with yum install wine. The following dependencies were also instaled:


Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 wine                    i386       1.0-1.el5.rf     rpmforge          2.9 k
Installing for dependencies:
 wine-capi               i386       1.0-1.el5.rf     rpmforge           16 k
 wine-cms                i386       1.0-1.el5.rf     rpmforge           65 k
 wine-core               i386       1.0-1.el5.rf     rpmforge           36 M
 wine-esd                i386       1.0-1.el5.rf     rpmforge           43 k
 wine-jack               i386       1.0-1.el5.rf     rpmforge           13 k
 wine-ldap               i386       1.0-1.el5.rf     rpmforge          251 k
 wine-nas                i386       1.0-1.el5.rf     rpmforge           12 k
 wine-twain              i386       1.0-1.el5.rf     rpmforge           23 k

After the installation, I ran winecfg.

[root@localhost ~]# winecfg
wine: created the configuration directory '/root/.wine'
Could not load Mozilla. HTML rendering will be disabled.
wine: configuration in '/root/.wine' has been updated.

Wine was configured to emulate Windows XP by default. I clicked on the Desktop Integration tab and set the "My Documents", "My Pictures", "My Music", and "My Videos" folders to link to directories I created under a "Documents" folder, I created under the login directory for the account I was logged in under. The directories must be created before you link to them with the Wine configuration utility.

[root@localhost Documents]# mkdir Pictures
[root@localhost Documents]# mkdir Music
[root@localhost Documents]# mkdir Videos

Wine configuration of folders

In the Wine configuration window, I clicked OK to retain the default settings. When I was returned to the shell prompt, I ran wine notepad to test Wine with the notepad application.

References:

  1. Installing RPMForge
    CentOS Wiki
  2. yum-plugin-priorities
    CentOS Wiki
  3. RPMForge Packages and Yum Priorites
    MoonPoint Support
  4. Configuring Wine
    Wine HQ

[/os/unix/linux/centos] permanent link

Tue, Jul 22, 2008 11:00 pm

Installing Centos 5.1 on a USB Drive

Though it took me some trial and error to figure out how to get it working, I was finally able to install CentOS 5.1 on a USB drive and have a system boot from the drive automatically. I wanted to have the drive set up with CentOS, so I could easily transport programs and my personal files between locations.

[ More Information ]

[/os/unix/linux/centos] permanent link

Sat, May 03, 2008 4:53 pm

RPMForge Packages and Yum Priorites

I wanted to be able to use yum to install packages from the RPMForge repository. Instructions for installing RPMForge support on a CentOS Linux system can be found at Installing RPMforge.

First, install the yum-priorities package with yum install yum-priorities. This plugin allows repositories to have different priorities. Packages in a repository with a lower priority can't be overridden by packages from a repository with a higher priority even if the repository with the higher priority has a later version of the package. As the Installing RPMForge webpage states you should "Beware that some packages are newer than the official CentOS version and you should not blindly install those packages. Before you replace a CentOS package you should make sure that will not break anything important. In most cases you can revert any mistakes but it is best to avoid the mess." By usng the yum-priorities plugin, you help avoid that problem.

Next verify that yum-priorities is enabled by ensuring that the following lines are present in /etc/yum/pluginconf.d/priorities.conf :

[main]
enabled = 1

The yum repository information is stored in /etc/yum.repos.d.

cd /etc/yum.repos.d
# ls -l
total 16
-rw-r--r-- 1 root root 2049 Nov 22 20:32 CentOS-Base.repo
-rw-r--r-- 1 root root  622 Nov 22 20:32 CentOS-Media.repo

I added priority=1 as the last line in the following sections of CentOS-Base.repo:

[base]
[updates]
[extras]

I added priority=2 as the last line in the [centosplus] section, which now contains the following lines:

[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
priority=2

I installed the rpmforge-release package with rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm, which created two new files mirrors-rpmforge and rpmforge.repo in /etc/yum.repos.d. I edited rpmforge.repo and added priority = 11 at the end of the file.

Repositories with lower priority numbers are considered to have a higher priority than than those with higher numbers. E.g. if repository A has priority=4 associated with it while repository B has priority=5 associated with it, repository A has a higher priority than repository B.

References:

  1. Installing RPMForge
    CentOS Wiki
  2. yum-plugin-priorities
    CentOS Wiki

[/os/unix/linux/centos] permanent link

Mon, Apr 10, 2006 9:46 pm

Tuttle City Manager Threatens CentOS Developer

I came across a reference in an InfoWorld column by Robert Cringeley, Okie calls cops, Dell's Ditty flops, to an amusing exchange between the city manager for Tuttle, Oklahoma and a CentOS developer, today. The server on which the Tuttle website resided crashed. It was rebuilt by the city's hosting provider, but the server was not configured properly afterwards to display the city's webpage, leading to a default page being displayed instead of the city's homepage.

The city manager, Jerry Taylor, who claims to have twenty-two years in computer systems engineering and operations, but appears to know very little about webservers or operating systems, saw the default Apache webpage one would see on a webserver running the CentOS operating system and contacted a CentOS developer, Johnny Hughes. But, with absolutely no understanding of what he was seeing, he demanded that the CentOS software be removed from his website.

In one email message sent to CenOS he railed "Who gave you permission to invade my website and block me and anyone else from accessing it??? Please remove your software immediately before I report it to government officials!! I am the City Manager of Tuttle, Oklahoma." Mr Hughes tried to explain the situation to him, but Mr. Taylor was apparently incapable of understanding the explanations and replied by threatening to sic the FBI on CentOS. Mr. Hughes took the time to research the problem instead of just ignoring the city manager at that point and did eventually get the city manager to contact his hosting provider. But even then, the city manager did not seem to understand, or at least appreciate, that Mr. Hughes had made an extra effort to solve the city's website problem for the city. Instead he still stated he did not regret threatening Hughes with FBI action, since he believes that was what prompted Hughes to start treating him seriously.

The city has a article on the issue at City manager misunderstanding prompts international response and even has a link to the email transcript of the exchange, which Mr. Hughes posted after getting exasperated with the city manager's behavior and threats. Comments on the article in the city's paper are available in a forum for the paper.

References:

  1. Okie calls cops, Dell's Ditty flops
  2. City manager misunderstanding prompts international response
  3. OR ... why every city council needs at least one geek
    Transcript of the email exchange

[/os/unix/linux/centos] permanent link

CompuVest - Notebooks

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo