Markus Blog What’s going on Internet?

15Dec/094

Install rTorrent Using CURL in Different Path on Centos Linux

After I posted an article titled "Installing libTorrent and rTorrent on Linux Centos" one of my reader have a concern about dependencies as Centos already have older Curl installed by default.

One way to avoid dependencies problem with Curl is by compiling the newest version to another directory and then compile rTorrent to use that Curl installation and not the old Curl installed by default on Centos. Below is the step-by-step how to install rTorrent with Curl installed in another directory:

Bookmark and Share



29Nov/099

Installing libTorrent and rTorrent on Linux Centos

As requested by one of my blog reader, I write this libTorrent and rTorrent installation tutorial :) I’m installing libTorrent and rTorrent on a Xen based VPS with Linux Centos 5.4

From the project’s website:

LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code. The library differentiates itself from other implementations by transfering directly from file pages to the network stack. On high-bandwidth connections it is able to seed at 3 times the speed of the official client.

To install libTorrent and rTorrent first we install the compiler and dependencies required

Bookmark and Share



28Nov/096

Installing Squid NT on Windows 7

Squid is a caching proxy server that can help reduce internet bandwidth usage and improving response time of loading a website by caching and re-using frequently opened web page. Squid reduce the bandwidth usage and accelerate the website loading by caching static website objects such as images, flash objects and text files, with some modification Squid can cache larger files such as PDF, MP3, executables, flash videos, etc.

Bookmark and Share


19Nov/093

Ubuntu 9.04 Keyboard Mapping Problem on Tight VNC

After logged in to VNC server, I get problem with the keyboard mapping on Ubuntu 9.04. When I type "abcdefghij" I get "asdfghjkl;". After searching on Google, the problem was submitted as a bug and the work around is by adding:

export XKL_XMODMAP_DISABLE=1

In VNC’s xstartup file:  $HOME/.vnc/xstartup

You have to add the line export XKL_XMODMAP_DISABLE=1 before /etc/X11/Xsession or gnome-session (in case you use GNOME)

Bookmark and Share

Tagged as: , 3 Comments

19Nov/098

Install Tight VNC Server on Ubuntu 9.04 Jaunty Jackalope

Previously I installed TightVNC server on Ubuntu 8.10 which I posted the tutorial here. Today I setup a new Virtual Private Server (VPS) with Ubuntu 9.04 installed (still haven’t got Ubuntu9.10 Xen template, so I didn’t install the latest version).

(Note: before you install TightVNC you have to install a window manager first, I use GNOME and the tutorial I wrote before is still working on Ubuntu 9.04, you can read it here)

Bookmark and Share


9Oct/090

Installing TinyProxy as Squid Proxy Server Alternative

Tinyproxy is a light-weight HTTP proxy daemon for POSIX operating systems. It is distributed using the GNU GPL license version 2 or above, so we can download it and install it on our Linux server freely.

Tinyproxy is a light-weight alternative for the well known Squid proxy server. It’s really memory efficient so it will run perfectly fine in small VPS (Virtual Private Server) and being used for several users. Several features of Tinyproxy are:

  • Small footprint: Tinyproxy requires very little in the way of system resources. The memory footprint tends to be around 2 MB with glibc, and the CPU load increases linearly with the number of simultaneous connections (depending on the speed of the connection). Thus, Tinyproxy can be run on an older machine, or on a network appliance such as a Linux-based broadband router, without any noticeable impact on performance.
  • Minimal requirements: Tinyproxy doesn't require anything more than a POSIX environment to build and operate. It can use additional libraries to add functionality though.
  • Easily modified: If you're looking to build a custom web proxy, Tinyproxy is very easy to modify to your custom needs. The source is straightforward, adhering to the KISS principle. As such, it can be used as a foundation for anything you may need a web proxy to do.
  • Anonymous mode: Allows you to specify which HTTP headers should be allowed through, and which should be blocked. This allows you to restrict both what data comes to your web browser from the HTTP server (eg., cookies), and to restrict what data is allowed through from your web browser to the HTTP server (eg., version information).
  • Remote monitoring: Using the remote monitoring feature, you can access proxy statistics from afar, letting you know exactly how busy the proxy is.
  • Load average monitoring: Tinyproxy can be configured to watch the load average on most platforms, and start refusing requests when the load reaches a certain point. You may recognize this feature from Sendmail.
  • Access control: You can configure Tinyproxy to only allow requests from a certain subnet, or from a certain interface, thus allowing you to ensure that random, unauthorized people will not be using your proxy.
  • Secure: With a bit of configuration (specifically, making the log file owned by nobody and running it on a port > 1024), Tinyproxy can be made to run without any special privileges, thus minimizing the chance of system compromise. Furthermore, it was designed with an eye towards preventing buffer overflows. The simplicity of the code ensures it remains easy to spot such bugs.
Bookmark and Share

23Sep/091

ClamAV 95.2 error while loading shared libraries

I installed ClamAV 95.2 on a server today, the installation went OK and no error is shown but when I tried to run virus scanning I got this error message:

clamscan: error while loading shared libraries: libclamav.so.6: cannot open shared object file: No such file or directory

to fix this problem I run this command:

ldconfig

and clamscan can work fine.

Bookmark and Share

Tagged as: 1 Comment
18Sep/091

KillSwitch .Net Software Protection

As software developers we want to make sure our client do pay our works. Most of the time the payment for a project is split into several phases, in the beginning, in middle or testing phase and on end of the project or delivery, with the big percentage of payment is received on the end of the project.

Sometimes client are late on payment or even worst they doesn’t pay at all. What you can do if you already deliver the software and they have it working fine? Buying encryption software might be not a solution for a freelancer or small developer as they cost thousands of dollars.

Bookmark and Share