Tuesday, August 23, 2011

libmagic like java packages

http://www.forensicswiki.org/wiki/File_Format_Identification
  • general file format id page
    • libmagic (file stuff we are using)
    • PRONUM
    • DROID 
    • (etc)
LibmagicJNI

Java Mime Magic Library
  • I don't believe this use the magic files that lib magic does
javax.activation.MimetypesFileTypeMap
  • Uses own file signatures
Apache Tika - a content analysis toolkit
  • Doesn't use libmagic signatures
Java Mime Magic Library

What I am using:

How to tell if Linux is 32/64 bit

http://www.linuxforums.org/forum/newbie/72026-how-tell-if-32-64-bit-linux-machine-i-am-accessing.html
  • uname -m
    • i386 or i686 is 32 bit
    • x86_64 is 64 bit


Monday, August 22, 2011

Opening a Shell Window in Cygwin Emacs

The command is
  • M shell
  • The meta is create by selecting esc-x, than shell is typed.

Friday, August 5, 2011

Setting up a Remote Desk Top View in Linux

Had a really hard time doing this.  There were two problems. VNC password and an ignored shift-key.

Host System
  • VNC has it own password setup.  I was thinking that the password was the user on the host system.
    • Setup a password using the first 8 chars of the system password.
$ vncpasswd
Using password file /home/stan/.vnc/passwd
Password: 
Verify:   
Would you like to enter a view-only password (y/n)? n


$ sudo x11vnc -nomodtweak -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800
...
PORT=5900

There will be a port address given at the end that will need to be used in the VNC client.



Guest System

Found 3 options, all of which seem to work:

  • Terminal Server Client
    • using RealVNC vncviwer
      • This can be seen running the following command from a commandline.
        • $ vncviewer -?
        • The copy right is by RealVNC Ltd.
    • Terminal Server Client is selected from the menu; however, is you do 'ps aux | grep vncviewer' you can see it.
    • give IP:port
    • Set protocol to 'VNC'
  • Remote Desk Top Viewer
    • gives a command line.
  • TightVNC
    • full source code available, but no opensource
    • EXE for windows
    • java jar
      • $ java -jar tightvnc-jviewer.jar

Thursday, August 4, 2011

Tech Review: Wednesday, August 3, 2011

misdetection of ISO images and ZIP in 5.07


Email from Mark Martinec on this day showing example of ISO and ZIP detected correctly in 5.03 and not correctly in 5.07

Christos responded that it should be fixed in 5.08

file-5.08 is now available



Christos says this "is a bug fix release mostly to revert some magic changes that broke zip detection."

   * Fix detection of Zip files (Mantis #128).
       * Make some minor improvements to file(1).
       * Rename MIME types for filesystem objects for consistency with
         xdg-utils. Typically this means that application/x-foo becomes
         inode/foo, but some names also change slightly, e.g.
         application/x-character-device becomes inode/chardevice.