Redhat/Centos

How to install Acrobat Reader on Centos

1. go to acrobat.com/reader

2. download the bin linux install file

3. chmod +x AdbeRdr9.1.1-1_i486linux_enu.bin

4. ./AdbeRdr9.1.1-1_i486linux_enu.bin

Extracting files, please wait. (This may take a while depending on the configuration of your machine)

This installation requires 144 MB of free disk space.

Enter installation directory for Adobe Reader 9.1.1 [/opt]

(press enter)

The installation will therefore go on

Installing platform independent files … Done
Installing platform dependent files … Done
Setting up libraries … Done
Setting up desktop and menu icons … Done
Setting up the browser plugin … Done

And that’s it

How to get your atheros wifi drive to work under Centos/Linux and get that WPA working

Many times I have come across this thread on forums… many wondering how to get their wifi card (Atheros) to work under Linux (Centos) and then how to proceed to get WPA working… now here is the bundle you have been looking for.

1) Do you have an atheros card?

lspci |grep Atheros (should give you enough info)

2) Get the madiwifi tarball

Go there http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6/ and download the latest tarball.

wget http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r4016-20090429.tar.gz

3) Untar it

tar -zxf  madwifi-hal-0.10.5.6-r4016-20090429.tar.gz

4) Compile it

(Note: yum install gcc gcc-cc make kernel-devel) is REQUIRED in case you do not have it yet installed

cd madwifi-hal-0.10.5.6-r4016-20090429

make && make install

5) Load the modules

modprobe -r ath5k (AND edit /etc/modprobe.d/blacklist and add blacklist ath5k to the list)

modprobe ath_pci
modprobe wlan_scan_sta

[ to verify all went well ]

lsmod | grep ath

you should obtain a similar or  even more output as

ath_rate_sample
ath_pci
wlan
ath_hal

6) Reboot (in some cases)

I know we did load the module so why the reboot fuss? with some cards a reboot would still be required… so go ahead reboot the machine

7)  Configure the card

First, do an ifconfig ath0 up if the network service didn’t bring the card up

Second… do an iwconfig ath0 scan to look for ESSID

So let’s sump up

a. ifconfig ath0 up
b. iwconfig ath0 scan

So now you see your favorite wireless signal in the iwconfig output… it is using WPA, how do you connect?

8) Connect to a signal WPA protected

Let’s assume our signal ESSID (the name) is bobHouse

First we need the wpa_supplicant installed… so yum install wpa_supplicant

on the command line, type wpa_supplicant bobHouse y&NcDspHUIfReX-Y$/IH

(keep in mind y&NcDspHUIfReX-Y$/IH is our WPA key)

now, look into /etc/wpa_supplicant/wpa_supplicant.conf and you should see something like

network={
ssid=”bobHouse”
#psk=”y&NcDspHUIfReX-Y$/IH”
psk=1ce60475894155fd6dec38082e749ccd70a29ad0452214472e9784e2f966d
}

(Of course, you would have different values than the one showed here)

So now that this is verified…

type on the command line

/usr/sbin/wpa_supplicant -i ath0 -c /etc/wpa_supplicant/wpa_supplicant.conf -Bw

if needed, do an ifdown ath0 and an ifup ath0 to request a new dhcp ip.

and voila.

Have the ios_supplicant command saved in a bash script and get creative…

Cheers,

How to install flash plugin for firefox on centos/redhat

Hello,

There are many ways to get flash working on firefox, but here is a quick, easy, clean way to do it.

1) Go to http://www.adobe.com/go/getflashplayer

2) Download the tar.gz tarball

3) tar -zxf Flash_Player_10_for_Linux_.tar.gz

4) cd Flash_Player_10_for_Linux

5) Run the installer, when asked for the location of firefox, enter /usr/lib/mozilla…

If for some reasons you still experience problems… then manually copy the libflashplayer.so file which should be at the root of your untarred flash tarball to /usr/lib/mozilla/plugins/

5) cp libflashplayer.so /usr/lib/mozilla/plugins/

6) Once copied, restart firefox (or open it) and voila! enjoy :)

Clean, easy, simple, fast and no hassle.

Cheers,

Set the time / timezone on centos/Redhat

Alright… I know this is a trival matter, but you would be surprised how often I read, hear, got asked this question

so here it is …

1) get ntp

yum install ntp

2) start ntp at boot

chkconfig ntp on

3) sync to the ntp server

ntpdate ntp.pool.org

4) start ntp

service ntpd start

5) set your timezone

ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime

6) verify it is all correct

date

— enjoy!

Cheers,

Ali

Squid with Ldap authentication – Centos

Here is a small easy way to set a simple web proxy to authenticate against an ldap server.

- Squid Install -
(using the rpmforge repository) do a ‘yum install squid’

- Locate squid_ldap_auth -

locate squid_ldap_auth ==> /usr/lib64/squid/squid_ldap_auth

- Test connection against your ldap server -

/usr/lib64/squid/squid_ldap_auth -b “dc=alouche,dc=net” -f “uid=%s” -h auth.alouche.net
myUser myPassword
OK

The OK prompt back shows us that we can easily connect to the ldap server

- Edit squid.conf -

Here is part of the configuration I use to set up the basic ldap authentication in squid

auth_param basic program /usr/lib64/squid/squid_ldap_auth -b “dc=alouche,dc=net” -f “uid=%s” -h auth.alouche.net
auth_param basic children 30
auth_param basic realm Please authenticate yourself
auth_param basic credentialssttl 1 hours
acl ldapauth proxy_auth REQUIRED
http_access allow ldapauth

Make sure http_access deny all is as well set and not deleted.

- Start Squid -

chkconfig squid on
service squid start

netstat -tupnl ==> should report a socket listening on tcp port 3128

- Next steps -

Make sure to either point your browser to your proxy server and you will see the auth prompt for ldap username and password or follow up on setting an Interception Proxy.

Hope that helped,

Ali