Aklımda Kalası Kelimeler

* давайте работать вместе
* Zarf ve Mazruf, Zerafet(xHoyratlık) ile aynı kökten(za-ra-fe) gelir
* Bedesten
* Suç subuta ermiştir - Suç sabit olmuştur
Centos etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
Centos etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

26 Ocak 2015 Pazartesi

Redis, Centos 6.5 & 7

Redis rpm paketleri: http://www.rpmfind.net/linux/rpm2html/search.php?query=redis
2.6 dan yüksek Redis sürümü için: https://robotsystematic.com/redis-higher-than-2-6-in-centos
Ref: http://sharadchhetri.com/2014/10/04/install-redis-server-centos-7-rhel-7/
original: https://troubleshootguru.wordpress.com/2014/11/19/how-to-install-redis-on-a-centos-6-5-centos-7-0-server-2/
Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

How To Install Redis on Centos 7
# wget -r –no-parent -A ‘epel-release-*.rpm’ http://dl.fedoraproject.org/pub/epel/7/x86_64/e/
# rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-*.rpm

It will create two epel’s repo file inside /etc/yum.repos.d
These are –
1. epel.repo
2.epel-testing.repo
Install Redis with Yum
# yum install redis php-pecl-redis

Enable Redis service to start on boot
# systemctl enable redis-server.service

Disable Redis service from start on boot
# systemctl disable redis-server.service

Start/Stop/Restart Redis
# systemctl start redis-server.service
# systemctl stop redis-server.service
# systemctl restart redis-server.service

Check if Redis is Running
#systemctl is-active redis-server.service

How To Install Redis on Centos 6.5
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
# yum install redis php-pecl-redis
# service redis start
# chkconfig redis on

Now verify its set to start at boot
# chkconfig –list redis
redis 0:off 1:off 2:on 3:on 4:on 5:on 6:off

To make sure redis is working, run command “redis-cli ping” from command line. If you get result “PONG”, that shows redis is working.
Now install redis PHP extension, using following command.
# pecl install redis

Now open php.ini ( /usr/local/lib/php.ini on cPanel servers ) file and add the following line to it
extension=redis.so
Now restart Apache to apply the changes to php.ini file.
Now that was pretty simple, but lets say you want to add a second instance to your server on a different port

Add a second instance of Redis
# cp redis.conf redis2.conf && cp /etc/init.d/redis /etc/init.d/redis2

Change
# vim /etc/init.d/redis2
pidfile=”/var/run/redis/redis.pid” to pidfile=”/var/run/redis/redis2.pid”
REDIS_CONFIG=”/etc/redis.conf” to REDIS_CONFIG=”/etc/redis2.conf”

Change
# vim /etc/redis2.conf
port 6379 to port 6380
unixsocket /tmp/redis.sock to unixsocket /tmp/redis2.sock

# service redis2 start

To install a web interface for redis
# cd /downloads/
# git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git
# cd phpRedisAdmin/includes
# cp config.sample.inc.php config.inc.php
Make sure the setting are correct
# vim config.inc.php
Lets add the RedisAdmin configuration file to Apache
# vim /etc/httpd/conf.d/redisadmin.conf
Now add the following
#
# Web Interface for RedisAdmin
#

Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from

Alias /redisAdmin /downloads/phpRedisAdmin
Alias /redisadmin /downloads/phpRedisAdmin
View your RedisAdmin Section

http://example.tld/redisadmin

Create a Bash Script to make sure Redis is Running
vim /scripts/redis-check.sh
Add the following for the above installation

#!/bin/bash
PS=$(which ps)
GREP=$(which grep)
WHEN=$(date +”%Y-%m-%d-%H:%M:%S”)
if ! $PS aux | $GREP “redis.conf” | $GREP -v grep 2>&1 > /dev/null; then
/etc/init.d/redis restart
echo ‘Restarted Redis @’ $WHEN
fi
#Check Second instance
if ! $PS aux | $GREP “redis2.conf” | $GREP -v grep 2>&1 > /dev/null; then
/etc/init.d/redis2 restart
echo ‘Restarted Redis2 @’ $WHEN
fi
Make the Script executable

# chmod +x /scripts/redis-check.sh
Add your script to your cron to run every 3 minutes or so

# vim /var/spool/cron/root
*/3 * * * * /bin/bash /script/redis-check.sh >> /var/log/redis-check.log

22 Ocak 2015 Perşembe

Centos'a Google Chrome yüklemek

Ref: http://tecadmin.net/install-google-chrome-in-centos-rhel-and-fedora/
// Kurulumu yapacak script'i indirelim
# wget http://chrome.richardlloyd.org.uk/install_chrome.sh
// Çalıştırılabilir hale getirelim
# chmod +x install_chrome.sh
// Scripti çalıştırarak yüklemeyi yapalım
# sh install_chrome.sh
// Google'ı çalıştıralım
# google-chrome

Tüm gerçekleşen çıktılar:
[root@localhost node-ihale]# wget http://chrome.richardlloyd.org.uk/install_chrome.sh
--2015-01-22 11:16:31--  http://chrome.richardlloyd.org.uk/install_chrome.sh
Resolving chrome.richardlloyd.org.uk... 193.110.246.53
Connecting to chrome.richardlloyd.org.uk|193.110.246.53|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 76261 (74K) [application/x-sh]
Saving to: “install_chrome.sh”

100%[======================================>] 76,261       266K/s   in 0.3s    

2015-01-22 11:16:32 (266 KB/s) - “install_chrome.sh” saved [76261/76261]

[root@localhost node-ihale]# chmod +x install_chrome.sh 
[root@localhost node-ihale]# sh install_chrome.sh 
Google Chrome Installer 6.10 on the x86_64 platform
(C) Richard K. Lloyd 2015 

*** Creating temporary directory /tmp/chrome_install ...
*** Changing working directory to /tmp/chrome_install ...
*** Checking for an update to install_chrome.sh ...

*** Downloading version.dat (please wait) ...

--2015-01-22 11:16:54--  http://chrome.richardlloyd.org.uk/version.dat
Resolving chrome.richardlloyd.org.uk... 193.110.246.53
Connecting to chrome.richardlloyd.org.uk|193.110.246.53|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5 [text/plain]
Saving to: “version.dat”

100%[======================================>] 5           --.-K/s   in 0s      

2015-01-22 11:16:54 (728 KB/s) - “version.dat” saved [5/5]

