Install git on CentOS 5.10

New project update need to manually applied to vps server. Since the project use gitlab as source code basis then I need to clone it using git.

Git is not available using yum

# yum install git
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirror.es.its.nyu.edu
* extras: mirrors.greenmountainaccess.net
* updates: mirrors.rit.edu
base                                                                                                                                             | 1.1 kB     00:00
extras                                                                                                                                           | 2.1 kB     00:00
updates                                                                                                                                          | 1.9 kB     00:00
updates/primary_db                                                                                                                               | 592 kB     00:00
utter-ramblings                                                                                                                                  | 2.3 kB     00:00
Setting up Install Process
No package git available.
Nothing to do

The option is install it via rpmforge repository.
cd /root
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm -i rpmforge-release-0.5.2-2.el5.rf.i386.rpm
yum install gui
—> Package neon.i386 0:0.25.5-10.el5_4.1 set to be updated
—> Package perl-URI.noarch 0:1.35-3 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
git i386 1.7.12.4-1.el5.rf rpmforge 8.1 M
Installing for dependencies:
neon i386 0.25.5-10.el5_4.1 base 101 k
perl-Git i386 1.7.12.4-1.el5.rf rpmforge 86 k
perl-URI noarch 1.35-3 base 116 k
perl-YAML noarch 0.72-1.el5.rf rpmforge 84 k
subversion i386 1.6.11-12.el5_10 updates 3.1 M
subversion-perl i386 1.6.11-12.el5_10 updates 1.0 M

Transaction Summary
========================================================================================================================================================================
Install 7 Package(s)
Upgrade 0 Package(s)

Total download size: 13 M
Is this ok [y/N]: y

# git --version

git version 1.7.12.4

Great ready to clone the gitlab.

in Gift | 238 Words

Git for Windows : Installation

As new standard introduced by management we start using private git using self hosted gitlab .  Digitalocean give free $10 credit that allow us to use the server and feel the ‘taste’ of collaboration using git.

Due to varied operating system we use I decide to write installation steps for Windows user.

Get latest msysgit

Click here for latest version of msysgit

git1

Continue reading

in Blog | 210 Words

How to install FTP Server (pureftp) on CentOS 5.10

Due to backup provider that we use is closing their service I decide to build simple ftp server for this purpose. The problem are I forgot which version of CentOS I use on the server and which ftp server that work well (easy to install).

Solution for 1st problem is using cat.

# cat /etc/redhat-release

CentOS release 5.10 (Final)

Solution for 2nd problem is pureftp.

# yum install pure-ftpd

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.availo.se
* extras: ftp.availo.se
* updates: ftp.availo.se
base                                                                                                                                             | 1.1 kB     00:00
extras                                                                                                                                           | 2.1 kB     00:00
updates                                                                                                                                          | 1.9 kB     00:00
utter-ramblings                                                                                                                                  | 2.3 kB     00:00
Setting up Install Process
No package pure-ftpd available.
Nothing to do

Continue reading

WARNING: the tzconfig command is deprecated

Quick note for myself :

# date
Sat Jun 21 01:30:45 EDT 2014

# tzconfig
WARNING: the tzconfig command is deprecated, please use:
dpkg-reconfigure tzdata
# dpkg-reconfigure tzdata
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = “id_ID.UTF-8”,
LC_ADDRESS = “id_ID.UTF-8”,
LC_MONETARY = “id_ID.UTF-8”,
LC_NUMERIC = “id_ID.UTF-8”,
LC_TELEPHONE = “id_ID.UTF-8”,
LC_IDENTIFICATION = “id_ID.UTF-8”,
LC_MEASUREMENT = “id_ID.UTF-8”,
LC_TIME = “id_ID.UTF-8”,
LC_NAME = “id_ID.UTF-8”,
LANG = “en_US.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

Current default time zone: ‘Asia/Jakarta’
Local time is now:      Sat Jun 21 12:32:35 WIT 2014.
Universal Time is now:  Sat Jun 21 05:32:35 UTC 2014.

# date
Sat Jun 21 12:33:13 WIT 2014
#

in Info | 156 Words

cat 6

Maintain small network where you only dealing with 3 or 4 computer plus a few (around 4 laptop that use wireless connection) machines is simple. Just plug the ADSL modem and turn on dhcp with default setting but when happy problem came (grow bigger to thousand computer)  then its no more room for playing 🙂

Yes, most of past problem is came with cable. Good network design without good network cable is like building sandbox. Looks strong but weak inside. Last week we have a job to see a hospital network built by someone that heavily use network cable here and there. You can drying clothes with the cable due to the way they pull the cord.

After look around for almost an hour we came with conclusion, mainly judge old cable they use. We give them online reference too (related to price and youtube videos). Some of them listed here :

Use different colour

By using different colour you can easily identify which cable work as backbone and which cable work as branch, channeled to the client.

Blue cable for backbone and other for client.

Continue reading