Hello, today I would like to install composer on my Centos machine. Please go thru the steps to see how I manage to install it:
Monday, May 18, 2015
Thursday, May 14, 2015
[Centos] - Adding, Enabling and disabling repo in Centos
Adding repo
yum-config-manager --add-repo repository_url* we also can add the repo by using rpm command. Here is the example.
Download the repo file. The repo file will be in .rpm, then install the repo files using this command:
rpm -ivh the_repo_filename.rpm
*The repo file will be installed at /etc/yum.repos.d
Disabling repo
yum-config-manager --disable repo_nameEnabling repo
yum-config-manager --enable repo_name[Centos] How to install Broadcom BCM43142 wifi driver on Centos 6.6
Last night, I just installed Centos 6.6 on my Dell Inspirion 15R 5520. Everything works fine except the wireless device. So here is the steps:
[root@blackhat /]# cd bcm43142
32 bit driver
wget https://www.broadcom.com/docs/linux_sta/hybrid-v35-nodebug-pcoem-6_30_223_248.tar.gz
64 bit driver
[root@blackhat bcm43142]# wget https://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz
Untar the downloaded file
[root@blackhat bcm43142]# tar -xzvf hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz
* When the build completes, it will produce a wl.ko file in the top level directory.
[root@blackhat bcm43142]# modprobe cfg80211
[root@blackhat bcm43142]# insmod wl.ko
[root@blackhat bcm43142]# depmod -a
That's it, hope it'll help others
REFERENCE
https://www.broadcom.com/docs/linux_sta/README_6.30.223.248.txt
Step 1
[root@blackhat /]# yum groupinstall "Development Tools"Step 2
[root@blackhat /]# yum install gcc* compact-* install kernel-devel-$(uname -r) kernel-headers redhat-lsb kernel-abi-whitelistsStep 3 : create new directory
[root@blackhat /]# mkdir bcm43142[root@blackhat /]# cd bcm43142
Step 4 : Download the driver from Broadcom official website (https://www.broadcom.com/support/802.11/linux_sta.php) and untar the file
32 bit driver
wget https://www.broadcom.com/docs/linux_sta/hybrid-v35-nodebug-pcoem-6_30_223_248.tar.gz
64 bit driver
[root@blackhat bcm43142]# wget https://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz
Untar the downloaded file
[root@blackhat bcm43142]# tar -xzvf hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz
Step 5 : Build the driver
[root@blackhat bcm43142]# make* When the build completes, it will produce a wl.ko file in the top level directory.
Step 6 : Insmod the driver
[root@blackhat bcm43142]# modprobe lib80211[root@blackhat bcm43142]# modprobe cfg80211
[root@blackhat bcm43142]# insmod wl.ko
Step 7 : load the wireless device at boot time
[root@blackhat bcm43142]# cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless[root@blackhat bcm43142]# depmod -a
That's it, hope it'll help others
REFERENCE
https://www.broadcom.com/docs/linux_sta/README_6.30.223.248.txt
Sunday, February 1, 2015
[Centos] SDHC MMC slot not working on Centos 6
1) Enable ElRepo on your centos. Import the public key:
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
2) Then install ElRepo:
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
* see this (http://elrepo.org/tiki/tiki-index.php) for more information
3) Then run below command:
yum install kmod-rts5139
4) Reboot and you're done.
Hope this'll help.
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
2) Then install ElRepo:
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
* see this (http://elrepo.org/tiki/tiki-index.php) for more information
3) Then run below command:
yum install kmod-rts5139
4) Reboot and you're done.
Hope this'll help.
Sunday, January 25, 2015
[Linux] Install Apache 2.4.10 from source package
Requirements:
1) Create new folder:
mkdir /etc/httpd-2.4.10
2) Then, install APR:
download APR from https://apr.apache.org/download.cgi (* in this case we use apr-1.5.1)
after download, untar the apr-<version>.tar.gz
3) Install apr-util:
download apr-util from https://apr.apache.org/download.cgi (* in this case we use apr-util-1.5.4)
untar the apr-util-<version>.tar.gz
4) Install pcre:
download pcre from http://www.pcre.org/ (* in this case we use pcre-8.36)
untar the pcre-<version>.tar.gz
5) Now install httpd-2.4.10:
download httpd from http://www.apache.org/dyn/closer.cgi
untar the httpd-2.4.10.tar.gz
TQVM
MJMZ
- Centos (any version, but in this case we use 6.3)
- APR
- APR-UTIL
- PCRE
- Apache 2.4.10 tarball
1) Create new folder:
mkdir /etc/httpd-2.4.10
2) Then, install APR:
download APR from https://apr.apache.org/download.cgi (* in this case we use apr-1.5.1)
after download, untar the apr-<version>.tar.gz
- tar -xzvf apr-<version>.tar.gz <enter>
- cd apr-<version> <enter>
- ./configure --prefix=/etc/httpd-2.4.10/dep/apr <enter>
- make; make install <enter>
3) Install apr-util:
download apr-util from https://apr.apache.org/download.cgi (* in this case we use apr-util-1.5.4)
untar the apr-util-<version>.tar.gz
- tar -xzvf apr-util-<version>.tar.gz <enter>
- cd apr-util-<version> <enter>
- ./configure --prefix=/etc/httpd-2.4.10/dep/apr-util --with-apr=/etc/httpd-2.4.10/dep/apr <enter>
- make; make install <enter>
4) Install pcre:
download pcre from http://www.pcre.org/ (* in this case we use pcre-8.36)
untar the pcre-<version>.tar.gz
- tar -xzvf pcre-<version>.tar.gz <enter>
- cd pcre-<version> <enter>
- ./configure --prefix=/etc/httpd-2.4.10/dep/pcre --enable-utf8 --enable-unicode-properties <enter>
- make; make install <enter>
5) Now install httpd-2.4.10:
download httpd from http://www.apache.org/dyn/closer.cgi
untar the httpd-2.4.10.tar.gz
- tar -xzvf httpd-2.4.10.tar.gz <enter>
- cd httpd-2.4.10 <enter>
- ./configure --prefix=/etc/httpd-2.4.10 --enable-mods-shared="all" --enable-so --with-apr=/etc/httpd-2.4.10/dep/apr --with-apr-util=/etc/httpd-2.4.10/dep/apr-util --with-pcre=/etc/httpd-2.4.10/dep/pcre --enable-ssl <enter> (* ./configure --help to see the option)
- make; make install <enter>
TQVM
MJMZ
Sunday, February 23, 2014
Install Maven on CentOS 6.5
- Download maven from Apache website (http://maven.apache.org/download.cgi)
- Extract the downloaded file, put the extracted file to /usr/bin
tar xzvf apache-maven-[version]-bin.tar.gz C /usr/bin
-
Then go to the /usr/bin directory and create symlink (symbolic link) for maven.
cd /usr/bin ln -s apache-maven-[version] maven
- Then, do the following:
vi /etc/profile.d/maven.sh
Put below code into the vi editor and save it:
export M2_HOME=/usr/local/maven export PATH=${M2_HOME}/bin:${PATH}
- Then log-out and log-in again to activate the above environment setting.
- To check maven is running ok on your computer, type the following using terminal:
mvn -version
Thursday, December 5, 2013
[Linux] Put backslash \ to the filename that contains space
Let say you have folder like below:
Type the command like below:
Output:
myFolder |_ text file one.txt |_ text file two.txt |_ text file three.txt
Type the command like below:
ls myFolder/* | sed 's/ /\\ /g'
Output:
myFolder/text\ file\ one.txt myFolder/text\ file\ two.txt myFolder/text\ file\ three.txt
Subscribe to:
Posts (Atom)