*** install_chrome.sh is already the latest version (6.10) - continuing ...
The following packages and their dependencies need downloading/installing:
 rpmdevtools

Do you want to download/install these packages and dependencies (y/n) ?y

*** Downloading/installing  rpmdevtools (please wait) ...

Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.dgn.net.tr
 * extras: mirror.dgn.net.tr
 * updates: mirror.dgn.net.tr
base                                                     | 3.7 kB     00:00     
extras                                                   | 3.4 kB     00:00     
nginx                                                    | 2.9 kB     00:00     
nodesource                                               | 2.5 kB     00:00     
updates                                                  | 3.4 kB     00:00     
Resolving Dependencies
--> Running transaction check
---> Package rpmdevtools.noarch 0:7.5-2.el6 will be installed
--> Processing Dependency: fakeroot for package: rpmdevtools-7.5-2.el6.noarch
--> Running transaction check
---> Package fakeroot.x86_64 0:1.12.2-22.2.el6 will be installed
--> Processing Dependency: fakeroot-libs = 1.12.2-22.2.el6 for package: fakeroot-1.12.2-22.2.el6.x86_64
--> Running transaction check
---> Package fakeroot-libs.x86_64 0:1.12.2-22.2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch          Version                   Repository   Size
================================================================================
Installing:
 rpmdevtools          noarch        7.5-2.el6                 base        109 k
Installing for dependencies:
 fakeroot             x86_64        1.12.2-22.2.el6           base         73 k
 fakeroot-libs        x86_64        1.12.2-22.2.el6           base         23 k

Transaction Summary
================================================================================
Install       3 Package(s)

Total download size: 205 k
Installed size: 465 k
Downloading Packages:
(1/3): fakeroot-1.12.2-22.2.el6.x86_64.rpm               |  73 kB     00:00     
(2/3): fakeroot-libs-1.12.2-22.2.el6.x86_64.rpm          |  23 kB     00:00     
(3/3): rpmdevtools-7.5-2.el6.noarch.rpm                  | 109 kB     00:00     
--------------------------------------------------------------------------------
Total                                           706 kB/s | 205 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : fakeroot-libs-1.12.2-22.2.el6.x86_64                         1/3 
  Installing : fakeroot-1.12.2-22.2.el6.x86_64                              2/3 
  Installing : rpmdevtools-7.5-2.el6.noarch                                 3/3 
  Verifying  : fakeroot-1.12.2-22.2.el6.x86_64                              1/3 
  Verifying  : fakeroot-libs-1.12.2-22.2.el6.x86_64                         2/3 
  Verifying  : rpmdevtools-7.5-2.el6.noarch                                 3/3 

Installed:
  rpmdevtools.noarch 0:7.5-2.el6                                                

Dependency Installed:
  fakeroot.x86_64 0:1.12.2-22.2.el6    fakeroot-libs.x86_64 0:1.12.2-22.2.el6   

Complete!
*** Determining latest Google Chrome version number (please wait) ...

*** Downloading chrome_versions.csv (please wait) ...

--2015-01-22 11:17:29--  http://omahaproxy.appspot.com/all?os=linux&channel=stable
Resolving omahaproxy.appspot.com... 173.194.65.141, 2a00:1450:4013:c00::8d
Connecting to omahaproxy.appspot.com|173.194.65.141|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: “chrome_versions.csv”

    [ <=>                                   ] 344         --.-K/s   in 0s      

2015-01-22 11:17:29 (48.2 MB/s) - “chrome_versions.csv” saved [344]

*** Latest google-chrome-stable version number is 40.0.2214.91 ...

*** Downloading google-chrome-stable_current_x86_64.rpm (please wait) ...

--2015-01-22 11:17:29--  https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
Resolving dl.google.com... 173.194.113.71, 173.194.113.73, 173.194.113.65, ...
Connecting to dl.google.com|173.194.113.71|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 62159770 (59M) [application/x-redhat-package-manager]
Saving to: “google-chrome-stable_current_x86_64.rpm”

100%[======================================>] 62,159,770  1.19M/s   in 66s     

2015-01-22 11:18:35 (924 KB/s) - “google-chrome-stable_current_x86_64.rpm” saved [62159770/62159770]

warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
*** Google Chrome 40.0.2214.91 downloaded successfully ...

*** Installing Google Chrome 40.0.2214.91 RPM (please wait) ...

warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
Preparing...                ########################################### [100%]
   1:google-chrome-stable   ########################################### [100%]

*** Google Chrome 40.0.2214.91 was installed successfully ...


*** Downloading libstdc++-4.6.3-2.fc15.x86_64.rpm (please wait) ...

--2015-01-22 11:19:10--  http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/15/x86_64/libstdc++-4.6.3-2.fc15.x86_64.rpm
Resolving archives.fedoraproject.org... 209.132.181.23, 209.132.181.25, 209.132.181.27, ...
Connecting to archives.fedoraproject.org|209.132.181.23|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 295501 (289K) [application/x-rpm]
Saving to: “libstdc++-4.6.3-2.fc15.x86_64.rpm”

100%[===================================================================================================================================================================================================>] 295,501      200K/s   in 1.4s    

2015-01-22 11:19:13 (200 KB/s) - “libstdc++-4.6.3-2.fc15.x86_64.rpm” saved [295501/295501]

*** Installing /opt/google/chrome/lib/libstdc++.so.6.orig ...
changing security context of `/opt/google/chrome/lib/libstdc++.so.6.orig'

*** Downloading glibc-2.14.1-6.x86_64.rpm (please wait) ...

--2015-01-22 11:19:13--  http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/15/x86_64/glibc-2.14.1-6.x86_64.rpm
Resolving archives.fedoraproject.org... 209.132.181.23, 209.132.181.25, 209.132.181.27, ...
Connecting to archives.fedoraproject.org|209.132.181.23|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3504537 (3.3M) [application/x-rpm]
Saving to: “glibc-2.14.1-6.x86_64.rpm”

100%[===================================================================================================================================================================================================>] 3,504,537    762K/s   in 5.0s    

2015-01-22 11:19:19 (680 KB/s) - “glibc-2.14.1-6.x86_64.rpm” saved [3504537/3504537]

*** Installing /opt/google/chrome/lib/libc.so.6.orig ...
changing security context of `/opt/google/chrome/lib/libc.so.6.orig'
*** Installing /opt/google/chrome/lib/ld-linux-x86-64.so.0.orig ...
changing security context of `/opt/google/chrome/lib/ld-linux-x86-64.so.0.orig'
*** Installing /opt/google/chrome/lib/libdl.so.2.orig ...
changing security context of `/opt/google/chrome/lib/libdl.so.2.orig'

