Showing posts from September, 2008

Block Bot Attacks

If you have a machine that is exposed to external network then there is a chance that some bot is poking your machine and you need to harden all entry points of your machine. fail2ban is a small program that monitors all your authentication logs for failed login attempts and blocks the bots depending on the thresholds that you specified in configuration file. Installationsudo apt-get -y install fail2banfail2ban blocks bots for only 600 seconds. To change this setting you have to open /etc/fail2ban/jail.conf and change the configuration option bantime. And restart fail2ban using following command. sudo /etc/init.d/fail2ban restart

Install Bleeding Edge Wine

Fortunately winehq maintains an ubuntu repo that contains deb packages of latest wine development releases. Presently the latest version is 1.1.4. This latest version contains cutting edge DirectX support and other improvements. Make a note that these deb packages may not be properly tested and you may face occasional breakage in functionality of wine. InstallationExecute following command to add apt trust keys. wget -q -O- | sudo apt-key add -Execute following command to add new wine repository. sudo wget -O /etc/apt/sources.list.d/winehq.list Update apt sources.sudo apt-get updateNow if wine is already installed then do an upgrade sudo apt-get -y upgradeOther wise install winesudo apt-get -y install wine Check wine version by issuing following --version

Ubuntu JeOS VM Builder

This ubuntu wiki page describes steps for setting up JeOS virtual machines with out using iso images. Please test these steps and give your feedback to ubuntu developers. Ubuntu JeOS VM Builder

subdownloader - Download Subtitles

Subdownloader 2.0 is one fine automatic subtitle downloader. Its written in QT4 using python and has very friendly user interface. InstallationSubdownloader deb packages are not yet included in repo but you can download them from Subdownload 2.0 launchpad page. Download & save two deb packages subdownloader-cli-xxx_all.deb and subdownloader_xxx_all.deb packages to desktop. Now open terminal and change to Desktop directory and issue following command. sudo dpkg -i sub*.debApt will complain telling that you have some unmet dependencies and will exit. Execute following command to install those dependencies along with subdownloader.sudo apt-get -f install UsageNow launch subdownloader by issuing following command in terminal.subdownloaderNow select directory that contains movies and subdownloader will automatically search for subtitles on net. Select the subtitles that you want and click Download button to start downloading subtitles. Enjoy.

apt-get install wife


Sharing Files Using Apache

Apache is pretty useful for sharing files on network particularly on LAN. Here is how to map an external folder to an url on your apache server. Lets assume your user name as bob and the path of the folder that you want to share is /home/bob/downloads. And you want to access contents of this folder at url /downloads. Change directory to /etc/apache2/sites-enabled. And create file named downloads with the following contents. Alias "/downloads" "/home/bob/downloads" <Directory "/home/bob/downloads"> AllowOverride None Options Indexes Order allow,deny Allow from all </Directory> Save the file and close it. Now restart the apache by issuing following command. sudo apache2ctl restart Now test everything is working as expected by going to following url in your browser. http://localhost/downloads