Archive for the ‘Linux’ Category

[SOLVED] fail2ban and denyhosts constantly ban me

March 22, 2014

Banned

Installing and using fail2ban is a great way to prevent attacks on SSH but I encountered an unusual problem with it: I sometimes got banned after frequent successful ssh logins. The reason was that I had public key authentication set up for another user on the same host and ssh was trying to use it for all the other accounts before prompting me for a password. The default fail2ban filters consider the “Failed publickey” error in the sshd log file at the same level with a failed password login hence the ban.

To change this behavior I had to edit /etc/fail2ban/filter.d/sshd.conf and change.

^%(__prefix_line)sFailed (?:password|publickey) for .* from (?: port \d*)?(?: ssh\d*)?$

into

^%(__prefix_line)sFailed password for .* from (?: port \d*)?(?: ssh\d*)?$

Solved : Problem and Step-by-Step Installing NS-2.34 On Ubuntu 12.04 LTS

July 11, 2012

A few days ago, I installed my new PC in my lab with Ubuntu 12.04 LTS. I used to work with Ubuntu 10.04 LTS, but now I want to try Ubuntu 12.04. For my research purpose, I need to install Network Simulation NS-2 on it. As usual everything is not that easy while you’re going to work with Open Source or freeware…hehehe. That’s the challenges in Open Source. I like it.

(more…)

Sharing Internet Connection using ppp0

August 20, 2011

I have a usb modem with internet connection. And I need to share its connection to my PC Desktop. So, here is my experiment howto share internet connection via ppp0.

My laptop is using Ubuntu 11.04 with 2 connections: ppp0 and Eth0. My PC Desktop is connected to my laptop using cross-cable with Eth0. I use static IP address for both Eth0.
To share ppp0 connection, I just need install ‘firestarter’ in my laptop.

~$ sudo apt-get install firestarter

Then configure ‘firestarter’ to select the device which connected to internet and enabled the internet connection sharing.

Instalasi aplikasi pada Android Emulator Pada Ubuntu 10.4

August 20, 2011

Berikut ini adalah pengalaman saya dan Abdi Wahab ketika mencoba
instalasi Android Emulator pada Ubuntu 10.4. Maksud kami menginstall
Android emulator pada Ubuntu adalah untuk mencoba aplikasi SIPDROID
yang sedang kita kerjakan sebelum ditanam kedalam embedded device.

 

Nah…berikut adalah langkah-langkahnya (step-by-step)

(more…)

Howto Install OpenSSL on Ubuntu Linux

May 19, 2011

OpenSSL:

According to openssl.org,

“The OpenSSL Project is a collaborative effort to develop a robust, commercial–grade, full–featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library. The project is managed by a worldwide community of volunteers that use the Internet to communicate, plan, and develop the OpenSSL toolkit and its related documentation.

(more…)

BonnMotion : A mobility scenario generation and analysis tool

May 12, 2011

Copyright © 2002-2011 University of Bonn
This software is distributed under the terms of the GNU General Public License which is included in the archive.

BonnMotion is a Java software which creates and analyses mobility scenarios. It is developed within the Communication Systems group at the Institute of Computer Science 4 of the University of Bonn, Germany, where it serves as a tool for the investigation of mobile ad hoc network characteristics. The scenarios can also be exported for the network simulators ns-2, ns-3, GloMoSim/QualNet, COOJA, MiXiM, and ONE. Several mobility models are supported, namely

  • the Random Waypoint model,
  • the Random Walk model,
  • the Gauss-Markov model,
  • the Manhattan Grid model,
  • the Reference Point Group Mobility model,
  • the Disaster Area model,
  • the Random Street model, and
  • further more.

For further information consult the documentation. For questions and feedback concerning BonnMotion, please subscribe to the BonnMotion mailing list.

For download BonnMotion, please visit here.

Using Lyx as Document Processor

January 13, 2011

For some reason, many people using Lyx rather than M*word or OpenOffice as document processor. Maybe because of the disadvantages of word processors tools. Lyx provides some features that others words or documents processor have.

In my private experience, this semenster I have to write some paper which a lot of figures, tables, and references. Some standard paper, such as IEEE, ACM, or any else standard, have different in writing format. It’s hard when you use word processor tools, such as Msword or OpenOffice to manage big document, i.e report thesis, and papers. So…here a review about Lyx.

LyX is a document processor that encourages an approach to writing based on the structure of your documents (WYSIWYM) and not simply their appearance (WYSIWYG).

LyX combines the power and flexibility of TeX/LaTeX with the ease of use of a graphical interface. This results in world-class support for creation of mathematical content (via a fully integrated equation editor) and structured documents like academic articles, theses, and books. In addition, staples of scientific authoring such as reference list and index creation come standard. But you can also use LyX to create a letter or a novel or a theatre play or film script. A broad array of ready, well-designed document layouts are built in.

LyX is for people who want their writing to look great, right out of the box. No more endless tinkering with formatting details, “finger painting” font attributes or futzing around with page boundaries. You just write. On screen, LyX looks like any word processor; its printed output — or richly cross-referenced PDF, just as readily produced — looks like nothing else.

LyX is released under a Free Software/Open Source license, runs on Linux/Unix, Windows, and Mac OS X, and is available in several languages.

For download Lyx, plese visit here…

Copy Websites

January 4, 2011

HTTrack is a free (GPL, libre/free software) and easy-to-use offline browser utility.

It allows you to download a World Wide Web site from the Internet to a local directory, building recursively all directories, getting HTML, images, and other files from the server to your computer. HTTrack arranges the original site’s relative link-structure. Simply open a page of the “mirrored” website in your browser, and you can browse the site from link to link, as if you were viewing it online. HTTrack can also update an existing mirrored site, and resume interrupted downloads. HTTrack is fully configurable, and has an integrated help system.

WinHTTrack is the Windows 2000/XP/Vista/Seven release of HTTrack, and WebHTTrack the Linux/Unix/BSD release. See the download page. here

Or if you use deb family & on-line, just run this command : ~$ sudo apt-get install httrack