UPDATE: 1/4/10 After restoring a site in WHM, a client stated his IP addresses in WHM Main >> Account Information >> List Accounts page. In checking, all that was seen was the work ‘Unknown’ in the IP section of the page. This is the 3rd time I have come across this error and have documented…
Install hwinfo
If you are on a debian-based distro (ubuntu, mint, etc.) or Suse (which it is a tool of) you can run: sudo apt-get install hwinfo (not that kind of tool…) If you are on an RPM based distro (fedora, centos, etc) you can run: yum install hwinfo UPDATE: Ok, so maybe not so much on…
CPUinfo
To locate information related to your CPU, use these commands: echo $(cat /proc/cpuinfo | grep ‘model name’ | sed -e ‘s/.*: //’ | uniq) = $COUNT awk ‘/model name/ {ORS=””; count++; if ( count == 1 ) print $0; } END { print ” : ” count “\n” }’ /proc/cpuinfo ls /sys/devices/system/cpu dmidecode | less…
Install lshw
Install lshw on RHEL, Fedora, Centos The easiest way to install lshw on a RedHat based system is to get the package from DAG: http://dag.wieers.com/packages/lshw/ If you already have the DAG repository in your sources, just use up2date lshw or yum install lshw based on what package management tool you are using. If not, just…
Secure FTP Passwords
I have seen a rash of hacked accounts recently because of insecure FTP passwords. There are many free tools hackers will use to gain access to a cpanel account in order to exploit the server via spam, shell or iframe redirect. The simlest and most effective solution is to secure these passwords which will stop…
Blocking IP address of any country
This short article shows you how to automatically create iptables rules to block all connection from one country or more. The blocklist is create with an API that you can use wget to update the blocklist monthly. The API to get the IP addresses to block. First you need to know the code (ISO 3166…
Basic vps commands
vzctl create 102 –ostemplate centos-4-i386-default vzctl destroy 102 : vzctl create 102 –ostemplate centos-4-i386-default –config vps.basic vzctl set 102 –onboot yes –save: vzctl set 102 –hostname ace.316x.net –save vzctl set 102 –ipadd 208.76.110.211 –save vzctl set 102 –nameserver 208.76.110.194 –save vzctl start 102 vzctl exec 102 service sshd status vzctl exec 102 service sshd start…
Download via command line
Wget is a very cool command-line downloader for Linux and UNIX environments. Don’t be fooled by the fact that it is a command line tool. It is very powerful and versatile and can match some of the best graphical downloaders around today. It has features such as resuming of downloads, bandwidth control, it can handle…
-
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