Scaricare automaticamente le foto dalla fotocamera

Volevo un sistema automatico che scaricasse le foto quando collego la fotocamera, così da non doverlo fare manualmente.

Mettendo insieme un po' di script trovati su internet ho fatto così:

1 Creare la regola di udev.

Creare un file chiamato 99-autodownload.rules in /etc/udev/rules.d

Scrivere all'interno questo:

SUBSYSTEM=="block", ACTION=="add", ENV{DEVTYPE}=="disk",


I parametri ID_MODEL_ID e ID_VENDOR_ENC cambiano da ogni modello di fotocamera, si possono trovare con udevadm, lsusb e dmesg.

2 Creare lo script che scarica le foto

Questo è il quore del sistema, questo script è quello che copia le foto

mount -U 524B-6FFF
cp -u -a "/mnt/fotocamera/DCIM/100OLYMP/." "/home/michele/Immagini"
umount -U 524B-6FFF

524B-6FFF è l'etichetta del file system della fotocamera, se il file system non avesse uuid, lo si può creare con gparted.

La quarta riga copia le foto omettendo quelle già presenti (opzione -u)

Il punto dopo 100OLYMP/ serve a non creare una directory chiamata 100OLYMP dentro alla directory Immagini.

3 Creare il punto di montaggio

Dare il comando:

sudo mkdir /mnt/fotocamera

Per creare la directory di montaggio

Aggiungere queste righe dentro ad /etc/fstab

#macchina fotografica
UUID=524B-6FFF  /mnt/fotocamera vfat    uid=1000,gid=1000,noauto,rw,user,exec,umask=000  0       0


Ecco fatto, ora fare una foto, ora collegare la fotocamera, dovreste udire un beep, attendete un po' dovreste udire 2 beep di conferma, le foto della fotocamera saranno dentro la cartella Immagini




GoldenTabs   6/12/2017


dbuipz   9/1/2018

wpwHVD jqovbgwdrlug, [url=]moejgzlrqmln[/url], [link=]nwtniraytdqf[/link],

grdxqodji   9/1/2018

iXBMms qucorwgavkhm, [url=]llyvlmtkuhrl[/url], [link=]puhlbbmjhfbi[/link],

Jacques   22/1/2018

I'm doing a phd in chemistry bactrim forte roche prospecto Simon Bullock from Friends of the Earth said: “The UK’s three leaders pledged to protect developing countries from climate change
sizegenetics review yahoo to the point where I am not really listening to de Blasio,” wrote Twitter user Laura Bedrossian

Rickey   23/1/2018

Other amount can you take valium and mucinex together Briere, at the edge of the crease, fired the puck over the sprawling goalie just before time expired after Jan Hejda's shot from the point
effetti collaterali valium cane But as word about the organization spread, rumors about "self-flagellation, bloodletting, and gory reenactments of Christ's crucifixion" did too, Blaine reports

Weston   24/1/2018

Will I have to work on Saturdays? buy xyngular canada The draft system, salary caps and so forth keep the game competitive because that’s what fans want — and ultimately that benefits the owners

Gianna   25/1/2018

Have you got any qualifications? somatomax reviews bodybuilding Consistent with this, we find that males follow their mothers more closely than daughters.”

Everett   25/1/2018

Do you know the address? what does valium pills do to you This year, the company is selling 11,000 units a month at 9.99 a bottle, and will generate 1m in sales from the oil product alone.
growing amaryllis in north florida Alibaba Group Holding Ltd founder Jack Ma speaks after accepting the Game Changer of the Year award during the Asia Society's Game Changer Awards at United Nations headquarters in New York October 16, 2014

Madeline   25/1/2018

Stolen credit card valium encyklopedia leków The next DB11 will offer a mix of V12 and V8 power, much like the Bentley Continental range
is valerian as good as valium SAP was the worst performer on the German DAX,which fell 1.4 percent, lagging other major European stockindexes

Darius   25/1/2018

I'm only getting an answering machine buy instantly ageless Retail sales volumes rose 0.1% in July compared to June and 2.6% growth was seen year-on-year.

Vicente   25/1/2018

Your cash is being counted abbott tricor coupons The ICM poll is the second this year to show independencesupporters in the lead though a small sample size of 705 peoplemeans its margin of error is higher than most other polls
lancome hypnose drama 01 mascara seti Foreman pocketed $1 million for last night's title fight while Moorer, who weighed 222 pounds, was guaranteed $5 million.

Kermit   26/1/2018

How many are there in a book? medication prince valium lyrics dollar, buoyed by rising Treasury yields andwidening interest rate differentials in its favour, traded below11-month peaks against a basket of major currencies, havingscaled those highs after minutes of the Federal Reserve's Julymeeting, released on Wednesday, sounded slightly hawkish.

Sanford   26/1/2018

Have you got a telephone directory? valium with a 5 on it It was about bigotry and discrimination, hiding behind religion, as they so often have in this country.

Steven   26/1/2018

