Translate

বৃহস্পতিবার, ৩১ অক্টোবর, ২০১৩

Advanced Hard Disk Drive Settings ATA or SATA


What is Hard Disk Drive?   





Hard Disk is storage device it is used to file folder or data maintains. The traditional spinning hard drive (HDD) is the basic nonvolatile storage on a computer. That is, it doesn't "go away" like the data on the system memory when you turn the system off
 And others miens  :  Functioning as an internal storage device, it allows a computer to house and execute important files and programs, like the machine's operating system.


Tweaking of hard disk settings (dma, gap, ...) are not covered in this course. Several
tools exists, hdparm and sdparm are two of them.
/sbin/hdparm can be used to display or set information and parameters about an
ATA (or SATA) hard disk device. The -i and -I options will give you even more
information about the physical properties of the device.
root@laika:~# hdparm /dev/sdb
/dev/sdb:
IO_support = 0 (default 16-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 12161/255/63, sectors = 195371568, start = 0
Below hdparm info about a 200GB IDE disk.
root@barry:~# hdparm /dev/hdd
/dev/hdd:
multcount = 0 (off)
IO_support = 0 (default)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 24321/255/63, sectors = 390721968, start = 0
Here a screenshot of sdparm on Ubuntu 10.10.
root@ubu1010:~# aptitude install sdparm
...
root@ubu1010:~# sdparm /dev/sda | head -1
/dev/sda: ATA FUJITSU MJA2160B 0081
root@ubu1010:~# man sdparm
Use hdparm and sdparm with care.
practice: hard disk devices
About this lab: To practice working with hard disks, you will need some hard disks.
When there are no physical hard disk available, you can use virtual disks in vmware
or VirtualBox. The teacher will help you in attaching a couple of ATA and/or SCSI
disks to a virtual machine. The results of this lab can be used in the next three labs
(partitions, file systems, mounting). It is adviced to attach at least one ide and three
equally sized scsi disks to the virtual machine.
1. Use dmesg to make a list of hard disk devices detected at boot-up.
2. Use fdisk to find the total size of all hard disk devices on your system.
3. Stop a virtual machine, add three virtual 1 gigabyte scsi hard disk devices and one
virtual 400 megabyte ide hard disk device. If possible, also add another virtual 400
megabyte ide disk.
4. Use dmesg to verify that all the new disks are properly detected at boot-up.
5. Verify that you can see the disk devices in /dev.
6. Use fdisk (with grep and /dev/null) to display the total size of the new disks.
7. Use badblocks to completely erase one of the smaller hard disks.
8. Look at /proc/scsi/scsi.
9. If possible, install lsscsi, lshw and use them to list the disks.
solution: hard disk devices
1. Use dmesg to make a list of hard disk devices detected at boot-up.
Some possible answers...
dmesg | grep -i disk
Looking for ATA disks: dmesg | grep hd[abcd]
Looking for ATA disks: dmesg | grep -i "ata disk"
Looking for SCSI disks: dmesg | grep sd[a-f]
Looking for SCSI disks: dmesg | grep -i "scsi disk"
2. Use fdisk to find the total size of all hard disk devices on your system.
fdisk -l
3. Stop a virtual machine, add three virtual 1 gigabyte scsi hard disk devices and one
virtual 400 megabyte ide hard disk device. If possible, also add another virtual 400
megabyte ide disk.
This exercise happens in the settings of vmware or VirtualBox.
4. Use dmesg to verify that all the new disks are properly detected at boot-up.
See 1.
5. Verify that you can see the disk devices in /dev.
SCSI+SATA: ls -l /dev/sd*
ATA: ls -l /dev/hd*
6. Use fdisk (with grep and /dev/null) to display the total size of the new disks.
root@rhel53 ~# fdisk -l 2>/dev/null | grep [MGT]B
Disk /dev/hda: 21.4 GB, 21474836480 bytes
Disk /dev/hdb: 1073 MB, 1073741824 bytes
Disk /dev/sda: 2147 MB, 2147483648 bytes
Disk /dev/sdb: 2147 MB, 2147483648 bytes
Disk /dev/sdc: 2147 MB, 2147483648 bytes
7. Use badblocks to completely erase one of the smaller hard disks.
#Verify the device (/dev/sdc??) you want to erase before typing this.
#
root@rhel53 ~# badblocks -ws /dev/sdc
Testing with pattern 0xaa: done
Reading and comparing: done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done
Testing with pattern 0x00: done
Reading and comparing: done
8. Look at /proc/scsi/scsi.
root@rhel53 ~# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 02 Lun: 00
Vendor: VBOX Model: HARDDISK Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: VBOX Model: HARDDISK Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: VBOX Model: HARDDISK Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 05
9. If possible, install lsscsi, lshw and use them to list the disks.
Debian,Ubuntu: aptitude install lsscsi lshw
Fedora: yum install lsscsi lshw
root@rhel53 ~# lsscsi
[0:0:2:0] disk VBOX HARDDISK 1.0 /dev/sda
[0:0:3:0] disk VBOX HARDDISK 1.0 /dev/sdb
[0:0:6:0] disk VBOX HARDDISK 1.0 /dev/sdc

For more information:



বুধবার, ৩০ অক্টোবর, ২০১৩

Apache Web Server in Linux or Apache HTTP Server Configuration


 Apache HTTP Server Comfigure:
www.linuxhomenetworking.com


Managing the Apache Server

Managing Apache's httpd daemon is easy to do, but the procedure differs between Linux distributions. Here are some things to keep in mind.
  1. Firstly, different Linux distributions use different daemon management systems. Each system has its own set of commands to do similar operations. The most commonly used daemon management systems are SysV and Systemd.
  2. Secondly, the daemon name needs to be known. In this case the name of the daemon is httpd.
Armed with this information you can know how to:
  1. Start your daemons automatically on booting
  2. Stop, start and restart them later on during troubleshooting or when a configuration file change needs to be applied.
For more details on this, please take a look at the "Managing Daemons" section of Chapter 6 "Installing Linux Software" Note: Remember to configure your daemon to start automatically upon your next reboot.

Configuring DNS For Apache

Remember that you will never receive the correct traffic unless you configure DNS for your domain to make your new Linux box Web server the target of the DNS domain's www entry. To do this, refer to Chapter 18, "Configuring DNS", or Chapter 19, "Dynamic DNS".

DHCP and Apache

As you remember, if your Internet connection uses DHCP to get its IP address, then you need to use dynamic DNS to get the correct Internet DNS entry for your Web server. If your Web server and firewall are different machines, then you probably also need to set up port forwarding for your Web traffic to reach the Web server correctly. (Chapter 19, "Dynamic DNS", explains port forwarding, as well.).
DHCP on your protected home network is different. In the book's sample topology, the web server lives on the 192.168.1.0 home network protected by a firewall. The firewall uses NAT and port forwarding to pass Internet traffic on to the web server. Remember that the IP address of your web server can change if it gets its IP address using DHCP. This could cause your firewall port forwarding, not Dynamic DNS, to break.
In this case I recommend that your web server on the 192.168.1.0 network uses a fixed, or static IP address that is outside of the range of the DHCP server to prevent you from having this problem.

General Configuration Steps

The configuration file used by Apache is /etc/httpd/conf/httpd.conf in Redhat / Fedora distributions and /etc/apache*/httpd.conf in Debian / Ubuntu distributions. As for most Linux applications, you must restart Apache before changes to this configuration file take effect.

Where To Put Your Web Pages

All the statements that define the features of each web site are grouped together inside their own <VirtualHost> section, or container, in the httpd.conf file. The most commonly used statements, or directives, inside a <VirtualHost> container are:
  • servername: Defines the name of the website managed by the <VirtualHost> container. This is needed in named virtual hosting only, as I'll explain soon.
  • DocumentRoot: Defines the directory in which the web pages for the site can be found.
By default, Apache searches the DocumentRoot directory for an index, or home, page named index.html. So for example, if you have a servername of www.my-site.com with a DocumentRoot directory of /home/www/site1/, Apache displays the contents of the file /home/www/site1/index.html when you enter in your browser.
Some editors, such as Microsoft FrontPage, create files with an .htm extension, not .html. This isn't usually a problem if all your HTML files have hyperlinks pointing to files ending in .htm as FrontPage does. The problem occurs with Apache not recognizing the topmost index.htm page. The easiest solution is to create a symbolic link (known as a shortcut to Windows users) called index.html pointing to the file index.htm. This then enables you to edit or copy the file index.htm with index.html being updated automatically. You'll almost never have to worry about index.html and Apache again!
This example creates a symbolic link to index.html in the /home/www/site1 directory.
[root@bigboy tmp]# cd /home/www/site1
[root@bigboy site1]# ln -s index.htm index.html
[root@bigboy site1]# ll index.*
-rw-rw-r--    1 root     root        48590 Jun 18 23:43 index.htm
lrwxrwxrwx    1 root     root            9 Jun 21 18:05 index.html -> index.htm
[root@bigboy site1]#
The l at the very beginning of the index.html entry signifies a link and the -> the link target.

The Default File Location

By default, Apache expects to find all its web page files in the /var/www/html/ directory with a generic DocumentRoot statement at the beginning of httpd.conf. The examples in this chapter use the /home/www directory to illustrate how you can place them in other locations successfully.

File Permissions And Apache

Apache will display Web page files as long as they are world readable. You have to make sure you make all the files and subdirectories in your DocumentRoot have the correct permissions.
It is a good idea to have the files owned by a nonprivileged user so that Web developers can update the files using FTP or SCP without requiring the root password.
To do this:
  1. Create a user with a home directory of /home/www.
  2. Recursively change the file ownership permissions of the /home/www directory and all its subdirectories.
  3. Change the permissions on the /home/www directory to 755, which allows all users, including the Apache's httpd daemon, to read the files inside.
[root@bigboy tmp]# useradd -g users www
[root@bigboy tmp]# chown -R www:users /home/www
[root@bigboy tmp]# chmod 755 /home/www
Now we test for the new ownership with the ll command.
[root@bigboy tmp]# ll /home/www/site1/index.*
-rw-rw-r--    1 www     users       48590 Jun 25 23:43 index.htm
lrwxrwxrwx    1 www     users           9 Jun 25 18:05 index.html -> index.htm
[root@bigboy tmp]#
Note: Be sure to FTP or SCP new files to your web server as this new user. This will make all the transferred files automatically have the correct ownership.
If you browse your Web site after configuring Apache and get a "403 Forbidden" permissions-related error on your screen, then your files or directories under your DocumentRoot most likely have incorrect permissions. Appendix II, "Codes, Scripts, and Configurations," has a short script that you can use to recursively set the file permissions in a directory to match those expected by Apache. You may also have to use the Directory directive to make Apache serve the pages once the file permissions have been correctly set. If you have your files in the default /home/www directory then this second step becomes unnecessary.

Security Contexts For Web Pages

Fedora Core 3 introduced the concept of security contexts as part of the Security Enhanced Linux (SELinux) definition. (See Appendix I, "Miscellaneous Linux Topics," for details.) A Web page may have the right permissions, but the Apache httpd daemon won't be able to read it unless you assign it the correct security context or daemon access permissions. Context-related configuration errors will give "403 Forbidden" browser messages, and in some cases, you will get the default Fedora Apache page where your expected Web page should be.
When a file is created, it inherits the security context of its parent directory. If you decide to place your Web pages in the default /var/www/ directory, then they will inherit the context of that directory and you should have very few problems.
The context of a file depends on the SELinux label it is given. The most important types of security label are listed in Table 20-1.

Or Other System For Server

Chapter 26. Apache HTTP Server Configuration

Red Hat Enterprise Linux provides version 2.0 of the Apache HTTP Server. If you want to migrate an existing configuration file by hand, refer to the migration guide at /usr/share/doc/httpd-<ver>/migration.html or the Red Hat Enterprise Linux Reference Guide for details.
If you configured the Apache HTTP Server with the HTTP Configuration Tool in previous versions of Red Hat Enterprise Linux and then performed an upgrade, you can use the HTTP Configuration Tool to migrate the configuration file to the new format for version 2.0. Start the HTTP Configuration Tool, make any changes to the configuration, and save it. The configuration file saved will be compatible with version 2.0.
The HTTP Configuration Tool allows you to configure the /etc/httpd/conf/httpd.conf configuration file for the Apache HTTP Server. It does not use the old srm.conf or access.conf configuration files; leave them empty. Through the graphical interface, you can configure directives such as virtual hosts, logging attributes, and maximum number of connections.
Only modules provided with Red Hat Enterprise Linux can be configured with HTTP Configuration Tool. If additional modules are installed, they can not be configured using this tool.
The httpd and redhat-config-httpd RPM packages need to be installed to use the HTTP Configuration Tool. It also requires the X Window System and root access. To start the application, go to the Main Menu Button => System Settings => Server Settings => HTTP or type the command redhat-config-httpd at a shell prompt (for example, in an XTerm or GNOME Terminal).
CautionCaution
  Do not edit the /etc/httpd/conf/httpd.conf configuration file by hand if you wish to use this tool. The HTTP Configuration Tool generates this file after you save your changes and exit the program. If you want to add additional modules or configuration options that are not available in HTTP Configuration Tool, you cannot use this tool.
The general steps for configuring the Apache HTTP Server using the HTTP Configuration Tool are as following:
  1. Configure the basic settings under the Main tab.
  2. Click on the Virtual Hosts tab and configure the default settings.
  3. Under the Virtual Hosts tab, configure the Default Virtual Host.
  4. If you want to serve more than one URL or virtual host, add the additional virtual hosts.
  5. Configure the server settings under the Server tab.
  6. Configure the connections settings under the Performance Tuning tab.
  7. Copy all necessary files to the DocumentRoot and cgi-bin directories.
  8. Exit the application and select to save your settings.

26.1. Basic Settings

Use the Main tab to configure the basic server settings.
Figure 26-1. Basic Settings
Enter a fully qualified domain name that you have the right to use in the Server Name text area. This option corresponds to the ServerName directive in httpd.conf. The ServerName directive sets the hostname of the Web server. It is used when creating redirection URLs. If you do not define a server name, the Web server attempts to resolve it from the IP address of the system. The server name does not have to be the domain name resolved from the IP address of the server. For example, you might want to set the server name to www.example.com when your server's real DNS name is actually foo.example.com.
Enter the email address of the person who maintains the Web server in the Webmaster email address text area. This option corresponds to the ServerAdmin directive in httpd.conf. If you configure the server's error pages to contain an email address, this email address will be used so that users can report a problem by sending email to the server's administrator. The default value is root@localhost.
Use the Available Addresses area to define the ports on which the server will accept incoming requests. This option corresponds to the Listen directive in httpd.conf. By default, Red Hat configures the Apache HTTP Server to listen to port 80 for non-secure Web communications.
Click the Add button to define additional ports on which to accept requests. A window as shown in Figure 26-2 will appear. Either choose the Listen to all addresses option to listen to all IP addresses on the defined port or specify a particular IP address over which the server will accept connections in the Address field. Only specify one IP address per port number. If you want to specify more than one IP address with the same port number, create an entry for each IP address. If at all possible, use an IP address instead of a domain name to prevent a DNS lookup failure. Refer to http://httpd.apache.org/docs-2.0/dns-caveats.html for more information about Issues Regarding DNS and Apache.
Entering an asterisk (*) in the Address field is the same as choosing Listen to all addresses. Clicking the Edit button in the Available Addresses frame shows the same window as the Add button except with the fields populated for the selected entry. To delete an entry, select it and click the Delete button.
TipTip
  If you set the server to listen to a port under 1024, you must be root to start it. For port 1024 and above, httpd can be started as a regular user.




History and Execuate Linux


History is a common command for shell to list out all the executed commands. It is very useful when it comes to investigation on what commands was executed that tear down the server. With the help of last command, you be able to track the login time of particular user as well as the the duration of the time he/she stays login.
last
...
mysurface    tty7         :0               Mon Oct  6 20:07 - down   (00:00)
reboot   system boot  2.6.24.4-64.fc8  Mon Oct  6 20:06          (00:00)
mysurface    pts/8        10.168.28.44     Mon Oct  6 17:42 - down   (01:58)
mysurface    pts/7        :0.0             Mon Oct  6 17:41 - 19:40  (01:59)
mysurface    pts/6        :0.0             Mon Oct  6 17:27 - 19:40  (02:13)
mysurface    pts/5        :0.0             Mon Oct  6 17:27 - 19:40  (02:13)
mysurface    pts/5        :0.0             Mon Oct  6 15:52 - 15:59  (00:07)
...
If the command line history could provides the date time of the commands being executed, that may really narrow down the scope of the user actions that cause the server malfunction. By default, history do not append with timestamp, but it is easy to configure it to display timestamp, you just need to set one environment variable HISTTIMEFORMAT.
HISTTIMEFORMAT takes format string of strftime. Check out the strftime manual to choose and construct the timestamp that suit your taste. My favorite is “%F %T “.
export HISTTIMEFORMAT="%F %T "
Execute history again and you will see the effect on the spot, bare in mind that the timestamp for command lines that executed at previous sessions may not valid, as the time was not tracked.
...
  994  2008-10-16 02:27:40 exit
  995  2008-10-16 01:12:20 iptables -nL
  996  2008-10-16 01:47:46 vi .bash_profile
  997  2008-10-16 01:47:55 history
  998  2008-10-16 01:48:03 . .bash_profile
  999  2008-10-16 01:48:04 history
 1000  2008-10-16 01:48:09 exit
 1001  2008-10-16 02:27:43 history
...
I would suggest you to put the export into ~/.bash_profile as well as /root/.bash_profile. In case you do not have .bash_profile, you can choose to put into ~/.bashrc.

What is IDB-BISEW It Scholership Project


IDB-BISEW (Islamic Development Bank-Bangladesh Islamic Solidarity Educational Wakf ) was established following an agreement between the Islamic Development Bank, Jeddah, Saudi Arabia, and the Government of Bangladesh. IDB-BISEW undertakes funding, formulating and implementing of projects in the areas of education, human resource development and institutional strengthening.

The intent is to transform the large population into productive workforce by strengthening their technical capability to use existing and emerging technologies resulting in sustainable economic growth and equality.

What we do...

IT Scholarship Project

Currently in its tenth year of operation the IDB-BISEW IT Scholarship Project was launched in 2002. The training programme under this project started in 2003 The programme's aim is to enhance the employment prospects of meritorious Muslim youths who come from financially disadvantaged background. Read more

Madrasah Project

IDB-BISEW has taken up the initiative of providing vocational education and training to the students of selected Madrasahs by exposing them to vocational education/training in the trades of their choice.
Read more

Vocational Training

IDB-BISEW is targeting a particularly neglected and vulnerable section of the student population of the country These are the students of underprivileged background who fail to progress from SSC to the HSC levels. Further details of this planned intervention is available at the link below.
Read more


















Recent Courses

  • Computer Fundamentals
  • Architectural and Civil CAD (ACAD)
  • Computer Assisted Animation (CAA)
  • Database Design and Development (DDD)
  • Enterprise Systems Analysis and Design - J2EE (ESAD - J2EE)
  • Enterprise Systems Analysis and Design - C# .NET (ESAD - CS)
  • Networking Technologies (NT)
  • Web-presence Solutions & Implementations (WPSI)

মঙ্গলবার, ২৯ অক্টোবর, ২০১৩

Resume Or Curryculam Vita of Software Engineer & Programar

Resume  Format of Curryculam Vita :




Resume
Of
Md. Nadim Mir
Contact No: 01917764393/ 01717860842

Career Objective



  • To achieve a dynamic and challenging job utilizing my ability in a sound organization environment.
§  To work with honesty
  • To work for country-wide development.
  • Establish as a highly qualified IT Professional in Bangladesh.

Professional Qualification
 








Diploma
Authority :   IDB-BISEW IT SCHOLARSHIP PROJECT
Evaluation
Institute  :Base Limited
Appeared
Course Name:Database Design & Development
Session    :September 2011-November 2012
Course duration :1000 Hours      
Course Concentration
Computer Fundamentals( Microsoft Vista, MS-Word, Excel, Access, Power Point & Internet)
Database Development using Oracle 10g:
SQL,PL/SQL
Oracle Certified Professional (OCP)

Area of Expertise
description
Programming language
SQL, PL/SQL
Methodology 
PPT
RDBMS
Oracle10g SQL, PL/SQL, MS Access
Operating System
Microsoft Windows: Windows 98/2000/XP, Vista, Windows 7
Hardware & Networking
Basic Knowledge on Hardware, LAN.(Using printer, scanner,)
Office Application
Microsoft Office 2003/2007/2010/2013(Word, Excel, Power Point, Access),  Internet Security, Basic Network Operating, Software Installation & troubleshooting
Computer Application
Internet Explorer, Mozilla Firefox, Google Chrome, Adobe Photoshop,Paint,  messenger, media player.

Academic Qualification
 






Education
Group/Dept.
Institution
Year of  passing
Division/Class
MSc
Botany
Govt. B. M. College, Barisal
Under
National University
2008

Second Class
(Marks 57%)
B.sC
Botany
Govt. B. M. College, Barisal
Under
National University
2007

Second Class
(Marks 53%)
HSC
Science
AmritalalDey College
Under
Barisal Board
2003
 GPA
2.70(5.0)
SSC
Science
Mathuranath Public School
Under
Barisal Board
2001
GPA
3.38(5.0)

Training




1.     I have successfully completed 35 working days training on marketing from ACI Pharmaceutical Ltd
2.     I have also completed 3 days training on Human Rights Education from Nagorik Uddyog& Association of Voluntary Action for Society (AVAS) held on 20-22 December,2004.
Interest
 





Magazine, newspaper & blog reading, traveling, listening musicand Islamic Lecture, watching movies, playing (cricket, football)
Language Proficiency

 




v  Bengali:      Proficient in listening, speaking, reading and writing.
v  English:      Proficient in listening, speaking, reading and writing.
v  Hindi:         Proficient in listening, speaking(medium).

Scholarship

 




v  IDB-BISEW (Islamic Development Bank-Bangladesh Islamic Solidarity Educational Wakf) IT Scholarship round-15(Hi-end IT Professional Training with International Vendors Certification). IDB Bhaban (4th floor),   E/8-A RokeyaSharaniSher-e-Bangla Nagar, Dhaka-1207, Bangladesh.

Personal Information

 



Father’s name                                  :  Md. Alauddin Mir
Mother’s name                                 :  Nurunnhar
Date of Birth                                    :  15th July 1986
Permanent Address                          :  Post Office Lane, Nutan Bazar, Kotwali Model Thana
                                                               Barisal Sadar, Barisal-8200
      Present Address                               : Do
      Gender                                            : Male
      Nationality                                       :  Bangladeshi (by birth).
      National ID Card No.                        : 0695119236878
      Blood group             : O+ (ve)
     Religion                                         :  Islam
      Height                                              : 5”4’
      Marital Status                                             : Unmarried
Reference

 





Md. Wahiduzzaman Sheikh                     MD.Rasheduzzaman
Associate Professor                                                        Oracle Database Administrator & Programmer Department of Botany                                                  Square Hospitals Limited
Govt. Women’s College, Barisal                                       E-MAIL: rashrifan@gmail.com
Mob: 01718992700                                                     Mob: 01912831608


I hereby confirm & solemnly declare that the information given above is correct. I shall also submit any additional information/documents as and when required.

                                               
Signature
Date:10/29/2013


Popular Posts

show

click here