Category Archives: CentOS Desktop

Cara Install gtk-3 di Centos 6 64bit

Posting ini belum selesai

Jujur saja hingga saat saya menulis post ini, rasanya masih enggan untuk upgrade Centos versi terbaru, saya sudah merasa nyaman masih setia menggunakan Centos 6 baik di server atau desktop. Seiring berjalannya waktu centos 6 ini terlihat tua dan renta, apalagi saat ini telah dirilis centos 8 dengan berbagai keanggunan dan kecantikan tampilannya yang menggunakan gnome terbaru, sangat wajar jika banyak orang dan developer lebih memilih mengikuti perkembangan jaman dengan meninggalkan centos 6.

Tidak dengan saya. Saya lebih memilih menambal secara manual berbagai ketertinggalan Centos 6. Satu persatu masalah muncul salah satunya Centos 6 tidak bisa menjalankan firefox terbaru, hal ini karena di dalam Centos 6 kita tidak bisa menginstall library gtk-3 yang diperlukan untuk menjalankan mozilla.

Lalu bagaimana solusinya? mari kita simak langkah sederhana dibawah ini

 

#repo ini bisa diganti dengan server yang terdekat atau lebih stabil wget http://repo.ugm.ac.id/centos/6.9/os/x86_64/Packages/centos-release-6-9.el6.12.3.x86_64.rpm croot=/tmp/CentOS mkdir -p $croot $croot/proc $croot/dev mount -o bind /dev $croot/dev mount -o bind /dev/pts $croot/dev/pts mount -o bind /proc $croot/proc rpm -ivh --root $croot centos-release*.rpm yum --installroot=$croot install gcc make bison rpm-build expat-devel \   fontpackages-devel gcc-c++ libtool bash mc yum freetype-devel tar which gettext \   libXext-devel libXrender-devel libXi-devel libpng-devel libjpeg-turbo-devel \   libtiff-devel perl-XML-Parser flex libxml2-devel popt-devel libXtst-devel -y chroot $croot 