How do you do? avene retrinal 0.1 intensive cream review Commenting on the figures, Kathleen O'Meara of the Irish Cancer Society (ICS) emphasised that while cancer affects all parts of Irish society, ‘some people are more at risk than others and where you live has a huge influence on this'.

Normand   26/1/2018

We'd like to invite you for an interview lancome hypnose mascara value set "Our anti-trust enforcement work is strictly conductedaccording to regulations," said Xu Kunlin, director general ofthe National Development and Reform Commission's (NDRC) PriceSupervision and Inspection and Anti-Monopoly Bureau.

Jarvis   27/1/2018

Good crew it's cool :) forever youthful
A Bulgarian naval officer taking part in the Nato exercises was circumspect: "I don't think this is a Nato exercise

Quinn   27/1/2018

I'm not interested in football maximum dose trazodone for sleep But, if you find yourself looking down at a healthy collection of As, Bs and Cs, having spent two years calmly reading about the subjects that interest you, making friends and doing a lot of much-needed growing up, then that’s the best outcome of all

Sebastian   27/1/2018

Go travelling biotest alpha male testosterone booster
Attorneys for the Florida Court Clerks & Comptrollers issued a memo last week advising that a federal judge’s decision striking down Florida’s ban on same-sex marriage only applies to issuing licenses in Washington County

Raymon   28/1/2018

We're at university together valium and alcohol mixture
And while the lack of a major gameplay overhaul can be debated, graphics definitely take a big leap forward

Derick   29/1/2018

I'm interested in this position vivite replenish hydrating cream 2 oz reviews Depression and even suicide is more common in those with a diagnosis of epilepsy than for the general public.

Gabrielle   29/1/2018

This site is crazy :) harga salep elocon di indonesian Jets coach Rex Ryan sang the blues on Friday, saying how unlucky it was that while his former assistants are having success elsewhere, he was sliding into oblivion, on the brink of dropping a franchise-record ninth straight game with a loss to Pittsburgh on Sunday.

Norman   29/1/2018

How do you spell that? how long does it take for 10mg valium to work And while she hopes that the book, just published by Doubleday in the US and Britain, is fun and shows that Parisians can send themselves up a little bit, she also sees it as something of a self-help manual for the stressed out modern woman.

Domingo   29/1/2018

I'm retired prostavar rx promo code and South Korean troops as a "provocation." Experts are divided, though, on how advanced any of North Korea’s nuclear weapons might actually be; the country has conducted three tests since 2006, with dubious success, and a South Korean spokesman said the neighboring country does not believe North Korea has realized its goal of miniaturizing nuclear warheads, to be placed on missiles.

Demetrius   29/1/2018

Another year modafinil direct "With fewer tenants willing to relocate in the festive period, landlords usually compete to fill empty properties and agreed rents tend to dip as a result

Khloe   30/1/2018

I support Manchester United green horizon garcinia cambogia reviews "Knowing this, and knowing all the history about this apartment, I knew [whoever] left this property behind had no lawful reason to be in possession of this [artwork]," the officer wrote in his report.

Trevor   30/1/2018

Special Delivery xls medical max strength tesco The Dow Jones industrial average rose 39.81 points, or 0.23 percent, to 17,613.74, the S&P 500 gained 6.34 points, or 0.31 percent, to 2,038.26, and the Nasdaq Composite added 19.08 points, or 0.41 percent, to 4,651.62.

Numbers   30/1/2018

I have my own business olanzapine 5 mg odt tab Tests showed he had suffered 11 wounds, including nine to the skull and a potentially fatal blow to the pelvis.

Brooks   30/1/2018

What do you like doing in your spare time? canine prednisone dosage cancer It’s probably too much to hope that the more exaggerated union claims about the supposed unfair advantages of charters will be moderated

Kimberly   30/1/2018

What do you do for a living? eucerin q10 day cream reviews We chose these high-quality materials and construction very carefully for their strength and durability

Carroll   30/1/2018

How do I get an outside line? appethyl buy canada When scientists first warned the public about the flow two weeks ago, people wanting a glimpse of the lava began taking helicopter tours over Kaohe and increasing traffic in the community, Oliveira said

Fritz   30/1/2018

I'd like to open a personal account pink magic missile It also allows the prime minister, a staunch advocate of a tougher line against Iran, to beat that drum before a receptive audience and parade his credentials as a global security hawk, a message that plays well domestically.

Tanner   30/1/2018

Your cash is being counted fitcrew usa xtreme testrone ingredients As it stands - it seems like the league is not there to protect Bruins - anyone else miss Shawn Thornton?

Stacey   31/1/2018

The line's engaged bactrim ds for acne side effects Mr Juncker said the commission would "look favourably" on government participation in big investment schemes, and would "neutralise" national contributions to the new fund

Lucio   1/2/2018

This is your employment contract glucotrol xl 5mg p.o. acbk Her death was caused by a serious infection which led to severe sepsis, leading to eventual organ failure and cardiac arrest.

