Archive for September, 2009

i have googling about 4 5 hours only to get a simple way to install phpmyadmin in slackware.

here the tutorial :

STEP 1

mkdir /downloads

cd /downloads

first download phpmyadamin for slackware or tar.gz

$ wget http://darkstar.ist.utl.pt/slackware/addon/linuxpackages/Slackware/Slackware-12.2-i386/ken/phpmyadmin-3.1.1-noarch-1kjz.tgz

or

$ wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.2.1/phpMyAdmin-3.2.1-english.tar.gz?use_mirror=biznetnetworks

STEP 2

download needed aplications Mcrypt and LibMcrypt for slackware

$ wget http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware-12.2/security/mcrypt/2.6.8/mcrypt-2.6.8-i486-1sl.tgz

$ wget http://repository.slacky.eu/slackware-12.2/libraries/libmcrypt/2.5.8/libmcrypt-2.5.8-i486-3sl.tgz

if needed you have to install zlib

$ wget http://ftp.belnet.be/packages/slackware/slackware-12.2/slackware/l/zlib-1.2.3-i486-2.tgz

STEP 4

use pkgtool or install pkg to install all necessary fail.

installpkg *

STEP 5  XTRA step

if you do not have  mcrypt.so than download it here

$ wget http://server11.host.bg/modules/php5/mcrypt.so

and move it to your php extension directory

dont forget to put this line ” extension=mcrypt.so ” in your php.ini

restart apache or lighttpd

that all flok’s…

Useful wget command

Posted: September 4, 2009 in archlinux, Debian, Slackware

I always wait to download multiple fail after googeling i found this command and that is what i need . thanks bro..

Download multiple files on command line using wget

$ wget http://www.cyberciti.biz/download/lsst.tar.gz ftp://ftp.freebsd.org/pub/sys.tar.gz ftp://ftp.redhat.com/pub/xyz-1rc-i386.rpmOR

i) Create variable that holds all urls and later use ‘BASH for loop’ to download all files:
$ URLS=”http://www.cyberciti.biz/download/lsst.tar.gz ftp://ftp.freebsd.org/pub/sys.tar.gz ftp://ftp.redhat.com/pub/xyz-1rc-i386.rpm http://xyz.com/abc.iso"ii) Use for loop as follows:
$ for u in $URLS; do wget $u; doneiii) However, a better way is to put all urls in text file and use -i option to wget to download all files:

(a) Create text file using vi
$ vi /tmp/download.txtAdd list of urls:
http://www.cyberciti.biz/download/lsst.tar.gz
ftp://ftp.freebsd.org/pub/sys.tar.gz
ftp://ftp.redhat.com/pub/xyz-1rc-i386.rpm
http://xyz.com/abc.iso
(b) Run wget as follows:
$ wget -i /tmp/download.txt(c) Force wget to resume download
You can use -c option to wget. This is useful when you want to finish up a download started by a previous instance of wget and the net connection was lost. In such case you can add -c option as follows:
$ wget -c http://www.cyberciti.biz/download/lsst.tar.gz
$ wget -c -i /tmp/download.txt
Please note that all ftp/http server does not supports the download resume feature.

Force wget to download all files in background, and log the activity in a file:

$ wget -cb -o /tmp/download.log -i /tmp/download.txtOR$ nohup wget -c -o /tmp/download.log -i /tmp/download.txt &nohup runs the given COMMAND (in this example wget) with hangup signals ignored, so that the command can continue running in the background after you log out.

Limit the download speed to amount bytes/kilobytes per seconds.

This is useful when you download a large file file, such as an ISO image. Recently one of admin started to download SuSe Linux DVD on one of production server for evaluation purpose. Soon wget started to eat up all bandwidth. No need to predict end result of such a disaster.
$ wget -c -o /tmp/susedvd.log --limit-rate=50k ftp://ftp.novell.com/pub/suse/dvd1.isoUse m suffix for megabytes (–limit-rate=1m). Above command will limit the retrieval rate to 50KB/s. It is also possible to specify disk quota for automatic retrievals to avoid disk DoS attack. Following command will be aborted when the quota is
(100MB+) exceeded.
$ wget -cb -o /tmp/download.log -i /tmp/download.txt --quota=100mF) Use http username/password on an HTTP server:
$ wget –http-user=foo –http-password=bar http://cyberciti.biz/vivek/csits.tar.gzG) Download all mp3 or pdf file from remote FTP server:
Generally you can use shell special character aka wildcards such as *, ?, [] to specify selection criteria for files. Same can be use with FTP servers while downloading files.
$ wget ftp://somedom.com/pub/downloads/*.pdf
$ wget ftp://somedom.com/pub/downloads/*.pdf
OR$ wget -g on ftp://somedom.com/pub/downloads/*.pdfH) Use aget when you need multithreaded http download:
aget fetches HTTP URLs in a manner similar to wget, but segments the retrieval into multiple parts to increase download speed. It can be many times as fast as wget in some circumstances( it is just like Flashget under MS Windows but with CLI):
$ aget -n=5 http://download.soft.com/soft1.tar.gzAbove command will download soft1.tar.gz in 5 segments.

Install IPP2P in Debian Etch

Posted: September 1, 2009 in Debian

You have to complie kernel headers and iptables

To compile ipp2p you need to install the kernel headers and iptables headers.

aptitude install linux-headers-$(uname -r)  iptables-dev

Download ipp2p source from their website

wget http://www.ipp2p.org/downloads/ipp2p-0.8.2.tar.gz

Untar the file and download Gentoo’s kernel patch for ipp2p

cd ../ipp2p-0.8.2

wget http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/net-firewall/ipp2p/files/ipp2p-0.8.2-kernel-2.6.22.patch

wget http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/net-firewall/ipp2p/files/ipp2p-0.8.2-iptables-1.4.0.patch

Apply the patch for ipp2p

patch -p1 < ipp2p-0.8.2-kernel-2.6.22.patch
patch -p1 < ipp2p-0.8.2-iptables-1.4.0.patch

Modify the Makefile file

pico Makefile

and change:

ld -shared -o libipt_ipp2p.so libipt_ipp2p.o

to

$(CC) -shared -o libipt_ipp2p.so libipt_ipp2p.o

Compile ipp2p :

make

Copy libraries

cp libipt_ipp2p.so /lib/iptables/
cp ipt_ipp2p.ko /lib/modules/2.6.18-6-686/kernel/net/netfilter/

and run

depmod -a

IPP2P is now installed, you can check using this command:

iptables -m ipp2p –help