Created
April 16, 2019 08:42
-
-
Save syaifulnizamyahya/38f8354fcf0f8fe1ea4e5642a97ffe40 to your computer and use it in GitHub Desktop.
Linux mount
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Install rclone | |
| Install encfs | |
| Rclone config | |
| Create target directory | |
| Mount rclone | |
| Mount encfs | |
| Smb uses diff password. Setup it like below | |
| sudo smbpasswd -a <username> | |
| Open up a terminal window (or log into your Ubuntu Server) and issue the command: | |
| sudo nano /etc/samba/smb.conf | |
| You'll find the entry: | |
| workgroup = WORKGROUP | |
| You may have already changed WORKGROUP to reflect the workgroup used on your network. Either way, leave that as-is. Under that line, add the following: | |
| netbios name = NAME | |
| Where NAME is the name you want to broadcast for the Samba server. Once you've done that, save and close the file. | |
| Restart Samba and nmbd with the commands: | |
| sudo systemctl restart smbd | |
| sudo systemctl restart nmbd | |
| From <https://www.techrepublic.com/article/how-to-enable-samba-connections-via-hostname/> | |
| sudo rclone mount ijm: /home/ijam/Mount/gdrive/ --vfs-cache-mode writes -v --allow-other --dir-cache-time 72h --buffer-size 1G --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit off --max-read-ahead 256M --poll-interval 5m | |
| sudo echo password | ENCFS6_CONFIG='/home/ijam/Mount/encfs/config/.encfs6.xml' encfs \ | |
| -S -o rw -o allow_other -o uid=99 -o gid=100 \ | |
| /home/ijam/Mount/gdrive/encfs \ | |
| /home/ijam/Mount/encfs/encfs | |
| sudo echo password | ENCFS6_CONFIG='/home/ijam/Mount/encfs/config/.encfs6.xml' encfs \ | |
| -S -o rw -o allow_other -o uid=99 -o gid=100 \ | |
| /home/ijam/Mount/gdrive/amzn \ | |
| /home/ijam/Mount/encfs/amzn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment