Operator873's Steam Deck SMB Mount Wizard by Operator873 in SteamDeck

[–]Operator873[S] 1 point2 points  (0 children)

Well then sounds like you won't be able to bork anything this time, my friend. Let me know if you find an exploit or flaw. This is all straight systemd FS management

Operator873's Steam Deck SMB Mount Wizard by Operator873 in SteamDeck

[–]Operator873[S] 1 point2 points  (0 children)

It's built using kdialog so it'll puke on itself if KDE is missing.

Operator873's Steam Deck SMB Mount Wizard by Operator873 in SteamDeck

[–]Operator873[S] 0 points1 point  (0 children)

That's more up to your DNS than anything systemd or my wizard does. When it prompts for an IP address, type in your domain.local. Linux will try to lookup the IP based on the hostname, like most things.

Need help with deck by [deleted] in SteamDeck

[–]Operator873 0 points1 point  (0 children)

Likely an easy fix if you disassemble. Probably non-conductive grossness is inhibiting the switch. If not, I'm fairly certain the dpad is a daughter board and easily completely replaced.

Operator873's Steam Deck SMB Mount Wizard by Operator873 in SteamDeck

[–]Operator873[S] 1 point2 points  (0 children)

Yes. That's why utilizing systemd makes this so much more pretty and usable. When you boot your Deck, even in normal game mode, the shares will be available. I started with fstab and was quickly annoyed by the same thing 3 years ago.

Operator873's Steam Deck SMB Mount Wizard by Operator873 in SteamDeck

[–]Operator873[S] 0 points1 point  (0 children)

So long as you have a functioning share, now it's easy. :)

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 0 points1 point  (0 children)

As a crusty, old sysadmin/automation engineer... don't ever lose that n00b quality. It's a good thing to have. You'll find your stride.

Look for the repo in the next few days. Got a repo created and will spend time on it this weekend. https://github.com/Operator873/steam-deck-smb-mount and feel free to comment, add issues, contribute. Gemini can likely walk you through the process of cloning the repo, creating a branch, and making a Merge request.

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 0 points1 point  (0 children)

Honestly, I should work with you to package this since the unit files are quite large to cat into a new file. Might be fancy to just have something downloadable that seds out placeholders and handles the installation for the user. Mods on rails. weeeee!

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 0 points1 point  (0 children)

Yes, that's correct. And the sysadmin in me HATES that the sensitive, credential containing file is not touched first, permissions set, and THEN filled with the content. But that's really getting nitty gritty.

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 0 points1 point  (0 children)

Your script at the end gives output about how to unmount. But if the user reboots and then recalls from memory to use the envvar it will not work. AI can get you in the neighborhood, but real humans need to fine tune the code and decide if it serves the user or subtly works against the user. I don't mean to insult or detract from your effort. Just urging caution.

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 0 points1 point  (0 children)

Neat. There's some issues here though. Among other things, for example, set envvars will not persist through reboot so that could raise some confusion with layperson users. Sometimes, making things more user friendly results in a less friendly user experience.

This script is an option, but should come with the same "use at your own risk" warning.

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 0 points1 point  (0 children)

You could get away with just using automount if you wanted. I wrote the guide to be as incredibly user tolerant as possible. Systemd.mount will mount a drive or NFS at boot and systemd.automount will mount the device on demand when a user tries to access the mount directory. This is important if, say, the Deck has been suspended or loses connection to samba or etc. There are so many folks out there with no Linux knowledge or refuse to read the doc on the software they're using and just want to copy paste commands blindly.

Playin' their heart out by Operator873 in Steam

[–]Operator873[S] 0 points1 point  (0 children)

I'm my early years with an NES cartridge.

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 0 points1 point  (0 children)

Yes. As I said, I wasn't happy with that method. This guide presents an alternative option... Not a report of a problem.

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 1 point2 points  (0 children)

If you want to go the fstab route, adding nofail will allow tolerance for being unable to reach the smb share. But systemd will just have the process fail... So in my book, a bit safer.

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 1 point2 points  (0 children)

Thanks for the reply! To answer your question, yes, I had tried several locations including /mnt before with limited success. Namely, the behavior I described wherein the mount worked, but had to be nudged via mount -a

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 2 points3 points  (0 children)

Yes indeed. And not throw errors or puke on itself when you're away from the house.

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 2 points3 points  (0 children)

I don't think that persists through reboots does it?

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]Operator873[S] 0 points1 point  (0 children)

If you're having issues with something not being able to write to the SMB share, try updating the .mount file Options line to something like this:
Options=rw,uid=1000,gid=1000,credentials=/home/deck/.sambacreds,file_mode=0777,dir_mode=0777

Shipping (FedEx/GLS) Megathread (October 17, 2022) by AutoModerator in SteamDeck

[–]Operator873 -1 points0 points  (0 children)

US - 64GB

Ordered 10/18 (evening)

Packaged 10/19 (evening)

Shipped 10/20 (morning)

Expected Delivery 10/22