linux

Tux Happy Holidays

Advertisements

The Tao of UBUNTU

A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed.

~ Archbishop Desmond Tutu, 1999

Source: http://ubuntuforums.org/showthread.php?t=1016501

Get a Free Techie custom email address

do you want  an email address that look more professional ? one that make you feel techie?

while digging deeper in google, i found some free email providers:

mail.com

The main drawback: no option to forward mail to another account such as gmail (feature available in premium account)
You can create email account in the form:

name@linuxmail.org
name@bsdmail.com
name@techie.com
name@programmer.net

name@hackermail.com

There is more to choose from.You will find a long list when you sign up.

easy.la

Good news is that it allows to forward to another account (as specified on their website).
You can create email account in the form:

name@admin.la

Again,there is more to choose from.You will find a long list when you sign up.

Wireshark Remote Capture using X-Forwarding

Because I was not very satisfied with the results of googling “wireshark remote capture x forwarding”, I wrote this little tutorial for my happiness.

1. To enable X11 forwarding on the server you need at least the xauth  program.
On the remote server install the following:

apt-get install xserver-xorg

apt-get install xbase-clients

apt-get install wireshark

2. on local machine:

# ssh -X root@remotemachine
# wireshark

3. Go to Capture > Options > Interface > Pseudo-Device

linux: reset iptables firewall rules

Create a shell script (iptables_flush.sh) and copy paste the following lines:

#!/bin/sh
echo "Flushing iptables rules..."
sleep 1
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

Make the file executable

chmod +x iptables_flush.sh

and run the script:

./iptables_flush.sh

Source:
http://insanelabs.com/linux/linux-reset-iptables-firewall-rules/

disable a service from automatically starting in debian

Debian Linux has its own script to enable and disable services across runlevels. It is called update-rc.d. Going by the above example, you can enable apache webserver as follows:
# update-rc.d apache2 defaults
… this will enable the apache webserver to start in the default run levels of 2,3,4 and 5. Of course, you can do it explicitly by giving the run levels instead of the “defaults” keyword as follows:
# update-rc.d apache2 start 20 2 3 4 5 . stop 80 0 1 6 .
The above command modifies the sym-links in the respective /etc/rcX.d directories to start or stop the service in the destined runlevels. Here X stands for a value of 0 to 6 depending on the runlevel. One thing to note here is the dot (.) which is used to terminate the set which is important. Also 20 and 80 are the sequence codes which decides in what order of precedence the scripts in the /etc/init.d/ directory should be started or stopped.

And to disable the service in all the run levels, you execute the command:

# update-rc.d -f apache2 remove

Here -f option which stands for force is mandatory.

But if you want to enable the service only in runlevel 5, you do this instead:
# update-rc.d apache2  start 20 5 . stop 80 0 1 2 3 4 6 .

For gentoo & redhat read more at:
http://linuxhelp.blogspot.com/2006/04/enabling-and-disabling-services-during_01.html