Jun 182011
 

ssh Today I present another excellent article by Domenico Raffaele originally presented in his blog (in Italian) where you can find many other interesting articles about hacks and VoIP. This is his second article about ssh.

Here you’ll see some example of SSH Port Forwarding, sometimes called SSH Tunneling, which allows you to establish a secure SSH session and then tunnel arbitrary TCP connections through it. Tunnels can be created at any time, with almost no effort and no programming, which makes them very appealing.

Continue reading »

Flattr this!

Jun 162011
 

nginxOn my site I had a small problems with feeds, i’ve them managed with feedburner and I’ve 1 feed for every language, so you can choose to have the feeds in English or in Italian. The problem is that I’d like that when a user write http://linuxaria.com/feed it land on my feedburner page for English while writing http://linuxaria.com/feed?lang=it he should lands on the Italian feed page.

I’ve tried with the wordpress plugin for feedburner, but that it’s good only if you have 1 feed, because it blindly redirect everything to 1 feedburner address, so it’s not a good solution for my 2 bilingual feeds.

And so I’ve done it with a rewrite in Nginx.
Continue reading »

Flattr this!

Jun 162011
 

sudoThe stat command is really useful to gather information from file, directory and file system.
The basic usage of stat is:

~#stat /etc/passwd
 
File: `/etc/passwd'
Size: 999       	Blocks: 8          IO Block: 4096   regular file
Device: ca00h/51712d	Inode: 845         Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-05-26 12:14:41.000000000 +0200
Modify: 2011-05-26 12:14:41.000000000 +0200
Change: 2011-05-26 12:14:41.000000000 +0200

So, without options you can have the following information

File : Size in Bytes
Blocks : Number of blocks used
IO Block : Size in bytes of every block.
Device : The identifier number of your storage device (harddrive, etc.)
Inode : The inode number that the file or directory is linked to.
Access/Modify and change Times : Note that the timestamps also include which time zone that accesses or modifications took place in. in this example +0200 Continue reading »

Flattr this!

Jun 142011
 

sudoI think that sudo is become a wide used command with Ubuntu, where you don’t even have a root password, before that probably it was used only in some data-centers to restrict access to some commands.

sudo allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file.

In this article I will show some uses a little less common for this command, for a general description of the command you could read the page about sudo on wikipedia

Continue reading »

Flattr this!