Jesse   1/2/2018

One moment, please max single dose of valium He testified he had gotten the gun from a friend, intending to use it to protect his drug business, and also used it in a robbery.

August   1/2/2018

I'd like to send this letter by buy boost rx We’re interested in seeing how people who look at the world differently and understand technology could perhaps use that, combine these stories with their ambition, and create something that would be really compelling.

Lucien   1/2/2018

We need someone with experience glytone mild gel wash makeupalley Monday night's announcement that Wilson, who is white, wouldn't be indicted for fatally shooting Brown, who was black, prompted violent protests that resulted in about a dozen buildings and some cars being burned

Deandre   1/2/2018

Excellent work, Nice Design ciprofloxacin and tinidazole uses Sources familiar with the Reserve Bank of India's investigations into Sahara said the regulator had notreceived a request fromthe Supreme Courtto probe whether the money is in the Bank of America account, but was making some initial checks of its own.

Jamison   1/2/2018

I don't like pubs lipovarin pastillas para adelgazar Fortunately, experts expect that the flaming space matter will pass by earth without any serious repercussions.

Behappy   2/2/2018

Children with disabilities digoxin toxicity symptoms in toddlers David Hatchett, a former alpine nurseryman, has an outstanding garden full of them at Lydford in north Devon

Jordan   2/2/2018

good material thanks generic reglan picture Goldman Sachs and UBS were jointbookrunners for the offer, which was unusually large for anaccelerated bookbuild offer - a type of share placement whichtakes hours rather than the weeks sometimes needed for rightsissues.

Harvey   2/2/2018

I'd like to open a personal account lioresal 25 mg prospect Later the same night, Giants-Eagles on NBC’s “SNF” did a “measly” 10.8 rating (18.1) million viewers.

Willy   3/2/2018

There's a three month trial period dabur stimulex oil buy online All Rights is part of Bleacher Report - Turner Sports Network, part of the Turner Sports and Entertainment Network.Certain photos copyright 2015 by Getty Images.Any commercial use or distribution without the express written consent of Getty Images is strictly prohibited.

Infest   3/2/2018

A financial advisor tricor 145 mg manufacturer administration officials said on Friday the new sanctions will further hit the Russian economy on the brink of recession and facing a 13-percent weakening of the rouble and $100 billion in capital outflows so far this year.

Shelby   4/2/2018

What university do you go to? buy true grit test booster "In some cases we've never heard of them." George Foreman and his grill worked well because boxers want to eat healthy protein, he says.

Oliver   16/2/2018

I'm sorry, she's cialis formulary But both the ultra-conservative Salafi al-Nour party and the Tamarod anti-Morsi protest movement said they turned down invitations to meet Mr Burns, while the Muslim Brotherhood also said it had no plans to see him.

Bernard   16/2/2018

I'm on a course at the moment flomax coupons Next month the Bank of England - under new governor MarkCarney - is also due to respond to Osborne's request at hisMarch budget for them to consider giving more detailed guidanceon the future direction of monetary policy.

Pierre   16/2/2018

I'm sorry, I didn't catch your name viagra professional 100mg buy cheap President Vladimir Putin on Tuesday watched Russia's biggest military maneuvers since Soviet times, involving 160,000 troops and about 5,000 tanks across Siberia and the far eastern region in a massive show of the nation's resurgent military might.

Fritz   16/2/2018

Could I make an appointment to see ? desyrel (trazodone hcl) “There are two main challenges concerning this kind of vehicle: first of all, we need to develop the technology needed to allow it to navigate autonomously in an unfamiliar environment, so we are concentrating on reconstructing the environment, in real time, via onboard sensors. The other major challenge is for the vehicle not only to function in automatic control in free flight, but also in physical interaction with its environment,” says Lorenzo Marconi, Airobots project coordinator and professor of automatic control at the university of Bologna.

Vida   16/2/2018

Could you tell me the dialing code for ? kamagra 100mg oral jelly ingredients "In the United States, it is illegal to deny health care to prisoners. That is fairly settled law," said Mara Keisling, executive director of the National Center for Transgender Equality. "Now the Army can claim this isn't health care, but they have the weight of the medical profession and science against them."

Jamaal   16/2/2018

I need to charge up my phone intagra 100mg tablets The Asian country imported 272,090 tonnes of Iran crude lastmonth, or 64,336 barrels per day (bpd), declining from 190,516bpd in July and putting the total imports for June-August at130,135 bpd, preliminary customs data and Reuters calculationsshow.

Frank   16/2/2018

I went to kamagra dyskretnie pl opinie The US government has become a threat to the the national security of every nation on earth. They have used the politics of fear with the absurd notion of a "War On Terror" to further their empire and economic ambitions via insidious spying, torture, or any barbaric method most nations have long disbanded as uncivilized. The end justifies the means no matter how illegal or immoral. Democracy & USA no longer belong in the same sentence.

Lascia un commento

5 meno 2 uguale