Tunggu beberapa lama prosesnya akan memerlukan bandwidth sekitar 150MB. Dalam instalasi ini file yang diinstall terlihat di list berikut ini

  bash.x86_64 0:4.1.2-48.el6                                                       bison.x86_64 0:2.4.1-5.el6                                                       expat-devel.x86_64 0:2.0.1-13.el6_8                                              flex.x86_64 0:2.5.35-9.el6                                                       fontpackages-devel.noarch 0:1.41-1.1.el6                                         freetype-devel.x86_64 0:2.3.11-17.el6                                            gcc.x86_64 0:4.4.7-18.el6                                                        gcc-c++.x86_64 0:4.4.7-18.el6                                                    gettext.x86_64 0:0.17-18.el6                                                     libXext-devel.x86_64 0:1.3.3-1.el6                                               libXi-devel.x86_64 0:1.7.8-1.el6                                                 libXrender-devel.x86_64 0:0.9.10-1.el6                                           libXtst-devel.x86_64 0:1.2.3-1.el6                                               libjpeg-turbo-devel.x86_64 0:1.2.1-3.el6_5                                       libpng-devel.x86_64 2:1.2.49-2.el6_7                                             libtiff-devel.x86_64 0:3.9.4-21.el6_8                                            libtool.x86_64 0:2.2.6-15.5.el6                                                  libxml2-devel.x86_64 0:2.7.6-21.el6_8.1                                          make.x86_64 1:3.81-23.el6                                                        mc.x86_64 1:4.7.0.2-6.el6                                                        perl-XML-Parser.x86_64 0:2.36-7.el6                                              popt-devel.x86_64 0:1.13-7.el6                                                   rpm-build.x86_64 0:4.8.0-55.el6                                                  tar.x86_64 2:1.23-15.el6_8                                                       which.x86_64 0:2.19-6.el6                                                        yum.noarch 0:3.2.29-81.el6.centos                                              Dependency Installed:   MAKEDEV.x86_64 0:3.24-6.el6                                                      audit-libs.x86_64 0:2.4.5-6.el6                                                  autoconf.noarch 0:2.63-5.1.el6                                                   automake.noarch 0:1.11.1-4.el6                                                   basesystem.noarch 0:10.0-4.el6                                                   binutils.x86_64 0:2.20.51.0.2-5.47.el6_9.1                                       bzip2.x86_64 0:1.0.5-7.el6_0                                                     bzip2-libs.x86_64 0:1.0.5-7.el6_0                                                ca-certificates.noarch 0:2016.2.10-65.4.el6                                      checkpolicy.x86_64 0:2.0.22-1.el6                                                chkconfig.x86_64 0:1.3.49.5-1.el6                                                cloog-ppl.x86_64 0:0.15.7-1.2.el6                                                coreutils.x86_64 0:8.4-46.el6                                                    coreutils-libs.x86_64 0:8.4-46.el6                                               cpio.x86_64 0:2.10-13.el6                                                        cpp.x86_64 0:4.4.7-18.el6                                                        cracklib.x86_64 0:2.8.16-4.el6                                                   cracklib-dicts.x86_64 0:2.8.16-4.el6                                             curl.x86_64 0:7.19.7-53.el6_9                                                    cvs.x86_64 0:1.11.23-16.el6                                                      cyrus-sasl-lib.x86_64 0:2.1.23-15.el6_6.2                                        db4.x86_64 0:4.7.25-22.el6                                                       db4-utils.x86_64 0:4.7.25-22.el6                                                 dbus-glib.x86_64 0:0.86-6.el6                                                    dbus-libs.x86_64 1:1.2.24-8.el6_6                                                diffutils.x86_64 0:2.8.1-28.el6                                                  elfutils.x86_64 0:0.164-2.el6                                                    elfutils-libelf.x86_64 0:0.164-2.el6                                             elfutils-libs.x86_64 0:0.164-2.el6                                               ethtool.x86_64 2:3.5-6.el6                                                       expat.x86_64 0:2.0.1-13.el6_8                                                    fakeroot.x86_64 0:1.12.2-22.2.el6                                                fakeroot-libs.x86_64 0:1.12.2-22.2.el6                                           file.x86_64 0:5.04-30.el6                                                        file-libs.x86_64 0:5.04-30.el6                                                   filesystem.x86_64 0:2.4.30-3.el6                                                 findutils.x86_64 1:4.4.2-9.el6                                                   fontconfig.x86_64 0:2.8.0-5.el6                                                  fontpackages-filesystem.noarch 0:1.41-1.1.el6                                    freetype.x86_64 0:2.3.11-17.el6                                                  gamin.x86_64 0:0.1.10-9.el6                                                      gawk.x86_64 0:3.1.7-10.el6_7.3                                                   gdb.x86_64 0:7.2-92.el6                                                          gdbm.x86_64 0:1.8.0-39.el6                                                       glib2.x86_64 0:2.28.8-9.el6                                                      glibc.x86_64 0:2.12-1.209.el6_9.1                                                glibc-common.x86_64 0:2.12-1.209.el6_9.1                                         glibc-devel.x86_64 0:2.12-1.209.el6_9.1                                          glibc-headers.x86_64 0:2.12-1.209.el6_9.1                                        gmp.x86_64 0:4.3.1-12.el6                                                        gnupg2.x86_64 0:2.0.14-8.el6                                                     gpgme.x86_64 0:1.1.8-3.el6                                                       gpm-libs.x86_64 0:1.20.6-12.el6                                                  grep.x86_64 0:2.20-6.el6                                                         groff.x86_64 0:1.18.1.4-21.el6                                                   gzip.x86_64 0:1.3.12-24.el6                                                      hwdata.noarch 0:0.233-18.1.el6                                                   info.x86_64 0:4.13a-8.el6                                                        initscripts.x86_64 0:9.03.58-1.el6.centos                                        iproute.x86_64 0:2.6.32-54.el6                                                   iptables.x86_64 0:1.4.7-16.el6                                                   iputils.x86_64 0:20071127-24.el6                                                 kernel-headers.x86_64 0:2.6.32-696.1.1.el6                                       keyutils-libs.x86_64 0:1.4-5.el6                                                 krb5-libs.x86_64 0:1.10.3-65.el6                                                 less.x86_64 0:436-13.el6                                                         libX11.x86_64 0:1.6.4-3.el6                                                      libX11-common.noarch 0:1.6.4-3.el6                                               libX11-devel.x86_64 0:1.6.4-3.el6                                                libXau.x86_64 0:1.0.6-4.el6                                                      libXau-devel.x86_64 0:1.0.6-4.el6                                                libXext.x86_64 0:1.3.3-1.el6                                                     libXfixes.x86_64 0:5.0.3-1.el6                                                   libXfixes-devel.x86_64 0:5.0.3-1.el6                                             libXi.x86_64 0:1.7.8-1.el6                                                       libXrender.x86_64 0:0.9.10-1.el6                                                 libXtst.x86_64 0:1.2.3-1.el6                                                     libacl.x86_64 0:2.2.49-7.el6                                                     libattr.x86_64 0:2.4.44-7.el6                                                    libblkid.x86_64 0:2.17.2-12.28.el6                                               libcap.x86_64 0:2.16-5.5.el6                                                     libcom_err.x86_64 0:1.41.12-23.el6                                               libcurl.x86_64 0:7.19.7-53.el6_9                                                 libdrm.x86_64 0:2.4.65-2.el6                                                     libffi.x86_64 0:3.0.5-3.2.el6                                                    libgcc.x86_64 0:4.4.7-18.el6                                                     libgcrypt.x86_64 0:1.4.5-12.el6_8                                                libgomp.x86_64 0:4.4.7-18.el6                                                    libgpg-error.x86_64 0:1.7-4.el6                                                  libidn.x86_64 0:1.18-2.el6                                                       libjpeg-turbo.x86_64 0:1.2.1-3.el6_5                                             libnih.x86_64 0:1.0.1-7.el6                                                      libpciaccess.x86_64 0:0.13.4-1.el6                                               libpng.x86_64 2:1.2.49-2.el6_7                                                   libselinux.x86_64 0:2.0.94-7.el6                                                 libselinux-utils.x86_64 0:2.0.94-7.el6                                           libsemanage.x86_64 0:2.0.43-5.1.el6                                              libsepol.x86_64 0:2.0.41-4.el6                                                   libssh2.x86_64 0:1.4.2-2.el6_7.1                                                 libstdc++.x86_64 0:4.4.7-18.el6                                                  libstdc++-devel.x86_64 0:4.4.7-18.el6                                            libtasn1.x86_64 0:2.3-6.el6_5                                                    libtiff.x86_64 0:3.9.4-21.el6_8                                                  libusb.x86_64 0:0.1.12-23.el6                                                    libutempter.x86_64 0:1.1.5-4.1.el6                                               libuuid.x86_64 0:2.17.2-12.28.el6                                                libxcb.x86_64 0:1.12-4.el6                                                       libxcb-devel.x86_64 0:1.12-4.el6                                                 libxml2.x86_64 0:2.7.6-21.el6_8.1                                                lua.x86_64 0:5.1.4-4.1.el6                                                       m4.x86_64 0:1.4.13-5.el6                                                         mailcap.noarch 0:2.1.31-2.el6                                                    man.x86_64 0:1.6f-39.el6                                                         mingetty.x86_64 0:1.08-5.el6                                                     module-init-tools.x86_64 0:3.9-26.el6                                            mpfr.x86_64 0:2.4.1-6.el6                                                        ncurses.x86_64 0:5.7-4.20090207.el6                                              ncurses-base.x86_64 0:5.7-4.20090207.el6                                         ncurses-libs.x86_64 0:5.7-4.20090207.el6                                         net-tools.x86_64 0:1.60-114.el6                                                  nspr.x86_64 0:4.13.1-1.el6                                                       nss.x86_64 0:3.28.4-1.el6_9                                                      nss-softokn.x86_64 0:3.14.3-23.3.el6_8                                           nss-softokn-freebl.x86_64 0:3.14.3-23.3.el6_8                                    nss-sysinit.x86_64 0:3.28.4-1.el6_9                                              nss-tools.x86_64 0:3.28.4-1.el6_9                                                nss-util.x86_64 0:3.28.4-1.el6_9                                                 openldap.x86_64 0:2.4.40-16.el6                                                  openssl.x86_64 0:1.0.1e-57.el6                                                   p11-kit.x86_64 0:0.18.5-2.el6_5.2                                                p11-kit-trust.x86_64 0:0.18.5-2.el6_5.2                                          pam.x86_64 0:1.1.1-24.el6                                                        patch.x86_64 0:2.6-6.el6                                                         pcre.x86_64 0:7.8-7.el6                                                          perl.x86_64 4:5.10.1-144.el6                                                     perl-Compress-Raw-Zlib.x86_64 1:2.021-144.el6                                    perl-Compress-Zlib.x86_64 0:2.021-144.el6                                        perl-HTML-Parser.x86_64 0:3.64-2.el6                                             perl-HTML-Tagset.noarch 0:3.20-4.el6                                             perl-IO-Compress-Base.x86_64 0:2.021-144.el6                                     perl-IO-Compress-Zlib.x86_64 0:2.021-144.el6                                     perl-Module-Pluggable.x86_64 1:3.90-144.el6                                      perl-Pod-Escapes.x86_64 1:1.04-144.el6                                           perl-Pod-Simple.x86_64 1:3.13-144.el6                                            perl-URI.noarch 0:1.40-2.el6                                                     perl-libs.x86_64 4:5.10.1-144.el6                                                perl-libwww-perl.noarch 0:5.833-5.el6                                            perl-version.x86_64 3:0.77-144.el6                                               pinentry.x86_64 0:0.7.6-8.el6                                                    pkgconfig.x86_64 1:0.23-9.1.el6                                                  plymouth.x86_64 0:0.8.3-29.el6.centos                                            plymouth-core-libs.x86_64 0:0.8.3-29.el6.centos                                  plymouth-scripts.x86_64 0:0.8.3-29.el6.centos                                    policycoreutils.x86_64 0:2.0.83-30.1.el6_8                                       popt.x86_64 0:1.13-7.el6                                                         ppl.x86_64 0:0.10.2-11.el6                                                       procps.x86_64 0:3.2.8-45.el6                                                     psmisc.x86_64 0:22.6-24.el6                                                      pth.x86_64 0:2.0.7-9.3.el6                                                       pygpgme.x86_64 0:0.1-18.20090824bzr68.el6                                        python.x86_64 0:2.6.6-66.el6_8                                                   python-iniparse.noarch 0:0.3.1-2.1.el6                                           python-libs.x86_64 0:2.6.6-66.el6_8                                              python-pycurl.x86_64 0:7.19.0-9.el6                                              python-urlgrabber.noarch 0:3.9.1-11.el6                                          readline.x86_64 0:6.0-4.el6                                                      redhat-logos.noarch 0:60.0.14-12.el6.centos                                      redhat-rpm-config.noarch 0:9.0.3-51.el6.centos                                   rpm.x86_64 0:4.8.0-55.el6                                                        rpm-libs.x86_64 0:4.8.0-55.el6                                                   rpm-python.x86_64 0:4.8.0-55.el6                                                 rpmdevtools.noarch 0:7.5-2.el6                                                   sed.x86_64 0:4.2.1-10.el6                                                        setup.noarch 0:2.8.14-23.el6                                                     shadow-utils.x86_64 2:4.1.5.1-5.el6                                              shared-mime-info.x86_64 0:0.70-6.el6                                             slang.x86_64 0:2.2.1-1.el6                                                       sqlite.x86_64 0:3.6.20-1.el6_7.2                                                 sysvinit-tools.x86_64 0:2.87-6.dsf.el6                                           tzdata.noarch 0:2017b-1.el6                                                      udev.x86_64 0:147-2.73.el6_8.2                                                   unzip.x86_64 0:6.0-5.el6                                                         upstart.x86_64 0:0.6.5-16.el6                                                    ustr.x86_64 0:1.0.4-9.1.el6                                                      util-linux-ng.x86_64 0:2.17.2-12.28.el6                                          vim-minimal.x86_64 2:7.4.629-5.el6_8.1                                           wget.x86_64 0:1.12-10.el6                                                        xorg-x11-proto-devel.noarch 0:7.7-14.el6                                         xz.x86_64 0:4.999.9-0.5.beta.20091007git.el6                                     xz-libs.x86_64 0:4.999.9-0.5.beta.20091007git.el6                                xz-lzma-compat.x86_64 0:4.999.9-0.5.beta.20091007git.el6                         yum-metadata-parser.x86_64 0:1.1.2-16.el6                                        yum-plugin-fastestmirror.noarch 0:1.1.30-40.el6                                  zlib.x86_64 0:1.2.3-29.el6                                                       zlib-devel.x86_64 0:1.2.3-29.el6                                               

