This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
linux:fedora_tips [2018/01/18 10:23] – jansen | linux:fedora_tips [2018/06/22 07:35] – [XDG basedir standards] jansen | ||
---|---|---|---|
Line 71: | Line 71: | ||
However, the data and cache parts can become quite big, causing two problems: quota usage on the home disk, and performance loss (since the home disk is remote, and this can cause lots of read and write access). | However, the data and cache parts can become quite big, causing two problems: quota usage on the home disk, and performance loss (since the home disk is remote, and this can cause lots of read and write access). | ||
Now the XDG standard provides a mechanism to move those files to another location, and we suggest users move them to one of their local data disks. We also provide a script that takes care of the environment setup, but selecting a location and moving the files is something you have to do yourself. | Now the XDG standard provides a mechanism to move those files to another location, and we suggest users move them to one of their local data disks. We also provide a script that takes care of the environment setup, but selecting a location and moving the files is something you have to do yourself. | ||
- | Follow these steps to get started: | + | |
+ | A quick solution is, to move the cache to a data disk and link to that location: | ||
+ | |||
+ | mv ~/.cache / | ||
+ | ln -s / | ||
+ | |||
+ | a more complete setup works like this: | ||
- close programs that may have files open in the XDG directories. This is especially important for Evolution (mail client). | - close programs that may have files open in the XDG directories. This is especially important for Evolution (mail client). | ||
- | - Run ' | + | - Run ' |
- If the specified directory doesn' | - If the specified directory doesn' | ||
- Set the environment in your current shell, and move the existing files to their new locations: | - Set the environment in your current shell, and move the existing files to their new locations: | ||
- | | + | |
+ | eval `sfinx-xdg` | ||
mv ~/.cache/* $XDG_CACHE_HOME/ | mv ~/.cache/* $XDG_CACHE_HOME/ | ||
mv ~/ | mv ~/ | ||
+ | |||
- Log out, and on your next login, all programs should find their data and cache in the new location. | - Log out, and on your next login, all programs should find their data and cache in the new location. | ||
- Witness the increase in performance, | - Witness the increase in performance, |