Mixed bunch of computer, Linux, programming, photography, wine making, food, recumbent biking, general DIY hacking and other random stuff.
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts
Wednesday, July 13, 2011
Linux driver for old serial Wacom tablets (Intuos and Intuos2)
So I bought an old Intuos1 tablet from eBay. I knew that USB tablets were
perfectly supported, and that there was some difficulty getting serial
tablets to work. Sadly, I misread the description (it said "connects via
USB adapter"), interpreting it as an USB tablet, while it actually was a
serial tablet with a serial-to-USB adapter included. (note to self:
Properly read eBay descriptions next time!).
Now, support for old serial Wacom tablets was dropped from xf86-input-wacom
quite some time ago due to a large refactoring and the lack of developer
resources to keep this part of the code maintained.
However, literally only a couple of days ago, an initial driver was
released by Julian (tokenrove) that supports old serial protocol IV
tablets. Right now it has tested support for Digitizer II tablets, and it
should also (untested as of yet) support Cintiq, Cintiq2, Penpartner and
Graphire serial tablets. The initial announcement and code can be found
here.
I created a fork of this driver to implement support for my (protocol V)
Intuos tablet. Currently, all features are implemented and working (pen and
eraser movement, pressure, tilt; mouse movement and buttons). The driver is
still a work-in-progress at the time of writing, but it should already be
sufficiently stable and functional for every day use with an Intuos tablet.
I still need testers with an Intuos2 tablet to test that part of the code
and/or testers with an Intuos tablet with extra tools (eg airbrush, ...).
The code can be found at my github repository
wacom_serial5.
Development discussions can be followed in
this
thread on the ubuntu forums and the linuxwacom-devel mailing list.
Saturday, February 19, 2011
Recovering photos with extundelete and PhotoRec using a Puppy Linux live USB stick
I recently screwed up an rsync and accidentally deleted a lot of my photos. I finally got round to recovering them, and here's how I did it.
Tuesday, January 4, 2011
When rsyncs go wrong
Ok, so a few days ago I wanted to sync some photos between by laptop and my desktop. My desktop has my entire photo collection and I have a subset of that on my laptop. I frequently sync directories between the two using rsync. The desktop doubles as a backup, the files are on a RAID1 array for redundancy -- of course that isn't enough to be safe, and yes, I found out.
The directory structure is very simple, I've set it up as
yyyy/mm/dd-short-description-of-shoot
with yyyy the year, mm the month and dd the day of the month.
After having done some editing in the current month on my laptop, I wanted to sync it to my desktop.
I have a small script that uses rsync to synchronize the current working directory from my laptop to my desktop. I had deleted some bad photo's and obviously wanted them removed from the desktop as well. So I gave the script the --delete flag, which it handed over to rsync.
I ran the script and was greeted by screenfulls of lines saying deleted xxx or yyy. Hmm, I didn't delete that much pictures. I glance at the files that are being deleted, hmm, wait a minute, those aren't the right ... AAAAAH!
^C^C^C^C^C^C^C^C^C^C^C^C^C
FUUUUUCK! I'm bashing CTRL-C for my life here! Finally it kills itself and gives me a shell prompt. I look at the current working directory:
2010/
That should of course have been
2010/12/
And as I said, I don't have a full mirror of all the photos on my laptop (not enough hard disk space there), so it started pruning all the older ones from my desktop. Ouch.
I've shut down the desktop asap and haven't booted it since. I'm probably going to try my luck with extundelete after the exams. Fingers crossed.
TL;DR Be careful with the --delete flag in rsync. It will fuck you up sooner or later!
The directory structure is very simple, I've set it up as
yyyy/mm/dd-short-description-of-shoot
with yyyy the year, mm the month and dd the day of the month.
After having done some editing in the current month on my laptop, I wanted to sync it to my desktop.
I have a small script that uses rsync to synchronize the current working directory from my laptop to my desktop. I had deleted some bad photo's and obviously wanted them removed from the desktop as well. So I gave the script the --delete flag, which it handed over to rsync.
I ran the script and was greeted by screenfulls of lines saying deleted xxx or yyy. Hmm, I didn't delete that much pictures. I glance at the files that are being deleted, hmm, wait a minute, those aren't the right ... AAAAAH!
^C^C^C^C^C^C^C^C^C^C^C^C^C
FUUUUUCK! I'm bashing CTRL-C for my life here! Finally it kills itself and gives me a shell prompt. I look at the current working directory:
2010/
That should of course have been
2010/12/
And as I said, I don't have a full mirror of all the photos on my laptop (not enough hard disk space there), so it started pruning all the older ones from my desktop. Ouch.
I've shut down the desktop asap and haven't booted it since. I'm probably going to try my luck with extundelete after the exams. Fingers crossed.
TL;DR Be careful with the --delete flag in rsync. It will fuck you up sooner or later!
Monday, October 4, 2010
Downside of shooting RAW: the thirst for diskspace -- Linux RAID adventures
With my photo directory easily breaking the 100GB limit after about a month of shooting, I needed some more space. Given that disk space is pretty cheap these days, I went for two 1TB drives in software RAID1 (I don't have the discipline to make decent back-ups, hence the RAID). It turns out to be pretty easy to set up a software RAID on Linux -- if you read the documentation properly (I didn't).
Subscribe to:
Posts (Atom)