Sunday, February 27, 2011

Call kickstart file from client machine

Command for
Call kickstart file from client machine, if the server is running nfs
linux ks=nfs:

Wednesday, February 23, 2011

Installing fonts in Ubuntu 9.04

Step 1: Copy the fonts to /usr/share/fonts or /home/.fonts directory
Step 2: Run the command sudo fc-cache -fv
Step 3: Check the font in any of the Open Office Packages.

Wednesday, February 16, 2011

PXE Server Configuration

step1: copy the DVD into /var/ftp/pub

step2: vim /etc/exports
          /var/ftp/pub *(ro,sync)
          /tftpboot *(ro,sync)

step3: configure dhcp server
    vim /etc/dhcpd.conf
    insert the below two lines after
   #ignore-client updates

    allow booting;
    allow bootp;

    insert the below two lines after

    filename "pxelinux.0";

step4: install tftp rpm
    vim /etc/xinetd.d/tftp

step5: disable iptables and tcp wrappers

step6: cp /usr/lib/syslinux/pxelinux.0 /tftpboot

step7: cd /tftpboot
    mkdir pxelinux.cfg
    cd /var/ftp/pub/isolinux
    cp * /tftpboot
    cd /tftpboot
    mv isolinux.cfg /tftpboot/pxelinux.cfg/default

step8:  service portmap restart
            service nfs restart
            service vsftpd restart
            service network restart
            service dhcpd restart
            chkconfig tftp on
            chkconfig portmap on
            chkconfig nfs on
            chkconfig vsftpd on
            chkconfig network on
            chkconfig dhcpd on

Saturday, February 12, 2011

User Permissions

1.syntax: useradd username
eg: useradd bharat

2.syntax:ls -ld dirname
eg:ls -ld success

File permissions:

10 different attributes;
2,3&4 - root permissions
5,6&7 - group permissions
8,9&10 - other permissions

permissions in terms of numbers:

#chmod 766 success/
#chmod 777 success/
#chgrp -R bharat success
drwxrwxrwx 3 root bharat 4096 Feb 12 22:02 success/
#chown -R bharat success/
drwxrwxrwx 3 bharat bharat 4096 Feb 12 22:02 success/
#chmod u+x success/ - change mode as executable

Browsing File system

1.copy - copying files
syntax:cp sourcefile destinationfile

2.rename -rename/move the files
i)syntax:mv sourcefile destinationfile (if the destination available it will be moved. Otherwise it will be renamed.)

3.create new files and manage nautilus
Applications-->system tools-->File browser

4.touch  filename - command for creating dummy files / updating time stamp filename - viewing the contents of a particular file
6.vim filname - editing the file.(saving esc+shift+:wq)
7.mkdir dir - creating a directory dir -change directory
9.pwd :present working directory - :previous working directory :goto the home directory of the current user

12.Removing the file/directoy:
rmdir dirname - remove directory (if directory is empty)
rm -rf dirname - remove directory recursively (directory has some contents) ..    - going back the parent directory
14.syntax: file filename -for checking what type file the given is

Thursday, February 10, 2011

Hardware configuration & Installation:I & II

Hardware configuration & Installation:I

New hardware:   
1. cdrom - automount/manual mount
2. pendrive    ""
3. printer
4. scanner

/dev/hdd on /media type iso9660 (ro)
#mount /dev/cdrom /media/ - linking/attaching
#umount /media/    - for unmounting/detaching.

mounting pendrive
#mount /dev/sdb1 /mnt/

unmounting pendrive:
#umount /mnt/

Harddisk categories
1.sata & scsi sda,sdb,sdc,& sdd Primary master, primary slave, secondary master & secondary slave
2.IDE harddisk
hda,hdb,hdc & hdd - primary master, primary slave, secondary master & secondary slave
3.Virtual harddisk
vda,vdb,vdc,vdd - primary master, primary slave, secondary master & secondary slave

Kudzu is a service that is used to check and mount new hardware.(camera,scanner)
#whereis kudzu    - location of the command kudzu

files for checking new hardware

service kudzu status
service kudzu start
service kudzu stop   
chkconfig kudzu on

Hardware configuration & Installation:II
1.mount the file system
2.mount ntfs file system
    i) read only mount
    11) read write mount
3.syntax of mount
#mount sourcepath mountpoint
eg: mount /dev/cdrom/ /mnt/

mount on /mnt type nfs (rw,addr=
#fdisk -l |grep NTFS - for viewing ntfs file system only.

Wednesday, February 9, 2011

New Features in RHEL6

1. ext4 file system is introduced.
2. xen is removed and kernel virtualization machine (KVM) is introduced.
3. neat command is removed.
4. portmap service is removed.
5. iscsi is introduced, which supports for SAN.
6. rpmbuild is available, which is used to create our own rpms.
7. File encyption is added.
8. palimpsest is available for disk management.
9. Virtual machine will run only on 64bit processors.
10. postfix service is recommended instead of sendmail service.