Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Sunday, October 9, 2011

How-To: Installing Smokeping on CentOS 5.5

yum update
# rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
# yum install httpd
# yum install rrdtool
# yum install fping
# yum install echoping
# yum install curl
# yum install perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-RadiusPerl perl-IO-Socket-SSL perl-Socket6 perl-CGI-SpeedyCGI



# wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.4.1.tar.gz
# tar zxvf smokeping-2.4.1.tar.gz
# mv smokeping-2.4.1 /opt/smokeping
# cd /opt/smokeping



# cd bin/
# cp smokeping.dist smokeping
# cd ../htdocs/
# cp smokeping.cgi.dist smokeping.cgi
# cp tr.cgi.dist tr.cgi
# cd ../etc/
# cp config.dist config
# cp basepage.html.dist basepage.html
# cp smokemail.dist smokemail
# cp tmail.dist tmail
# cp smokeping_secrets.dist smokeping_secrets
# chmod 600 /opt/smokeping/etc/smokeping_secrets



# vi /opt/smokeping/bin/smokeping



Saturday, June 18, 2011

How-To: Chromium for BackTrack 5

To install Google Chrome Browser on BackTrack 5 :
# apt-get install chromium-browser


Upon installation, you can execute the Chromium Browser from
'KDE -> Internet -> Chromium Web Browser'


Soon you will hit to this error :


By default, the Chromium Browser could be run with 'root' privileges. This is predefined by developers of Google Chrome.


You need a workaround now.


Go to this directory:
cd /usr/lib/chromium-browser


Edit the Chromium-Browser with 'hexedit'
#hexedit --color Chromium-Browser


You start of on the HEX mode. Hit [TAB] to toggle between HEX and ASCII mode.


On the ASCII mode, hit [CTRL + s] to search 'geteuid'


Edit the 'geteuid' string to become 'getppid'


Hit [CTRL + x] to save change


Th Chromium Browser will now run with 'root' privileges. 



How-To: Change BackTrack 5 root password

Upin the installtion of BackTrack 5, logon to the text-based console as root :
Username : root
Password : toor

Now change the password :
# passwd


Enter your prefer password when asked.

How-TO: 'startx' Backtrack 5 KDE

Upon putting Backtrack 5 (BT5) DVD, the BT5 will boot successfully to the text-based terminal. You are want to install BT5 onto your hard drive now. 


The problem you may encounter next is that when you were told to run 'startx' you fire up the GUI where the installation will take place, you will hit the error of "Shutting down X-Server" which eventually brought you back to the terminal.


Follow the below work around to get yourself ti the BT5 GUI successfully.


# cd /root/.kde/
# find . -type f -iname "*.kcache" -delete
# startx

The BT5 GUI will be loaded successfully in no time