Archive for the ‘linux’ Category

Adding bunch of users in Linux in batch mode

Monday, July 5th, 2010

As usual, the main source for writing articles here is a need I had and a solution I found ;) This time the need was to add a series of users in a Linux system without repeating the command useradd one zirillion of times. First, we need to populate a text files ...

Zeroshell displaying odd characters on serial terminal

Tuesday, June 29th, 2010

I’ve been recently fashioned by Zeroshell project, a very well documented project run by an italian guy who made a splendid job. I tried to set it up on a VIA based appliance with Intel 1 Ghz processor and 1 Gb RAM, using 1 Gb Compact Flash and the ...

Automatically mounting a remote directory in Ubuntu using autofs + sshfs

Thursday, May 27th, 2010

Memo to self...

How do I sign a Certificate Request?

Monday, January 18th, 2010

Quick not to myself since everytime I spend hours in searching it again. The command line is: openssl x509 –req –in <path>/<certificate_request>.csr  –signkey <path-to-CA-private-cert>/CA-private-cert.pem –out <path-to-certs-repository>/signed-cert-name.pem Hopefully next time I do not have to search it again hours and hours ;) Naturally this command required to ...

Want to know the IMAGE LABEL of my ISO file

Monday, January 18th, 2010

This is something not so easy to find on the internet, and once again Linux shows its immense power in the simplest way: CLI. Question: I have a .ISO file representing the image of a DVD and I want to know the LABEL of that DVD. Answer: Issue ...

uPnP Media Server with llink.

Saturday, January 16th, 2010

Let's start this new year by referencing an excellent system I happened to find on the Internet to perform uPnP server functionality on my Linux system. The name of the thing is LLink and although I haven't exploited at full yet, it looks VERY promising. Some features: Parses various video containers: vob, avi, ...

Scripting Galore – The beauty of randomic sort

Thursday, December 31st, 2009

Although it could seem an oxymore, sort something in randomic order might be usefl sometimes. Give a look to the script below, which I’m writing here for future reference. #!/bin/bash # # This script creates a list of file or symbolic link to ...

Scripting Galore – Copy list of files from bigger repository into another location

Sunday, November 29th, 2009

I don't consider myself a script guru, but sometimes I like to create small pieces of bash code to ease operations on my linux box... and I guess it's good idea to note here some of the recent solutions I've found for later remembering. I'll try to comment them, so that ...

Extending an ext3 partition on Linux (without losing data)

Tuesday, November 3rd, 2009

Here’s another successful operation done on fantastic Linux OS that is a pure dream for other operating systems. Situation: I have a virtual machine with 20 GB HDD, partitioned as follows: 95% ext3 on primary partition 5% swap on first partition of extended partition I certainly ...

Enabling SPDIF sound on Ubuntu with Dell Docking station

Monday, April 13th, 2009

Should you come across the same need, I just found a working solution, even if quite odd. The trick to get it working is to go into sound settings and enable IEC958 Playback AC97-SPSA, checking that volume is set to… 0. Magically sound will begin to flow out ...