Archive for July, 2007

h1

Impressive preview of Compiz/Fusion

July 22, 2007

Let me show this is amazing video of a Compiz/Fusion Linux desktop.

Source: TodOS

Advertisements
h1

Setting up a SSH tunnel

July 22, 2007

Hi again!

If we need a through our LAN to use, for example, a protocol which it’s locked by a BOFH 😉 or send some personal data through a insecure protocol, we would use a SSH Tunnel using a SSH client like PuTTy (On win32) or openSSH (*NIX systems).

Ok, We’re in a LAN which 80 port it’s closed and that really sucks!. We’ve the IP of a server without restriction over the 80 port. Then, we’re going to do a tunnel with this server and send the 80 port data encrypted through the SSH port (I suppose this port is open! [Default port 22]).

We must open PuTTy and go to this screen

 After this, we must connect to the server

When we’re connected to the server, we must login in and the tunnel has been stablished 😀

Ok, now we need to say to the internet browser that it needs to connect through the Tunnel, to this, open your favourite browser (Firefox 4ever ;’) ) and open the connection settings. A window like this will be opened.

 If you’ve made all the steps, your SSH Tunnel are running now :D.

h1

Recovering Unix files in Windows

July 14, 2007

If we’ve a hard drive with some windows and Linux partitions, and we’re running on Windows OS, perhaps we want accede to one Linux partition to recover some data. Don’t worry, that it’s very easy.

Depending on the type of partition we’ve, we must use one of this programs.

  •   Partition: EXT2: R-Linux
  •   Partition: ReiserFS : RSTools
  •   Partition: EXT2, EXT3, ReiserFS: LSTools

Obvious, the last supports all usual Linux partitions. To use this, you can manage it from
a command terminal, but if you hate that,  you could use a GUI, based on Java or .NET. Just install one and follow the user manual.

Also you could manage it from your web browse, probably, the quick and effective form.

h1

Linux file permissions

July 11, 2007

To show the file permissions type:

ls --color -l

This, shows something like this

-rw-r–r– 1 root root 817 2006-06-05 13:20 script
-rw-r–r– 1 peter usuarios 143360 2007-07-11 23:29 typescript

The “-rw-r–r–” line part, shows the file permissions to the OWNER, GROUP and OTHERS. In this example, the OWNER can “read” and “write”, the GROUP can “read”, and OTHERS can “read”. If the first character it’s a”d”, this means, that it’s a directory.

To change permissions, we use “chmod” command. The chmod sintaxis it’s, “chmod [number]”, the number represents the permissions we want to apply. To obtain this, we can use google 😛 or this calculator http://wsabstract.com/script/script2/chmodcal.shtml

Maybe you can use this simple table:

Value Permission
0
1 –x
2 -w-
3 -wx
4 r–
5 r-x
6 rw-
7 rwx

For example, if we apply a file the command “chmod 777”, that means, ALL users, can READ, WRITE and EXECUTE the file. If we apply “chmod 600”, Only the OWNER can READ and WRITE, the rest of users cannot use the file.

h1

Links: Find all the files extension

July 11, 2007

Sometimes i’ve had some files which had a rare extension. Don’t worry, you can use FILExt. This page contains a great database with all the extension you can imagine. Just type the extension you need, and will return the software you need to run that file

click ove the image to go FILExt
h1

Shell Script – Restart Process if not found running

July 7, 2007

A script to Check if process is running and if not running
then start the process.

You can run this as a cron job in a 5/10 mins interval :

cat chk_if_process_running.sh
_______________________

#!/bin/bash
# check daemon
ps -ef | grep -v grep | grep daemon
# if not found - equals to 1, start it
if [ $? -eq 1 ]
then
/sbin/init.d/daemon start
else
echo "eq 0 - daemon found - do nothing"
fi

________________________

Copy & paste from Unix desk (Linux blog)

h1

Links: Firewall.cx a great networking webpage

July 7, 2007

I discovered this webpage, and have some networking stuff, from basic things to advanced. There’re some information about networking protocols, software and some things of Cisco Systems.

In conclusion, one of the greatest networking webpages i’ve ever seen 😀

(click over the logo to access)