Oct 072012
 

DWA-125_cap_on

My new desktop don’t has an integrated wireless card, but has 10 USB ports, so I’ve decided to use an external USB/Wireless adapter to connect it to the WI-Fi at my home, using a cable is not an option, I’ve the router in another room, and it would be a mess to bring it to the desktop, so without doing any research on the net for linux-friendly adapter (and i really suggest you to do this if you want to buy one) I’ve bought a D-LINK N 150 aka DWA-125 on the local mall, basically I’ve bought the cheapest adapter with a name i know.

And setting this up it’s been the hardest part of all the new installation, if you have the “luck” to have this hardware this small guide can perhaps help you too, I’ve done it on a Mint 13, but this should work flawlessly on Ubuntu and Debian as well, and probably on most distributions.
Continue reading »

Flattr this!

Sep 262012
 

Sometimes I find a long and interesting video on youtube or vimeo about Linux events or presentations, documentaries or movies that I’d like to see in a second moment, maybe when I’m offline or from my TV that has an usb port but no wireless. There are dozen of extensions for Firefox and Chrome to do this kind of task, but today I’ve found an interesting program that can download a video from a long list of website and convert that video into another format: xVideoServiceThief

xVideoServiceThief (a.k.a xVST) is an open source tool for downloading your favourite video clips from a lot of video websites (currently supports 93 websites ) and it also provide you the ability to convert each video in themost popular formats: AVI, MPEG1, MPEG2, WMV, MP4, 3GP, MP3 file formats.
Continue reading »

Flattr this!

Sep 232012
 

In a former article I’ve wrote about the command locate, an useful command to find quickly a file in your computer.
An alternative to locate is the command find : GNU find searches the directory tree rooted at each given file name by evaluating the given expression from left to right, according to the rules of precedence, until the outcome is known (the left hand side is false for and operations, true for or), at which point find use the defined action and moves on to the next file name.

find can use many options to compose an expression and as standard action it print in the standard output the file name that match the expression.

Continue reading »

Flattr this!

Sep 192012
 

Original article published on http://romanrm.ru

This article is written to address sometimes incorrect usage of the “dd” program to measure disk write performance on a VPS by some visitors of the lowendbox.com website, and is originally based on this question and my answer to it.
Continue reading »

Flattr this!

Sep 182012
 

Today i was writing a bash script that should manage some input arguments, and so i studied getopt, this is a convenient and elegant way to manage input parameters in a bash script. With it you can define switch (present or not) or parameters with an option, thus making your simple bash script much more professional.

Let’s see how to use this command and its options.

Please note that on Linux there are two different ways of parsing command line arguments. There is an utility called getopt (man 1 getopt). This utility is available in all shells. Then in bash, there is another built-in tool for parsing arguments called getopts (it’s a built-in, so it doesn’t have it’s own man-page — try help getopts). In this article I’ll talk of the first one, after some problems with script not working in dash i prefer to use external small programs rather than bash built-in commands.

Continue reading »

Flattr this!