MikeTeo.net

A Software Technologist's Blog (Wanna Email Me?)

Archive for the ‘Linux’ Category

I use tklbam from TurnKeyLinux to backup a number of Linux nodes on DigtalOcean and Amazon AWS.
However, tklbam support was broken on Ubtuntu 14.04 where you can’t install the tklbam software.

Below is my workaround to get tklbam to install on Ubuntu 14.04.

Read the rest of this entry »

pysmb 1.0.0 Released!

Dec-25-2011 By miketeo

About 10 years ago, I have released the first version of pysmb. Since then, Microsoft Windows has made significant changes to the NTLM authentication protocol which causes pysmb to become incompatible with Windows Vista and Windows 7 machines.

Now, with the release of pysmb 1.0.0, you can write Python applications to transfer files on shared folders on Windows XP, Windows Vista and Windows 7, as well as on Unix machines running Samba. pysmb 1.0.0 remains faithful to its clause that it will remain a pure Python SMB/CIFS module without any need for binary compilation. For this to be possible, it has utilized other pure Python modules such as pyDES, MD4 and pyasn1.

In addition to its new compatibilities with the recent Windows OS, pysmb has also been rewritten to support other frameworks. At the moment, a Twisted NetBIOS and SMB/CIFS protocol implementation has been included with pysmb 1.0.0 sources. Please refer to the documentation in the sources for more details.

For more details on pysmb 1.0.0, please go to the pysmb project page to download it, or you can also run: “easy_install pysmb” to install it on your machine.

Creating bin/cue Files on Linux

May-10-2008 By miketeo

I have tested this to be working a Fedora Core 8 distro. It should work on other distros that have cdrdao installed. The following commands should be performed as a root user.

1. Scan for your device ID

$> cdrdao scanbus

You should see an output similar to the following:

Cdrdao version 1.2.2 - (C) Andreas Mueller
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty
Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.
Using libscg version 'schily-0.8'
3,0,0 : Imation , IMWDVRW8I       , HSI3

Note the 3,0,0 at the bottom of the output. That’s the device ID you need for the next command.

2. Now you can start copying the CD/DVD into a set of bin/cue file.

$> cdrdao read-cd --read-raw --datafile cdimage.bin --device 3,0,0  cdimage.cue

The above command will produce an image of the CD at device 3,0,0 (which is what I have gotten during the previous cdrdao command) and write the image into cdimage.bin and cdimage.cue.

You should see an output similar to the following when the command executes:

Cdrdao version 1.2.2 - (C) Andreas Mueller
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty
Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.
Using libscg version 'schily-0.8'
3,0,0: Imation IMWDVRW8I        Rev: HSI3
Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000)
Reading toc and track data...
Track   Mode    Flags  Start                Length
------------------------------------------------------------
 1      DATA    4      00:00:00(     0)     00:06:00(   450)
 2      DATA    4      00:06:00(   450)     78:59:14(355439)
Leadout DATA    4      79:05:14(355889)
PQ sub-channel reading (data track) is supported, data format is BCD.
Raw P-W sub-channel reading (data track) is supported.
Cooked R-W sub-channel reading (data track) is supported.
Copying data track 1 (MODE2_RAW): start 00:00:00, length 00:06:00 to "cdimage.bin"...
Copying data track 2 (MODE2_RAW): start 00:06:00, length 78:59:14 to "cdimage.bin"...
Reading of toc and track data finished successfully.

Now you can open bin/cue file in Windows using DAEMON Tools. Try opening the bin file if you have an error opening the cue file.