*** Downloading gtk2-2.24.7-3.fc15.x86_64.rpm (please wait) ...

--2015-01-22 11:19:21--  http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/15/x86_64/gtk2-2.24.7-3.fc15.x86_64.rpm
Resolving archives.fedoraproject.org... 209.132.181.23, 209.132.181.25, 209.132.181.27, ...
Connecting to archives.fedoraproject.org|209.132.181.23|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3401761 (3.2M) [application/x-rpm]
Saving to: “gtk2-2.24.7-3.fc15.x86_64.rpm”

100%[===================================================================================================================================================================================================>] 3,401,761    390K/s   in 10s     

2015-01-22 11:19:31 (325 KB/s) - “gtk2-2.24.7-3.fc15.x86_64.rpm” saved [3401761/3401761]

*** Installing /opt/google/chrome/lib/libgdk-x11-2.0.so.0 ...
changing security context of `/opt/google/chrome/lib/libgdk-x11-2.0.so.0'
*** Installing /opt/google/chrome/lib/libgtk-x11-2.0.so.0 ...
changing security context of `/opt/google/chrome/lib/libgtk-x11-2.0.so.0'

*** Downloading glib2-2.28.8-1.fc15.x86_64.rpm (please wait) ...

--2015-01-22 11:19:35--  http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/15/x86_64/glib2-2.28.8-1.fc15.x86_64.rpm
Resolving archives.fedoraproject.org... 209.132.181.23, 209.132.181.25, 209.132.181.27, ...
Connecting to archives.fedoraproject.org|209.132.181.23|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1813252 (1.7M) [application/x-rpm]
Saving to: “glib2-2.28.8-1.fc15.x86_64.rpm”

100%[===================================================================================================================================================================================================>] 1,813,252    429K/s   in 4.1s    

2015-01-22 11:19:39 (429 KB/s) - “glib2-2.28.8-1.fc15.x86_64.rpm” saved [1813252/1813252]

*** Installing /opt/google/chrome/lib/libgio-2.0.so.0 ...
changing security context of `/opt/google/chrome/lib/libgio-2.0.so.0'
*** Installing /opt/google/chrome/lib/libglib-2.0.so.0 ...
changing security context of `/opt/google/chrome/lib/libglib-2.0.so.0'
*** Installing /opt/google/chrome/lib/libgobject-2.0.so.0 ...
changing security context of `/opt/google/chrome/lib/libgobject-2.0.so.0'

*** Downloading gdk-pixbuf2-2.23.3-2.fc15.x86_64.rpm (please wait) ...

--2015-01-22 11:19:41--  http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/15/x86_64/gdk-pixbuf2-2.23.3-2.fc15.x86_64.rpm
Resolving archives.fedoraproject.org... 209.132.181.23, 209.132.181.25, 209.132.181.27, ...
Connecting to archives.fedoraproject.org|209.132.181.23|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 508020 (496K) [application/x-rpm]
Saving to: “gdk-pixbuf2-2.23.3-2.fc15.x86_64.rpm”

100%[===================================================================================================================================================================================================>] 508,020      273K/s   in 1.8s    

2015-01-22 11:19:43 (273 KB/s) - “gdk-pixbuf2-2.23.3-2.fc15.x86_64.rpm” saved [508020/508020]

*** Installing /opt/google/chrome/lib/libgdk_pixbuf-2.0.so.0 ...
changing security context of `/opt/google/chrome/lib/libgdk_pixbuf-2.0.so.0'

*** Downloading libgnome-keyring-3.4.1-2.fc17.x86_64.rpm (please wait) ...

--2015-01-22 11:19:44--  http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/17/Fedora/x86_64/os/Packages/l//libgnome-keyring-3.4.1-2.fc17.x86_64.rpm
Resolving archives.fedoraproject.org... 209.132.181.23, 209.132.181.25, 209.132.181.27, ...
Connecting to archives.fedoraproject.org|209.132.181.23|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 103229 (101K) [application/x-rpm]
Saving to: “libgnome-keyring-3.4.1-2.fc17.x86_64.rpm”

100%[===================================================================================================================================================================================================>] 103,229      121K/s   in 0.8s    

2015-01-22 11:19:45 (121 KB/s) - “libgnome-keyring-3.4.1-2.fc17.x86_64.rpm” saved [103229/103229]

*** Installing /opt/google/chrome/lib/libgnome-keyring.so.0 ...
changing security context of `/opt/google/chrome/lib/libgnome-keyring.so.0'
*** Patching /opt/google/chrome/lib/libc.so.6 ...
changing security context of `/opt/google/chrome/lib/libc.so.6'
*** Patching /opt/google/chrome/lib/ld-linux-x86-64.so.0 ...
changing security context of `/opt/google/chrome/lib/ld-linux-x86-64.so.0'
*** Patching /opt/google/chrome/lib/libstdc++.so.6 ...
changing security context of `/opt/google/chrome/lib/libstdc++.so.6'
*** Patching /opt/google/chrome/lib/libdl.so.2 ...
changing security context of `/opt/google/chrome/lib/libdl.so.2'
changing security context of `/opt/google/chrome/modify_wrapper'

*** Created /opt/google/chrome/modify_wrapper sucessfully ...

