diff options
author | nathansmith <nathansmith@posteo.com> | 2025-04-27 08:04:39 -0600 |
---|---|---|
committer | nathansmith <nathansmith@posteo.com> | 2025-04-27 08:04:39 -0600 |
commit | bb879130cf8333a3dae8515438d925bcf1a75c40 (patch) | |
tree | 417954b145abebceab865e53114cc4687fccc442 /linux_room.html | |
parent | a4b402e61f878218645a316f45ff147bafb47218 (diff) |
Added more spaceFM stuff
Diffstat (limited to 'linux_room.html')
-rw-r--r-- | linux_room.html | 57 |
1 files changed, 49 insertions, 8 deletions
diff --git a/linux_room.html b/linux_room.html index 2039390..59595c4 100644 --- a/linux_room.html +++ b/linux_room.html @@ -196,20 +196,61 @@ table { </p> </td> </tr> - + <tr> <td> <h2 id="spacefm">SpaceFM</h2> <p> For the longest time I just used thunar because its decent and default in xfce though I decided - to give spacefm a try as of writing this. I might got annoyed of it in a week and ditch it or + to give spaceFM a try as of writing this. I might got annoyed of it in a week and ditch it or end up really liking it. These kinds of things tend to go either way for me. I will either - fucking hate it or wonder how I ever lived without it. - <br/><br/> - I am fucking around with udisks2/udiskie and udevil to see what works better for my uses. - To get encrypted partitions working I add udiskie as a startup app in xfce to handle that - shit. Spacefm makes encrypted partitions a pain in the ass but its really configurable so - with enough hacks you can get spacefm to do anything. Thats the magic of spacefm. + fucking hate it or wonder how I ever lived without it.<br/> + Update: After using it for a little bit I really dig it and never want to go back. + </p> + + <h3>Encrypted partitions/the few things udevil doesnt support yet in spaceFM</h3> + <p> + SpaceFM doesnt support encrypted partitions by default but lucky for us its very customizable. + To get encrypted disks working I use udisks2 and udiskie. + </p> + <ul> + <li>Install udisks2 and udiskie.</li> + <li>Go to xfce session and startup than add the command <code>udiskie -s</code> as a autostarted app. + The -s option makes udiskie show a tray icon and hide it when there arent any disks. -t will show + the tray all the time and by default udiskie will not show a tray.</li> + <li>In spaceFM go to Devices->Settings->Device Handlers and add a new handler: + <img src="images/udiskie_in_spacefm.jpg" alt="udiskie device handler in spacefm"/> + Whitelist: <code>crypto_LUKS</code><br/> + Mount: <code>udiskie-mount %v</code><br/> + Unmount: <code>udiskie-umount $(lsblk -n -o MOUNTPOINT %v)</code> + </ul> + + <h3>sftp</h3> + <p> + Spacefm uses sshfs for sftp support. Once you install it you will be ready to rock. Though + for my use case I need symlink support. sshfs needs to have the option <code>-o follow_symlinks</code> + To support symlinks. To add the option go to Devices->Settings->Protocol Handlers->ssh and change the + mount option to:<br/> + <code> + #!/bin/bash + <br/><br/> + [[ -n "$fm_url_user" ]] && fm_url_user="${fm_url_user}@"<br/> + [[ -z "$fm_url_port" ]] && fm_url_port=22<br/> + echo ">>> sshfs -o follow_symlinks -p $fm_url_port $fm_url_user$fm_url_host:$fm_url_path %a"<br/> + echo<br/> + # Run sshfs through nohup to prevent disconnect on terminal close<br/> + sshtmp="$(mktemp --tmpdir spacefm-ssh-output-XXXXXXXX.tmp)" || exit 1<br/> + nohup sshfs -o follow_symlinks -p $fm_url_port $fm_url_user$fm_url_host:$fm_url_path %a &> "$sshtmp"<br/> + err=$?<br/> + [[ -e "$sshtmp" ]] && cat "$sshtmp" ; rm -f "$sshtmp"<br/> + [[ $err -eq 0 ]] # set error status<br/> + <br/><br/> + # Alternate Method - if enabled, disable nohup line above and<br/> + # uncheck Run In Terminal<br/> + # # Run sshfs in a terminal without SpaceFM task. sshfs disconnects when the<br/> + # # terminal is closed<br/> + # spacefm -s run-task cmd --terminal "echo 'Connecting to $fm_url'; echo; sshfs -p $fm_url_port $fm_url_user$fm_url_host:$fm_url_path %a; if [ $? -ne 0 ]; then echo; echo '[ Finished ] Press Enter to close'; else echo; echo 'Press Enter to close (closing this window may unmount sshfs)'; fi; read" & sleep 1<br/> + </code> </p> </td> </tr> |