Přeskočit na hlavní obsah

Příspěvky

Zobrazují se příspěvky se štítkem Linux

Network scanning with Lexmark CX410

It took me some time to get Lexmark CX410 network scanning working on my Ubuntu (16.04 LTS). Scanning programs were not able to discover the device even if the correct driver was installed. So here are some troubleshooting steps, you can try if you also experience some problems with the network scanning. Download and install the driver Download network scan driver for CX410 from Lexmark support page support.lexmark.com install it: sudo dpkg -i lexmark_network-scan-linux-glibc2_12212015_x86_64.deb And now add the secret ingredient . Link the installed drivers to a proper location : sudo ln -s /usr/local/lexmark/unix_scan_drivers/lib/sane /usr/lib/sane Installation verification $ scanimage -L device `lexmark_nscan:libnet/SPECIFY_DEVICE' is a Lexmark Network Scanner device `lexmark_nscan:libnet/0021B76D22F6' is a Lexmark Lexmark CX410de Ethernet Scanner```

Ignore the boring SSH error message - Host identification has changed!

The problem If you work with virtual machines in clouds, or you run an SSH server in Docker containers, then you've probably met the following error message during making ssh connection: (I'm connecting through SSH to a docker container) ~$ ssh -p 8822 root@localhost @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:smYv5yA0n9/YrBgJMUCk5dYPWGj7bTpU40M9aFBQ72Y. Please contact your system administrator. Add correct host key in /home/jcacek/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /home/jcacek/.ssh/known_hosts:107 remove with: ssh-keygen -f "/home/jcacek/.ssh/know...

Playing live demos on Linux

I like live demos during presentations. When they work and don't take too much time. And I don't like when the presenter types too much. So I've created the demo-step script . History I've tried to find a way how to "play" live demos (on Linux) in a natural way. First I've found solution by putting keyboard shortcuts into the ~/.inputrc configuration file ( example here ). The disadvantage is, you have to remember, what's the next shortcut. I'm not so good in remembering shortcuts, so I've created simpler solution by utilizing xdotool Linux application ( xdotool home ). Sample usage You can find sample presentation with uses the demo-step on my GitHub. You just need to put the live demo commands into the ~/demo.commands text file and then play them by running demo-step after pressing a keyboard shortcut. Sample content of the ~/demo.commands : #\n# search images in Docker public registry (Docker hub)\ndocker search wil...

Stahujeme videa v Ubuntu

Tento záznam se netýká Javy, je zamířen na uživatele OS Linux. Na svých domácích počítačích používám postarší verze Ubuntu (10.04 LTS a 10.10) a pro uživatele s podobnou konfigurací zde mám návod, jak si jednoduše stahovat streamované video z různých zdrojů. Používám k tomu dva nástroje pro příkazovou řádku - program movgrab a skript tv-dl . movgrab – YouTube, Metacafe, vimeo, ... Prográmek movgrab umí stahovat z mnoha populárních zdrojů a použití je opravdu přímočaré. movgrab http://www.youtube.com/watch?v=oP59tQf_njc Movgrab není v Ubuntu repozitářích, takže k instalaci je potřeba přidat WebUpd8 PPA repozitář: sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install movgrab Vlastnosti, které mě zaujaly: stahování v různých formátech (např. když na youtube je video v různých kvalitách) navázání přerušeného downloadu tv-dl – ČT, Nova, Prima, ... Z nadpisu je zřejmé, že skript tv-dl je určen pro stahování z archívů televizí vysílajíc...