changing security context of `/opt/google/chrome/lib/unset_var.so'

*** Compiled/installed /opt/google/chrome/lib/unset_var.so ...


*** Building /tmp/chrome_install/chrome-deps-stable-2.10-1.x86_64.rpm ...

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.6tPdvY
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '[' /root/rpmbuild/BUILDROOT/chrome-deps-stable-2.10-1.x86_64 '!=' / ']'
+ rm -rf /root/rpmbuild/BUILDROOT/chrome-deps-stable-2.10-1.x86_64
++ dirname /root/rpmbuild/BUILDROOT/chrome-deps-stable-2.10-1.x86_64
+ mkdir -p /root/rpmbuild/BUILDROOT
+ mkdir /root/rpmbuild/BUILDROOT/chrome-deps-stable-2.10-1.x86_64
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /root/rpmbuild/BUILDROOT/chrome-deps-stable-2.10-1.x86_64
+ mkdir -p -m 755 /root/rpmbuild/BUILDROOT/chrome-deps-stable-2.10-1.x86_64/opt/google/chrome/lib
+ cp -pf /opt/google/chrome/modify_wrapper /root/rpmbuild/BUILDROOT/chrome-deps-stable-2.10-1.x86_64/opt/google/chrome
+ cp -pf /opt/google/chrome/lib/ld-linux-x86-64.so.0 /opt/google/chrome/lib/libc.so.6 /opt/google/chrome/lib/libdl.so.2 /opt/google/chrome/lib/libgdk-x11-2.0.so.0 /opt/google/chrome/lib/libgdk_pixbuf-2.0.so.0 /opt/google/chrome/lib/libgio-2.0.so.0 /opt/google/chrome/lib/libglib-2.0.so.0 /opt/google/chrome/lib/libgnome-keyring.so.0 /opt/google/chrome/lib/libgobject-2.0.so.0 /opt/google/chrome/lib/libgtk-x11-2.0.so.0 /opt/google/chrome/lib/libstdc++.so.6 /opt/google/chrome/lib/unset_var.so /root/rpmbuild/BUILDROOT/chrome-deps-stable-2.10-1.x86_64/opt/google/chrome/lib/
+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: chrome-deps-stable-2.10-1.x86_64
Provides: ld-linux-x86-64.so.0()(64bit) ld-linux-x86-64.so.0(GLIBC_2.2.5)(64bit) ld-linux-x86-64.so.0(GLIBC_2.3)(64bit) ld-linux-x86-64.so.0(GLIBC_2.4)(64bit) ld-linux-x86-64.so.0(GLIBC_PRIVATE)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.10)(64bit) libc.so.6(GLIBC_2.11)(64bit) libc.so.6(GLIBC_2.12)(64bit) libc.so.6(GLIBC_2.13)(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.2.6)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.5)(64bit) libc.so.6(GLIBC_2.6)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.8)(64bit) libc.so.6(GLIBC_2.9)(64bit) libc.so.6(GLIBC_PRIVATE)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libdl.so.2(GLIBC_2.3.3)(64bit) libdl.so.2(GLIBC_2.3.4)(64bit) libdl.so.2(GLIBC_PRIVATE)(64bit) libgdk-x11-2.0.so.0()(64bit) libgdk_pixbuf-2.0.so.0()(64bit) libgio-2.0.so.0()(64bit) libglib-2.0.so.0()(64bit) libgnome-keyring.so.0()(64bit) libgobject-2.0.so.0()(64bit) libgtk-x11-2.0.so.0()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.1)(64bit) libstdc++.so.6(CXXABI_1.3.2)(64bit) libstdc++.so.6(CXXABI_1.3.3)(64bit) libstdc++.so.6(CXXABI_1.3.4)(64bit) libstdc++.so.6(CXXABI_1.3.5)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.1)(64bit) libstdc++.so.6(GLIBCXX_3.4.10)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.12)(64bit) libstdc++.so.6(GLIBCXX_3.4.13)(64bit) libstdc++.so.6(GLIBCXX_3.4.14)(64bit) libstdc++.so.6(GLIBCXX_3.4.15)(64bit) libstdc++.so.6(GLIBCXX_3.4.16)(64bit) libstdc++.so.6(GLIBCXX_3.4.2)(64bit) libstdc++.so.6(GLIBCXX_3.4.3)(64bit) libstdc++.so.6(GLIBCXX_3.4.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.5)(64bit) libstdc++.so.6(GLIBCXX_3.4.6)(64bit) libstdc++.so.6(GLIBCXX_3.4.7)(64bit) libstdc++.so.6(GLIBCXX_3.4.8)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) unset_var.so()(64bit)
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires: /bin/bash ld-linux-x86-64.so.0()(64bit) ld-linux-x86-64.so.0(GLIBC_2.3)(64bit) ld-linux-x86-64.so.0(GLIBC_PRIVATE)(64bit) libX11.so.6()(64bit) libXcomposite.so.1()(64bit) libXcursor.so.1()(64bit) libXdamage.so.1()(64bit) libXext.so.6()(64bit) libXfixes.so.3()(64bit) libXi.so.6()(64bit) libXinerama.so.1()(64bit) libXrandr.so.2()(64bit) libXrender.so.1()(64bit) libatk-1.0.so.0()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.11)(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.5)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.8)(64bit) libc.so.6(GLIBC_2.9)(64bit) libc.so.6(GLIBC_PRIVATE)(64bit) libcairo.so.2()(64bit) libdbus-1.so.3()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libfontconfig.so.1()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libgcc_s.so.1(GCC_4.2.0)(64bit) libgcrypt.so.11()(64bit) libgcrypt.so.11(GCRYPT_1.2)(64bit) libgdk-x11-2.0.so.0()(64bit) libgdk_pixbuf-2.0.so.0()(64bit) libgio-2.0.so.0()(64bit) libglib-2.0.so.0()(64bit) libgmodule-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) libgthread-2.0.so.0()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libpango-1.0.so.0()(64bit) libpangocairo-1.0.so.0()(64bit) libpangoft2-1.0.so.0()(64bit) libpng12.so.0()(64bit) libpng12.so.0(PNG12_0)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libresolv.so.2()(64bit) libresolv.so.2(GLIBC_2.2.5)(64bit) librt.so.1()(64bit) librt.so.1(GLIBC_2.2.5)(64bit) libselinux.so.1()(64bit) libz.so.1()(64bit) libz.so.1(ZLIB_1.2.2)(64bit) rtld(GNU_HASH)
Obsoletes: chrome-deps
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/chrome-deps-stable-2.10-1.x86_64
Wrote: /root/rpmbuild/RPMS/x86_64/chrome-deps-stable-2.10-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.YxUbCB
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -rf /root/rpmbuild/BUILDROOT/chrome-deps-stable-2.10-1.x86_64
+ exit 0

*** Installing /tmp/chrome_install/chrome-deps-stable-2.10-1.x86_64.rpm ...

Preparing...                ########################################### [100%]
   1:chrome-deps-stable     ########################################### [100%]
changing security context of `/opt/google/chrome/lib'
*** /opt/google/chrome tree contains 100 files totalling 190 MB ...
*** /tmp/chrome_install tree contains 8 files totalling 72 MB ...

Google Chrome 40.0.2214.91 and Fedora 15/17 libs were installed successfully.
Please run the browser via the 'google-chrome' command as a non-root user.

To update Google Chrome, run "yum update google-chrome-stable" or
simply re-run this script with "./install_chrome.sh".

