Difference between revisions of "CentOS 6.2"

From MarcsHomepage
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
Installation notes for CentOS 6.2 on my AMD Athlon64 X2 5000+. You can find more complete Howtos on the Net, so I won't repeat this here.
+
Installation notes for CentOS 6.2 (updated to version 6.5 meanwhile) on my AMD Athlon64 X2 5000+. You can find more complete Howtos on the Net, so I won't repeat this here.
  
 
= Download =
 
= Download =
Line 30: Line 30:
 
A good [http://wiki.centos.org/AdditionalResources/Repositories list can be found on the CentOS wiki website].
 
A good [http://wiki.centos.org/AdditionalResources/Repositories list can be found on the CentOS wiki website].
  
For now I enabled the CentOS Extras and Plus repositories and ElRepo for nvidia closed source driver support.
+
For now I enabled the CentOS Extras and Plus repositories, ElRepo for nvidia closed source driver support as well as ATrpms and RPMforge. Adobe and Google add their own yum entries, but those are only for Acroread and Google Earth. I have also installed [http://wiki.centos.org/PackageManagement/Yum/Priorities yum priorities] in preparation for some havoc using [http://fedoraproject.org/wiki/EPEL EPEL].
  
 
= nVidia closed source drivers =
 
= nVidia closed source drivers =
Line 45: Line 45:
 
<pre>
 
<pre>
 
sudo yum --disablerepo=\* --enablerepo=elrepo install kmod-nvidia
 
sudo yum --disablerepo=\* --enablerepo=elrepo install kmod-nvidia
 +
</pre>
 +
 +
= Oracle Java =
 +
 +
CentOS comes with OpenJDK support. If you want the red pill, go to http://download.oracle.com/otn-pub/java/jdk/7u40-b43/jdk-7u40-linux-i586.rpm (current version) and download the appropriate rpm package (in this case the 32bit JDK package for development, not only the basic JRE).
 +
 +
After installation it needs to be configured as the default choice in case you also have OpenJDK installed in parallel
 +
<pre>
 +
sudo rpm -Uhv jdk-7u40-linux-i586.rpm
 +
sudo update-alternatives --install /usr/bin/java java /usr/java/latest/bin/java 1
 +
sudo update-alternatives --config java
 +
</pre>
 +
 +
Configure the Firefox Java plugin:
 +
 +
<pre>
 +
sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so \
 +
/usr/java/default/jre/lib/i386/libnpjp2.so 1
 +
sudo update-alternatives --config libjavaplugin.so
 
</pre>
 
</pre>
  
Line 53: Line 72:
 
sudo rpm -Uhv skype-2.2.0.35-fedora.i586.rpm
 
sudo rpm -Uhv skype-2.2.0.35-fedora.i586.rpm
 
</pre>
 
</pre>
 +
 +
It does not work really stable (issues with connecting to other Linux clients, it works a bit better if connecting to a Windows client.
 +
 +
Unless you where hiding under some stone, you may know that Skype has severe security issues.
 +
 +
Don't use.
 +
 +
= Jitsi =
 +
 +
Given the fact, that we do live in a surveilance state ([https://en.wikipedia.org/wiki/United_States you] [https://en.wikipedia.org/wiki/Great_Britain can]  [https://en.wikipedia.org/wiki/Canada choose], [https://en.wikipedia.org/wiki/New_Zealand in] [https://en.wikipedia.org/wiki/Australia which] [https://en.wikipedia.org/wiki/France one] [https://en.wikipedia.org/wiki/Germany you] [https://en.wikipedia.org/wiki/Sweden want] [https://en.wikipedia.org/wiki/Swizerland to] be watched though), a more secure video call client should be considered.
 +
 +
[https://jitsi.org/ Jitsi] does this (and is even easier to use than Skype and the most recent incarnation of Google+ Hangouts).
 +
 +
Download from https://download.jitsi.org/jitsi/rpm/ and install
 +
 +
<pre>
 +
sudo rpm -Uhv jitsi-2.2-latest.i386.rpm
 +
</pre>
 +
 +
See e.g. the Jitsi homepage for more information on using it with e.g. Jabber (XMPP) and ZRTP secured video chat. It's pretty simple.
  
 
= Truetype fonts =
 
= Truetype fonts =
Line 61: Line 100:
 
sudo rpm -Uvh msttcore-fonts-2.0-3.noarch.rpm
 
sudo rpm -Uvh msttcore-fonts-2.0-3.noarch.rpm
 
</pre>
 
</pre>
 +
 +
= Flash =
 +
 +
<pre>
 +
sudo rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
 +
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
 +
sudo yum install flash-plugin
 +
</pre>
 +
 +
= LibreOffice =
 +
 +
Following the howto on [http://www.if-not-true-then-false.com/2012/install-libreoffice-on-fedora-centos-red-hat-rhel/ if !1 0]:
 +
 +
Download latest from http://www.libreoffice.org/download/, unzip and untar.
 +
 +
Install rpms for base install, help and language pack.
 +
 +
Set desktop integration
 +
<pre>
 +
cd ~/Downloads/LibO_3.4.5rc2_Linux_x86_install-rpm_en-US/RPMS/desktop-integration/
 +
sudo rpm -Uhv libreoffice3.4-redhat-menus-3.4-502.noarch.rpm
 +
</pre>
 +
 +
There are two errors from mkdir but it seems to work otherwise.
 +
 +
= Compat libraries =
 +
 +
 +
<pre>
 +
sudo yum install compat-libstdc++-33.i686
 +
</pre>
 +
 +
= Google Earth =
 +
 +
Downloaded the most recent rpm from http://www.google.com/earth/download/ge/agree.html.
 +
 +
<pre>
 +
sudo yum install redhat-lsb.i686
 +
sudo rpm -Uhv google-earth-stable_current_i386.rpm
 +
</pre>
 +
 +
The yum entry apparently does not do upgrades to newer versions, the new and shiny release 6.2 had to be downloaded manually and installed like above.
 +
 +
= Eclipse =
 +
 +
Download latest from http://www.eclipse.org/downloads/
 +
 +
Unpack, run.
 +
 +
= mplayer =
 +
 +
Instead of the standard Gnome movie player, mplayer can be used (from atrpms).
 +
 +
= ntfs =
 +
 +
CentOS 6 comes without NTFS support, to install it, just add rpmforge and install <tt>fuse-ntfs-3g</tt>
 +
 +
<pre>
 +
sudo yum install fuse-ntfs-3g
 +
</pre>
 +
 +
There is a [http://wiki.centos.org/TipsAndTricks/NTFS HOWTO] in the CentOS wiki, but this seems to be a bit dated.
  
 
= Tweaking =
 
= Tweaking =
Line 66: Line 167:
 
== Legacy OSS games ==
 
== Legacy OSS games ==
  
FIXME.
+
You need to install openal-soft from the [http://atrpms.net ATrpms] repository first.
 +
 
 +
For the remaining settings, see [[Fedora_14_Linux#Legacy_OSS_games]] for the details.
  
 
== Cyborg R.A.T. 5 mouse ==
 
== Cyborg R.A.T. 5 mouse ==
Line 75: Line 178:
  
 
This could be fixed by Googling as per [http://matt-linux-log.blogspot.com/2010/10/saitek-cyborg-rat-in-linux.html] (basically add <pre>pointer = 1 2 3 4 5 6 7 8 9 10 11 12 0 0 0</pre> to your <tt>/etc/X11/Xmodmap</tt>).
 
This could be fixed by Googling as per [http://matt-linux-log.blogspot.com/2010/10/saitek-cyborg-rat-in-linux.html] (basically add <pre>pointer = 1 2 3 4 5 6 7 8 9 10 11 12 0 0 0</pre> to your <tt>/etc/X11/Xmodmap</tt>).
 +
 +
== gpg-agent ==
 +
 +
Had some problems with Enigmail (version 1.5.1 on Thunderbird 17)
 +
 +
Error messages kept becoming more severe with update to CentOS 6.4 apparently (or I lost my temper finally):
 +
 +
Similar to the stuff described here:
 +
 +
https://bbs.archlinux.org/viewtopic.php?id=140776
 +
 +
 +
<pre>
 +
[DEBUG] enigmail.js: detectGpgAgent: gpg-connect-agent is executable
 +
[CONSOLE] enigmail> /usr/bin/gpg-connect-agent
 +
[ERROR] subprocess.jsm: got error from stdinWorker: expected type int, got (void 0)
 +
[DEBUG] detectGpgAgent detection terminated with 256
 +
[DEBUG] enigmail.js: detectGpgAgent: no running gpg-agent. \
 +
Output='' error text='gpg-connect-agent: can't connect to the agent: IPC connect call failed'
 +
</pre>
 +
 +
See https://www.cafaro.net/2012/03/30/fixing-thunderbird-enigmail-gpg-agent-passphrase-cacheing-on-centosrhel-6/ for a good sollution, which actually worked well so far.

Latest revision as of 23:12, 3 March 2014

Installation notes for CentOS 6.2 (updated to version 6.5 meanwhile) on my AMD Athlon64 X2 5000+. You can find more complete Howtos on the Net, so I won't repeat this here.

Download

Via one of the ftp mirrors. I downloaded the 32 bit live-CD. Burn, done.

Basic install

As with my previous Linux installations, I did not do an update but a complete reinstall. I just scraped the existing FC14 installation, keeping the home-directories and manually installed software.

CentOS refuses to install on an ext3 volume, and requires an ext4 partition. Moving an existing ext3 to ext4 is easy though:

tune2fs -O extents,uninit_bg,dir_index /dev/<your_ext3_partition>
e2fsck -pf /dev/<your_ext3_partition>

Afterwards, the data is still there and in the right format.

Installation worked nice, setup was more or less OK except for one BIG FAT BUG:

The LiveCD somehow misses to advertise the fact, that the partition chosen for installation is completely wiped in the process, even if you do not format it.

This may be written in small print somewhere, but should appear in big, fat, red letters prior to pressing OK for the installation (which apparently did not happen). This is especially evil, because a conventional install does not wipe the partition.

Fortunately I had a backup.

Additional repositories

A good list can be found on the CentOS wiki website.

For now I enabled the CentOS Extras and Plus repositories, ElRepo for nvidia closed source driver support as well as ATrpms and RPMforge. Adobe and Google add their own yum entries, but those are only for Acroread and Google Earth. I have also installed yum priorities in preparation for some havoc using EPEL.

nVidia closed source drivers

Can be installed by means of the ELRepo repository.

sudo rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
sudo rpm -Uvh http://elrepo.org/elrepo-release-6-4.el6.elrepo.noarch.rpm
sudo yum install kmod-nvidia

If you have other third-party repositories enabled, you may need to select elrepo explicitly

sudo yum --disablerepo=\* --enablerepo=elrepo install kmod-nvidia

Oracle Java

CentOS comes with OpenJDK support. If you want the red pill, go to http://download.oracle.com/otn-pub/java/jdk/7u40-b43/jdk-7u40-linux-i586.rpm (current version) and download the appropriate rpm package (in this case the 32bit JDK package for development, not only the basic JRE).

After installation it needs to be configured as the default choice in case you also have OpenJDK installed in parallel

sudo rpm -Uhv jdk-7u40-linux-i586.rpm
sudo update-alternatives --install /usr/bin/java java /usr/java/latest/bin/java 1
sudo update-alternatives --config java

Configure the Firefox Java plugin:

sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so \ 
/usr/java/default/jre/lib/i386/libnpjp2.so 1
sudo update-alternatives --config libjavaplugin.so

Skype

You can install the rpm for Fedora 13+.

sudo rpm -Uhv skype-2.2.0.35-fedora.i586.rpm

It does not work really stable (issues with connecting to other Linux clients, it works a bit better if connecting to a Windows client.

Unless you where hiding under some stone, you may know that Skype has severe security issues.

Don't use.

Jitsi

Given the fact, that we do live in a surveilance state (you can choose, in which one you want to be watched though), a more secure video call client should be considered.

Jitsi does this (and is even easier to use than Skype and the most recent incarnation of Google+ Hangouts).

Download from https://download.jitsi.org/jitsi/rpm/ and install

sudo rpm -Uhv jitsi-2.2-latest.i386.rpm

See e.g. the Jitsi homepage for more information on using it with e.g. Jabber (XMPP) and ZRTP secured video chat. It's pretty simple.

Truetype fonts

Downloaded from mjmwired.

sudo rpm -Uvh msttcore-fonts-2.0-3.noarch.rpm

Flash

sudo rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
sudo yum install flash-plugin

LibreOffice

Following the howto on if !1 0:

Download latest from http://www.libreoffice.org/download/, unzip and untar.

Install rpms for base install, help and language pack.

Set desktop integration

cd ~/Downloads/LibO_3.4.5rc2_Linux_x86_install-rpm_en-US/RPMS/desktop-integration/
sudo rpm -Uhv libreoffice3.4-redhat-menus-3.4-502.noarch.rpm

There are two errors from mkdir but it seems to work otherwise.

Compat libraries

sudo yum install compat-libstdc++-33.i686

Google Earth

Downloaded the most recent rpm from http://www.google.com/earth/download/ge/agree.html.

sudo yum install redhat-lsb.i686
sudo rpm -Uhv google-earth-stable_current_i386.rpm

The yum entry apparently does not do upgrades to newer versions, the new and shiny release 6.2 had to be downloaded manually and installed like above.

Eclipse

Download latest from http://www.eclipse.org/downloads/

Unpack, run.

mplayer

Instead of the standard Gnome movie player, mplayer can be used (from atrpms).

ntfs

CentOS 6 comes without NTFS support, to install it, just add rpmforge and install fuse-ntfs-3g

sudo yum install fuse-ntfs-3g

There is a HOWTO in the CentOS wiki, but this seems to be a bit dated.

Tweaking

Legacy OSS games

You need to install openal-soft from the ATrpms repository first.

For the remaining settings, see Fedora_14_Linux#Legacy_OSS_games for the details.

Cyborg R.A.T. 5 mouse

Got a new mouse recently (the old one was unsatisfactory, despite being expensive), which turned out to have issues with Linux. Doh.

The X11 desktop did not recognize mouse clicks roughly 30% of the time.

This could be fixed by Googling as per [1] (basically add

pointer = 1 2 3 4 5 6 7 8 9 10 11 12 0 0 0

to your /etc/X11/Xmodmap).

gpg-agent

Had some problems with Enigmail (version 1.5.1 on Thunderbird 17)

Error messages kept becoming more severe with update to CentOS 6.4 apparently (or I lost my temper finally):

Similar to the stuff described here:

https://bbs.archlinux.org/viewtopic.php?id=140776


[DEBUG] enigmail.js: detectGpgAgent: gpg-connect-agent is executable
[CONSOLE] enigmail> /usr/bin/gpg-connect-agent
[ERROR] subprocess.jsm: got error from stdinWorker: expected type int, got (void 0)
[DEBUG] detectGpgAgent detection terminated with 256
[DEBUG] enigmail.js: detectGpgAgent: no running gpg-agent. \
Output='' error text='gpg-connect-agent: can't connect to the agent: IPC connect call failed'

See https://www.cafaro.net/2012/03/30/fixing-thunderbird-enigmail-gpg-agent-passphrase-cacheing-on-centosrhel-6/ for a good sollution, which actually worked well so far.