Unmount/Mount SMB shares to your Linux Filesystem manually w/o autofs or fstab or use it alongside w/o needing to put in commands in the terminal.
Warning
This project was generated by a local LLaMA model via OLLAMA and OpenWebUI for personal use and was not developed by a professional developer. The code may be incomplete, poorly designed, or contain bugs and security issues, and no support, maintenance, or updates will be provided. Use or contribute at your own risk.
To build smbmountmanager, install:
- g++ (with C++17 support)
- ncurses development library
cifs-utils
- Make the credentials file Example:
username= # Your Username
password= # Whatever your password is
domain= # Your SMB domain your just WORKGROUP or you can just delete this line"
Make sure your credentials file is in an accessible location for the application
- Change the variables in Server Section in the .cpp files
"Sever 1", "IP Address", "path to credentials",
{
{"Share Name 1", "\"Share path\"", "mnt path"}
}
- Run the build command, move to bin directory and make it executable.
g++ -std=c++17 {whateverthename}.cpp -lncurses -o smbmountmanager sudo mv smbmountmanager /usr/local/bin/ sudo chmod +x /usr/local/bin/smbmountmanager - Run the application
smbmountmanager. - Usage
- Just select your server and mount or unmount the shares. If the server is unreachable it will give you an error.