To uninstall Google Chrome and its dependencies added by this script,
run "yum remove google-chrome-stable chrome-deps-stable" or "./install_chrome.sh -u".

[root@localhost node-ihale]# 

21 Ocak 2015 Çarşamba

Centos üzerine NodeJs

İndirelim
curl -sL https://rpm.nodesource.com/setup | bash -
Yükleyelim
yum install -y nodejs
Versiyonumuz kaçmış?
[root@localhost Downloads]# node -v
v0.10.35
[root@localhost Downloads]# 

Ref: https://github.com/joyent/node/wiki/installing-node.js-via-package-manager

Uygulamamıza geçmeden önce uygulamamıza özel bir kullanıcı tanımlayalım ki sisteme erişim yetkileri verebilelim:




Ref: https://www.digitalocean.com/community/tutorials/how-to-deploy-node-js-applications-using-systemd-and-nginx

CentOS nginx kurulumu

Kurulumun nasılına buradan erişebilirsiniz.
/etc/yum.repos.d/nginx.repo dosya yolunu oluşturun ve içine aşağıdakini yazınki yum paket sistemi nginx'i bulabilsin.
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

[root@localhost ~]# yum install nginx
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.vit.com.tr
 * extras: mirror.vit.com.tr
 * updates: mirror.vit.com.tr
google-chrome                                            |  951 B     00:00     
nginx                                                    | 2.9 kB     00:00     
nginx/primary_db                                         |  34 kB     00:00     
updates                                                  | 3.4 kB     00:00     
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 0:1.6.2-1.el6.ngx will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch            Version                    Repository      Size
================================================================================
Installing:
 nginx          x86_64          1.6.2-1.el6.ngx            nginx          336 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 336 k
Installed size: 828 k
Is this ok [y/N]: y
Downloading Packages:
nginx-1.6.2-1.el6.ngx.x86_64.rpm                         | 336 kB     00:06     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : nginx-1.6.2-1.el6.ngx.x86_64                                 1/1 
----------------------------------------------------------------------

Thanks for using nginx!

Please find the official documentation for nginx here:
* http://nginx.org/en/docs/

Commercial subscriptions for nginx are available on:
* http://nginx.com/products/

----------------------------------------------------------------------
  Verifying  : nginx-1.6.2-1.el6.ngx.x86_64                                 1/1 

Installed:
  nginx.x86_64 0:1.6.2-1.el6.ngx                                                

Complete!
[root@localhost ~]# 

14 Ocak 2015 Çarşamba

Redmine, Git, GitLab ve OTRS entegrasyonunu CentOS üstüne kurarken

YUM komutları

Ref: http://yum.baseurl.org/wiki/YumCommands
Ben yum install ruby dediğimde kurulacak ruby versiyonunu önceden görmek istedim.Bunun için yum info ruby demem gerekiyormuş.
Centos'a MYSQL kurulumunda:
www.rackspace.com/knowledge_center/article/installing-mysql-server-on-centos

Mysql içinde işlemler yapabilmek için:
http://www.cyberciti.biz/faq/mysql-command-to-show-list-of-databases-on-server/

