Bewertung: 5 / 5

Stern aktivStern aktivStern aktivStern aktivStern aktiv

MacOS X High Sierra and X11 Forwarding using SSH

After installation of High Sierra we recognized that a ssh connection to other systems show up a warning:

 

Warning: untrusted X11 forwarding setup failed: xauth key data not generated.

 

This happens when you installed the latest release from XQuartz 2.7.11 during the last year or so. It seems that the installation of High Sierra replace a couple of files even if they are related and needed by other applications - like XQuartz. To solve this issue just reinstall XQuartz 2.7.11.

 

Bewertung: 0 / 5

Stern inaktivStern inaktivStern inaktivStern inaktivStern inaktiv

Off Topic: iTunes Migration from one USB HD to a new one

When I did my last backup of my HD containing all my iTunes sound and video files I recognized, that this hd will not live longer than two or three more days. So the first thing I did was to buy a new hd and copy all files from the old one to the new one. This leads into the first trouble because I was switching from one operating system to a different one. Starting point was Windows, new system was a Windows VM running on Ubuntu in a VMWare Workstation.

I did a couple of tests on how to implement this. The best way was the following:

  1. Make a backup copy of your iTunes music folder.
  2. Make a backup copy of your media files.
  3. Switch to iTunes folder. In my was: C:\Users\knaepp\My Music\iTunes
  4. Make backup copies of all files in this folder (eg create a zip-archive)
  5. Edit file "iTunes Music Library.xml" with a real text editor (notepad++ or SCI TE TextEditor on Linux)
  6. Search and replace all wrong foldernames in this file.
  7. Move file iTunes Library.itl to a different folder.
  8. Recreate this file by hand (eg copy con "iTunes Library.itl" - enter - F6 - enter)
  9. Start iTunes.
  10. iTunes recognizes that "iTunes Library.itl is not correct and will recreate this DB-file. (This will last a while..... be patient ... in my case - which meant 11000 media files - all about eight hours)
  11. Your library will now point to the new directory.
  12. Have a lot of fun (instead of waiting)

Bewertung: 5 / 5

Stern aktivStern aktivStern aktivStern aktivStern aktiv

How to copy files that does not exist in the target directory

If you want to copy only those files to a directory that NOT exist in the target directory without overwriting existing files or without beeing prompted you can use a more complex cmd-line to achieve this:

 

forfiles /m *.* /c "cmd /c if not exist <sourcePath>\@file (xcopy @file <targetPath>\@file /v)"

 

The forfiles /m *.* loops through all files in the current directory and execudes (/c) the commoand in quotation marks. This command test (if not exist <sourcepath>\@file) the existence of the file in the specified directory and if the file does not exist xcopies it including verification to the target directory.

 

Have fun