Skip to main content

Posts

clearing cache on squid proxy

  stop squid, and erase all the files from your cache directory  For example: squid -k shutdown or /etc/init.d/squid  stop Find-out which is you squid cache Directory using following command # more /etc/squid/squid.conf | grep ^cache_dir cache_dir ufs /var/spool/squid 5120 16 256   Here it is showing /var/spool/squid. Then remove cache files ( Take a backup before deleting if required)  rm -fr  /var/spool/squid/*   then re-create the swap directory structure: squid -z  now start squid again. /etc/init.d/squid  start

Linux System Monitoring Tools.

Need to monitor Linux server performance? Try these built-in command and a few add-on tools. Most Linux distributions are equipped with tons of monitoring. These tools provide metrics which can be used to get information about system activities. You can use these tools to find the possible causes of a performance problem. The commands discussed below are some of the most basic commands when it comes to system analysis and debugging server issues such as: Finding out bottlenecks. Disk (storage) bottlenecks. CPU and memory bottlenecks. Network bottlenecks. #1: top - Process Activity Command The top program provides a dynamic real-time view of a running system i.e. actual process activity. By default, it displays the most CPU-intensive tasks running on the server and updates the list every five seconds. Commonly Used Hot Keys The top command provides several useful hot keys: Hot Key Usage t Displays summary information off and on. m Displays memory i...

How do I see all running process in Linux?

You need to use the ps command. It provide information about the currently running processes, including their process identification numbers (PIDs). Both Linux and UNIX support ps command to display information about all running process. ps command gives a snapshot of the current processes. If you want a repetitive update of this status, use top command.     ps command Type the following ps command to display all running process:    # ps aux | less Where, -A: select all processes a: select all processes on a terminal, including those of other users x: select processes without controlling ttys See every process on the system # ps -A # ps -e See every process except those running as root # ps -U root -u root -N See process run by user vishnu   # ps -u vishnu top command The top program provides a dynamic real-time view of a running system. Type the top at command prompt: # top Output: top command : Displays Linux Tasks To quit p...

SSH login without password.

Login as “ root ” on “ spicykerala.co.in ” and generate a pair of authentication keys. Note: even if is unsecured to work without password, do not enter it. Let it empty... [root@spicykerala]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: b4:35:f8:0e:44:ba:b1:85:ea:17:d3:41:da:8b:58:ed root@spicykerala.co.in The key's randomart image is: +--[ RSA 2048]----+ | o                          | | O .                        | | * O o              ...

Storing all the RPM packages installing via yum installer

For storing all the RPM packages installing via yum installer, add this following line to your /etc/yum.conf file. keepcache=1 For Example: [vichooss@spicykerala ~]$ more /etc/yum.conf [main] debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=3 color=never keepcache=1 Then all rpm packages installed via yum are stored in /var/cache/yum/*/packages . you can change the cache directory by specifying cachedir=<mydir> in yum.conf . For Example: [ vichooss@spicykerala ~]$ more /etc/yum.conf [main] debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=3 color=never keepcache=1 cachedir=/home/vichooss/Downloads

How To Install Fonts In Fedora 14

Installation of fonts in Fedora is actually quite easy. To install the font system wide, all you need to do is put it in the fonts in a directory. To be consistent, create a new directory under “/usr/share/fonts”. For example, I created directory: #mkdir /usr/share/fonts/malayalam change the permission of the directory. #chmod 775 -R /usr/share/fonts/malayalam Copy required fonts to that directory. #cp /home/user/Downloads/Manorama.ttf  /usr/share/fonts/malayalam then all you have to do is run “fc-cache” command on that directory, e.g #cd /usr/share/fonts #fc-cache malayalam

Install EMC Storage in Fedora Linux

Here we are installing EMC storage in Fedora 13 (which is not recommended by EMC). EMC's software Powerpath will not support with Fedora. So here we are using the package called Multipath. That is default with fedora. 1.      Try to boot from the fedora optical Media. 2.      Press Esc button when you will get the first boot loader menu for the boot prompt.  3.      In that boot prompt. Type: # Linux mpath Then press Enter. (If you are not getting the basic video driver then do the following step) # Linux mpath xdriver=vesa nomodeset 4.      Install fedora with all the available packages. (In the mean time you can configure the storage also. In storage you have to create  virtual disk[s].) 5.      Configure the IP addresses. 6.      Connect the storage with server through switch. 7.      start the iscsi...