help-circle
rss



The lyrics are from a song "Superman" by Lazlo Bane
fedilink

How can I use a `nofail` alternative with fuse?
Using mergerfs the computer refused to boot with the following error ``` [Failed] Failed to mount /mnt/storage [Depend] Dependency failed for Local File Systems You are in emergency mode. After logging in, type “journalctl -xb” to view system logs, “systemctl reboot” to reboot, “systemctl default” or “exit” to boot into default mode. Root password for maintenance (or press Control-D to continue): ``` I added the `nofail` option and it boots up fine but now I can't mount the folder because I get ``` fuse: unknown option nofail ``` How can I use a `nofail` alternative with fuse? I'm looking for a way more specific than [this](https://unix.stackexchange.com/a/590869/513177). The error was because the mount point wasn't empty. I may need `nofail` in the future to avoid this same error.
fedilink

[SOLVED] How can I merge the drives of two computers and see them all as one directory?
I want to share the drives of two computers using Manjaro Linux and see them all as one directory in both computers. I've been using mergerfs and sshfs and it was working when I shared one drive of B with A, merged them there and shared the merged folder back with B. Now I've tried merging the drives of B too but I haven't managed to do it. If possible I would like the computers to still work while the other is disconnected. NFS made one computer hang when the other was disconnected which is why I ended up using sshfs. The only error I had before was some applications giving `input/output error` or `permission denied`. Which I guess it's because I didn't have the proper permissions. I would like to avoid that error too, without having to execute something like `chmod -R 777 /mnt/merged` often. I don't know if [this solution](https://unix.stackexchange.com/questions/1314/how-to-set-default-file-permissions-for-all-folders-files-in-a-directory) works with mergerfs. This is what I've tried to do without success `user@A ❯ cat /etc/fstab` ``` # <file system> <mount point> <type> <options> <dump> <pass> UUID=1615d12a-a9fb-41a9-a84b-34c618f16832 /mnt/hdd1 ext4 nosuid,nodev,nofail,x-gvfs-show 0 0 UUID=d605a480-f133-443c-8fe7-5b0a2d1c60c1 /mnt/hdd2 ext4 nosuid,nodev,nofail,x-gvfs-show 0 0 user@192.168.1.45:/mnt/hdd0 /mnt/hdd0 fuse.sshfs IdentityFile=/home/user/.ssh/id_rsa,uid=1000,gid=1000,allow_other,default_permissions,_netdev,follow_symlinks,ServerAliveInterval=45,ServerAliveCountMax=2,reconnect,noatime,auto 0 0 /mnt/hdd* /mnt/storage fuse.mergerfs allow_other,use_ino,cache.files=partial,dropcacheonclose=true,ignorepponrename=true,func.mkdir=epall,x-gvfs-show 0 0 ``` `user@B ❯ cat /etc/fstab` ``` # <file system> <mount point> <type> <options> <dump> <pass> UUID=301e3d8d-6c0a-4f7c-864b-4185a70efbb0 /mnt/hdd1 auto nosuid,nodev,nofail,x-gvfs-show 0 0 UUID=be8b9fd3-7ed2-45ae-881a-25fa06f4de47 /mnt/hdd2 auto nosuid,nodev,nofail,x-gvfs-show 0 0 user@192.168.1.122:/mnt/storage /mnt/hdd0 fuse.sshfs IdentityFile=/home/user/.ssh/id_rsa,uid=1000,gid=1000,allow_other,default_permissions,_netdev,follow_symlinks,ServerAliveInterval=45,ServerAliveCountMax=2,reconnect,noatime 0 0 /mnt/hdd* /mnt/storage fuse.mergerfs allow_other,use_ino,cache.files=partial,dropcacheonclose=true,ignorepponrename=true,func.mkdir=epall,x-gvfs-show 0 0 ``` This is what I was using, which is working fine. `user@A ❯ cat /etc/fstab` ``` # <file system> <mount point> <type> <options> <dump> <pass> UUID=1615d12a-a9fb-41a9-a84b-34c618f16832 /mnt/hdd1 ext4 nosuid,nodev,nofail,x-gvfs-show 0 0 UUID=d605a480-f133-443c-8fe7-5b0a2d1c60c1 /mnt/hdd2 ext4 nosuid,nodev,nofail,x-gvfs-show 0 0 user@192.168.1.45:/mnt/hdd1 /mnt/hdd0 fuse.sshfs _netdev,follow_symlinks,IdentityFile=/home/user/.ssh/id_rsa,allow_other,default_permissions,uid=1000,gid=1000,ServerAliveInterval=45,ServerAliveCountMax=2,reconnect,noatime,auto,x-gvfs-show 0 0 /mnt/hdd* /mnt/storage fuse.mergerfs allow_other,use_ino,cache.files=partial,dropcacheonclose=true,ignorepponrename=true,func.mkdir=epall,x-gvfs-show 0 0 ``` `user@B ❯ cat /etc/fstab` ``` # <file system> <mount point> <type> <options> <dump> <pass> UUID=301e3d8d-6c0a-4f7c-864b-4185a70efbb0 /mnt/hdd1 auto nosuid,nodev,nofail,x-gvfs-show 0 0 UUID=be8b9fd3-7ed2-45ae-881a-25fa06f4de47 /mnt/hdd2 auto nosuid,nodev,nofail,x-gvfs-show 0 0 user@192.168.1.122:/mnt/storage /mnt/storage fuse.sshfs _netdev,follow_symlinks,IdentityFile=/home/user/.ssh/id_rsa,allow_other,default_permissions,uid=1000,gid=1000,ServerAliveInterval=45,ServerAliveCountMax=2,reconnect,noatime,auto,x-gvfs-show 0 0 ```
fedilink







Download playlist with youtube-dl. Saving all data including the archive file into the uploader's folder for each video
This can't be done just with arguments as it says here: [Set download-archive path with args](https://reddit.com/r/youtubedl/comments/muysm1/set_downloadarchive_path_with_args/) I want to make two similar scripts. One that downloads the videos and archive file in the uploader's folder for each video. And another script that also downloads the metadata. I want to check the archive before downloading. I want to be able to use the function multiple times in parallel putting them on the background. The only way I can think of getting the uploader is to download the metadata with the output `%(uploader)s`. Then create a folder with the uploader's name, remove the file, and download again the files with the correct name from the created folder. I have [a few functions][1] defined already that may help with this. This is what I've tried but it isn't working # Video Playlist saving archive file to uploader's folder ytp() { # Dl opts=( ${opts[@]} --skownload metadata --skip-download --write-info-json ) # Get ten random characters local rand=$( cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1 ) LOG_NAME=$( get_log_name "$(${paste[@]})" ) $yt_dl ${opts[@]} --output "%(uploader|Anon-%(id)s)s.%(ext)s" "$(${paste[@]})" >> "/tmp/$LOG_NAME" 2>&1 for f in *.info.json; do local name="${f%.*}" if [[ $name == Anon* ]]; then name="Anon" fi mkdir -p "$name" rm "$f" cd "$name" || exit # Download media ytv cd .. || exit done } [1]: https://git.disroot.org/hirrolot19/dotfiles/src/branch/main/config/zsh/plugins/yt-dl/yt-dl.plugin.zsh
fedilink




[SOLVED] How to set up onion service?
I want to serve [a website](https://forum.manjaro.org/t/how-to-run-stash-box-bare-metal/124582) through tor, so that I don't have to pay a hosting service or provide my ip to the users. I've followed the steps on [Arch Wiki](https://wiki.archlinux.org/title/tor) and [torproject.org](https://community.torproject.org/onion-services/setup/): ## Step 0: Get a working Tor ``` $ yay -S tor $ sudo systemctl enable --now tor.service ``` ## Step 1: Get a web server working [Previous steps](https://forum.manjaro.org/t/how-to-run-stash-box-bare-metal/124582). ``` $ cd ~/code/go/stash-box $ ./stash-box --host 127.0.0.1 --port 9998 & ``` ## Step 2: Configure your Tor Onion Service Added this lines to `/etc/tor/torrc` ``` HiddenServiceDir /var/lib/tor/media_wiki/ HiddenServicePort 9998 127.0.0.1:9998 ``` ## Step 3: Restart Tor and check that it worked ``` $ sudo systemctl restart tor ``` ## Step 4: Test that your Onion Service works When I visit the address in `/var/lib/tor/media_wiki/hostname` with the Tor Browser I see an `Unable to connect` message. What else do I have to do? Tags: linux arch-linux manjaro tor
fedilink