Linux

How to clear cache memory on linux

Clean & empty buffers and cache on a Linux system

Before clearing cache memory on a Linux system? # free -m total used free shared buffers   ..

How to install virtualbox on ubuntu linux mint

Installing VirtualBox 4.3 on Ubuntu 13.04/13.10, Linux Mint 15

First uninistall previous VirtualBox version in system # sudo apt-get remove virtualbox-4 Install VirtualBox 4.3 in system : 32Bit : # wget http://download.virtualbox.org/virtualbox/4.3.0/virtualbox-4.3_4.3.0-89960~Ubuntu~raring_i386.deb # sudo dpkg -i virtualbox-4.3_4.3.0-89960~Ubuntu~raring_i386.deb # sudo apt-get -f install 64Bit : # wget http://download.virtualbox.org/virtualbox/4.3.0/virtualbox-4.3_4.3.0-89960~Ubuntu~raring_amd64.deb # sudo dpkg -i virtualbox-4.3_4.3.0-89960~Ubuntu~raring_amd64.deb # sudo apt-get -f install To Run VirtualBox,type below command in Terminal : # virtualbox   ..

Error connection timed out 110

Solved - Error connection timed out 110 Cant open SMTP stream in webmail

When you receive some error like error connection timed out 110, when you try to sent mail through webmail then probably that is because of firwall which installed on the server is not allowing the connections to the SMTP service. ERROR: Message not sent. Server replied: Connection timed out 110 Cant  ..

How to force logout a user

Force logoff a user

How to force a user to logout from the server? To forcefully logout a user and make required changes on server, First find out how many sessions a user have login and also check wheter he is executing some important task, before force fully logout a user. To find user who  ..

Example to split a file in to small file

Create split input file

Create split input file # for i in {1..1000}; do echo "$i" >> split_input; done First we shall create an input file for splitting a file. With the above command we shall create a large input file for splitting a file which has 1000 lines. File split_input file will be having  ..

How to split large file into small files

Breaking large files into small files

A large file can be splitted into small from linux terminal by using split command in linux. Make sure that required packages are installed in the terminal. To Split large file into number of smaller files from linux console, follow the steps below. To Split the file name example.txt, use split  ..

Smartctl command to find disk info

Smartctl to find HP SmartArray controllers

smartctl is a linux tool which is used to perform disk analysis # smartctl -a -d cciss,0 /dev/cciss/c0d0 The smartctl program also allows for you to view and test SMART attributes of a drive. You can quickly check the overall health of a drive by using # smartctl -H /dev/sda   ..

How to find hd controller module running on linux

Find hp smart array controller used linux

The module used for HP SmartArrays is 'cciss'. In more recent kernel versions they have been moving things over to a newer hpsa driver. To find out what modules are used for which which hardware, you can use below command # lspci -k OUTPUT: 04:00.0 RAID bus controller: Hewlett-Packard Company Smart  ..

Execute a script at startup in ubuntu

Set startup script in ubuntu

Command for Startup of Ubuntu Edit /etc/rc.local and add your commands The script must be ends with "exit 0" Command for Rebooting Ubuntu Put your script in /etc/rc0.d Make it runable (sudo chmod +x myscript) The name of your script must begin with K99 and run at the right time. Command  ..

How to find physicaldisk of volumegroup

LVM find physical disk of a filesystem

Sometimes we will be in a situation to find which physical disk are used by a filesystem? Now a days servers are configured with lvm by default. you can use below command to find the physical disks used by a filesytem. # lvs -o +devices /dev/mapper/VG_Name # lvs -o +devices  ..

Heartbleed bug april 7 2014

How to protect servers against heartbleed bug

What is heartbleed? The Heartbleed bug concerns a security vulnerability in a component of recent versions of OpenSSL. OpenSSL cryptographic software library is a technology used by more number of websites or servers for secure the traffic, passwords and other sensitive information transmitted to and from users and visitors. There is a  ..

Proftpd configre tlsrenegotiate

Proftp client does not timeout

Normally in proftd when mod_tls is enabled, sometime user might face issue with ftp connection, There might be error like aborting transfer: Link to file server lost TLSRenegotiate [ [\"ctrl\" secs] [\"data\" Kbytes] [\"timeout\" secs]|[\"required\" on|off]|\"none\"] Default TLS connection setup TLSRenegotiate ctrl 3600 data 512000 required off timeout  ..

How to enable core dumps for processes

Linux create core dumps for processes

How to create core dumps for processes on Linux Operating System? Core dumps can be enabled or disabled in linux operating system by using below techniques. There is a default entry as below in /etc/profile to disable core dumps. To enable the core dumps you have to modify the given line  ..

How to enable log for sftp on linux server

Enable log reporting for sftp server

Normally when we use FTP server which in default has configuration for log reporting. When we use sftp which use open-ssh for file transfer the log reporting can be configured as below. How to configure log reporting for SFP in linux server? This works for openssh-server-4.3 or above. # vi   ..

How to find fiber channel information on linux server

How to find fiber card links are up or down

systool is linux command which is used to view system device information by bus, class, and topology. Get simple information about the Fibre Channel HBAs in a machine: # systool -c fc_host -v Get verbose information regarding the SCSI adapters present on a system: # systool -c scsi_host -v See what Fibre Channel  ..

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Next >

Tech Bluff