lwc:linux:snap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lwc:linux:snap [2021/06/21 16:56] – created John Harrisonlwc:linux:snap [2023/01/16 07:21] (current) John Harrison
Line 4: Line 4:
   * if not possible to install as ''stable'' install with ''devmode'' to be able to read files...or something   * if not possible to install as ''stable'' install with ''devmode'' to be able to read files...or something
   * it appears Snap apps can't even see certain directories like ''/tmp'' and ''/home''. Symlinks don't fix the problem. Instead the files need to be copied somewhere else, such as ''/var/tmp''   * it appears Snap apps can't even see certain directories like ''/tmp'' and ''/home''. Symlinks don't fix the problem. Instead the files need to be copied somewhere else, such as ''/var/tmp''
 +
 +==== workaround for snap not able to access outside of /home ====
 +  * Mount the directory inside home. Example with ''/tmp'':
 +<code>
 +mkdir /home/you/tmp
 +sudo mount --bind /tmp /home/you/tmp/
 +</code>
 +  * make permanent by editing ''/etc/fstab'':
 +<code>
 +# <file system> <mount point>   <type>  <options>       <dump>  <pass>
 +/tmp        /home/you/tmp   auto    bind    0   3
 +</code>
 +  * then rebuild the initrd:
 +<code>
 +sudo update-initramfs -u -k all
 +</code>
 +//[[https://askubuntu.com/questions/1263843/how-to-allow-snap-applications-to-access-tmp-folder|source]]//
  • lwc/linux/snap.1624312608.txt.gz
  • Last modified: 2021/06/21 16:56
  • by John Harrison