charlock_holmes kurulumunda gcc++ hatasını gidermek için aşağıdaki komutu kullanın(http://superuser.com/a/590810):
yum install gcc-c++

Gitlab ile ilişkili bundle kurulumlarında mysql.h hatasını gidermek için(http://stackoverflow.com/a/10968675/104085):
yum install mysql-devel


Apache kurarken:
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-6

BASH, SH, KSH gibi shell'lerin tablosu
http://www.unix.com/answers-to-frequently-asked-questions/12274-difference-between-ksh-bash-different-shells.html
/bin/bash
       The bash executable
/etc/profile
       The systemwide initialization file, executed for login shells
~/.bash_profile
       The personal initialization file, executed for login shells
~/.bashrc
       The individual per-interactive-shell startup file
~/.bash_logout
       The individual login shell cleanup file, executed when a login shell exits
~/.inputrc
       Individual readline initialization file


MYSQL kurulumu

sudo yum install mysql-server
sudo /sbin/service mysqld start


Ruby yükleme zamanı. bash: gem: command not found

Ref: http://sharadchhetri.com/2014/01/12/how-to-easily-install-ruby-2-1-0-in-centos-and-rhel/
Önce /etc/profile.d/ dizinine gidelim ve ls ile rvm.sh var mı bakalım.
Yoksa:
[root@localhost profile.d]# curl -L get.rvm.io | bash -s stable
Tekrar ls ile baktığımızda ruby kurmayı kolaylaştıran rvm.sh script dosyasını göreceğiz. Eğer ssl keyi yüklemede sorun varsa
[root@localhost profile.d]# curl -sSL https://rvm.io/mpapis.asc | gpg2 --import
kullanarak ssl sertifikasını centos içine yükleyebilirsiniz. Yabancılık çekmeyin diye sertifika aşağıdaki gibidir.
[root@localhost Downloads]# curl -sSL https://rvm.io/mpapis.asc 
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2

mQINBFRQA8EBEADrLHxW4807EJMzDjhrR5+FRy5/3616nyLlbWFTLnS1/i514L7Z
LVzbho4eZWjErRWqT1mr+E7dr/c8Ei5J8kUMqm5MoSkCoc5Y7Gp0jKhfDF4Megpd
X2ZKw7VG+4GZU9gxbm+6ymHeDAFRfQjUoHzCZsdsgnhi1C58kMoY39dFidlk24AG
E7y8WEg42yzSyJFjK5+qdGuKTBK4UmYM3uxHbxZgBLZ1PQ9DhsToauTqQSJEFzC+
r4qQeO6CeZAUEhgCt3HnmKE8hdARQelNRICrQc/Gpd3c3Wcpi3zj61cRqTCDBtNJ
h66bN+b6MilfT1S+9YMqLACXIWRcXPPUUWanmleguzGfngRjr/qf2PF6g2HYsp40
4M3CE0JX5O5iD4A81b5duuhIzZhJu1LFyn0uPX/zHlEwo36cQF3ElbsKyX6woXpx
hbHf67y6oQdSivhJvshJamRHxgi+bU6kkiiY0E8L5/8h309TVpd0wXfYfMPeE+V6
GsLjbxlU2bYrVxocREZpjCzqKBCmbZZxAd9eQPl8dYAs7kpxh8v3N9PEs0TRH2rh
KYjhKE++G/XuFOc6lm2gE5SnmwcDdJlIQm8YhW2LF/tTmQjAnxu4ILeWHwufhubv
BWn2UkdkGitrKEUmk9z24BMRKdPy0aALblvLCtri+2mf7ZaP9Stkdr/7yQARAQAB
tC1NaWNoYWwgUGFwaXMgKFJWTSBzaWduaW5nKSA8bXBhcGlzQGdtYWlsLmNvbT6J
AjkEEwECACMFAlRQA8ECGwMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAKCRA4
BLuC053A43HpD/9jf4DoYEu4adwJXJFSlUZMLZc7yNKwa2zsgBLZAzHuXc1lDDaJ
H+1hp7huxlq65EwmBJ5I8NgndBf42C0AYDXVVTQp6EW4tfnaW7zZgOcKZYp8Gu2G
HFIUPX28hm6VFJZCTo66yMVq+2a8GHhN/KgPbCd+eKIAzMWK859IYQgpXXqPgB3V
ERTGO34pBbz5GZ3BuYZvHo6Dp7Nb1RTaRdqCWXGabWz23+Gdni3K6ohNF87io7EK
SNcyzn81qG5oiYNwDMXt8T8nIIagUk7accQ6fw75FpFbZaR+nbOD7v88us40f6K9
WYV6qsOKAXygeTT63jLLLcLqe/uKRmKCO8fitIav8MHEtNOeQeQkG0O9YUCRpZvh
PlUbOhFO6iShs/AqPxIel33A65LjRpcxYNzbdgfnmdf5KEd3Uc8yafDIdSYrsSsS
...
pUSXUPl2O7qTbPAstIPT0+PstzNxcsgEzmroB7M7tTgKug==
=czPa
-----END PGP PUBLIC KEY BLOCK-----
Bu sertifikayı içeri alma işine bakalım:
[root@localhost Downloads]# curl -sSL https://rvm.io/mpapis.asc | gpg2 --import
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key D39DC0E3: public key "Michal Papis (RVM signing) " imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
[root@localhost Downloads]# 
rvm Yüklememiz tamamlanmış mı diye kontrol etmek için which rvm diyelim ve eğer aşağıdaki gibiyse bu iş tamamdır demek:
[root@localhost ~]# which rvm
/usr/local/rvm/bin/rvm
[root@localhost ~]# 
Şimdi rvm'nin gerekliliklerini yüklemesi için şunu çalıştıralım:
[root@localhost ~]# rvm requirements

Bende yüklü olmadığını tespit ettiklerini yükledi ve şu sonuç çıktı:
Checking requirements for centos.
Installing requirements for centos.
Installing required packages: libyaml-devel, readline-devel, zlib-devel, libffi-devel, openssl-devel, sqlite-devel............
Requirements installation successful.

Şimdi ruby 2.1.0 sürümünü yüklemek için şunu çalıştıralım:
[root@localhost ~]# rvm install 2.1.0

Bendeki sonucu:
[root@localhost ~]# rvm install 2.1.0
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/centos/6/x86_64/ruby-2.1.0.tar.bz2
Checking requirements for centos.
Requirements installation successful.
ruby-2.1.0 - #configure
ruby-2.1.0 - #download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20.1M  100 20.1M    0     0   805k      0  0:00:25  0:00:25 --:--:-- 1129k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.1.0 - #validate archive
ruby-2.1.0 - #extract
ruby-2.1.0 - #validate binary
ruby-2.1.0 - #setup
ruby-2.1.0 - #gemset created /usr/local/rvm/gems/ruby-2.1.0@global
ruby-2.1.0 - #importing gemset /usr/local/rvm/gemsets/global.gems................................................
ruby-2.1.0 - #generating global wrappers........
ruby-2.1.0 - #gemset created /usr/local/rvm/gems/ruby-2.1.0
ruby-2.1.0 - #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.1.0 - #generating default wrappers........
[root@localhost ~]# 

Tüm sistemde varsayılan olarak kullanılsın diye:
[root@localhost ~]#  rvm use 2.1.0 --default
Using /usr/local/rvm/gems/ruby-2.1.0
[root@localhost ~]# 

Ve son kontrolümüz, ruby'nin hangi versiyonu kuruldu olacak ve bize 2.1.0 diye dönecek:
[root@localhost ~]# ruby -v
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
[root@localhost ~]# 

Rubygem ne durumda peki. Bende 2.2 çıktı ama bu adrestekileri yapınca 2.4 oldu.

Bundler kurulması gerekecek. Neden mi? Çünkü bundler sayesinde projemizdeki Gemfile içeriğine göre ilgili paketlerin kurulmasını sağlamış oluruz. Detay için: http://bundler.io/
gem kurulumundan sonra çok kolay sadecegem install bundler çalıştırın:
[root@localhost redmine-2.6]# gem install bundler
Fetching: bundler-1.7.12.gem (100%)
Successfully installed bundler-1.7.12
Parsing documentation for bundler-1.7.12
Installing ri documentation for bundler-1.7.12
Done installing documentation for bundler after 7 seconds
1 gem installed
[root@localhost redmine-2.6]# 


Geany kurulumu

Bir çok ide var linux'te. 9 Tanesi için buraya bakabilirsiniz. Ben GENAY idesini seviyorum ama yum install geany işe yaramadı diye üzülmeyin bu adreste arkadaşın teki rpm paketini halletmiş. İndirin, çalıştırın ve gerisi paket yönetim sisteminize bırakın. Nasıl yapılacağını buradaki pdf dosyasından görebilirsiniz.


Redmine Kurulumu

Redmini indiriniz ve bir klasöre açınız. İçinde Gemfile bulacaksınız. Bu dosyanın içeriğinde kurulacak paketleri göreceksiniz. Bu paketler de sisteminizde neler yüklü, test, geliştirme, canlı sistem ihtiyaçlarına göre değişiyor.
Artık Gemfile içinde ne varsa bundler sayesinde test ve geliştirme olmayan kısımların kurulmalarını isteyelim:
bundle install --without development test

Sonuçta üretilen çıktıya bakarak neyin kurulup kurulamadığını ve hata mesajına göre ne yapamız gerektiğini inceleyelim. İşte çıktımız:
[root@localhost redmine-2.6]# bundle install --without development test
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Please configure your config/database.yml first
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Installing rake 10.4.2
Installing i18n 0.6.11
Installing multi_json 1.10.1
Installing activesupport 3.2.21
Installing builder 3.0.4
Installing activemodel 3.2.21
Installing erubis 2.7.0
Installing journey 1.0.4
Installing rack 1.4.5
Installing rack-cache 1.2
Installing rack-test 0.6.3
Installing hike 1.2.3
Installing tilt 1.4.1
Installing sprockets 2.2.3
Installing actionpack 3.2.21
Installing mime-types 1.25.1
Installing polyglot 0.3.5
Installing treetop 1.4.15
Installing mail 2.5.4
Installing actionmailer 3.2.21
Installing arel 3.0.3
Installing tzinfo 0.3.42
Installing activerecord 3.2.21
Installing activeresource 3.2.21
Using bundler 1.7.12
Installing coderay 1.1.0
Installing rack-ssl 1.3.4
Installing json 1.8.2
Installing rdoc 3.12.2
Installing thor 0.19.1
Installing railties 3.2.21
Installing jquery-rails 3.1.2
Installing net-ldap 0.3.1
Installing ruby-openid 2.3.0
Installing rack-openid 1.4.2
Installing rails 3.2.21
Installing rbpdf 1.18.4
Installing redcarpet 2.3.0
Installing request_store 1.0.5

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /usr/local/rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb 
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... yes
checking for ImageMagick version >= 6.4.9... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
 --with-opt-dir
 --without-opt-dir
 --with-opt-include
 --without-opt-include=${opt-dir}/include
 --with-opt-lib
 --without-opt-lib=${opt-dir}/lib
 --with-make-prog
 --without-make-prog
 --srcdir=.
 --curdir
 --ruby=/usr/local/rvm/rubies/ruby-2.1.0/bin/ruby
extconf.rb:154:in ``': No such file or directory - convert (Errno::ENOENT)
 from extconf.rb:154:in `block in 
' from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:918:in `block in checking_for' from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpone' from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:321:in `open' from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone' from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:321:in `open' from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:347:in `postpone' from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/mkmf.rb:917:in `checking_for' from extconf.rb:151:in `
' extconf failed, exit code 1 Gem files will remain installed in /usr/local/rvm/gems/ruby-2.1.0/gems/rmagick-2.13.4 for inspection. Results logged to /usr/local/rvm/gems/ruby-2.1.0/extensions/x86_64-linux/2.1.0/rmagick-2.13.4/gem_make.out An error occurred while installing rmagick (2.13.4), and Bundler cannot continue. Make sure that `gem install rmagick -v '2.13.4'` succeeds before bundling. [root@localhost redmine-2.6]#

Hatanın olduğu yer rmagick yüklemesiydi. gem install rmagick -v '2.13.4' komutuyla hatayı bir kez daha görebiliriz. Biraz internet aramasıyla development sürümünün yüklenmesiyle bu sorun ortadan kalkıyormuş, yapalım. yum install ImageMagick-devel ile 6.5.4.7 sürümüyle sorunu giderebildiğimizi bundle install --without development test ile göreceğiz.
Bu kez komutumuzun çıktısı şöyle oldu:
[root@localhost redmine-2.6]# bundle install --without development test
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on
this machine.
Please configure your config/database.yml first
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Using rake 10.4.2
Using i18n 0.6.11
Using multi_json 1.10.1
Using activesupport 3.2.21
Using builder 3.0.4
Using activemodel 3.2.21
Using erubis 2.7.0
Using journey 1.0.4
Using rack 1.4.5
Using rack-cache 1.2
Using rack-test 0.6.3
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.2.3
Using actionpack 3.2.21
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 3.2.21
Using arel 3.0.3
Using tzinfo 0.3.42
Using activerecord 3.2.21
Using activeresource 3.2.21
Using bundler 1.7.12
Using coderay 1.1.0
Using rack-ssl 1.3.4
Using json 1.8.2
Using rdoc 3.12.2
Using thor 0.19.1
Using railties 3.2.21
Using jquery-rails 3.1.2
Using net-ldap 0.3.1
Using ruby-openid 2.3.0
Using rack-openid 1.4.2
Using rails 3.2.21
Using rbpdf 1.18.4
Using redcarpet 2.3.0
Using request_store 1.0.5
Installing rmagick 2.13.4
Your bundle is complete!
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from rmagick:
Please report any bugs. See https://github.com/gemhome/rmagick/compare/RMagick_2-13-2...master and https://github.com/rmagick/rmagick/issues/18
[root@localhost redmine-2.6]# 


Redmine Mysql ayarları

Mysql server çalışıyorsa mysql komut satırına terminal windowdan erişebiliriz ya da erişemeyiz:
[root@localhost redmine-2.6]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@localhost redmine-2.6]# 
Yapacağımız şey centos servislerinde mysql sunucuyu başlatmak:
[root@localhost redmine-2.6]# service mysqld start
Starting mysqld:                                           [  OK  ]
[root@localhost redmine-2.6]# 

Ve tekrar:
[root@localhost redmine-2.6]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 

Şimdi önce database yaratıyoruz "utf8" karakter encodingiyle:
CREATE DATABASE redmine CHARACTER SET utf8;

DB işlemleri için `redmine` kullanıcısı oluşturalım ve yetkilendirelim:
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'şifre_ne_istiyorsanız';
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';


REDMINE Database AYARLARI

Sırada redmine uygulaması ayarlarından yarattığımız mysql kullanıcısı redmine'in bilgilerini database.yml içinde güncellemek. Önce redmine klasörüne (indirip extract ettiğimiz sıkıştırılmış dosyanın ardından oluşan klasöre) gidip config alt klasörü altındaki database.yml.example dosyasından bir kopya oluşturup(ben ilk örnek dosyaları tutmayı severim) adını database.yml olarak değiştirelim ve içindeki production ayarlarını:
production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "redmine"
  encoding: uth8
olarak değiştirelim.


REDMINE session anahtarları için SECRET

rake generate_secret_tokenİle keyfe keder bir anahtar yaratalımki session id tahmin etme işini imkansıza taşıyalım. Rake nedir diye sorarsanız, kısaca otomatize işler yapabilmesi için Ruby'nin aracıdır.
[root@localhost redmine-2.6]# rake generate_secret_token
Could not find gem 'mysql2 (~> 0.3.11) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
[root@localhost redmine-2.6]# 
O da ne! mysql2 yokmuş

O da ne! mysql2 yüklü değilmiş. Gem install ile yüklemeyi deneyelim:
[root@localhost redmine-2.6]# gem install mysql2
Fetching: mysql2-0.3.17.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing mysql2:
 ERROR: Failed to build gem native extension.

    /usr/local/rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
-----
Using mysql_config at /usr/bin/mysql_config
-----
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing.  please check your installation of mysql and try again.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
 --with-opt-dir
 --without-opt-dir
 --with-opt-include
 --without-opt-include=${opt-dir}/include
 --with-opt-lib
 --without-opt-lib=${opt-dir}/lib
 --with-make-prog
 --without-make-prog
 --srcdir=.
 --curdir
 --ruby=/usr/local/rvm/rubies/ruby-2.1.0/bin/ruby
 --with-mysql-dir
 --without-mysql-dir
 --with-mysql-include
 --without-mysql-include=${mysql-dir}/include
 --with-mysql-lib
 --without-mysql-lib=${mysql-dir}/lib
 --with-mysql-config
 --without-mysql-config

extconf failed, exit code 1

Gem files will remain installed in /usr/local/rvm/gems/ruby-2.1.0/gems/mysql2-0.3.17 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.1.0/extensions/x86_64-linux/2.1.0/mysql2-0.3.17/gem_make.out
[root@localhost redmine-2.6]# 

Hata korkutmasın sebebi `mysql.h is missing` cümlesinde yatıyor. Sanırım bunu da mysql-devel ile çözebiliriz.Nitekim aradık ve stackoverflow imdadımıza yetişti.
[root@localhost redmine-2.6]# yum install mysql-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.dgn.net.tr
 * extras: mirror.dgn.net.tr
 * updates: mirror.dgn.net.tr
Resolving Dependencies
--> Running transaction check
---> Package mysql-devel.x86_64 0:5.1.73-3.el6_5 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
 Package                                Arch                              Version                                      Repository                       Size
===================================================================================================
Installing:
 mysql-devel                            x86_64                            5.1.73-3.el6_5                               base                            129 k

Transaction Summary
===================================================================================================
Install       1 Package(s)

Total download size: 129 k
Installed size: 388 k
Is this ok [y/N]: y
Downloading Packages:
mysql-devel-5.1.73-3.el6_5.x86_64.rpm                                                                                                 | 129 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : mysql-devel-5.1.73-3.el6_5.x86_64                                                                                                         1/1 
  Verifying  : mysql-devel-5.1.73-3.el6_5.x86_64                                                                                                         1/1 

Installed:
  mysql-devel.x86_64 0:5.1.73-3.el6_5                                                                                                                        

Complete!
[root@localhost redmine-2.6]# 

Tekrar gem'den mysql2 yüklemeyi deneyelim:
[root@localhost redmine-2.6]# gem install mysql2
Building native extensions.  This could take a while...
Successfully installed mysql2-0.3.17
Parsing documentation for mysql2-0.3.17
Installing ri documentation for mysql2-0.3.17
Done installing documentation for mysql2 after 1 seconds
1 gem installed
[root@localhost redmine-2.6]#

Şimdi tekrar deneyelim Rakefile çalıştıralım ama generate_session_token anahtarıyla ve olduğunu görelim:
[root@localhost redmine-2.6]# rake generate_secret_token
[root@localhost redmine-2.6]# 

Tabloları ve ilişkileri oluşturmak için tekrar rake'e başvuralım.
[root@localhost redmine-2.6]# RAILS_ENV=production rake db:migrate
..... TONLA ÇIKTI ve
==  ChangeChangesetsCommentsLimit: migrating ==================================
-- change_column(:changesets, :comments, :text, {:limit=>16777216})
   -> 0.0649s
==  ChangeChangesetsCommentsLimit: migrated (0.0654s) =========================

==  AddPasswordChangedAtToUser: migrating =====================================
-- add_column(:users, :passwd_changed_on, :datetime)
   -> 0.0450s
==  AddPasswordChangedAtToUser: migrated (0.0452s) ============================

==  InsertBuiltinGroups: migrating ============================================
==  InsertBuiltinGroups: migrated (0.2701s) ===================================

[root@localhost redmine-2.6]# 


Başlangıç verilerini oluşturmak ve dilimizi(tr) seçmek için

[root@localhost redmine-2.6]# RAILS_ENV=production rake redmine:load_default_data

Select language: ar, az, bg, bs, ca, cs, da, de, el, en, en-GB, es, et, eu, fa, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sq, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en] tr
====================================
Default configuration data loaded.
[root@localhost redmine-2.6]# 


