Working with Apache2 -VirtualHosts in Ubuntu

Working with Apache2 -VirtualHosts in Ubuntu.


True transparency in CentOS

I have enabled transparency for my gnome terminal but I am always getting my desktop wallpaper as background of terminal after googling I found compiz missing.

Compiz is available in base repo itself.

sudo yum install compiz

After installing look for system-Preferences-WindowsTweak Manager and last option would give compiz and there enable transparency.

Restore Permission on Home directory

This Post I am taking from askubuntu , not answered by me but posting in my blog so that it can help others in future.

Note: This is the way like doing as undoing what you have done.

sudo chmod -x * -R
find . -type d

You will get an error like below 
find: 'xxxxx': Permission denied 

then do as
find . -type d -exec chmod +x {} \;

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  .conkyrc


$ vim ~/.conkyrc

Find the area of below lines and make the configuration as I have mentioned.

own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 
own_window_transparent yes

Then save and exit from your conkyrc file.

Then in we have to reload the conky with updated configuration , so all you have to do is kill the conky and then start it again.

so In your terminal as root user do as

# killall conky & conky


$ su -c ” killall conky & conky”

I hope that will help you.

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 with

nc -zv

                                           for example:

nc -zv 80

                                          if you want to do that for 2-3 ports

nc -zv 80 8009

                                            if you want to do scanning for range of ports

nc -zv 192,168.1.100 80-8080

hope it will help you.