with Andrej’s article I found some nice tips & tricks and the Vim manual for diff tasks. Some useful commands, * “vim -o one.txt two.txt three.txt” (for horizontal split), “vim -O one.txt two.txt three.txt ” (for vertical split) * go to the next diff point ” ]c “; go to previous diff point “ [c…
Script to daily email APF status
You are running APF on your server, but sometimes you think “is APF running fine?” This script sends you an email with APF satus. Log in to your server as root Create the script: # nano apf1.sh Put this on the file: #!/bin/bash tail -200 /var/log/apf_log | mail -s “APF Status” [email protected] Save and Exit…
Run TOP in batch mode
top can be run non-interactively, in batch mode. Time delay and the number of iterations can be configured, giving you the ability to dictate the data collection as you see fit. Here’s an example: top -b -d 10 -n 3 >> top-file We have top running in batch mode (-b). It’s going to refresh every…
Crontab Basics
Change to the user you want to, then open the crontab editor: # crontab -e you can use this variables: a = the minute after the hour that you want it done b = the hour you want it done c = Day of the Month d = Month of the Year e = Day…
Can’t connect to local MySQL server through socket
I you are reading this, probably you are getting the next error: /usr/local/bin/mysqladmin: connect to server at ‘localhost’ failed error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’ Check that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists To fix it, and if you are running cPanel just try to run the…
Fix Not Found Error on rvsitebuilder – The server was not able to find the document
If you get the next problem on rvsitebuilder running on a cpanel server: Not Found The server was not able to find the document (./3rdparty/rvsitebuilder/index.php/sitebuilder/sitebuilderhome) you requested. Please check the url and try again. You might also want to report this error to your webhost. It should fix the problem to you: Log in as…
Single cPanel Account Backup Restore using SSH
You can backup a single cPanel account trough ssh using pkgacct cPanel script located at /scripts folder on your server. This tip is helpful for WebHosting companies that uses cPanel as Hosting control Panel – Login to your cPanel server as root. To backup a sigle account use the next commands: # cd /scripts #…
Recovering the root password from the boot loader (GRUB)
When GRUB loads up, select the Red Hat Linux entry on the GRUB menu and then press “e” to edit the boot configuration. Locate a line like this: kernel /boot/vmlinuz-x.x.xx-x.xxx root=LABEL=/hdc – type the number ‘1’ at the end. Doing so boots the computer into run level 1- single user mode you will automatically be…
-
Recent Posts
-
Archives
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- October 2020
- September 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- August 2019
- June 2019
- March 2019
- February 2019
- January 2019
- November 2018
- August 2018
- July 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- October 2017
- June 2017
- December 2016
- October 2016
- September 2016
- August 2016
- June 2016
- May 2016
- March 2016
- February 2016
- September 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- March 2009
-
Meta