There was this museum laid with beautiful marble tiles, with a huge marble statue displayed in the middle of the lobby. Many people came from all over the world just to admire this statue. One night, the marble tiles started talking to the marble statue.
Marble Tiles: Hey statue, it's just not fair. Why does everybody from all over the world come all the way here just to step on me while admiring you?Marble Statue: My dear friend, marble tile, do u still remember that we were actually from the same cave?Marble Tiles: Yes! that's why I feel it is even more unfair. We were born from the same cave and yet we receive different treatment now. Not fair!Marble Statue: Then, do you still remember the day when the designer tried to work on you but you resisted the tools?Marble Tiles : Yes, I hate that guy, how could he use those tools on me?Marble Statue : Well, he couldn't work on you, when he decided to give up on you and start working on me instead. I knew at once that I would be something different after his efforts. I bore all the painful tools he used on me!Marble Statue continued: My friend, there is a price to everything in life, since you decided to give up half way, you can't blame anybody who steps on you now.!
Moral : The harder the knocks you go through in life, the more you learn and put them to use in the future! Do not be discouraged by setbacks and failures. Don't resist change;embrace it. Who knows, these setbacks & failures and the fears that come with change may the tools for your success tomorrow!!
More to Come have a nice day.
Neil
Wednesday, 31 July 2013
Find Out History Of All The Users
Find Out History Of All Users who had Logged to your Linux Box
# export HISTTIMEFORMAT="%F%T"
# history
# export HISTTIMEFORMAT="%F%T"
# history
Tuesday, 30 July 2013
How To Encrypt Your File Using vi Editor
Encrypt your file using vi
vi -x testing.sh
This command will ask for an encryption key. You have to type the key twice. Then save and quit the opened file. Now whenever you open the file it will ask you for a password.
That is a good one .... Below is very important ... How do you again disable the password ????
Open the file with given password and then press
:set key=
and press enter your password is disabled.
vi -x testing.sh
This command will ask for an encryption key. You have to type the key twice. Then save and quit the opened file. Now whenever you open the file it will ask you for a password.
That is a good one .... Below is very important ... How do you again disable the password ????
Open the file with given password and then press
:set key=
and press enter your password is disabled.
Repository For Your Red Hat Enterprise 6 Updates
Hey Guys,
You have to install Red Hat Enterprise 6 version and do not have License purchased but want to add some Libraries or some Utilities add this repo and get your work done.
# vi /etc/yum.repo.d/oracle.repo
[ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1
[ol6_ga_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0
[ol6_u1_base]
name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0
[ol6_u2_base]
name=Oracle Linux $releasever Update 2 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/2/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0
[ol6_u3_base]
name=Oracle Linux $releasever Update 3 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/3/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0
[ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1
[ol6_UEK_base]
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0
You have to install Red Hat Enterprise 6 version and do not have License purchased but want to add some Libraries or some Utilities add this repo and get your work done.
# vi /etc/yum.repo.d/oracle.repo
[ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1
[ol6_ga_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0
[ol6_u1_base]
name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0
[ol6_u2_base]
name=Oracle Linux $releasever Update 2 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/2/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0
[ol6_u3_base]
name=Oracle Linux $releasever Update 3 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/3/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0
[ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1
[ol6_UEK_base]
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0
Cheers and enjoy.
Friday, 19 July 2013
Find Files in Linux and Delete them
find /data/ftp/*/* -mtime +180 -exec rm -rf {} \;
- Find and delete data 180 files days old
- Find and delete data 180 files days old
Thursday, 4 July 2013
MySQL Auto Backup
This is a one line backup command. You will find number of scripts on the Internet
/usr/bin/mysqldump -u root -p password --all-databases >/data/mysqlbkp/backupfile_`date +"%m-%d-%Y"`.sql
/usr/bin/mysqldump -u root -p password --all-databases >/data/mysqlbkp/backupfile_`date +"%m-%d-%Y"`.sql
Monday, 1 July 2013
Stop ping to your SERVER
Stop ping to your SERVER
sysctl -w net.ipv4.icmp_echo_ignore_all=1
To turn it back on, again use:
sysctl -w net.ipv4.icmp_echo_ignore_all=0
sysctl -w net.ipv4.icmp_echo_ignore_all=1
To turn it back on, again use:
sysctl -w net.ipv4.icmp_echo_ignore_all=0
Subscribe to:
Posts (Atom)