Thursday, December 19, 2013

How to monitor hdd temperature from terminal

                                                                    step1
                                                                     
                    sudo apt-get install hddtemp      



                                                                       step2

                      yes or no  is up to you        
                                                                               

                                                                             step3

                     keep it as it is                  

                                                                            step 4

                      keep it as it is                  


                                                                              step 5

                    sudo hddtemp /dev/sd[a-z]                  

                                                                           OR
                 hdparm -H /dev/sda


Wednesday, December 18, 2013

How to test the performance of the hard disk drive ( Ubuntu + Debian )

                                                                         step 1
                              hdparm -tT /dev/sda
                                          8 years old HDD

                                                                               step 2
                             sudo hdparm -tT /dev/sda
                                          3 years old HDD

                                                                        the end
                                           

How to automatically repair filesystems with inconsistencies during bootsetup ( after electrical or physical failure in Debian or ubuntu OS)

                                                                     step 1

                               nano /etc/default /rcS           


                                                                         step 2
                                 unchanged

                                                         
                                                                            step 3

                              on the last line change  no on yes                                              
                                                               Ctrl+x  then y
                                                                       
                   Errors in the file system - this is one of the main causes of incorrect work disks.

                                                                         the end.
                                   

Tuesday, December 17, 2013

How to find default router IP address from terminal (LAN)

                                                                            step1

                    sudo ip route show | grep default                        
                         

                                                                              step 2
                         
                      results   192.168.1.1                                   
                                                   

                                                                             step 3

                       route                          


                                                                            step 4

                    results    192.168.1.1            

                                                                    the end
                                     

How to find your external IP address from terminal

                                                                          step 1
                    sudo apt-get install curl
                                                                             

                                                                         
                                                                        step 2
                     curl ifconfig.me
                                                  

                                                                            step 3

                    results                  
                                                 
                                                                        step 4

                     wget http://ipecho.net/plain -O - -q ; echo                           
                                               

Thursday, December 12, 2013

How to see active network connections to your server or local host

                                                                                 
                                                                           step 1

                    sudo cat /proc/net/ip_conntrack               

                                                                           step 2


                    netstat -n -A inet


                                                                             step 3
   
                     netstat -ano | head

                                                                               step 4


                     ss -n                    

                                                                               step 5


                     sudo netstat -natp 

                                                                             
                                                                                 step 6
                                                                       
 sudo lsof -nPi tcp -F n | awk -F\> '/>/{print$2}'| sort | uniq -c | sort -nr                                  


                                                                                the end

Wednesday, December 11, 2013

How to add a user to the sudoers list working in (ubuntu, debian , cent os )

                                                                    step 1

                     su -                        

                                                                         step 2

                         
                      nano /etc/sudoers              

                                                                                step 3


                      Just under the line root  ALL=(ALL:ALL)   ALL
             
                      add your user name  and type  ALL=(ALL:ALL)  ALL    

                                                                              step 4


                      should look like this  (please use Tab to navigate)

                          Ctrl +x  then type y
               

How to install and use phoronix-test-suite

                                                                            step 1
                    sudo apt-get install phoronix-test-suite
                                                                      
                                                                         
                                                                               step 2
                    press y , y , y.  or n , n , n .

                                                                                step 3
                     phoronix-test-suite detailed-system-info

                                                                               
                                                                               step 4
                     phoronix-test-suite system-sensors


                                                                                step 5

                     phoronix-test-suite diagnostics


                                                                               step 6
                    results

                                                                              step 7


                    phoronix-test-suite interactive

                                                                              step 8

                     choice is yours

                                                                      step 10


                                                               
                                                                          step 11

                   results

                                               

How to use ab or how many requests per second your Apache installation is capable of serving. (update fri Jun 5 2015)

                                                                    step 1

                      ab -n 1000 -c 5 http://www.hackmysql5.com/ 
                      ab -n 1000 -c 5   you need to use your domain name 


                                                                       step 2

                      results      


                                                                            step 3

    http://httpd.apache.org/docs/2.2/programs/ab.html


                                                       Update ubuntu 12.04.5 64 bit
                                                       intel i-5 4570S CPU@2.9GHz x 4
                                                       RAM 8 GiB
                                                       HDD Toshiba MQ01ABD100 1Tb

                                       






                                                              

Tuesday, December 10, 2013

How to install dstat for monitor in real time your server or local host

                                                                             step 1

                    sudo apt-get install dstat                            


                                                                              step 2

                                                                               
                    dstat                                


                                                                             step 3

                                                                 
                      results                                

                                                                          the end.
                                           

How to install nload (for monitoring your network speed on server or local host)

                                                                    step 1

                    sudo apt-get install nload                              


                                                                     step 2

                     nload          
                                                         
                                                                       
                                                                          step 3

                     results
                               

wordpress problem with plugin updates

                                                           changing permissions will solve the problem                                    ...