Wednesday, July 4, 2012

Install google chrome on CentOS 6/Scientific Linux 6


Enable Google YUM repository

Add following to /etc/yum.repos.d/google.repo file:

32-bit

[google-chrome]
name=google-chrome - 32-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

64-bit

[google-chrome]
name=google-chrome - 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Note: Both 32-bit and 64-bit repos can be placed in the same file.

Install Google Chrome with YUM (as root user)

Install Google Chrome Stable Version

## Install Google Chrome Stable version ##
yum install google-chrome-stable

Install Google Chrome Beta Version
## Install Google Chrome Beta version ##
yum install google-chrome-beta

Install Google Chrome Unstable Version

## Install Google Chrome Unstable version ##
yum install google-chrome-unstable

Monday, July 2, 2012

Enable EPL on RHEL compatible distros such as CentOS/Scientific Linux

How can I install the packages from the EPEL software repository?

There are repository rpm packages for RHEL5 and RHEL6. The repository package installs the repo details on your local system for yum or up2date to use. Then you can install packages with your usual method, and the EPEL repository is included.

For EL5:

su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm'
...
su -c 'yum install foo'

For EL6:

su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm'
...
su -c 'yum install foo'



then install the rpms from rpmfusion and you will be fine

Wednesday, June 27, 2012

Install NIS Server on Ubuntu Desktop 10.10


on the NIS Server


apt-get install portmap


restart


update-rc.d portmap defaults 10


apt-get install nis


when asked for domain it is sourav.com for my case


nano /etc/default/nis


NISSERVER=master


NISCLIENT=false


nano /etc/ypserv.securenets


#This line give adjust to anybody.Please adjust
255.255.255.0    192.168.10.0


nano /var/yp/Makefile


ALL =   passwd group hosts




service portmap restart


service nis restart


nano /usr/lib/yp/ypinit -m
out shadow in between passwd and group




/usr/lib/yp/ypinit -m


master nis server is souravubuntu


ctrl + d


and then press y and you are done




useradd -d /home/sougata -m sougata


passwd username


and set the password


c /var/yp


make




on the NIS Client


apt-get install portmap




domain will be sourav.com


nano /etc/hosts


add


192.168.10.10    souravubuntu   souravubuntu.sourav.com


nano /etc/yp.conf


nano /etc/nsswitch.conf


and change the 




passwd: compat
group: compat
shadow: compat


section to


passwd: nis compat
group:  nis compat
shadow: nis compat


to allow users to login graphically in anis environment change the permission of the home folder


chmod 777 /home




Edit /etc/passwd to add a line at the end saying:


+: : : : : :


Edit /etc/group to add a line at the end saying:


+: : :


Edit /etc/shadow to add a line at the end saying:


+: : : : : : : : 




restart and it's done


log in and test using command 


ypcat passwd

Troubleshoot samba(smbd starts but nmbd does not start/unknown instance error)

sudo apt-get remove samba
sudo apt-get remove samba-common-bin
sudo apt-get install samba


source:http://ubuntuforums.org/archive/index.php/t-1663668.html