Showing posts from January, 2012

Install bandwidth monitor linux

 Link to the download area on SourceForge: Download BandwidthD [root@planetmy]# tar xvfz bandwidthd-2.0.1.tgz [root@planetmy]# cd bandwidthd Configure and install the Bandwidthd source: [root@planetmy]# ./configure && make install Please make sure you have:  libpcap from  libpng from  libgd from Or # yum install libbap Or # apt-get install libcap # yum install libpng Or # apt-get install libpng # yum install apache Or # apt-get install apache2 Edit /usr/local/bandwidthd/etc/bandwidthd.conf to suit your network environment. ….. Save your config and start bandwidthd using /usr/local/bandwidthd/bandwidthd. Point your Apache Virtual Host to  /usr/local/bandwidthd/htdocs for browse  the bandwidthd graph Alias /bandwidthd “/usr/local/bandwidthd/htdocs”  <Directory “/usr/local/bandwidthd/htdocs”>  Order Allow,Deny  Allow from All  </Directory> Save your work

How to reset the MySQL root password

How to reset the mysql root password on Linux. Stop the mysql server:- /etc/init.d/mysql stop   Start the mysql server manually without permission tables which allows us to login as root user without password:  mysqld_safe --skip-grant-tables & Login into mysql as root user without a password and switch to the “mysql” database: mysql -u root mysql Then execute this SQL query to set a new password for the mysql root user: update user set Password=PASSWORD('mynewpassword') WHERE User='root'; (Replace “ mynewpassword ” with the new root password in the above command). Then logout from the mysql prompt by typing: exit Start the mysql server again:- /etc/init.d/mysql start