Cara Install Virtualbox di CentOS 6.x

[root@centos ~]# cd /usr/src/kernels/
[root@centos kernels]# ls
2.6.32-504.el6.i686
[root@centos kernels]# export KERN_DIR=/usr/src/kernels/2.6.32-504.el6.i686
[root@centos kernels]# service vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Removing old VirtualBox pci kernel module [ OK ]
Removing old VirtualBox netadp kernel module [ OK ]
Removing old VirtualBox netflt kernel module [ OK ]
Removing old VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel modules [ OK ]
Starting VirtualBox kernel modules [ OK ]
[root@centos kernels]#

yum update kernel, Cara Update Kernel di Centos

[root@centos ~]# yum update kernel Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Update Process Loading mirror speeds from cached hostfile  * base: mirror.vastspace.net  * epel: ftp.cuhk.edu.hk  * extras: mirror.vodien.com  * updates: centos.mirror.secureax.com Resolving Dependencies --> Running transaction check ---> Package kernel.i686 0:2.6.32-504.3.3.el6 will be installed --> Processing Dependency: kernel-firmware >= 2.6.32-504.3.3.el6 for package: kernel-2.6.32-504.3.3.el6.i686 --> Running transaction check ---> Package kernel-firmware.noarch 0:2.6.32-504.el6 will be updated ---> Package kernel-firmware.noarch 0:2.6.32-504.3.3.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================  Package              Arch        Version                    Repository    Size ================================================================================ Installing:  kernel               i686        2.6.32-504.3.3.el6         updates       27 M Updating for dependencies:  kernel-firmware      noarch      2.6.32-504.3.3.el6         updates       14 M Transaction Summary ================================================================================ Install       1 Package(s) Upgrade       1 Package(s) Total download size: 41 M Is this ok [y/N]: y Downloading Packages: (1/2): kernel-2.6.32-504.3.3.el6.i686.rpm                |  27 MB     04:49      (2/2): kernel-firmware-2.6.32-504.3.3.el6.noarch.rpm     |  14 MB     05:13      -------------------------------------------------------------------------------- Total                                            69 kB/s |  41 MB     10:11      Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction   Updating   : kernel-firmware-2.6.32-504.3.3.el6.noarch                    1/3    Installing : kernel-2.6.32-504.3.3.el6.i686                               2/3    Cleanup    : kernel-firmware-2.6.32-504.el6.noarch                        3/3    Verifying  : kernel-2.6.32-504.3.3.el6.i686                               1/3    Verifying  : kernel-firmware-2.6.32-504.3.3.el6.noarch                    2/3    Verifying  : kernel-firmware-2.6.32-504.el6.noarch                        3/3  Installed:   kernel.i686 0:2.6.32-504.3.3.el6                                               Dependency Updated:   kernel-firmware.noarch 0:2.6.32-504.3.3.el6                                    Complete! [root@centos ~]#