Ceci est une ancienne révision du document !
Q How can I change where Cheese saves the pictures it takes?
A You might need to install dconf-editor.
When I run dconf-editor, I can go to org/gnome/cheese/photo-path. I toggle “Use default value” and enter “Pictures” as the Custom value.
Sure enough, Cheese saves images in my Pictures folder.
Q I'm having trouble running scangearmp on Linux Mint 18.1. I'm using a Canon mg6320 and would like to get the scanner going.
A (Thanks to pdc in the Ubuntu Forums) For quite a few years now, Canon has supplied drivers in 3 formats for Linux users: rpm packages, debian packages, and source code. Mint uses Ubuntu; Ubuntu uses Debian, so debian packages are used; so just use a debian package from Canon.
For the MG6300 series drivers, I would start at the Canon Asia website http://support-asia.canon-asia.com/?personal and that takes me to http://support-asia.canon-asia.com/contents/ASIA/EN/0100470702.html and you get scangearmp-mg6300series-2.00-1-deb.tar.gz
So that is a debian package, compressed into a tar.gz format. It is a 5yr old driver; if you were to click to download and select SAVE, it should end up in your Downloads folder. Commands to install; one line at a time, and hit ENTER after each paste, would be:
cd Downloads
tar -zxvf scangearmp-mg6300series-2.00-1-deb.tar.gz
cd scangearmp-mg6300series-2.00-1-deb
./install.sh
and then to run it the command would be:
scangearmp
Q My primary drive has started to fail SMART testing, running afoul of the “reallocated sectors” problem. Since this device has the UEFI boot sector, and three operating systems on it, I'd like to clone the device to a new disk. Can I just do this with dd?
A (Thanks to TheFu in the Ubuntu Forums) Same here. I'm doing a
sudo ddrescue –force /dev/sdb /dev/sda /tmp/log.file
Where sdb is the source, and sda is the target.
This is backwards from what most people would see. I swapped the ports on purpose and powered down/removed all other storage (about 20TB) to prevent issues.
Using ddrescue is important since it will continue AFTER errors are seen.
When all done, I'll restore the backup from 3 days ago to fix any failed sectors from the original. Last time I looked, about 90MB of errors were shown in the ddrescue output.
That single command will create all the formatting, partitions, LVM stuff, everything. At first reboot, I expect to have to change the UUIDs for the partitions. But since I'm still trying to recover the last possible bits, I cannot say for certain that my plan will work.
ddrescue completed. Lots of bad sectors, a few important, but the system booted. boot, lvm, partitions, and most data were all handled as expected. The 2nd GPT record was corrupted. Easily fixed. Replicated the data from the backup disk back over. Life is good. Had a corrupt DB (it was a media center), restore fixed that.
If the clone hadn't worked, I would have followed my normal restore processes for that machine.
(From the Original Poster) Happy to report that ddrescue did the trick, although the drive did not display any errors. I guess the SMART warning was early enough that the problematic sectors had yet to be used. Plugged in the replacement drive, ran
sudo ddrescue -f /dev/sda /dev/sdb /tmp/mapfile
and waited for it to complete. Swapped the cables and booted successfully off the replica.
Q I'm unable to mount the Win 10 disks in my PC when in Ubuntu. I get an error message about an “unclean file system.”
A (Thanks to kagashe in the Ubuntu Forums) Shutdown Windows using the following command:
Shutdown /s /t 0
Q During startup, three error messages flash by too quickly for me to write them down. How can I get rid of them?
A Use your phone to take a video of the startup sequence. Plug the exact text of a message into Google, and you will probably find your answer.
Top questions at Askubuntu
* Making a PDF document https://goo.gl/aLO4AG
* What is the “Wanna Cry” ransomware's possible impact on Linux users? https://goo.gl/GNHPgc
* How can I know from which partition I had booted? https://goo.gl/XC0A7G
* Does someone other than Canonical provide paid support for Ubuntu? https://goo.gl/jTm9ct
* Write the dynamic output of terminal into a text file https://goo.gl/CfXKpw
* Where do files rsynced to a host go? https://goo.gl/2P5bkt
* How to open two different files using the vi editor? https://goo.gl/5YgfpU
* Purging a software package, reinstalling it, it remembers settings https://goo.gl/4cZyTy
* What would cause an installed application to not be recognized as such? https://goo.gl/pYHE8z
Tips and Techniques
What the big boys want
We all like a distro which installs smoothly and quickly, but for some people it's essential.
Many large web sites run on on-demand servers, where they pay based on the resources they use. A large site might have hundreds, thousands, even hundreds of thousands of virtual machines running. Then demand goes up a little, and they need several hundred more VMs – right now.
How quickly can the additional VMs start serving clients? That is a major competitive measurement.
It's a different world from what “we” experience – you know, people running a desktop or laptop computer with Linux as the operating system.
This is where we get into a lot of foreign terminology, such as Openstack, Docker, Vagrant, MAAS, LXD, containers, and system images.
I haven't seen any benchmark results, but speed of deployment must be one of the factors helping Ubuntu succeed in the cloud.