Sunday, February 7, 2010

configure samba:Interoperability between windows and linux

STEP 1:
Before making changes to samba configuration file,back up the original samba config. file
Eg:cp /etc/samba/smb.conf /etc/samba/smb.conf.original
STEP 2:
Edit smb.conf
Eg:vim /etc/samba/smb.conf
Scrol down to the section SHARE DEFINITIONS
For example if you want to share your home folder,Add the following lines
Eg:[home]
path = /home
writable = yes
browseable = yes
valid users = root
guest ok = no

Then save the file by pressing "Esc" ":""wq"
STEP 3:
Now add samba users by using the command
Eg:smbpasswd -a root
enter password

STEP 4:
In Fedora,Restart the samba services
Eg:service smb restart
In Ubuntu:
Eg: /etc/init.d/samba restart

STEP 5:
Now go to your windows machine
Goto Start->Run->\\ipaddress of the linuxmachine
STEP 6:
Incase any issues like access denied try disabling the firewall and SE linux management

Friday, February 5, 2010

Installing JDK 1.5 on Fedora

STEP 1:
Download "jdk-1_5_0_21-linux-i586-rpm.bin" file from Java Website
Now change the permission of the downloaded file to 755 like this:chmod 755 jdk-1_5_0_21-linux-i586-rpm.bin
STEP 2:
Then run it:./ jdk-1_5_0_21-linux-i586-rpm.bin
You need to type "yes" to indicate your acceptance to their agreement and the installation will complete on its own
STEP 3:
Now you need to find the actual location of your JDK installation and indicate to Fedora to accept your choice.
Type the following
updatedb;locate javac grep bin

You will see an entry like this:
/usr/java/jdk1.5.0_21/bin/javac

Here /usr/java/jdk1.5.0_21 is the actual JAVA_HOME for your machine. Note this as you will need it to run the future commands.
STEP 4:
Now you need to run the alternatives command to instruct Fedora to recognize Sun's JVM
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.5.0_21/bin/java 100
/usr/sbin/alternatives --install /usr/bin/jar jar /usr/java/jdk1.5.0_21/bin/jar 100
/usr/sbin/alternatives --install /usr/bin/javac javac /usr/java/jdk1.5.0_21/bin/javac 100
STEP 5:
Finally you should configure alternative to use Sun's JVM as the default JVM. To do this type:
/usr/sbin/alternatives --config java
Select /usr/java/jdk1.5.0_21/bin/java as default
/usr/sbin/alternatives --config javac
Select /usr/java/jdk1.5.0_21/bin/javac as default
STEP 6:
Add the following path in .bashrc
export PATH=$PATH:/usr/java/jdk1.5.0_21/jre/bin
Append the path in .bash_profile
/usr/java/jdk1.5.0_21/jre/bin:/usr/bin/java/jdk1.5.0_21/bin
STEP 7:
Type java –version
java version "1.5.0_21"
Java(TM) 2 Runtime Environment, Standard Edition(build 1.5.0_21-b01)
Java HotSpot(TM) Server VM (build 1.5.0_21-b01, mixed mode)

Thursday, January 14, 2010

Unable to install Fedora through GUI in Vmware

Hi..Friends..There are instances were we wont be able to do GUI installation of fedora through vmware...
STEP 1:
Install vmware and then create the new virtual machine..
STEP 2:
Then right click on the new virtual machine->go to settings and then increase the memory..and then try installing ...It should work fine..

GUI Package Manger for fedora (yumex)

Most people wanted to know is there a GUI package manager for fedora something like Synaptic manager in Ubuntu..Yes we do have yumex(known as yum extender)
Here we go...
STEP 1:
Install the following package
Eg: sudo yum install yumex
STEP 2:
After installation go to terminal and type the following command:
yumex
=========%%%%%%%%%%%%%%%============

Friday, January 8, 2010

NFS setup in ubuntu

NFS server configuration in Ubuntu
==========================

STEP 1:
Install packages
sudo apt-get install portmap nfs-kernel-server
STEP 2:
Edit /etc/exports
For example if you want to share your home folder
Eg: /home 192.168.0.0/255.255.255.0(rw,sync,no_subtree_check)
The above shares /home to all clients in the private network falling within the designated ip address range
STEP 3:
After editing the exports file,run
sudo exportfs -ra
STEP 4:
Then restart the services,
sudo portmap restart
sudo nfs-kernel-server restart

NIS Client set up
============

STEP 1:
Install the packages
Eg:sudo apt-get install portmap nfs-common
STEP 2:
You should try and mount it now.
Eg:sudo mount 192.168.1.50:/home /home/backup
In the above example 192.168.1.50 is the NFS Server Ip followed by th efolder that's been shared and then followed by the destination(ie the destination where you want to mount)

===##############======

NIS server set up in Fedora

Setting up NIS Server in Fedora
========================
STEP 1:
Install a package called ypserv
Eg: yum install ypserv
STEP 2:
Setting the NIS Domain Name
Edit the file: /etc/sysconfig/network and add the following line to it:
NISDOMAIN=somedomainname

Eg: NISDOMAIN=LINUX-NIS.com
STEP 3:
Initializing NIS files
You can do this using the following command:
/usr/lib/yp/ypinit –m
STEP 4:
Updating the NIS files
From now on, every time you add a user, delete a user; you have to update the NIS database. You can do this using the command:

make –C /var/yp
STEP 5:
Starting the NIS server
/etc/init.d/ypserv start
The server is now ready to handle authentication requests from the clients