Welcome To BS WordPress Templates and WordPress Plugins
Welcome to your number one place on the net to get WordPress Templates and WordPress Plugins.
Are you Tired of finding Templates and Plugins with one-way back links automatically included in them. So are we, so we have decided to build this site and offer Free WordPress Templates and Free WordPress Plugins with out the links. We understand that the persons who makes and develop those plug-ins and templates would love to see something in return, but forcing you have a link is the old way.
You should be giving a choice to Share a link!!
Any Template you get from this site, will either be 100% Free or you will be given an option to put a link on your site back to us, we will not force you too.
Enjoy
BS
Open Port 80 & 443 Iptables
We all have installed a new Centos Server and by default they do not open any port but 22 on Iptables. To open port 80 in IPtables type
vi /etc/sysconfig/iptables
or
nano /etc/sysconfig/iptables
Then add the following rules
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT
After saving that type
service iptables restart
To check and see if the new rules are working
iptables -L
How to Install djbDNS Server on Centos 5.5 – DNScache and TinyDNS
Log in as Root
CMD # yum update
CMD # yum install gcc
CMD # mkdir /packages
CMD # cd /packages
Lets get the Daemontools
CMD # wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
CMD # gunzip daemontools-0.76.tar
CMD # tar -xpf daemontools-0.76.tar
CMD # cd admin/daemontools-0.76
CMD # nano cd admin/daemontools-0.76
Add to the end of the gcc line
-include /usr/include/errno.h
CMD # ./package/install
CMD # cd /packages
Lets install ucspi-tcp
CMD # wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
CMD # gunzip ucspi-tcp-0.88.tar
CMD # tar -xf ucspi-tcp-0.88.tar
CMD # cd ucspi-tcp-0.88
CMD # nano conf-cc
Add to the end of the gcc line
-include /usr/include/errno.h
CMD # make
CMD # make setup check
CMD # cd /packages
The next step is the document publication:
CMD # wget http://cr.yp.to/djbdns/doc.tar.gz
CMD # gunzip < doc.tar.gz | (cd /; tar -xf -)
Use the following script to merge in system docs:
#SCRIPT
#!/bin/sh
for i in packages commands cfunctions fileformats
do
sort -f /dev/null `find /doc/merge -name $i.html` > /doc/$i.new
mv /doc/$i.new /doc/$i.html
done
# END SCRIPT
CMD # chmod +x script.sh
CMD # ./script.sh
CMD # cd /packages
CMD # wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz
CMD # gunzip djbdns-1.05.tar
CMD # tar -xf djbdns-1.05.tar
CMD # cd djbdns-1.05
CMD # nano conf-cc
Add to the end of the gcc line
-include /usr/include/errno.h
CMD # make
CMD # make setup check
All compiling gets done.
The next step is the dns server configuration.
Lets Configure the DNScache
CMD # useradd -d /var/dnscache -s /bin/false dnscache
CMD # useradd -d /var/dnscache -s /bin/false dnslog
CMD # dnscache-conf dnscache dnslog /var/dnscache/dnscache <listen-IP-Internal>
Example: dnscache-conf dnscache dnslog /var/dnscache/dnscache 127.0.0.1
CMD # touch /var/dnscache/dnscache/root/ip/<Net-ID>
Example: touch /var/dnscache/dnscache/root/ip/127.0
CMD # ln -sf /var/dnscache/dnscache /service/
Lets Configure the TinyDNS – if you only need it to listen to a Single IP Address
CMD # useradd -d /var/dnscache -s /bin/false tinydns
CMD # useradd -d /var/dnscache -s /bin/false tinylog
CMD # tinydns-conf tinydns tinylog /var/dnscache/tinydns <listen-IP-External>
Now it’s time to add nodes into dns database:
CMD # cd /var/dnscache/tinydns/root
CMD # ./add-ns internal 192.168.20.1
CMD # ./add-ns 20.168.192.in-addr.arpa 192.168.20.1
CMD # ./add-mx internal 192.168.20.2
CMD # ./add-host ns.internal 192.168.20.1
CMD # ./add-host mail.internal 192.168.20.2
CMD # /add-alias unagi.internal 192.168.20.2
CMD # make
CMD # ln -sf /var/dnscache/tinydns /service
Now we have 6 DNS servers with many IP ADDRESS per SERVER!!
You must first complete the Configure TinyDNS above then do the following to Create DNS for other IPs on the Server
CMD # cd /root
Lets Create a Script to Do This
CMD # nano setupdns.sh
SCRIPT #
#!/bin/sh
tinydns-conf tinydns tinylog /var/dnscache/$1 $1
echo “/var/dnscache/tinydns/root” > /var/dnscache/$1/env/ROOT
ln -sf /var/dnscache/$1 /service
# END SCRIPT
CMD # chmod +x setupdns.sh
CMD # bash setupdns.sh <Next IP>
Example: bash setupdns.sh 188.40.16.205
This Creates a TinyDNS instance for that IP Address and uses the data file and data.cab from /var/dnscache/tinydns/root
Suggest Downloading VegaDNS, its a web interface for TinyDNS
Learn More : http://vegadns.sourceforge.net/
Download : http://sourceforge.net/projects/vegadns/files/
Generating Thumbnail Images from FLV with ffmpeg
This has been the easiest way for me to create thumbnails from flv files with ffmpeg in a php envirnment
$ffmpegpath = "/usr/bin/ffmpeg";
function make_jpg($input, $output, $fromdurasec="01") {
global $ffmpegpath;
if(!file_exists($input)) return false;
$command = "$ffmpegpath -i $input -an -ss 00:00:
$fromdurasec -r 1 -vframes 1 -f mjpeg -y $output";
@exec( $command, $ret );
if(!file_exists($output)) return false;
if(filesize($output)==0) return false;
return true;
}
Then use
#extract frame at 00:00:01 as jpeg
make_jpg("/test.flv", "/test.jpg", "01");
Network Management Disabled
Network Manager worked in the beginning after patching and rebooting the KNetworkManager showed “Network Management disabled”. No option to enable it again was available.
The issue was caused by
NetworkingEnabled=false
in
/var/lib/NetworkManager/NetworkManager.state
After changing it back to
NetworkingEnabled=true
in
/var/lib/NetworkManager/NetworkManager.state
and running
sudo service network-manager restart
everything worked fine again.
Full content of /var/lib/NetworkManager/NetworkManager.state
[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
root@ltdar2:/etc/NetworkManager# lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04
network-manager:
Installed: 0.8-0ubuntu2
Candidate: 0.8-0ubuntu2
Version table:
*** 0.8-0ubuntu2 0
500 http://ch.archive.ubuntu.com/ubuntu/ lucid/main Packages
100 /var/lib/dpkg/status
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: network-manager 0.8-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-19-generic x86_64
Architecture: amd64
CRDA: Error: [Errno 2] No such file or directory
Date: Mon Apr 5 09:48:24 2010
EcryptfsInUse: Yes
Gconf:
InstallationMedia: Error: [Errno 13] Permission denied: ‘/var/log/installer/media-info’
IpRoute:
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.44 metric 2
169.254.0.0/16 dev wlan0 scope link metric 1000
default via 192.168.1.1 dev wlan0 proto static
Keyfiles: Error: [Errno 2] No such file or directory
ProcEnviron:
LANGUAGE=
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: network-manager