Fix conky hiding

I have installed and got some conky script but after system starting its hiding automatically and the only way I can see it while shutting down.So I have googled and got some solution which can fix my problem.Open your conkyrc file which is a hidden file  in home directory with$ vim  .conkyrcor$ vim ~/.conkyrc Find the area of below lines and make the configuration as I have mentioned.own_window...

See Open Ports in a Linux PC ( Localhost/Remote Machine)

I am writing a small post that will help you just to see what ports are open in  a particular remote/local machine.we are going to use tool name as nc.To install it , open your terminal and type as # yum install nc                              After installing , you can use it withnc -zv xxx.xxx.xxx.xxx <Port> ...

Tutorial on .htpasswd and .htaccess with apache(httpd) in Linux

If there is a situation that have to dealt with like a public website but with some secret information.How can we protect the information ? .We can use .htpasswd and .htaccess in that time.How  ? Lets see................Open your terminal and type as                        vim /etc/httpd/conf/httpd.confand find line no : 334 to 338....

Make the system Time Zone persistent across REBOOT in Linux

Hi Guys! Are tou tired of fixing the Time Zone across reboot in your Linux box..?  Here are three simple steps for you to fix the issue. In this example we are fixing the time zone to IST. Similarly you can set it to any Time Zone of your choice. Step:1 Set the hardware clock to IST time zone # ln -sf /usr/share/zoneinfo/Asia/Calcutta /etc/localtime Step:2 Verify the hardware clock is set...

How To do Software RAID using mdadm in CentOS

Today I am writing about how to create Software RAID. Creating Software RAID is pretty easy. All we need either 3 equal size partitions on different harddisks or 3 equal size harddisks.        In my approach , I am doing this in VmWare by choosing 3 virtual harddisks with equal 1 GB             Size. Our first step is we need to make those harddisks...

VSFTPD - Passive mode port configuration

If your FTP got configured in Passive mode then to allow data transfers , you must to this.##########/etc/vsftpd/vsftpd.conf################3pasv_min_port=49152pasv_max_port=65534#############/etc/sysconfig/iptables-config##############IPTABLES_MODULES="ip_conntrack_f...

Virtual Hosts in Apache -Linux

############################Listen 192.168.56.150:80Listen 192.168.56.151:81############################So above two lines are stands for IP based virtual hosting and as well as Port based Virtual Host.The virtual Host which listens to the 1st IP will browse throughh port 80 but other will listens and browse through port 81 only.Now We have to configure Virtual Hosts#########################################<VirtulHost...

Rename Database in MySQL

Today I am writing about how to rename MySQL Database.So If you want to rename a database in MySQL dont forget taking backup of your Views,Procedures and Functions of current database. Because while you renaming changes wont apply for Views,Procedures and functions.After you have taken the backup , We can go for renaming with the command below.RENAME TABLE old_db.table TO new_db.table;Here old_db...

Famous SELinux Contexts

1. httpd SELinux context                                        chcon -v --type=httpd_sys_content_t /path/to/dir2.httpd SELinux context                   chcon -Rv --type=httpd_sys_content_t /path/to/dir3. Restore old/default context   ...

How to set the primary IP address of a Windows Server 2008 R2

Hi All..! Finally, today I got a solution for the problem continuously facing, whenever we add a new IP to our servers (Windows 2008 server), the primary IP address ( the default outgoing IP) is getting changed automatically which in turn causing lot many issues later. Here is the solution. http://www.aip.im/2013/01/how-to-set-the-primary-ip-address-of-a-windows-server-2008-r2/ This...

Use Wget for downloading from FTP with username and Password

Hi , We all know we can use wget to download files from command-line.Downloading files from FTP can be done but for with username and password you have to scroll manpage a lot.wget --user <username> --password <password> ftp://xxx.xxx.xxx.xxx/dir/file/downloadto resume wget -c --user <username> --password <password> ftp://xxx.xxx.xxx.xxx/dir/file/downl...

Automation with Cron

In every linux cron service we found and it is most familiar command to every system administrator. I am proud to be one of them.CRON - Introduction :The cron is a daemon and we can manage it with service names crond. Cron is the best solution in all sort of Linux Operating systems to run scritps,commands at a determined or specified time. So as I did mentioned it is a service it will start with system...

How to remove Shutdown,restart options from startmenu in windows server 2008.

1. Open run 2.Type gpedit.msc3.choose User Configuration -> Administrative Templates -> Start menu & Task BarChoose Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commandsand open it and select enabled.Thensee whether it is updated or not. If its not updated then open run and type asgpupdate /forceand now shutdown,restart removed from start me...

Basic MySQL Administration

1. How to create a user and along with his privileges automatically ?GRANT ALL PRIVILEGES ON database.* To 'username'@'hosr or IP ' IDENTIFIED BY 'password';flush privileges;2. How to give only specific privileges to users ?GRANT select,lock tables ON *.* To 'user'@'host or IP ' IDENTIFIED BY 'password';flush privileges;3. How to see permissions of a user ?show grants for 'username'@'hostanme';4....

Reset root password in CentOS 6

In CentOS base version , I mean v6 there is a bug and you cant reset the password in the usual way. I am going to mention both the ways.To reset root password of CentOS machine, Start your PC. You will get GRUB screen and there choose " e" to edit booting kernel. After that It will open in a new window with current configuration.If you observe there you can find a line with two last words like  "...

CentOS 7 Repositories

table.curvedEdges { border:10px solid RoyalBlue;-webkit-border-radius:13px;-moz-border-radius:13px;-ms-border-radius:13px;-o-border-radius:13px;border-radius:13px; } table.curvedEdges td, table.curvedEdges th { border-bottom:1px dotted black;padding:5px; } !-- Be sure to place the above styles (i.e. everything between the tags) into the document 'head' (i.e. between the tags. Everything below...

Explanation of /etc/fstab

What is fstab file?fstab is a configuration file that contains information of all the partitions and storage devices in your computer. The file is located under /etc, so the full path to this file is /etc/fstab./etc/fstab contains information of where your partitions and storage devices should...

Install lshw in CentOS 6.X

While I am trying to use the command lshw in CentOS 6 , I just came to know that it is not installed and not available in main repo.To install lshw in your CentOS PC .1. Open Link :  http://pkgs.repoforge.org/lshw/?C=M;O=D2. Copy download link of latest rpm package3. Install with yum rather than using rpm , if you use rpm then it will fail due to missing dependencies. so better to use yum.# wget...

Process Management

Hello , My new blogpost is about Process Management and I have gone all concepts of Process Management. I have written this document with help of .Doc and it consists of images. So its hard to maintain the format in blogger too. I am placing the download link , Please use that link to download. I hope it helps you. To Download my post Please click h...

TCP Wrappers

The Simple thing I can tell us all about TCP Wrappes is " TCP Wrappers are Host-Based Networking Access Control List (ACL) System & used to filter Network access to Internet.For all services in Linux TCP wrappers cant be applicable by default and its possible if source of the service got compiled...

SSH configuration: sshd_config file

In SSH Server , we do have two types of configuration files. They are sshd_config and ssh_config.Here sshd_config is all about server side configuration. The behavior of SSH server written at this file.In this article I am writing a simple article with few best practices over sshd_config.Note: For edit that you are doing to sshd_config , you must restart sshd service. Please review my last article...