Posts

Showing posts from October, 2010

iptables ubuntu

https://help.ubuntu.com/community/IptablesHowTo Basic iptables howto Iptables is a firewall, installed by default on all official Ubuntu distributions (Ubuntu, Kubuntu, Xubuntu). When you install Ubuntu, iptables is there, but it allows all traffic by default. Ubuntu 8.04 Comes with ufw - a program for managing the iptables firewall easily. There is a wealth of information available about iptables, but much of it is fairly complex, and if you want to do a few basic things, this How To is for you. Basic Commands Typing # iptables -L lists your current rules in iptables. If you have just set up your server, you will have no rules, and you should see Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Basic Iptables Options Here are explanations for some of the ipt

Client denied by server configuration error

Client denied by server configuration error in Apache. Wed, 01/23/2008 - 00:33 — artur Just in case if somebody else has a similar problem and can't get the Apache server working as expected. I have tried to setup proxy_mod under apache to forward HTTP traffic from AJAX Jabber client to the Bosh component running on Tigase server. It was working fine for a long time on my Gentoo server. I have recently wanted to run more tests on a separate machine and had this problem. It was a system based on the Debian distribution and the proxy_mod didn't want to work at all displaying the error message in a log file: [error] [client ::1] client denied by server configuration: proxy:http://127.0.0.1:5280/xmpp/ , referer: http://localhost/F5A379CEC35AEBCC5FFA11BA8A33CD02.cache.html All you need to do is to modify proxy.conf file for your Apache2 installation and setup proper permissions. By default the proxy is disabled for all. In my case I had to enable it just f

grep command

article from  http://www.esmerel.com/wagons/rob/grep.html   Grep in everyday life Using GREP for regular expression searching Introduction GREP (General Regular Expression Program) is a search tool for finding strings in text files. I frequently use it for finding specific pieces of code in the source files. This section of the document describes some of the ways I use GREP, and some of the helpful options and types of regular expressions which make GREP more than just a string finder. One thing to keep in mind is that GREP is case sensitive. If you want to pass multiple options to GREP, it expects that you will concatenate the options and use only one - . The order of the options does not matter, but the options must be specified before the regular expression. Searching through all your source files (*.?) Since a typical project uses only two types of source files, C (.C) and header (.H), you can tell GREP to search your entire set of source files by using *.?

irssi and screen linux

http://quadpoint.org/articles/irssi using irssi and sscreen command

facebook command line

This is my online notebook below is not my howto i just copied it.   This article is from  http://pthree.org/2010/02/13/facebook-chat-in-bitlbee/   { 2010 02 13 } Facebook Chat In Bitlbee It’s no surprise that Bitlbee is my chat client of choice. After all, I’ve blogged about it before. So, when I heard rumors that Facebook would be releasing their chat to outside clients over XMPP, I was excited to see the day when I could add it to my running Bitlbee instance. Lo and behold, that day has come . Adding your Facebook account to Bitlbee is rather painless, as it is with any other account. The only catch, is you have to have a Facebook username set before you can continue. Once that is set, in Bitlbee, from your “&btilbee” status window, you can add the account: account add jabber @chat.facebook.com save account on That’s it! You should be up and running with a new XMPP connection to the Facebook chat. However, rather quickly, you’ll notice that the usernames in your

How to sync data between 2 servers automatically

FROM http://www.howtomonster.com/2007/08/08/how-to-sync-data-between-2-servers-automatically/ How to sync data between 2 servers automatically Have you ever wanted to know how to easily synchronize the data between multiple servers automatically? In this article I’ll explain how to setup 2 Linux servers to automatically synchronize data between a specific directory on each server. To do this we will use rsync, ssh key authentication, and a cron job. Let’s call the 2 servers ‘SOURCESERVER’ and ‘DESTSERVER’ for SOURCESERVER = Source server (the server we’re connecting from to upload the data) DESTSERVER = Destination server (the server we’re connecting to receive the data) Part 1 - Setting up SSH key authentication First, we need to make sure the DESTSERVER has the ability to use key authentication enabled. Find your sshd configuration file (usually ‘/etc/ssh/sshd_config’) and enable the following options if they are not already set. RSAAuthentication yes PubkeyAuthent