hfs_setup.txt 785 B

123456789101112131415161718192021222324252627282930313233343536
  1. HFS on Raspberry PI4
  2. ==
  3. https://github.com/rejetto/hfs
  4. Installing Node 18
  5. --
  6. Download from https://nodejs.org/download/release/v18.19.0/
  7. wget https://nodejs.org/download/release/v18.19.0/node-v18.19.0-linux-armv7l.tar.gz
  8. Extract
  9. tar xf ./node-v18.19.0-linux-armv7l.tar.gz
  10. Add to ~/.bashrc
  11. '''
  12. PATH=$PATH:/opt/node-v18.19.0-linux-armv7l/bin
  13. '''
  14. Running HFS
  15. --
  16. '''
  17. npx hfs@0.51.2
  18. '''
  19. If error:
  20. '''
  21. Error: Cannot find module '/root/.npm/_npx/<some path>/node_modules/fs-x-attributes/prebuilds/linux-arm.node'
  22. '''
  23. then:
  24. '''
  25. cd /opt
  26. mkdir fs-extended-attributes
  27. cd fs-extended-attributes
  28. npm i fs-extended-attributes
  29. cd /root/.npm/_npx/<some path>/node_modules/fs-x-attributes/prebuilds/
  30. ln -s /opt/fs-extended-attributes/node_modules/fs-extended-attributes/cli.js linux-arm.node
  31. '''