Archive for the ‘linux’ Category

Ext2/Ext3 Support on MAC OS X Lion

Thursday, January 26th, 2012

As usual, not that immediate to find a proper answer on the 'Net, hence I'm providing one here. While in Snow Leopard was quite easy to see your ext2/ext3 formatted disks via MacFuse and ext2-fuse, in Lion you need to install another fuse fork and select a special option. That new ...

Move running processes to another tty or screen

Sunday, December 4th, 2011

How many times I did find myself launching a script, or worst, seeing a process running on a system and wishing to take control over it... the answer is too many ;) Today I've found a nice solution at least for Linux systems with the utility reptyr. While I'm writing this post ...

How to Create a Bootable Image of Ubuntu (or any bootable ISO) on a Mac

Thursday, November 17th, 2011

Found this process well described on Ubuntu website, hence thought it was a good idea to report here also, for future usage. Note: this procedure requires an .img file that you will be required to create from the .iso file you download. TIP: Drag and Drop a file from Finder to Terminal ...

Print from PHP on a Linux system printer

Monday, February 14th, 2011

Suppose you have a script in PHP and you want to print on the system's default printer, you can use the function system (<command>, $retval) The following example shows the printing of a content including a variable coming from the PHP script: system('echo "'.$message.'"|lpr -o page-left=35 ', $retval );

Define a printer on Ubuntu using CUPS

Monday, February 14th, 2011

Took me some time to find this out digging the Net, hence creating a note here. Example with a Ricoh printer (but Ubuntu includes tons of drivers), network connected and listening on IP 192.168.1.10. lpadmin -E -p<my printer name> -v socket://<my printer address> -P /usr/share/ppd/openprinting/Ricoh/PS/Ricoh-Aficio_SP_4210N_PS.ppd.gz -u allow:all Then let's make it default with command: lpadmin ...

Upgrading ESXi 4.0 to 4.1 from CLI

Monday, November 8th, 2010

Today I successfully upgraded 4 ESXi hosts to VMware ESXi 4.1. Since I do not have Virtual Center (they are mainly lab machines), I found very good hints about hot to do it from CLI via SSH. And as usual, to avoid forgetting how I did it’s good ...

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 ...