Thursday, October 27, 2011

vmware esxi disk conversion

In order to use a disk imported from another vmware version, either use vmware converter first, then transfer the machine, or convert the disk and insert it into a new esxi vm.

to do the latter for example

 vmkfstools -i itvmgr41.vmdk -d zeroedthick itvmgr40sp1.vmdk

will convert the disk.  There are other options for the -d parameter, but this will result in a fully allocated disk image with the sparse portions of the original file filled in with zeros.

Tuesday, October 18, 2011

cute way to distribute software via tar link on web page

this gets the tar info from a web site via port 80, pipes it 
to tar which in turn expands and stores it 

wget -O- | tar xvz
Stolen from calibre installer page for linux os.
remainder of install if one uses the above:
cd calibre*
sudo python install

static mac address on vmware

in the vmx file, enter:

ethernetN.addressType = “static”
ethernetN.address = “<address>”

statements with desired mac address, : delimited

works on bridged and private to host, causes dictionary error if you try nat connection for some reason.

Friday, October 14, 2011

using gmailfs

umount -l <path> if the python support process dies. 

fuser file system will give you "Transport endpoint is not connected" if you try to umount any other way (fusermount -u doesn't work either).

still hunting for a graceful way to make it go away.

links:  has a fix to problem with env variable

Wednesday, October 12, 2011

autoconf / automake / pkgconfig

The library package uses files to build a configure file when autoconf and automake are run.

a pkgconfig file is usually generate in the form of a file

the resulting .pc file should be installed when one runs make install.

subsequent references to the library will find the library information using pkgconfig

Thursday, October 6, 2011

flight notes

seat utility:

Mainframe Assembler references

cbt / Jim Morrison page
Assembler connection
opcode list      
green card        

postscript, pdf tools command line linux


Central to all PostScript and PDF manipulations is the program GhostScript. This interprets files in any of these formats, and it can then output the document or image after applying various operations: rotation, scaling, cropping, and rasterization. GhostScript is rather user-hostile. Fortunately there are various less hostile wrapper programs, which shield users from GhostScript. The most important one is
gv            displays ps, eps or pdf files
display       displays, manipulates and converts image files
Gnome and KDE have their own variants of gv.
Other utilities, specific to .ps and .eps, are:
psbook        rearrange pages in PostScript file into signatures
psselect      selects pages from a PostScript file
pstops        Ghostscript's PostScript distiller for PS and EPS
epsffit       fit encapsulated PostScript file (EPSF) into constrained size
ps2epsi       embeds a thumbnail image within a PS or EPS file
psnup         multiple pages per sheet
psresize      multiple pages per sheet
psmerge       filter to merge several PostScript files into one
ps2ps         optimizer for PS files
eps2eps       optimizer for EPS files
ps2ascii      extract text from PS file
ps2pdf        translator from PS to PDF
fig2ps        translator from FIG, via Latex, to PS/EPS
Utilities specific to .pdf are:
pdf2ps        translator from PDF to PS
pdfimages     extracts images from PDF documents
pdftotext     extracts text from PDF documents
pdftops       converts PDF to PS
pdftopbm      converts each page to a PBM image
pdftoppm      converts each page to a PPM image
pdfcrop       reduces/increases margins

Monday, October 3, 2011

set vim or vi as default editor

useful for setting editor from "nano" for such as crontab -e and svn commit command line commands which require using editor to prepare a parameter file. 

In defense of Nano, you can do an control O and then control X, but my fingers like vi

sudo update-alternatives –config editor 
There are 3 choices for the alternative editor (providing /usr/bin/editor).

  Selection    Path               Priority   Status
  0            /bin/nano           40        auto mode
  1            /bin/ed            -100       manual mode
  2            /bin/nano           40        manual mode
* 3            /usr/bin/vim.tiny   10        manual mode

select desired editor from the list