Archive for the ‘linux’ Category
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 ...
Posted in linux, Mac | No Comments »
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 ...
Posted in linux | No Comments »
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 ...
Posted in linux, LiveCD and Bootable USB, Mac | No Comments »
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 );
Posted in linux, PHP, shell scripting | No Comments »
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 ...
Posted in linux | No Comments »
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 ...
Posted in linux, VMware | No Comments »
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 ...
Posted in linux | No Comments »
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 ...
Posted in linux, Putty-Winscp3 | No Comments »
Thursday, May 27th, 2010
Memo to self...
Posted in linux, shell scripting, ssh | No Comments »
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 ...
Posted in linux, OpenSSL and PKI | No Comments »