Posts

Showing posts from May, 2012

Samba Server on RHEL6

How to make a Samba Server on RHEL6 Task to be performed on Linux Box: Install Samba packages in your machine by yum command: [root@sunny ~]$ yum install samba* -y Open Samba's configuration file: [root@sunny ~]$ vi /etc/samba/smb.conf # at line 58 add the following unix charset = UTF-8 dos charset = CP932 # at line 75 change to the windows workgroup. workgroup =  WORKGROUP # at line 81 uncomment and change the ip addresses. hosts allow = 127. 192.168.  (127 is for local host and your machine virtual ip if you are using a VM). # at line 102 change the parameters. security = user [root@sunny ~]$ vi /etc/sysconfig/iptables Add the line at the last before commit. -A INPUT -i vmnet6 -j ACCEPT   (If using VMPlayer). -A INPUT -i virbr0 -j ACCEPT (If using Virt-Manager). (The values of vmnet6 and virbr0 may change as per your machine's config.). Restart service iptables: [root@sunny ~]$ service iptables restart Enable sharing of home dir

Encrypting Grub Menu

GRUB is a boot loader designed to boot a wide range of operating systems from a wide range of filesystems. GRUB is becoming popular due to the increasing number of possible root filesystems on which Linux can reside upon. If anyone who has access to your grub menu can easily get into your machine,So for that encryption of grub menu is used. Location of grub file: /boot/grub/grub.conf /etc/grub.conf You can edit any of these if you have a root access to your machine. Encrypting your Grub Menu: Edit any of the above mentioned files. [root@sunny ~]# vi /etc/grub.conf  Your file should show something like this: # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE:  You have a /boot partition.  This means that #          all kernel and initrd paths are relative to /boot/, eg. #          root (hd0,0) #          kernel /vmlinuz-version ro root=/dev/sda2 #          initrd /initrd-[gen

Linux Booting Process ?

For this one you can click here .... !!

Creating a SWAP partition in a LVM

Assuming that you have already created a physical volume ==> volume group. If not then click here..... Now firstly create a logical volume. Check the free space in your volume group by firing a command in terminal as vgdisplay VOLUMEGROUP NAME. [root@sunny ~]# vgdisplay vg_sunny   --- Volume group ---   VG Name               vg_sunny   System ID                Format                lvm2   Metadata Areas        1   Metadata Sequence No  3   VG Access             read/write   VG Status             resizable   MAX LV                0   Cur LV                2   Open LV               2   Max PV                0   Cur PV                1   Act PV                1   VG Size               14.51 GiB   PE Size               4.00 MiB   Total PE              3714   Alloc PE / Size       3204 / 12.52 GiB   Free  PE / Size       510 / 1.99 GiB   VG UUID               XdBCWB-sQw5-JQvn-v0an-VOWi-fIs9-Q7uEmm This command shows that in this volume group we still hav