Ve çalıştıralım:

Başlayacak ve http taleplerini bekliyor olacak. Nerede mi? http://localhost:3000 adresinde.
[root@localhost redmine-2.6]# ruby script/rails server webrick -e production
=> Booting WEBrick
=> Rails 3.2.21 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2015-01-19 15:59:39] INFO  WEBrick 1.3.1
[2015-01-19 15:59:39] INFO  ruby 2.1.0 (2013-12-25) [x86_64-linux]
[2015-01-19 15:59:39] INFO  WEBrick::HTTPServer#start: pid=3547 port=3000


Sonuca birlikte bakalım:







REDMINE Yüklerken yaşadıklarımı ilk toparladığım başlık

http://www.redmine.org/projects/redmine/wiki/RedmineInstall

gem install json -v '1.8.2'
-- hata:
 mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h
-- çözüm:
 http://stackoverflow.com/questions/4304438/gem-install-failed-to-build-gem-native-extension-cant-find-header-files
 For those who may be confused by the accepted answer, as I was, you also need to have the ruby headers installed [ruby-devel].
-- çalışmadığı için:
 yum -y install gcc mysql-devel ruby-devel rubygems
-- sonra
 gem install json -v '1.8.2'

 gem install rmagick -v '2.13.3'
-- hata
 Can't install RMagick 0.0.0. Can't find Magick-config in /root/.rbenv/shims:
-- çözüm:
 yum install ImageMagick-devel

-- redmine yükle:
 bundle install --without development test

-- with Redmine 2.x:
 rake generate_secret_token

-- db için tablo v.s. oluşturma:
 RAILS_ENV=production rake db:migrate

-- Database default data set
 RAILS_ENV=production rake redmine:load_default_data

GITLAB'ın PORTUNU DEĞİŞTİRMEK

/var/opt/gitlab/nginx/conf klasöründe `gitlab-http.conf` dosyasını düzenleyerek aşağıdaki şekilde sunucu ayarını değiştirebilirsiniz:
server {
  listen *:82;
  server_name localhost;