r/truenas • u/willseagull • 2d ago
General Anyone else installed claude code or something similar onto TrueNAS for easy remote troubleshooting from your phone?
10
u/SecretDeathWolf 2d ago
sorry i deleted all your data. thats my fault. let me see if i can find a backup somewhere
2
u/Accomplished-Lack721 2d ago
You're absolutely right! Deleting your data was catastrophically bad. It happened because I didn't understand "don't delete my data" to apply to your files, and thought you meant the Star Trek character. Let me see if I can find a counselor to help you with the stress this has caused.
3
u/fidju 2d ago
Haven't installed it directly on my server but I keep a Claude Code workspace on my Mac dedicated to TrueNAS management. It has its own tightly permissioned SSH keys, and it keeps memories of different config choices and stuff like that. It has been really awesome.
2
u/willseagull 2d ago
Regular chat had been incredibly helpful in setting up my NAS to how it operates today. Starting testing out Claude code instead of just copy pasting into the shell myself and it’s incredible how much can get done.
2
u/Maleficent-Sort-8802 2d ago edited 1d ago
TrueNAS exists primarily in order to have a useful GUI. Other than that it adds minimally (primarily rich ACLs) on top of the open-source stuff it’s built on (Debian, ZFS, Samba, Docker etc). Point being, if you’re already planning to use LLMs, you may as well let them interact with a raw Debian with ZFS over CLI, than take the longer route via TrueNAS and its APIs. Be careful and take regular backups of your data as well as your base config, and get the LLM to explain itself on every step. It can be a powerful tool though if used sensibly and you’ll be able to learn a lot from it. And you’ll end up with an extremely lean and stable setup with minimal tie-ins and dependencies.
1
u/drmattsuu 2d ago
Not here to poopoo AI, I've tried out agents and even had some success with them (always vet the responces, never blindly copy/paste), but an agent with unfettered access to my data would be too risky for me.
1
u/Alexey_V_Gubin 2d ago
Why would you want it in the first place?
The NAS is supposed to be relatively set-and-forget unit.
What is the reconfiguration that can't wait for you to come home (assuming homelab)? So you need to do it from your phone?
Same question for the troubleshooting.
Look to me like a solution in search of a problem.
1
u/willseagull 2d ago
Very fair points. I guess I’ve only just set my NAS up so things aren’t at that set and forget stage yet and things like seerr requests don’t always go through quickly or the Minecraft server crashes. I can just ask Claude “what caused the Minecraft server to crash for my friends” and it will find an answer and a solution. Of course the goal is to not have to use it at all eventually but for now it’s helping rapidly get things up and operational.
1
u/Aggravating_Work_848 1d ago
you do realize that you will have to re-install it everytime after a system udpate right?
Because the update wipes any additional packages that are not included in the base OS...
1
9
u/sdhdhosts 2d ago
I would never trust that running on my nas