Download queue script

Posted by: Mo Mughrabi No Comments »

This script is one of my fav, am sure there is many times when you wish you could place things in queue & return and see all your files ready. Specially, if you are running a server remotely or if you not using any GUI. This script I usually run in case I have list of large files over the Internet and need to download them without having to set in front of the computer to submit each file.

First, you will need to get all the files in a text file (notepad) here is an e.g

http://kwtlinux.com/file1.zip
http://kwtlinux.com/file2.zip
http://kwtlinux.com/file3.zip
http://kwtlinux.com/file4.zip

Save the the text file an lets call it queue.txt, now you will need to write a small set of command to read from the file and begin downloading.


for i in `cat queue.txt` ## Will loop inside queue.txt and place each line as a value $i
do
wget $i ## wget will download the value $i
sleep 4
done

That's it!

Setting up iptables - firewall

Posted by: Mo Mughrabi No Comments »

I had great hassle setting up the iptables on one of my online servers. but, thanks to Yousef when he was around on his last visit to Kuwait he showed me great tips and worked out a little script to bring up the firewall. The script is made to block all incoming ports accept apache, FTP, mysql foreign connections, shell and squid (proxy server).

# flush all current rules
iptables -F

# set default policies for INPUT, FORWARD, and OUTPUT chains
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT

# set access for localhost
iptables -A INPUT -i lo -j ACCEPT

# accept packets belonging to established connections
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# accept connection on port 80 (HTTP)
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT

# accept ssh and ftp connections
iptables -A INPUT -i eth0 -p tcp --dport 21 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 8898 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 3306 -j ACCEPT

# save our iptables rules
/etc/init.d/iptables save

VMWare Fusion + Ubuntu

Posted by: Mo Mughrabi 1 Comment »
VMWare Fusion plus Ubuntu

It was very easy install Ubuntu using VMWare the only annoying part was downloading Ubuntu (for taking long time). VMWare fusion makes it very easy to put any linux of windows version.. All I needed here the ISO file & specify certain space for the ubuntu. Installation took few minutes but the Ubuntu performance on the VMWare was horrible specially when it comes to the GUI. I would say this tool is good for testing purposes!

VMWare Fusion (Mac)

Posted by: Mo Mughrabi 4 Comments »

vmware.jpg

Well, Its been while since I've lost posted anything and the reason is because I was facing troubles with my laptop. so, I finally decided to get a new laptop and because of my many many needs! I went with Apple PowerBook with Intel processor. Well, right now am in the process of installing Ubuntu as a Virtual Machine running on OS X & I got a very nice result on that VMWare Fusion is absolutely amazing.

www.VMware.com/Mac

Reiki Level 1 - 17th - 18th of Jan, 2008

Posted by: Mo Mughrabi No Comments »

Kanji

Learn the Art of Healing "Reiki" - Japanese Art that teach us how to raise the level of our energy within and use it in healing our selves as well as others.

Its a very interesting and fun to learn technique that is full of fun, and will surely transform your lives. even if you are perfectly healthy using Reiki can be a wonderful stress management tool that is highly recommended to tap into your own treasure of wonders (Deep thinking, meditative state of mind, and over all energetic body)

this program is offered through in Kuwait .. the duration of two days will be followed by one month program of exercises that you do on your own, at the pace of your home .. and a follow up through email and online medium will be handled to make sure you are going on the right track after you achieve some milestones in your own development.

The fees are 120 K.D. per person, price including:

  • All materials
  • Full support for one month to follow through email and SMS
  • Two treatment sessions to clear and detoxify your energy fields (worth 60 K.D)
  • free listing on online website for referral of treatments for those would like to make a profession out of it
  • Guaranteed fun in energy work that will transform your life

Contact now : email : mugrubi@gmail.com - or for more information about Reiki or the Master teaching this program: Please Visit Our Site

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login