Back to main index

CentOS-7 Installation Instructions

Have some reading about Minimal GNOME Desktop install and the German blog. Here to read about CentOS repositories.

Warning: always use priority setting for all repositories with enabled=1.

yum install yum-plugin-priorities
cd /etc/yum.repos.d/
ls -lh

For each repository with enabled=1 add priority=[1 to 99]

Install epel with priority=30, see epel repo, The Fedora Special Interest Group

yum install epel-release

Install elrepo with priority=30 for kmod-nvidia

Install adobe with priority=40, see here

Install vasilian repository for some extras

cd > /etc/yum.repos.d/vasilian.repo << EOF
name=Vasilian packages for CentOS7
baseurl=ftp://vasilian.net/CentOS/$releasever/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=ftp://vasilian.net/RPM-GPG-KEY/RPM-GPG-KEY-vasilian-centos7
protect=0
priority=90
EOF

CentOS7 (1406 at least) is based on fedora19. I can add this repository and keep it disabled. I use it only for few packages that I cannot find anywhere else (art work, some xfce4 goodies, theme engines, etc).

cat > /etc/yum.repos.d/fedora19.repo << EOF
[fedora19]
name=Fedora19 repository as the base for CentOS7
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/19/Everything/$basearch/os/
#mirrorlist=
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-19-primary
protect=0
priority=90
EOF

Now let's get the gpg-key for fedora19

cd /tmp
wget http://fedoraproject.org/static/FB4B18E6.txt
mv FB4B18E6.txt RPM-GPG-KEY-fedora-19-primary
cp /tmp/RPM-GPG-KEY-fedora-19-primary  /etc/pki/rpm-gpg
chown -v root:root  /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-19-primary
chmod 644 /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-19-primary
chcon -u system_u -t cert_t -v /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-19-primary

Use --enablerepo= to install from disabled repository.

yum --enablerepo=fedora19 install xfce4-mixer

If something gets really broken it is better to remove all f19 packages. Check first what is installed

yum list installed | grep fedora19

Here is how to list the packages dependencies.

yum install yum-utils
repoquery --enablerepo=fedora19 --requires pavucontrol
repoquery --enablerepo=fedora19 --list gnome-desktop

For Mate/Xfce Desktop I always add the beautiful aurora engine.

yum --enablerepo=fedora19 install gtk-aurora-engine

Xfce themes are not all installed by default.

yum search engine
yum install gtk-murrine-engine gtk-unico-engine gtk-xfce-engine gtk2-engines xfce4-session-engines

Bluecurve, Clearlooks, Curvylooks etc.

yum --enablerepo=fedora19 install  bluecurve-cursor-theme bluecurve-icon-theme clearlooks-compact-gnome-theme
yum --enablerepo=fedora19 install  clearlooks-phenix-common clearlooks-phenix-gtk2-theme clearlooks-phenix-gtk3-theme
yum --enablerepo=fedora19 install  clearlooks-phenix-xfwm4-theme fedora-icon-theme gnome-theme-curvylooks
yum --enablerepo=fedora19 install  gnome-themes humanity-icon-theme tango-icon-theme xfce4-icon-theme

Set Thunar automount feature.

yum install udisks2 gvfs gvfs-fuse gvfs-gphoto2 gvfs-smb gvfs-archive
yum install thunar-volman ntfs-3g

Set Thunar custom actions feature.

Set up Private Internet Access.

Optional install the development tools

Optional disable selinux or use chcon to change file's context

Optional, set grub GRUB_TIMEOUT=600

Optional install acroread if evince is not around.

AdbeRdr9.5.5-1_i486linux_enu.rpm requires pangox-compat.i686 (nux-dextop) which may be masked by .x86_64 (epel)

Get Cannon Pixma MP230 scanner/printer packages

cd /tmp
wget ftp://vasilian.net/pixma-mp230/cnijfilter-mp230series-3.80-1-rpm.tar.gz
wget ftp://vasilian.net/pixma-mp230/scangearmp-mp230series-2.00-1-rpm.tar.gz

Check if it is installed

rpm -q --requires cnijfilter-mp230series | grep libpangox
libpangox-1.0.so.0()(64bit)
libpangoxft-1.0.so.0()(64bit)
yum info pangox-compat.x86_64    # this shows (epel) as source repo

To install pangox-compat.i686 (nux-dextop) we need to run yum install with (epel) disabled

