Raafat Mohamed

Senior Linux Administrator

  • About Me
Menu
  • About Me
in Linux
December 7, 2016

Clear Winbind cache

How to clear Winbind cache   Stop the Winbind service : [root@raafat root]#  service winbind stop Stop the samba service if you have it : [root@raafat root]#  service smb stop Clear the Samba Net cache: [root@raafat root]#  net cache flush Delete the Winbind cache : [root@raafat samba]# cd /var/lib/samba/ Always take backup before deleting anything: [root@raafat […]

No Comments
Read More »
in Linux
November 2, 2016

ifconfig not found in CentOS 7 Minimal Install

Centos7 ifconfig not found If you have installed Centos 7 minimall install ,and want to check the server ip ,you will not found ifconfig command ,you have to install its package via the following command : yum -y install net-tools Now,you can use ifconfig command : View All Network Setting ifconfig View information for all […]

No Comments
Read More »
in Linux
January 4, 2016

Linux disk is SSD or HDD

How to determine if Linux disk is SSD or HDD :   Linux automatically detects SSD, and since kernel version 2.6.29, you may verify sda with: cat /sys/block/sda/queue/rotational You should get 1 for hard disks and 0 for a SSD. In my case, I get 0 (cause it’s a SSD). server:~# cat /sys/block/sdb/queue/rotational 0

No Comments
Read More »
in Linux
October 21, 2015

Linux Malware Detect (Maldet) On CentOS

Linux Malware Detect (LMD) is a malware scanner for Linux released under the GNU GPLv2 license, that is designed around the threats faced in shared hosted environments. It uses threat data from network edge intrusion detection systems to extract malware that is actively being used in attacks and generates signatures for detection. Installation cd /usr/local/src/ […]

No Comments
Read More »
in Linux
September 15, 2015

How do I disable IPv6 on centos?

You can disable IPV6 by the following : #nano /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 To disable in the running system: echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6 or sysctl -w net.ipv6.conf.all.disable_ipv6=1 sysctl -w net.ipv6.conf.default.disable_ipv6=1

No Comments
Read More »
in Linux
April 20, 2015

Clear Memory Cache on Linux

You can free up the memory cache on Linux OS by the following : sudo sh -c “sync; echo 3 > /proc/sys/vm/drop_caches” Ex. root@s1:~# free -m              total       used       free     shared    buffers     cached Mem:        323078     319647       3430          0        705     175763 -/+ buffers/cache:     143178     179899 Swap:        11583         29      11554 root@s1:~#  sh -c “sync; echo 3 > […]

No Comments
Read More »
in Linux
April 23, 2014

How to increase max size of .bash_history

Bash history size is specified in HISTSIZE environment variable ,So if you want to increase the size of history ,you have to increase the value of HISTSIZE . To know the current size : echo $HISTSIZE && echo $HISTFILESIZE To increase the size to 10000 : echo -e ‘export HISTSIZE=10000 nexport HISTFILESIZE=10000’ >>~/.bash_profile echo -e […]

Comments Off on How to increase max size of .bash_history
Read More »
in Linux
March 17, 2014

Disable the guest session in Ubuntu 11.10 or higher

Remove Guest Session  from Ubuntu Ubuntu come with a “Guest Session” account, which anyone can log into without password ,you can disable the guest account by following these steps :  edit lightdm.conf which controls LighDM display manager : vi /etc/lightdm/lightdm.conf [SeatDefaults] greeter-session=unity-greeter user-session=ubuntu allow-guest=false restart the graphical desktop environment: sudo restart lightdm To Enable the […]

Comments Off on Disable the guest session in Ubuntu 11.10 or higher
Read More »
in Linux
August 29, 2013

Set time in Linux system

This document will help you in modifying server clock and timezone,You can keep the hardware clock in UTC or localtime. Linux looks at /etc/localtime to determine the current time of your machine ,Timezone files are located in /usr/share/zoninfo/ ,So if you are in Saudi Arabia (Riyadh) and want to configure the time on the server […]

Comments Off on Set time in Linux system
Read More »
in Linux, Virtualization
July 18, 2013

device eth0 does not seem to be present, delaying initialization” Error

Recently ,I have taken a template from Centos 6 on Cloudstack and when trying to bring up a new VM from the template and trying to start the network service received the error: “device eth0 does not seem to be present, delaying initialization” When investigating the problem ,It turns out that the NIC on the machine […]

Comments Off on device eth0 does not seem to be present, delaying initialization” Error
Read More »

Previous Posts

Recent Posts
  • Exalogic Power On Sequence
  • Exalogic Power Off Sequence
  • Clear Winbind cache
  • ifconfig not found in CentOS 7 Minimal Install
  • How to install Vmware Vcenter server step by step
Categories
  • Apache (2)
  • Benchmarking (1)
  • CitrixXen (3)
  • Cpanel (5)
  • DBs (1)
  • DNS (2)
  • Exim (3)
  • Fireawall (3)
  • IIS (1)
  • Linux (21)
  • MSSQL Server (1)
  • Mysql (10)
  • Network (2)
  • Oracle (6)
  • Others (2)
  • Plesk (3)
  • Storag (3)
  • Uncategorized (2)
  • Virtualization (4)
  • Windows (9)
  • Xen (4)
  • Zpanel (1)
Archives

Join the mailing list

Your Name:
E-mail:*
Type the characters you see here:

Copyright © 2015 Raafat IT blog

Theme created by PWT. Powered by WordPress.org