Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

2013-11-11

Automated installation of Windows 7 in KVM


Sometimes I need to test/work with Windows 7 in my libvirt/KVM virtualization. Because the testing can be destructive I decided to automate it as much as possible. As a linux user there is not much options to modify ISO image and create fully unattended installation, because I need the "windows only" tools for that. I also don't want to use unattended configs shared by SAMBA, because it looks too complex for one VM.

Anyway here is the description of solution how I'm "fighting" with the automated Windows installation in the Virtual Machine manager.

2013-08-23

How to get HP enclosure c7000 information without ssh


In past wef days I was doing some scripting to get the details bout the HP BladeSystem c7000
You can do a lot though the SSH access, but I prefer to get the data without setting up ssh keys or doing some expect scripts. I neede "showAll" output and some nice structured XML file containing the hardware description, MACs, WWIDs, etc...

Maybe it can be useful for some people who wants to do the same - here is the example:



Here is the external link:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c02843807

Enjoy :-)

2009-06-02

Trim margins from PDF document

It's happened to me one time, that I want to trim margins from PDF document.

It was a Czech manual for Panasonic G1 camera. You can see huge margins there, because it was officially written for A5 paper and they create manual for A4 paper size.

See the picture:
One page from Czech Panasonic DMC-G1 manual
One page from Czech Panasonic DMC-G1 manual

I used pdfcrop script from Heiko Oberdiek, which can easily trim margins.
pdfcrop.pl --margins 10 panasonic_g1.pdf panasonic_g1-2.pdf

Here is the result:
Trimmed page from Czech Panasonic DMC-G1 manual
Trimmed page from Czech Panasonic DMC-G1 manual

I hope this can be useful for somebody who needs this...
KDE pdf viewer Okular, has the function "Trim Margins", which works very well, but you can not save the PDF...