cd /etc/yum.repo.d
emacs -nw epel.repo        # and set enabled=0
emacs -nw nux-dextop.repo  # and set enabled=1
yum search pangox-compat   # now the .i686 version should be visible
yum install pangox-compat.i686
emacs -nw epel.repo        # check enabled=1 priority=20 (or similar)
emacs -nw nux-dextop.repo  # check enabled=1 priority=50 (or similar)
# now Adobe PDF Reader 32bit should install
yum localinstall AdbeRdr9.5.5-1_i486linux_enu.rpm libcanberra-gtk2.i686 adwaita-gtk2-theme.i686 PackageKit-gtk3-module.i686

Optional, install Netbeans in 2 steps:

a. JDK+NetBeans from Oracle.
b. NetBeans for C++ from netbeans.org

Enable anti-aliased fonts in netbeans.

Optional virtualbox and centos as guest.

Optional vmware-player. On vmware.com downloads page get the "VMware Workstation Player" .bundle file, chmod +x and run it as root. It will be installed system wide.

cd /usr/bin && ls -la | grep vmware
/usr/bin/vmware-installer -l                                   # to list all installed products
/usr/bin/vmware-installer -u {product-name} {product-version}  # to uninstall

Install kvm-qemu in CentOS-7. By default 'Virtual Machine Manager' shows and error when ran as normal user: "system policy prevents management of local virtualized systems" We need to configure polkit to run virsh as normal user like this:

pkaction --verbose --action-id org.libvirt.unix.manage
cd /etc/polkit-1/localauthority/50-local.d/
touch 50-org.example.libvirt-access.pkla
emacs 50-org.example.libvirt-access.pkla

[libvirt Admin Access]
Identity=unix-group:virt
Action=org.libvirt.unix.manage
ResultAny=yes
ResultInactive=yes
ResultActive=yes
cat /etc/group   # if there is no virt group, use kvm or qemu where $USER is added
usermod -a -G virt $USER
emacs ~/.bash_aliases

if test -x `which virsh`; then
    export LIBVIRT_DEFAULT_URI=qemu:///system
fi

Now 'Virtual Machine Manager' should run without error.

Optional mono for developers.
Install a screenshot program.

yum install gnome-screenshot
yum --enablerepo=fedora19 install xfce4-screenshooter

Setup network on CentOS-7

Setup laptop wifi card.

Gnome Login Sound plays a sound whenever the user logs in.
Copy the file as /usr/share/sounds/desktop-login.wav
erase ~/.cache/event-sound-cache.tdb.*
Check System->Preferences->Startup Applications->GNOME Login Sound, test its command.

/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login" # or
canberra-gtk-play -f /usr/share/sounds/desktop-login.wav   # or
aplay /usr/share/sounds/desktop-login.wav

If the server sound seems dead:

yum remove pulseaudio
alsamixer # to get a fix

What services can be disabled on CentOS/Fedora14 here

systemctl list-unit-files | grep enabled

accounts-daemon.service                     enabled
auditd.service                              enabled
chronyd.service                             enabled
crond.service                               enabled
dbus-org.freedesktop.NetworkManager.service enabled
dbus-org.freedesktop.nm-dispatcher.service  enabled
display-manager.service                     enabled
gdm.service                                 enabled
getty@.service                              enabled
irqbalance.service                          enabled
kdump.service                               enabled
lm_sensors.service                          enabled
mdmonitor.service                           enabled
microcode.service                           enabled
NetworkManager-dispatcher.service           enabled
NetworkManager.service                      enabled
rsyslog.service                             enabled
rtkit-daemon.service                        enabled
systemd-readahead-collect.service           enabled
systemd-readahead-drop.service              enabled
systemd-readahead-replay.service            enabled
tuned.service                               enabled
default.target                              enabled
graphical.target                            enabled
remote-fs.target                            enabled

Optional the top 10 programming fonts

yum search inconsolata
yum install levien-inconsolata-fonts

Optional Anonymous Pro Font

cd /tmp
wget http://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip
unzip AnonymousPro-1.002.zip
mv AnonymousPro-1.002.001  /usr/share/fonts/
cd /usr/share/fonts
chown -Rv root:root AnonymousPro-1.002.001
chcon -u system_u -t fonts_t -Rv AnonymousPro-1.002.001/
fc-cache /usr/share/fonts/AnonymousPro-1.002.001

Monaco (From OSX)

cd /usr/share/fonts
mkdir Monaco && cd Monaco
wget http://www.gringod.com/wp-upload/MONACO.TTF  # or manually
chown -Rv root:root Monaco
chcon -u system_u -t fonts_t -Rv Monaco/
fc-cache /usr/share/fonts/Monaco


Back to main index