Monday, May 18, 2015

[Centos, Composer] Install Composer on Centos 6.6

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:


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_name

Enabling 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:

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-whitelists
 

Step 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